rename plugin from PolyvoxFilament to FlutterFilament

rename plugin from PolyvoxFilament to FlutterFilament
This commit is contained in:
Nick Fisher
2023-10-26 14:05:03 +11:00
parent b42d31a773
commit 8b9e6a2b3a
125 changed files with 1539 additions and 1460 deletions

View File

@@ -1,6 +1,6 @@
# polyvox_filament_example
# flutter_filament_example
Demonstrates how to use the polyvox_filament plugin.
Demonstrates how to use the flutter_filament plugin.
## Linux

View File

@@ -45,7 +45,7 @@ android {
}
defaultConfig {
applicationId "app.polyvox.filament_example"
applicationId "app.polyvox.flutter_filament_example"
minSdkVersion 22
targetSdkVersion 31
versionCode flutterVersionCode.toInteger()

View File

@@ -1,9 +1,9 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="app.polyvox.filament_example">
package="app.polyvox.flutter_filament_example">
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<application
android:name="${applicationName}"
android:label="polyvox_filament_example"
android:label="flutter_filament_example"
android:icon="@mipmap/ic_launcher"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
>

View File

@@ -1,4 +1,4 @@
package app.polyvox.filament_example
package app.polyvox.flutter_filament_example
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.android.TransparencyMode

View File

@@ -6,7 +6,7 @@ import 'package:flutter/gestures.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
import 'package:polyvox_filament/widgets/filament_widget.dart';
import 'package:flutter_filament/widgets/filament_widget.dart';
import '../lib/main.dart' as app;
void main() {

View File

@@ -5,14 +5,14 @@ PODS:
- path_provider_foundation (0.0.1):
- Flutter
- FlutterMacOS
- polyvox_filament (0.0.1):
- flutter_filament (0.0.1):
- Flutter
DEPENDENCIES:
- Flutter (from `Flutter`)
- integration_test (from `.symlinks/plugins/integration_test/ios`)
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
- polyvox_filament (from `.symlinks/plugins/polyvox_filament/ios`)
- flutter_filament (from `.symlinks/plugins/flutter_filament/ios`)
EXTERNAL SOURCES:
Flutter:
@@ -21,14 +21,14 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/integration_test/ios"
path_provider_foundation:
:path: ".symlinks/plugins/path_provider_foundation/darwin"
polyvox_filament:
:path: ".symlinks/plugins/polyvox_filament/ios"
flutter_filament:
:path: ".symlinks/plugins/flutter_filament/ios"
SPEC CHECKSUMS:
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
integration_test: 13825b8a9334a850581300559b8839134b124670
path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943
polyvox_filament: 35fece7761e74c973afd80fe3aa0ca225eaace32
flutter_filament: 35fece7761e74c973afd80fe3aa0ca225eaace32
PODFILE CHECKSUM: 7adbc9d59f05e1b01f554ea99b6c79e97f2214a2

View File

@@ -2,7 +2,7 @@ import Flutter
import UIKit
import XCTest
@testable import polyvox_filament
@testable import flutter_filament
// This demonstrates a simple unit test of the Swift portion of this plugin's implementation.
//
@@ -11,7 +11,7 @@ import XCTest
class RunnerTests: XCTestCase {
func testGetPlatformVersion() {
let plugin = PolyvoxFilamentPlugin()
let plugin = FlutterFilamentPlugin()
let call = FlutterMethodCall(methodName: "getPlatformVersion", arguments: [])

View File

@@ -4,16 +4,16 @@ import 'dart:typed_data';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:permission_handler/permission_handler.dart';
import 'package:polyvox_filament/animations/animation_data.dart';
import 'package:flutter_filament/animations/animation_data.dart';
import 'package:polyvox_filament/filament_controller.dart';
import 'package:flutter_filament/filament_controller.dart';
import 'package:polyvox_filament/filament_controller_ffi.dart';
import 'package:polyvox_filament/animations/animation_builder.dart';
import 'package:flutter_filament/filament_controller_ffi.dart';
import 'package:flutter_filament/animations/animation_builder.dart';
import 'package:path_provider/path_provider.dart';
import 'package:polyvox_filament/widgets/filament_gesture_detector.dart';
import 'package:polyvox_filament/widgets/filament_widget.dart';
import 'package:flutter_filament/widgets/filament_gesture_detector.dart';
import 'package:flutter_filament/widgets/filament_widget.dart';
void main() async {
runApp(const MyApp());

View File

@@ -4,10 +4,10 @@ project(runner LANGUAGES CXX)
# The name of the executable created for the application. Change this to change
# the on-disk name of your application.
set(BINARY_NAME "polyvox_filament_example")
set(BINARY_NAME "flutter_filament_example")
# The unique GTK application identifier for this application. See:
# https://wiki.gnome.org/HowDoI/ChooseApplicationID
set(APPLICATION_ID "app.polyvox.polyvox_filament")
set(APPLICATION_ID "app.polyvox.flutter_filament")
# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
# versions of CMake.

View File

@@ -6,10 +6,10 @@
#include "generated_plugin_registrant.h"
#include <polyvox_filament/polyvox_filament_plugin.h>
#include <flutter_filament/flutter_filament_plugin.h>
void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar) polyvox_filament_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "PolyvoxFilamentPlugin");
polyvox_filament_plugin_register_with_registrar(polyvox_filament_registrar);
g_autoptr(FlPluginRegistrar) flutter_filament_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "FlutterFilamentPlugin");
flutter_filament_plugin_register_with_registrar(flutter_filament_registrar);
}

View File

@@ -3,7 +3,7 @@
#
list(APPEND FLUTTER_PLUGIN_LIST
polyvox_filament
flutter_filament
)
list(APPEND FLUTTER_FFI_PLUGIN_LIST

View File

@@ -40,11 +40,11 @@ static void my_application_activate(GApplication* application) {
if (use_header_bar) {
GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new());
gtk_widget_show(GTK_WIDGET(header_bar));
gtk_header_bar_set_title(header_bar, "polyvox_filament_example");
gtk_header_bar_set_title(header_bar, "flutter_filament_example");
gtk_header_bar_set_show_close_button(header_bar, TRUE);
gtk_window_set_titlebar(window, GTK_WIDGET(header_bar));
} else {
gtk_window_set_title(window, "polyvox_filament_example");
gtk_window_set_title(window, "flutter_filament_example");
}
gtk_window_set_default_size(window, 1280, 720);

View File

@@ -5,10 +5,10 @@
import FlutterMacOS
import Foundation
import flutter_filament
import path_provider_foundation
import polyvox_filament
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
SwiftFlutterFilamentPlugin.register(with: registry.registrar(forPlugin: "SwiftFlutterFilamentPlugin"))
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
SwiftPolyvoxFilamentPlugin.register(with: registry.registrar(forPlugin: "SwiftPolyvoxFilamentPlugin"))
}

View File

@@ -3,26 +3,26 @@ PODS:
- path_provider_foundation (0.0.1):
- Flutter
- FlutterMacOS
- polyvox_filament (0.0.1):
- flutter_filament (0.0.1):
- FlutterMacOS
DEPENDENCIES:
- FlutterMacOS (from `Flutter/ephemeral`)
- path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`)
- polyvox_filament (from `Flutter/ephemeral/.symlinks/plugins/polyvox_filament/macos`)
- flutter_filament (from `Flutter/ephemeral/.symlinks/plugins/flutter_filament/macos`)
EXTERNAL SOURCES:
FlutterMacOS:
:path: Flutter/ephemeral
path_provider_foundation:
:path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin
polyvox_filament:
:path: Flutter/ephemeral/.symlinks/plugins/polyvox_filament/macos
flutter_filament:
:path: Flutter/ephemeral/.symlinks/plugins/flutter_filament/macos
SPEC CHECKSUMS:
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943
polyvox_filament: 410c2b06ba59f1182e2fa4338b583903631fb95f
flutter_filament: 410c2b06ba59f1182e2fa4338b583903631fb95f
PODFILE CHECKSUM: 9cc8fc8fc62b1d9a89fd6f974ad4157b35254030

View File

@@ -107,6 +107,13 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
flutter_filament:
dependency: "direct main"
description:
path: ".."
relative: true
source: path
version: "0.5.0"
flutter_lints:
dependency: "direct dev"
description:
@@ -319,13 +326,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "3.7.3"
polyvox_filament:
dependency: "direct main"
description:
path: ".."
relative: true
source: path
version: "0.5.0"
process:
dependency: transitive
description:

View File

@@ -1,5 +1,5 @@
name: polyvox_filament_example
description: Demonstrates how to use the polyvox_filament plugin.
name: flutter_filament_example
description: Demonstrates how to use the flutter_filament plugin.
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
@@ -18,7 +18,7 @@ dependencies:
flutter:
sdk: flutter
path_provider:
polyvox_filament:
flutter_filament:
path: ../
permission_handler:
cupertino_icons: ^1.0.2

View File

@@ -8,7 +8,7 @@
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:polyvox_filament_example/main.dart';
import 'package:flutter_filament_example/main.dart';
void main() {
testWidgets('Verify Platform version', (WidgetTester tester) async {

View File

@@ -18,18 +18,18 @@
<meta charset="UTF-8">
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
<meta name="description" content="Demonstrates how to use the polyvox_filament plugin.">
<meta name="description" content="Demonstrates how to use the flutter_filament plugin.">
<!-- iOS meta tags & icons -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="polyvox_filament_example">
<meta name="apple-mobile-web-app-title" content="flutter_filament_example">
<link rel="apple-touch-icon" href="icons/Icon-192.png">
<!-- Favicon -->
<link rel="icon" type="image/png" href="favicon.png"/>
<title>polyvox_filament_example</title>
<title>flutter_filament_example</title>
<link rel="manifest" href="manifest.json">
<script>

View File

@@ -1,11 +1,11 @@
{
"name": "polyvox_filament_example",
"short_name": "polyvox_filament_example",
"name": "flutter_filament_example",
"short_name": "flutter_filament_example",
"start_url": ".",
"display": "standalone",
"background_color": "#0175C2",
"theme_color": "#0175C2",
"description": "Demonstrates how to use the polyvox_filament plugin.",
"description": "Demonstrates how to use the flutter_filament plugin.",
"orientation": "portrait-primary",
"prefer_related_applications": false,
"icons": [

View File

@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.14)
project(polyvox_filament_example LANGUAGES CXX)
project(flutter_filament_example LANGUAGES CXX)
set(BINARY_NAME "polyvox_filament_example")
set(BINARY_NAME "flutter_filament_example")
cmake_policy(SET CMP0063 NEW)

View File

@@ -6,12 +6,12 @@
#include "generated_plugin_registrant.h"
#include <flutter_filament/flutter_filament_plugin_c_api.h>
#include <permission_handler_windows/permission_handler_windows_plugin.h>
#include <polyvox_filament/polyvox_filament_plugin_c_api.h>
void RegisterPlugins(flutter::PluginRegistry* registry) {
FlutterFilamentPluginCApiRegisterWithRegistrar(
registry->GetRegistrarForPlugin("FlutterFilamentPluginCApi"));
PermissionHandlerWindowsPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("PermissionHandlerWindowsPlugin"));
PolyvoxFilamentPluginCApiRegisterWithRegistrar(
registry->GetRegistrarForPlugin("PolyvoxFilamentPluginCApi"));
}

View File

@@ -3,8 +3,8 @@
#
list(APPEND FLUTTER_PLUGIN_LIST
flutter_filament
permission_handler_windows
polyvox_filament
)
list(APPEND FLUTTER_FFI_PLUGIN_LIST

View File

@@ -90,12 +90,12 @@ BEGIN
BLOCK "040904e4"
BEGIN
VALUE "CompanyName", "app.polyvox" "\0"
VALUE "FileDescription", "polyvox_filament_example" "\0"
VALUE "FileDescription", "flutter_filament_example" "\0"
VALUE "FileVersion", VERSION_AS_STRING "\0"
VALUE "InternalName", "polyvox_filament_example" "\0"
VALUE "InternalName", "flutter_filament_example" "\0"
VALUE "LegalCopyright", "Copyright (C) 2022 app.polyvox. All rights reserved." "\0"
VALUE "OriginalFilename", "polyvox_filament_example.exe" "\0"
VALUE "ProductName", "polyvox_filament_example" "\0"
VALUE "OriginalFilename", "flutter_filament_example.exe" "\0"
VALUE "ProductName", "flutter_filament_example" "\0"
VALUE "ProductVersion", VERSION_AS_STRING "\0"
END
END

View File

@@ -27,7 +27,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
FlutterWindow window(project);
Win32Window::Point origin(10, 10);
Win32Window::Size size(1280, 720);
if (!window.CreateAndShow(L"polyvox_filament_example", origin, size)) {
if (!window.CreateAndShow(L"flutter_filament_example", origin, size)) {
return EXIT_FAILURE;
}
window.SetQuitOnClose(true);