diff --git a/examples/flutter/materials/.gitignore b/examples/flutter/materials/.gitignore
new file mode 100644
index 00000000..79c113f9
--- /dev/null
+++ b/examples/flutter/materials/.gitignore
@@ -0,0 +1,45 @@
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+.DS_Store
+.atom/
+.build/
+.buildlog/
+.history
+.svn/
+.swiftpm/
+migrate_working_dir/
+
+# IntelliJ related
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# The .vscode folder contains launch configuration and tasks you configure in
+# VS Code which you may wish to be included in version control, so this line
+# is commented out by default.
+#.vscode/
+
+# Flutter/Dart/Pub related
+**/doc/api/
+**/ios/Flutter/.last_build_id
+.dart_tool/
+.flutter-plugins
+.flutter-plugins-dependencies
+.pub-cache/
+.pub/
+/build/
+
+# Symbolication related
+app.*.symbols
+
+# Obfuscation related
+app.*.map.json
+
+# Android Studio will place build artifacts here
+/android/app/debug
+/android/app/profile
+/android/app/release
diff --git a/examples/flutter/materials/.metadata b/examples/flutter/materials/.metadata
new file mode 100644
index 00000000..ea8b9bdd
--- /dev/null
+++ b/examples/flutter/materials/.metadata
@@ -0,0 +1,30 @@
+# This file tracks properties of this Flutter project.
+# Used by Flutter tool to assess capabilities and perform upgrades etc.
+#
+# This file should be version controlled and should not be manually edited.
+
+version:
+ revision: "ebc80f01645db271fce658193c5101c9f93d5fb7"
+ channel: "master"
+
+project_type: app
+
+# Tracks metadata for the flutter migrate command
+migration:
+ platforms:
+ - platform: root
+ create_revision: ebc80f01645db271fce658193c5101c9f93d5fb7
+ base_revision: ebc80f01645db271fce658193c5101c9f93d5fb7
+ - platform: ios
+ create_revision: ebc80f01645db271fce658193c5101c9f93d5fb7
+ base_revision: ebc80f01645db271fce658193c5101c9f93d5fb7
+
+ # User provided section
+
+ # List of Local paths (relative to this file) that should be
+ # ignored by the migrate tool.
+ #
+ # Files that are not part of the templates will be ignored by default.
+ unmanaged_files:
+ - 'lib/main.dart'
+ - 'ios/Runner.xcodeproj/project.pbxproj'
diff --git a/examples/flutter/materials/README.md b/examples/flutter/materials/README.md
new file mode 100644
index 00000000..c9338f30
--- /dev/null
+++ b/examples/flutter/materials/README.md
@@ -0,0 +1,16 @@
+# materials
+
+A new Flutter project.
+
+## Getting Started
+
+This project is a starting point for a Flutter application.
+
+A few resources to get you started if this is your first Flutter project:
+
+- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
+- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
+
+For help getting started with Flutter development, view the
+[online documentation](https://docs.flutter.dev/), which offers tutorials,
+samples, guidance on mobile development, and a full API reference.
diff --git a/examples/flutter/materials/analysis_options.yaml b/examples/flutter/materials/analysis_options.yaml
new file mode 100644
index 00000000..0d290213
--- /dev/null
+++ b/examples/flutter/materials/analysis_options.yaml
@@ -0,0 +1,28 @@
+# This file configures the analyzer, which statically analyzes Dart code to
+# check for errors, warnings, and lints.
+#
+# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
+# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
+# invoked from the command line by running `flutter analyze`.
+
+# The following line activates a set of recommended lints for Flutter apps,
+# packages, and plugins designed to encourage good coding practices.
+include: package:flutter_lints/flutter.yaml
+
+linter:
+ # The lint rules applied to this project can be customized in the
+ # section below to disable rules from the `package:flutter_lints/flutter.yaml`
+ # included above or to enable additional rules. A list of all available lints
+ # and their documentation is published at https://dart.dev/lints.
+ #
+ # Instead of disabling a lint rule for the entire project in the
+ # section below, it can also be suppressed for a single line of code
+ # or a specific dart file by using the `// ignore: name_of_lint` and
+ # `// ignore_for_file: name_of_lint` syntax on the line or in the file
+ # producing the lint.
+ rules:
+ # avoid_print: false # Uncomment to disable the `avoid_print` rule
+ # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
+
+# Additional information about this file can be found at
+# https://dart.dev/guides/language/analysis-options
diff --git a/examples/flutter/materials/ios/.gitignore b/examples/flutter/materials/ios/.gitignore
new file mode 100644
index 00000000..7a7f9873
--- /dev/null
+++ b/examples/flutter/materials/ios/.gitignore
@@ -0,0 +1,34 @@
+**/dgph
+*.mode1v3
+*.mode2v3
+*.moved-aside
+*.pbxuser
+*.perspectivev3
+**/*sync/
+.sconsign.dblite
+.tags*
+**/.vagrant/
+**/DerivedData/
+Icon?
+**/Pods/
+**/.symlinks/
+profile
+xcuserdata
+**/.generated/
+Flutter/App.framework
+Flutter/Flutter.framework
+Flutter/Flutter.podspec
+Flutter/Generated.xcconfig
+Flutter/ephemeral/
+Flutter/app.flx
+Flutter/app.zip
+Flutter/flutter_assets/
+Flutter/flutter_export_environment.sh
+ServiceDefinitions.json
+Runner/GeneratedPluginRegistrant.*
+
+# Exceptions to above rules.
+!default.mode1v3
+!default.mode2v3
+!default.pbxuser
+!default.perspectivev3
diff --git a/examples/flutter/materials/ios/Flutter/AppFrameworkInfo.plist b/examples/flutter/materials/ios/Flutter/AppFrameworkInfo.plist
new file mode 100644
index 00000000..7c569640
--- /dev/null
+++ b/examples/flutter/materials/ios/Flutter/AppFrameworkInfo.plist
@@ -0,0 +1,26 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleExecutable
+ App
+ CFBundleIdentifier
+ io.flutter.flutter.app
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ App
+ CFBundlePackageType
+ FMWK
+ CFBundleShortVersionString
+ 1.0
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ 1.0
+ MinimumOSVersion
+ 12.0
+
+
diff --git a/examples/flutter/materials/ios/Flutter/Debug.xcconfig b/examples/flutter/materials/ios/Flutter/Debug.xcconfig
new file mode 100644
index 00000000..ec97fc6f
--- /dev/null
+++ b/examples/flutter/materials/ios/Flutter/Debug.xcconfig
@@ -0,0 +1,2 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
+#include "Generated.xcconfig"
diff --git a/examples/flutter/materials/ios/Flutter/Release.xcconfig b/examples/flutter/materials/ios/Flutter/Release.xcconfig
new file mode 100644
index 00000000..c4855bfe
--- /dev/null
+++ b/examples/flutter/materials/ios/Flutter/Release.xcconfig
@@ -0,0 +1,2 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
+#include "Generated.xcconfig"
diff --git a/examples/flutter/materials/ios/Podfile b/examples/flutter/materials/ios/Podfile
new file mode 100644
index 00000000..3e44f9c6
--- /dev/null
+++ b/examples/flutter/materials/ios/Podfile
@@ -0,0 +1,44 @@
+# Uncomment this line to define a global platform for your project
+platform :ios, '13.0'
+
+# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
+ENV['COCOAPODS_DISABLE_STATS'] = 'true'
+
+project 'Runner', {
+ 'Debug' => :debug,
+ 'Profile' => :release,
+ 'Release' => :release,
+}
+
+def flutter_root
+ generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
+ unless File.exist?(generated_xcode_build_settings_path)
+ raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
+ end
+
+ File.foreach(generated_xcode_build_settings_path) do |line|
+ matches = line.match(/FLUTTER_ROOT\=(.*)/)
+ return matches[1].strip if matches
+ end
+ raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
+end
+
+require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
+
+flutter_ios_podfile_setup
+
+target 'Runner' do
+ use_frameworks!
+ use_modular_headers!
+
+ flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
+ target 'RunnerTests' do
+ inherit! :search_paths
+ end
+end
+
+post_install do |installer|
+ installer.pods_project.targets.each do |target|
+ flutter_additional_ios_build_settings(target)
+ end
+end
diff --git a/examples/flutter/materials/ios/Podfile.lock b/examples/flutter/materials/ios/Podfile.lock
new file mode 100644
index 00000000..81dd9d63
--- /dev/null
+++ b/examples/flutter/materials/ios/Podfile.lock
@@ -0,0 +1,22 @@
+PODS:
+ - Flutter (1.0.0)
+ - thermion_flutter (0.0.1):
+ - Flutter
+
+DEPENDENCIES:
+ - Flutter (from `Flutter`)
+ - thermion_flutter (from `.symlinks/plugins/thermion_flutter/ios`)
+
+EXTERNAL SOURCES:
+ Flutter:
+ :path: Flutter
+ thermion_flutter:
+ :path: ".symlinks/plugins/thermion_flutter/ios"
+
+SPEC CHECKSUMS:
+ Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
+ thermion_flutter: c965e09831858465a1a8df59ff97e40a4d002773
+
+PODFILE CHECKSUM: a57f30d18f102dd3ce366b1d62a55ecbef2158e5
+
+COCOAPODS: 1.15.2
diff --git a/examples/flutter/materials/ios/Runner.xcodeproj/project.pbxproj b/examples/flutter/materials/ios/Runner.xcodeproj/project.pbxproj
new file mode 100644
index 00000000..538ec174
--- /dev/null
+++ b/examples/flutter/materials/ios/Runner.xcodeproj/project.pbxproj
@@ -0,0 +1,716 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 54;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
+ 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
+ 3C05FC91532454752DA970A0 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D5D1C546FE645ECAEFCC54A0 /* Pods_RunnerTests.framework */; };
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
+ BBAE6D8A5A4347F4A6C46C27 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 32F837C9C7BCEF0F9BDD5633 /* Pods_Runner.framework */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXContainerItemProxy section */
+ 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 97C146E61CF9000F007C117D /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 97C146ED1CF9000F007C117D;
+ remoteInfo = Runner;
+ };
+/* End PBXContainerItemProxy section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+ 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 10;
+ files = (
+ );
+ name = "Embed Frameworks";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
+ 32F837C9C7BCEF0F9BDD5633 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+ 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; };
+ 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
+ 718EDC0EB4D77BC3F7C58668 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = ""; };
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
+ 791645A48DD58CAB499064BD /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
+ 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
+ 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
+ 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+ B5390605A97C0B99644E446B /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = ""; };
+ CB2AE1DE0697AD3A0D415EE3 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
+ D392974F01D222426B15AB88 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
+ D5D1C546FE645ECAEFCC54A0 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+ F03D0A570A764AA9BA0FF638 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 97C146EB1CF9000F007C117D /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ BBAE6D8A5A4347F4A6C46C27 /* Pods_Runner.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ B821284C38801A1A220E3CA6 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 3C05FC91532454752DA970A0 /* Pods_RunnerTests.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 331C8082294A63A400263BE5 /* RunnerTests */ = {
+ isa = PBXGroup;
+ children = (
+ 331C807B294A618700263BE5 /* RunnerTests.swift */,
+ );
+ path = RunnerTests;
+ sourceTree = "";
+ };
+ 8499E090CD1D69ED5EB6B7D5 /* Pods */ = {
+ isa = PBXGroup;
+ children = (
+ CB2AE1DE0697AD3A0D415EE3 /* Pods-Runner.debug.xcconfig */,
+ D392974F01D222426B15AB88 /* Pods-Runner.release.xcconfig */,
+ 791645A48DD58CAB499064BD /* Pods-Runner.profile.xcconfig */,
+ 718EDC0EB4D77BC3F7C58668 /* Pods-RunnerTests.debug.xcconfig */,
+ F03D0A570A764AA9BA0FF638 /* Pods-RunnerTests.release.xcconfig */,
+ B5390605A97C0B99644E446B /* Pods-RunnerTests.profile.xcconfig */,
+ );
+ name = Pods;
+ path = Pods;
+ sourceTree = "";
+ };
+ 9740EEB11CF90186004384FC /* Flutter */ = {
+ isa = PBXGroup;
+ children = (
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */,
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */,
+ );
+ name = Flutter;
+ sourceTree = "";
+ };
+ 97C146E51CF9000F007C117D = {
+ isa = PBXGroup;
+ children = (
+ 9740EEB11CF90186004384FC /* Flutter */,
+ 97C146F01CF9000F007C117D /* Runner */,
+ 97C146EF1CF9000F007C117D /* Products */,
+ 331C8082294A63A400263BE5 /* RunnerTests */,
+ 8499E090CD1D69ED5EB6B7D5 /* Pods */,
+ A94F247D0AAA80B7038EDE79 /* Frameworks */,
+ );
+ sourceTree = "";
+ };
+ 97C146EF1CF9000F007C117D /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146EE1CF9000F007C117D /* Runner.app */,
+ 331C8081294A63A400263BE5 /* RunnerTests.xctest */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ 97C146F01CF9000F007C117D /* Runner */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146FA1CF9000F007C117D /* Main.storyboard */,
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */,
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
+ 97C147021CF9000F007C117D /* Info.plist */,
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
+ );
+ path = Runner;
+ sourceTree = "";
+ };
+ A94F247D0AAA80B7038EDE79 /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 32F837C9C7BCEF0F9BDD5633 /* Pods_Runner.framework */,
+ D5D1C546FE645ECAEFCC54A0 /* Pods_RunnerTests.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 331C8080294A63A400263BE5 /* RunnerTests */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
+ buildPhases = (
+ DC5ACE78AE5F40133D2811FB /* [CP] Check Pods Manifest.lock */,
+ 331C807D294A63A400263BE5 /* Sources */,
+ 331C807F294A63A400263BE5 /* Resources */,
+ B821284C38801A1A220E3CA6 /* Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 331C8086294A63A400263BE5 /* PBXTargetDependency */,
+ );
+ name = RunnerTests;
+ productName = RunnerTests;
+ productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */;
+ productType = "com.apple.product-type.bundle.unit-test";
+ };
+ 97C146ED1CF9000F007C117D /* Runner */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
+ buildPhases = (
+ 7EEC0B02EC9E3180CDAD2A79 /* [CP] Check Pods Manifest.lock */,
+ 9740EEB61CF901F6004384FC /* Run Script */,
+ 97C146EA1CF9000F007C117D /* Sources */,
+ 97C146EB1CF9000F007C117D /* Frameworks */,
+ 97C146EC1CF9000F007C117D /* Resources */,
+ 9705A1C41CF9048500538489 /* Embed Frameworks */,
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = Runner;
+ productName = Runner;
+ productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 97C146E61CF9000F007C117D /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ BuildIndependentTargetsInParallel = YES;
+ LastUpgradeCheck = 1510;
+ ORGANIZATIONNAME = "";
+ TargetAttributes = {
+ 331C8080294A63A400263BE5 = {
+ CreatedOnToolsVersion = 14.0;
+ TestTargetID = 97C146ED1CF9000F007C117D;
+ };
+ 97C146ED1CF9000F007C117D = {
+ CreatedOnToolsVersion = 7.3.1;
+ LastSwiftMigration = 1100;
+ };
+ };
+ };
+ buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
+ compatibilityVersion = "Xcode 9.3";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 97C146E51CF9000F007C117D;
+ productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 97C146ED1CF9000F007C117D /* Runner */,
+ 331C8080294A63A400263BE5 /* RunnerTests */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 331C807F294A63A400263BE5 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 97C146EC1CF9000F007C117D /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
+ isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
+ );
+ name = "Thin Binary";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
+ };
+ 7EEC0B02EC9E3180CDAD2A79 /* [CP] Check Pods Manifest.lock */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ );
+ inputPaths = (
+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
+ "${PODS_ROOT}/Manifest.lock",
+ );
+ name = "[CP] Check Pods Manifest.lock";
+ outputFileListPaths = (
+ );
+ outputPaths = (
+ "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
+ showEnvVarsInLog = 0;
+ };
+ 9740EEB61CF901F6004384FC /* Run Script */ = {
+ isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Run Script";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
+ };
+ DC5ACE78AE5F40133D2811FB /* [CP] Check Pods Manifest.lock */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ );
+ inputPaths = (
+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
+ "${PODS_ROOT}/Manifest.lock",
+ );
+ name = "[CP] Check Pods Manifest.lock";
+ outputFileListPaths = (
+ );
+ outputPaths = (
+ "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
+ showEnvVarsInLog = 0;
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 331C807D294A63A400263BE5 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 97C146EA1CF9000F007C117D /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXTargetDependency section */
+ 331C8086294A63A400263BE5 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 97C146ED1CF9000F007C117D /* Runner */;
+ targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */;
+ };
+/* End PBXTargetDependency section */
+
+/* Begin PBXVariantGroup section */
+ 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C146FB1CF9000F007C117D /* Base */,
+ );
+ name = Main.storyboard;
+ sourceTree = "";
+ };
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C147001CF9000F007C117D /* Base */,
+ );
+ name = LaunchScreen.storyboard;
+ sourceTree = "";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 249021D3217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 12.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Profile;
+ };
+ 249021D4217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ DEVELOPMENT_TEAM = TM2B4SJXNJ;
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ IPHONEOS_DEPLOYMENT_TARGET = 13.0;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.materials;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Profile;
+ };
+ 331C8088294A63A400263BE5 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 718EDC0EB4D77BC3F7C58668 /* Pods-RunnerTests.debug.xcconfig */;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.materials.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+ };
+ name = Debug;
+ };
+ 331C8089294A63A400263BE5 /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = F03D0A570A764AA9BA0FF638 /* Pods-RunnerTests.release.xcconfig */;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.materials.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+ };
+ name = Release;
+ };
+ 331C808A294A63A400263BE5 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = B5390605A97C0B99644E446B /* Pods-RunnerTests.profile.xcconfig */;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.materials.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+ };
+ name = Profile;
+ };
+ 97C147031CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 12.0;
+ MTL_ENABLE_DEBUG_INFO = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 97C147041CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 12.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 97C147061CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ DEVELOPMENT_TEAM = TM2B4SJXNJ;
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ IPHONEOS_DEPLOYMENT_TARGET = 13.0;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.materials;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Debug;
+ };
+ 97C147071CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ DEVELOPMENT_TEAM = TM2B4SJXNJ;
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ IPHONEOS_DEPLOYMENT_TARGET = 13.0;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.materials;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 331C8088294A63A400263BE5 /* Debug */,
+ 331C8089294A63A400263BE5 /* Release */,
+ 331C808A294A63A400263BE5 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147031CF9000F007C117D /* Debug */,
+ 97C147041CF9000F007C117D /* Release */,
+ 249021D3217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147061CF9000F007C117D /* Debug */,
+ 97C147071CF9000F007C117D /* Release */,
+ 249021D4217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 97C146E61CF9000F007C117D /* Project object */;
+}
diff --git a/examples/flutter/materials/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/examples/flutter/materials/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 00000000..919434a6
--- /dev/null
+++ b/examples/flutter/materials/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/examples/flutter/materials/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/examples/flutter/materials/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 00000000..18d98100
--- /dev/null
+++ b/examples/flutter/materials/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/examples/flutter/materials/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/examples/flutter/materials/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 00000000..f9b0d7c5
--- /dev/null
+++ b/examples/flutter/materials/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/examples/flutter/materials/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/examples/flutter/materials/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
new file mode 100644
index 00000000..8e3ca5df
--- /dev/null
+++ b/examples/flutter/materials/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/flutter/materials/ios/Runner.xcworkspace/contents.xcworkspacedata b/examples/flutter/materials/ios/Runner.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 00000000..21a3cc14
--- /dev/null
+++ b/examples/flutter/materials/ios/Runner.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
diff --git a/examples/flutter/materials/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/examples/flutter/materials/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 00000000..18d98100
--- /dev/null
+++ b/examples/flutter/materials/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/examples/flutter/materials/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/examples/flutter/materials/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 00000000..f9b0d7c5
--- /dev/null
+++ b/examples/flutter/materials/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/examples/flutter/materials/ios/Runner/AppDelegate.swift b/examples/flutter/materials/ios/Runner/AppDelegate.swift
new file mode 100644
index 00000000..62666446
--- /dev/null
+++ b/examples/flutter/materials/ios/Runner/AppDelegate.swift
@@ -0,0 +1,13 @@
+import Flutter
+import UIKit
+
+@main
+@objc class AppDelegate: FlutterAppDelegate {
+ override func application(
+ _ application: UIApplication,
+ didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
+ ) -> Bool {
+ GeneratedPluginRegistrant.register(with: self)
+ return super.application(application, didFinishLaunchingWithOptions: launchOptions)
+ }
+}
diff --git a/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 00000000..d36b1fab
--- /dev/null
+++ b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,122 @@
+{
+ "images" : [
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "83.5x83.5",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-83.5x83.5@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "1024x1024",
+ "idiom" : "ios-marketing",
+ "filename" : "Icon-App-1024x1024@1x.png",
+ "scale" : "1x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
new file mode 100644
index 00000000..dc9ada47
Binary files /dev/null and b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ
diff --git a/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
new file mode 100644
index 00000000..7353c41e
Binary files /dev/null and b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ
diff --git a/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
new file mode 100644
index 00000000..797d452e
Binary files /dev/null and b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ
diff --git a/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
new file mode 100644
index 00000000..6ed2d933
Binary files /dev/null and b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ
diff --git a/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
new file mode 100644
index 00000000..4cd7b009
Binary files /dev/null and b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ
diff --git a/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
new file mode 100644
index 00000000..fe730945
Binary files /dev/null and b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ
diff --git a/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
new file mode 100644
index 00000000..321773cd
Binary files /dev/null and b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ
diff --git a/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
new file mode 100644
index 00000000..797d452e
Binary files /dev/null and b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ
diff --git a/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
new file mode 100644
index 00000000..502f463a
Binary files /dev/null and b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ
diff --git a/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
new file mode 100644
index 00000000..0ec30343
Binary files /dev/null and b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ
diff --git a/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
new file mode 100644
index 00000000..0ec30343
Binary files /dev/null and b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ
diff --git a/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
new file mode 100644
index 00000000..e9f5fea2
Binary files /dev/null and b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ
diff --git a/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
new file mode 100644
index 00000000..84ac32ae
Binary files /dev/null and b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ
diff --git a/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
new file mode 100644
index 00000000..8953cba0
Binary files /dev/null and b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ
diff --git a/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
new file mode 100644
index 00000000..0467bf12
Binary files /dev/null and b/examples/flutter/materials/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ
diff --git a/examples/flutter/materials/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/examples/flutter/materials/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
new file mode 100644
index 00000000..0bedcf2f
--- /dev/null
+++ b/examples/flutter/materials/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
@@ -0,0 +1,23 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage.png",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@3x.png",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/examples/flutter/materials/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/examples/flutter/materials/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
new file mode 100644
index 00000000..9da19eac
Binary files /dev/null and b/examples/flutter/materials/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ
diff --git a/examples/flutter/materials/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/examples/flutter/materials/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
new file mode 100644
index 00000000..9da19eac
Binary files /dev/null and b/examples/flutter/materials/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ
diff --git a/examples/flutter/materials/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/examples/flutter/materials/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
new file mode 100644
index 00000000..9da19eac
Binary files /dev/null and b/examples/flutter/materials/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ
diff --git a/examples/flutter/materials/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/examples/flutter/materials/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
new file mode 100644
index 00000000..89c2725b
--- /dev/null
+++ b/examples/flutter/materials/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
@@ -0,0 +1,5 @@
+# Launch Screen Assets
+
+You can customize the launch screen with your own desired assets by replacing the image files in this directory.
+
+You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
\ No newline at end of file
diff --git a/examples/flutter/materials/ios/Runner/Base.lproj/LaunchScreen.storyboard b/examples/flutter/materials/ios/Runner/Base.lproj/LaunchScreen.storyboard
new file mode 100644
index 00000000..f2e259c7
--- /dev/null
+++ b/examples/flutter/materials/ios/Runner/Base.lproj/LaunchScreen.storyboard
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/flutter/materials/ios/Runner/Base.lproj/Main.storyboard b/examples/flutter/materials/ios/Runner/Base.lproj/Main.storyboard
new file mode 100644
index 00000000..f3c28516
--- /dev/null
+++ b/examples/flutter/materials/ios/Runner/Base.lproj/Main.storyboard
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/flutter/materials/ios/Runner/Info.plist b/examples/flutter/materials/ios/Runner/Info.plist
new file mode 100644
index 00000000..c8831e9b
--- /dev/null
+++ b/examples/flutter/materials/ios/Runner/Info.plist
@@ -0,0 +1,49 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleDisplayName
+ Materials
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ materials
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ $(FLUTTER_BUILD_NAME)
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ $(FLUTTER_BUILD_NUMBER)
+ LSRequiresIPhoneOS
+
+ UILaunchStoryboardName
+ LaunchScreen
+ UIMainStoryboardFile
+ Main
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ CADisableMinimumFrameDurationOnPhone
+
+ UIApplicationSupportsIndirectInputEvents
+
+
+
diff --git a/examples/flutter/materials/ios/Runner/Runner-Bridging-Header.h b/examples/flutter/materials/ios/Runner/Runner-Bridging-Header.h
new file mode 100644
index 00000000..308a2a56
--- /dev/null
+++ b/examples/flutter/materials/ios/Runner/Runner-Bridging-Header.h
@@ -0,0 +1 @@
+#import "GeneratedPluginRegistrant.h"
diff --git a/examples/flutter/materials/ios/RunnerTests/RunnerTests.swift b/examples/flutter/materials/ios/RunnerTests/RunnerTests.swift
new file mode 100644
index 00000000..86a7c3b1
--- /dev/null
+++ b/examples/flutter/materials/ios/RunnerTests/RunnerTests.swift
@@ -0,0 +1,12 @@
+import Flutter
+import UIKit
+import XCTest
+
+class RunnerTests: XCTestCase {
+
+ func testExample() {
+ // If you add code to the Runner application, consider adding tests here.
+ // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
+ }
+
+}
diff --git a/examples/flutter/materials/lib/main.dart b/examples/flutter/materials/lib/main.dart
new file mode 100644
index 00000000..183e8d27
--- /dev/null
+++ b/examples/flutter/materials/lib/main.dart
@@ -0,0 +1,80 @@
+import 'package:flutter/material.dart';
+import 'package:thermion_flutter/thermion_flutter.dart';
+import 'package:vector_math/vector_math_64.dart' hide Colors;
+
+void main() {
+ runApp(const MyApp());
+}
+
+class MyApp extends StatelessWidget {
+ const MyApp({super.key});
+
+ @override
+ Widget build(BuildContext context) {
+ return MaterialApp(
+ title: 'Flutter Demo',
+ theme: ThemeData(
+ colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
+ useMaterial3: true,
+ ),
+ home: const MyHomePage(title: 'Flutter Demo Home Page'),
+ );
+ }
+}
+
+class MyHomePage extends StatefulWidget {
+ const MyHomePage({super.key, required this.title});
+
+ final String title;
+
+ @override
+ State createState() => _MyHomePageState();
+}
+
+class _MyHomePageState extends State {
+ ThermionViewer? _viewer;
+ late ThermionAsset _asset;
+ late MaterialInstance _materialInstance;
+
+ @override
+ void initState() {
+ super.initState();
+ ThermionFlutterPlugin.createViewer().then((viewer) async {
+ _viewer = viewer;
+ await _viewer!.setPostProcessing(true);
+ _materialInstance = await _viewer!.createUnlitMaterialInstance();
+ _asset = await _viewer!.createGeometry(
+ GeometryHelper.cube(normals: false, uvs: false),
+ materialInstances: [_materialInstance]);
+
+ await _viewer!
+ .setTransform(_asset.entity, Matrix4.translation(Vector3.all(2)));
+ await _materialInstance.setParameterFloat4(
+ "baseColorFactor", 0.0, 1.0, 0.0, 1.0);
+ await _viewer!.setCameraPosition(0, 0, 10);
+ await _viewer!.setRendering(true);
+ setState(() {});
+ });
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ body: Stack(children: [
+ if (_viewer == null) CircularProgressIndicator(),
+ if (_viewer != null) ...[
+ Positioned.fill(child: ThermionWidget(viewer: _viewer!)),
+ Align(
+ alignment: Alignment.bottomCenter,
+ child: Padding(
+ padding: EdgeInsets.all(12),
+ child: ElevatedButton(
+ onPressed: () async {
+ await _materialInstance.setParameterFloat4(
+ "baseColorFactor", 1.0, 0.0, 0.0, 1.0);
+ },
+ child: Text("Set material property (baseColorFactor)"))))
+ ]
+ ]));
+ }
+}
diff --git a/examples/flutter/materials/macos/.gitignore b/examples/flutter/materials/macos/.gitignore
new file mode 100644
index 00000000..746adbb6
--- /dev/null
+++ b/examples/flutter/materials/macos/.gitignore
@@ -0,0 +1,7 @@
+# Flutter-related
+**/Flutter/ephemeral/
+**/Pods/
+
+# Xcode-related
+**/dgph
+**/xcuserdata/
diff --git a/examples/flutter/materials/macos/Flutter/Flutter-Debug.xcconfig b/examples/flutter/materials/macos/Flutter/Flutter-Debug.xcconfig
new file mode 100644
index 00000000..4b81f9b2
--- /dev/null
+++ b/examples/flutter/materials/macos/Flutter/Flutter-Debug.xcconfig
@@ -0,0 +1,2 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
+#include "ephemeral/Flutter-Generated.xcconfig"
diff --git a/examples/flutter/materials/macos/Flutter/Flutter-Release.xcconfig b/examples/flutter/materials/macos/Flutter/Flutter-Release.xcconfig
new file mode 100644
index 00000000..5caa9d15
--- /dev/null
+++ b/examples/flutter/materials/macos/Flutter/Flutter-Release.xcconfig
@@ -0,0 +1,2 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
+#include "ephemeral/Flutter-Generated.xcconfig"
diff --git a/examples/flutter/materials/macos/Flutter/GeneratedPluginRegistrant.swift b/examples/flutter/materials/macos/Flutter/GeneratedPluginRegistrant.swift
new file mode 100644
index 00000000..b6c27f96
--- /dev/null
+++ b/examples/flutter/materials/macos/Flutter/GeneratedPluginRegistrant.swift
@@ -0,0 +1,12 @@
+//
+// Generated file. Do not edit.
+//
+
+import FlutterMacOS
+import Foundation
+
+import thermion_flutter
+
+func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
+ SwiftThermionFlutterPlugin.register(with: registry.registrar(forPlugin: "SwiftThermionFlutterPlugin"))
+}
diff --git a/examples/flutter/materials/macos/Podfile b/examples/flutter/materials/macos/Podfile
new file mode 100644
index 00000000..90de47d4
--- /dev/null
+++ b/examples/flutter/materials/macos/Podfile
@@ -0,0 +1,43 @@
+platform :osx, '13.0'
+
+# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
+ENV['COCOAPODS_DISABLE_STATS'] = 'true'
+
+project 'Runner', {
+ 'Debug' => :debug,
+ 'Profile' => :release,
+ 'Release' => :release,
+}
+
+def flutter_root
+ generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__)
+ unless File.exist?(generated_xcode_build_settings_path)
+ raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first"
+ end
+
+ File.foreach(generated_xcode_build_settings_path) do |line|
+ matches = line.match(/FLUTTER_ROOT\=(.*)/)
+ return matches[1].strip if matches
+ end
+ raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\""
+end
+
+require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
+
+flutter_macos_podfile_setup
+
+target 'Runner' do
+ use_frameworks!
+ use_modular_headers!
+
+ flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__))
+ target 'RunnerTests' do
+ inherit! :search_paths
+ end
+end
+
+post_install do |installer|
+ installer.pods_project.targets.each do |target|
+ flutter_additional_macos_build_settings(target)
+ end
+end
diff --git a/examples/flutter/materials/macos/Podfile.lock b/examples/flutter/materials/macos/Podfile.lock
new file mode 100644
index 00000000..1a5a471c
--- /dev/null
+++ b/examples/flutter/materials/macos/Podfile.lock
@@ -0,0 +1,22 @@
+PODS:
+ - FlutterMacOS (1.0.0)
+ - thermion_flutter (0.0.1):
+ - FlutterMacOS
+
+DEPENDENCIES:
+ - FlutterMacOS (from `Flutter/ephemeral`)
+ - thermion_flutter (from `Flutter/ephemeral/.symlinks/plugins/thermion_flutter/macos`)
+
+EXTERNAL SOURCES:
+ FlutterMacOS:
+ :path: Flutter/ephemeral
+ thermion_flutter:
+ :path: Flutter/ephemeral/.symlinks/plugins/thermion_flutter/macos
+
+SPEC CHECKSUMS:
+ FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
+ thermion_flutter: debb51a861788780ce40e11e4400c2e5a8681fdf
+
+PODFILE CHECKSUM: 1888651be91a8ad58692c1add9ce24279fd4e950
+
+COCOAPODS: 1.15.2
diff --git a/examples/flutter/materials/macos/Runner.xcodeproj/project.pbxproj b/examples/flutter/materials/macos/Runner.xcodeproj/project.pbxproj
new file mode 100644
index 00000000..99c43306
--- /dev/null
+++ b/examples/flutter/materials/macos/Runner.xcodeproj/project.pbxproj
@@ -0,0 +1,805 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 54;
+ objects = {
+
+/* Begin PBXAggregateTarget section */
+ 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = {
+ isa = PBXAggregateTarget;
+ buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */;
+ buildPhases = (
+ 33CC111E2044C6BF0003C045 /* ShellScript */,
+ );
+ dependencies = (
+ );
+ name = "Flutter Assemble";
+ productName = FLX;
+ };
+/* End PBXAggregateTarget section */
+
+/* Begin PBXBuildFile section */
+ 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C80D7294CF71000263BE5 /* RunnerTests.swift */; };
+ 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; };
+ 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; };
+ 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; };
+ 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; };
+ 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; };
+ 4AB4F40CC65F888819072BE6 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C505FE3DB707C86AF9913AD7 /* Pods_Runner.framework */; };
+ 93EC5655976CC7F426F62D89 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7814D0414F513654523B2A00 /* Pods_RunnerTests.framework */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXContainerItemProxy section */
+ 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 33CC10E52044A3C60003C045 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 33CC10EC2044A3C60003C045;
+ remoteInfo = Runner;
+ };
+ 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 33CC10E52044A3C60003C045 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 33CC111A2044C6BA0003C045;
+ remoteInfo = FLX;
+ };
+/* End PBXContainerItemProxy section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+ 33CC110E2044A8840003C045 /* Bundle Framework */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 10;
+ files = (
+ );
+ name = "Bundle Framework";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+ 2C4F4B405D8499A8F6230032 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; };
+ 331C80D5294CF71000263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
+ 331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; };
+ 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; };
+ 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; };
+ 33CC10ED2044A3C60003C045 /* materials.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = materials.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
+ 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; };
+ 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; };
+ 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; };
+ 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; };
+ 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; };
+ 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; };
+ 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; };
+ 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; };
+ 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; };
+ 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; };
+ 7814D0414F513654523B2A00 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; };
+ 800DCD12E68562D91EFF5505 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
+ 83F145D8BF1F2C6749541C10 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
+ 90485F2A7C8C5BA9B5A77138 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = ""; };
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; };
+ AC490E258D1B51F762273BA7 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
+ C505FE3DB707C86AF9913AD7 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+ DBC6BFDD2CF481FD0068AD10 /* RunnerDebug.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = RunnerDebug.entitlements; sourceTree = ""; };
+ E29213550CF19283101BE77B /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = ""; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 331C80D2294CF70F00263BE5 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 93EC5655976CC7F426F62D89 /* Pods_RunnerTests.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 33CC10EA2044A3C60003C045 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 4AB4F40CC65F888819072BE6 /* Pods_Runner.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 2878036B528A06D7BA6D9105 /* Pods */ = {
+ isa = PBXGroup;
+ children = (
+ 800DCD12E68562D91EFF5505 /* Pods-Runner.debug.xcconfig */,
+ 83F145D8BF1F2C6749541C10 /* Pods-Runner.release.xcconfig */,
+ AC490E258D1B51F762273BA7 /* Pods-Runner.profile.xcconfig */,
+ E29213550CF19283101BE77B /* Pods-RunnerTests.debug.xcconfig */,
+ 2C4F4B405D8499A8F6230032 /* Pods-RunnerTests.release.xcconfig */,
+ 90485F2A7C8C5BA9B5A77138 /* Pods-RunnerTests.profile.xcconfig */,
+ );
+ path = Pods;
+ sourceTree = "";
+ };
+ 331C80D6294CF71000263BE5 /* RunnerTests */ = {
+ isa = PBXGroup;
+ children = (
+ 331C80D7294CF71000263BE5 /* RunnerTests.swift */,
+ );
+ path = RunnerTests;
+ sourceTree = "";
+ };
+ 33BA886A226E78AF003329D5 /* Configs */ = {
+ isa = PBXGroup;
+ children = (
+ 33E5194F232828860026EE4D /* AppInfo.xcconfig */,
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */,
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
+ 333000ED22D3DE5D00554162 /* Warnings.xcconfig */,
+ );
+ path = Configs;
+ sourceTree = "";
+ };
+ 33CC10E42044A3C60003C045 = {
+ isa = PBXGroup;
+ children = (
+ 33FAB671232836740065AC1E /* Runner */,
+ 33CEB47122A05771004F2AC0 /* Flutter */,
+ 331C80D6294CF71000263BE5 /* RunnerTests */,
+ 33CC10EE2044A3C60003C045 /* Products */,
+ D73912EC22F37F3D000D13A0 /* Frameworks */,
+ 2878036B528A06D7BA6D9105 /* Pods */,
+ );
+ sourceTree = "";
+ };
+ 33CC10EE2044A3C60003C045 /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 33CC10ED2044A3C60003C045 /* materials.app */,
+ 331C80D5294CF71000263BE5 /* RunnerTests.xctest */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ 33CC11242044D66E0003C045 /* Resources */ = {
+ isa = PBXGroup;
+ children = (
+ 33CC10F22044A3C60003C045 /* Assets.xcassets */,
+ 33CC10F42044A3C60003C045 /* MainMenu.xib */,
+ 33CC10F72044A3C60003C045 /* Info.plist */,
+ );
+ name = Resources;
+ path = ..;
+ sourceTree = "";
+ };
+ 33CEB47122A05771004F2AC0 /* Flutter */ = {
+ isa = PBXGroup;
+ children = (
+ 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */,
+ 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */,
+ 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */,
+ 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */,
+ );
+ path = Flutter;
+ sourceTree = "";
+ };
+ 33FAB671232836740065AC1E /* Runner */ = {
+ isa = PBXGroup;
+ children = (
+ DBC6BFDD2CF481FD0068AD10 /* RunnerDebug.entitlements */,
+ 33CC10F02044A3C60003C045 /* AppDelegate.swift */,
+ 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */,
+ 33E51913231747F40026EE4D /* DebugProfile.entitlements */,
+ 33E51914231749380026EE4D /* Release.entitlements */,
+ 33CC11242044D66E0003C045 /* Resources */,
+ 33BA886A226E78AF003329D5 /* Configs */,
+ );
+ path = Runner;
+ sourceTree = "";
+ };
+ D73912EC22F37F3D000D13A0 /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ C505FE3DB707C86AF9913AD7 /* Pods_Runner.framework */,
+ 7814D0414F513654523B2A00 /* Pods_RunnerTests.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 331C80D4294CF70F00263BE5 /* RunnerTests */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
+ buildPhases = (
+ 39BE6D37AD0921325E489D79 /* [CP] Check Pods Manifest.lock */,
+ 331C80D1294CF70F00263BE5 /* Sources */,
+ 331C80D2294CF70F00263BE5 /* Frameworks */,
+ 331C80D3294CF70F00263BE5 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 331C80DA294CF71000263BE5 /* PBXTargetDependency */,
+ );
+ name = RunnerTests;
+ productName = RunnerTests;
+ productReference = 331C80D5294CF71000263BE5 /* RunnerTests.xctest */;
+ productType = "com.apple.product-type.bundle.unit-test";
+ };
+ 33CC10EC2044A3C60003C045 /* Runner */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */;
+ buildPhases = (
+ 8F42C172EB7B29923C969BF6 /* [CP] Check Pods Manifest.lock */,
+ 33CC10E92044A3C60003C045 /* Sources */,
+ 33CC10EA2044A3C60003C045 /* Frameworks */,
+ 33CC10EB2044A3C60003C045 /* Resources */,
+ 33CC110E2044A8840003C045 /* Bundle Framework */,
+ 3399D490228B24CF009A79C7 /* ShellScript */,
+ 22C42D8A22FF076B7FE135E1 /* [CP] Embed Pods Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 33CC11202044C79F0003C045 /* PBXTargetDependency */,
+ );
+ name = Runner;
+ productName = Runner;
+ productReference = 33CC10ED2044A3C60003C045 /* materials.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 33CC10E52044A3C60003C045 /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ BuildIndependentTargetsInParallel = YES;
+ LastSwiftUpdateCheck = 0920;
+ LastUpgradeCheck = 1510;
+ ORGANIZATIONNAME = "";
+ TargetAttributes = {
+ 331C80D4294CF70F00263BE5 = {
+ CreatedOnToolsVersion = 14.0;
+ TestTargetID = 33CC10EC2044A3C60003C045;
+ };
+ 33CC10EC2044A3C60003C045 = {
+ CreatedOnToolsVersion = 9.2;
+ LastSwiftMigration = 1100;
+ ProvisioningStyle = Automatic;
+ SystemCapabilities = {
+ com.apple.Sandbox = {
+ enabled = 1;
+ };
+ };
+ };
+ 33CC111A2044C6BA0003C045 = {
+ CreatedOnToolsVersion = 9.2;
+ ProvisioningStyle = Manual;
+ };
+ };
+ };
+ buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */;
+ compatibilityVersion = "Xcode 9.3";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 33CC10E42044A3C60003C045;
+ productRefGroup = 33CC10EE2044A3C60003C045 /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 33CC10EC2044A3C60003C045 /* Runner */,
+ 331C80D4294CF70F00263BE5 /* RunnerTests */,
+ 33CC111A2044C6BA0003C045 /* Flutter Assemble */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 331C80D3294CF70F00263BE5 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 33CC10EB2044A3C60003C045 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */,
+ 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ 22C42D8A22FF076B7FE135E1 /* [CP] Embed Pods Frameworks */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
+ );
+ name = "[CP] Embed Pods Frameworks";
+ outputFileListPaths = (
+ "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
+ showEnvVarsInLog = 0;
+ };
+ 3399D490228B24CF009A79C7 /* ShellScript */ = {
+ isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ );
+ inputPaths = (
+ );
+ outputFileListPaths = (
+ );
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n";
+ };
+ 33CC111E2044C6BF0003C045 /* ShellScript */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ Flutter/ephemeral/FlutterInputs.xcfilelist,
+ );
+ inputPaths = (
+ Flutter/ephemeral/tripwire,
+ );
+ outputFileListPaths = (
+ Flutter/ephemeral/FlutterOutputs.xcfilelist,
+ );
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire";
+ };
+ 39BE6D37AD0921325E489D79 /* [CP] Check Pods Manifest.lock */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ );
+ inputPaths = (
+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
+ "${PODS_ROOT}/Manifest.lock",
+ );
+ name = "[CP] Check Pods Manifest.lock";
+ outputFileListPaths = (
+ );
+ outputPaths = (
+ "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
+ showEnvVarsInLog = 0;
+ };
+ 8F42C172EB7B29923C969BF6 /* [CP] Check Pods Manifest.lock */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ );
+ inputPaths = (
+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
+ "${PODS_ROOT}/Manifest.lock",
+ );
+ name = "[CP] Check Pods Manifest.lock";
+ outputFileListPaths = (
+ );
+ outputPaths = (
+ "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
+ showEnvVarsInLog = 0;
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 331C80D1294CF70F00263BE5 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 33CC10E92044A3C60003C045 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */,
+ 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */,
+ 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXTargetDependency section */
+ 331C80DA294CF71000263BE5 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 33CC10EC2044A3C60003C045 /* Runner */;
+ targetProxy = 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */;
+ };
+ 33CC11202044C79F0003C045 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */;
+ targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */;
+ };
+/* End PBXTargetDependency section */
+
+/* Begin PBXVariantGroup section */
+ 33CC10F42044A3C60003C045 /* MainMenu.xib */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 33CC10F52044A3C60003C045 /* Base */,
+ );
+ name = MainMenu.xib;
+ path = Runner;
+ sourceTree = "";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 331C80DB294CF71000263BE5 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = E29213550CF19283101BE77B /* Pods-RunnerTests.debug.xcconfig */;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.materials.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/materials.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/materials";
+ };
+ name = Debug;
+ };
+ 331C80DC294CF71000263BE5 /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 2C4F4B405D8499A8F6230032 /* Pods-RunnerTests.release.xcconfig */;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.materials.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/materials.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/materials";
+ };
+ name = Release;
+ };
+ 331C80DD294CF71000263BE5 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 90485F2A7C8C5BA9B5A77138 /* Pods-RunnerTests.profile.xcconfig */;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.materials.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/materials.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/materials";
+ };
+ name = Profile;
+ };
+ 338D0CE9231458BD00FA5F75 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CODE_SIGN_IDENTITY = "-";
+ COPY_PHASE_STRIP = NO;
+ DEAD_CODE_STRIPPING = YES;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu11;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ MACOSX_DEPLOYMENT_TARGET = 10.14;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = macosx;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
+ };
+ name = Profile;
+ };
+ 338D0CEA231458BD00FA5F75 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
+ CODE_SIGN_STYLE = Automatic;
+ COMBINE_HIDPI_IMAGES = YES;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/../Frameworks",
+ );
+ MACOSX_DEPLOYMENT_TARGET = 13.0;
+ PROVISIONING_PROFILE_SPECIFIER = "";
+ SWIFT_VERSION = 5.0;
+ };
+ name = Profile;
+ };
+ 338D0CEB231458BD00FA5F75 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ CODE_SIGN_STYLE = Manual;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ };
+ name = Profile;
+ };
+ 33CC10F92044A3C60003C045 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CODE_SIGN_IDENTITY = "-";
+ COPY_PHASE_STRIP = NO;
+ DEAD_CODE_STRIPPING = YES;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu11;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ MACOSX_DEPLOYMENT_TARGET = 10.14;
+ MTL_ENABLE_DEBUG_INFO = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = macosx;
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ };
+ name = Debug;
+ };
+ 33CC10FA2044A3C60003C045 /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CODE_SIGN_IDENTITY = "-";
+ COPY_PHASE_STRIP = NO;
+ DEAD_CODE_STRIPPING = YES;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu11;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ MACOSX_DEPLOYMENT_TARGET = 10.14;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = macosx;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
+ };
+ name = Release;
+ };
+ 33CC10FC2044A3C60003C045 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = Runner/RunnerDebug.entitlements;
+ CODE_SIGN_STYLE = Automatic;
+ COMBINE_HIDPI_IMAGES = YES;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/../Frameworks",
+ );
+ MACOSX_DEPLOYMENT_TARGET = 13.0;
+ PROVISIONING_PROFILE_SPECIFIER = "";
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ };
+ name = Debug;
+ };
+ 33CC10FD2044A3C60003C045 /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements;
+ CODE_SIGN_STYLE = Automatic;
+ COMBINE_HIDPI_IMAGES = YES;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/../Frameworks",
+ );
+ MACOSX_DEPLOYMENT_TARGET = 13.0;
+ PROVISIONING_PROFILE_SPECIFIER = "";
+ SWIFT_VERSION = 5.0;
+ };
+ name = Release;
+ };
+ 33CC111C2044C6BA0003C045 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ CODE_SIGN_STYLE = Manual;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ };
+ name = Debug;
+ };
+ 33CC111D2044C6BA0003C045 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ CODE_SIGN_STYLE = Automatic;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 331C80DB294CF71000263BE5 /* Debug */,
+ 331C80DC294CF71000263BE5 /* Release */,
+ 331C80DD294CF71000263BE5 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 33CC10F92044A3C60003C045 /* Debug */,
+ 33CC10FA2044A3C60003C045 /* Release */,
+ 338D0CE9231458BD00FA5F75 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 33CC10FC2044A3C60003C045 /* Debug */,
+ 33CC10FD2044A3C60003C045 /* Release */,
+ 338D0CEA231458BD00FA5F75 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 33CC111C2044C6BA0003C045 /* Debug */,
+ 33CC111D2044C6BA0003C045 /* Release */,
+ 338D0CEB231458BD00FA5F75 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 33CC10E52044A3C60003C045 /* Project object */;
+}
diff --git a/examples/flutter/materials/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/examples/flutter/materials/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 00000000..18d98100
--- /dev/null
+++ b/examples/flutter/materials/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/examples/flutter/materials/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/examples/flutter/materials/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
new file mode 100644
index 00000000..1626a842
--- /dev/null
+++ b/examples/flutter/materials/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/flutter/materials/macos/Runner.xcworkspace/contents.xcworkspacedata b/examples/flutter/materials/macos/Runner.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 00000000..21a3cc14
--- /dev/null
+++ b/examples/flutter/materials/macos/Runner.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
diff --git a/examples/flutter/materials/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/examples/flutter/materials/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 00000000..18d98100
--- /dev/null
+++ b/examples/flutter/materials/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/examples/flutter/materials/macos/Runner/AppDelegate.swift b/examples/flutter/materials/macos/Runner/AppDelegate.swift
new file mode 100644
index 00000000..b3c17614
--- /dev/null
+++ b/examples/flutter/materials/macos/Runner/AppDelegate.swift
@@ -0,0 +1,13 @@
+import Cocoa
+import FlutterMacOS
+
+@main
+class AppDelegate: FlutterAppDelegate {
+ override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
+ return true
+ }
+
+ override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
+ return true
+ }
+}
diff --git a/examples/flutter/materials/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/examples/flutter/materials/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 00000000..a2ec33f1
--- /dev/null
+++ b/examples/flutter/materials/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,68 @@
+{
+ "images" : [
+ {
+ "size" : "16x16",
+ "idiom" : "mac",
+ "filename" : "app_icon_16.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "16x16",
+ "idiom" : "mac",
+ "filename" : "app_icon_32.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "32x32",
+ "idiom" : "mac",
+ "filename" : "app_icon_32.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "32x32",
+ "idiom" : "mac",
+ "filename" : "app_icon_64.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "128x128",
+ "idiom" : "mac",
+ "filename" : "app_icon_128.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "128x128",
+ "idiom" : "mac",
+ "filename" : "app_icon_256.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "256x256",
+ "idiom" : "mac",
+ "filename" : "app_icon_256.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "256x256",
+ "idiom" : "mac",
+ "filename" : "app_icon_512.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "512x512",
+ "idiom" : "mac",
+ "filename" : "app_icon_512.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "512x512",
+ "idiom" : "mac",
+ "filename" : "app_icon_1024.png",
+ "scale" : "2x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/examples/flutter/materials/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png b/examples/flutter/materials/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png
new file mode 100644
index 00000000..82b6f9d9
Binary files /dev/null and b/examples/flutter/materials/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png differ
diff --git a/examples/flutter/materials/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png b/examples/flutter/materials/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png
new file mode 100644
index 00000000..13b35eba
Binary files /dev/null and b/examples/flutter/materials/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png differ
diff --git a/examples/flutter/materials/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png b/examples/flutter/materials/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png
new file mode 100644
index 00000000..0a3f5fa4
Binary files /dev/null and b/examples/flutter/materials/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png differ
diff --git a/examples/flutter/materials/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png b/examples/flutter/materials/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png
new file mode 100644
index 00000000..bdb57226
Binary files /dev/null and b/examples/flutter/materials/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png differ
diff --git a/examples/flutter/materials/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png b/examples/flutter/materials/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png
new file mode 100644
index 00000000..f083318e
Binary files /dev/null and b/examples/flutter/materials/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png differ
diff --git a/examples/flutter/materials/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png b/examples/flutter/materials/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png
new file mode 100644
index 00000000..326c0e72
Binary files /dev/null and b/examples/flutter/materials/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png differ
diff --git a/examples/flutter/materials/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png b/examples/flutter/materials/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png
new file mode 100644
index 00000000..2f1632cf
Binary files /dev/null and b/examples/flutter/materials/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png differ
diff --git a/examples/flutter/materials/macos/Runner/Base.lproj/MainMenu.xib b/examples/flutter/materials/macos/Runner/Base.lproj/MainMenu.xib
new file mode 100644
index 00000000..80e867a4
--- /dev/null
+++ b/examples/flutter/materials/macos/Runner/Base.lproj/MainMenu.xib
@@ -0,0 +1,343 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/flutter/materials/macos/Runner/Configs/AppInfo.xcconfig b/examples/flutter/materials/macos/Runner/Configs/AppInfo.xcconfig
new file mode 100644
index 00000000..e8c179bc
--- /dev/null
+++ b/examples/flutter/materials/macos/Runner/Configs/AppInfo.xcconfig
@@ -0,0 +1,14 @@
+// Application-level settings for the Runner target.
+//
+// This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the
+// future. If not, the values below would default to using the project name when this becomes a
+// 'flutter create' template.
+
+// The application's name. By default this is also the title of the Flutter window.
+PRODUCT_NAME = materials
+
+// The application's bundle identifier
+PRODUCT_BUNDLE_IDENTIFIER = com.example.materials
+
+// The copyright displayed in application information
+PRODUCT_COPYRIGHT = Copyright © 2024 com.example. All rights reserved.
diff --git a/examples/flutter/materials/macos/Runner/Configs/Debug.xcconfig b/examples/flutter/materials/macos/Runner/Configs/Debug.xcconfig
new file mode 100644
index 00000000..36b0fd94
--- /dev/null
+++ b/examples/flutter/materials/macos/Runner/Configs/Debug.xcconfig
@@ -0,0 +1,2 @@
+#include "../../Flutter/Flutter-Debug.xcconfig"
+#include "Warnings.xcconfig"
diff --git a/examples/flutter/materials/macos/Runner/Configs/Release.xcconfig b/examples/flutter/materials/macos/Runner/Configs/Release.xcconfig
new file mode 100644
index 00000000..dff4f495
--- /dev/null
+++ b/examples/flutter/materials/macos/Runner/Configs/Release.xcconfig
@@ -0,0 +1,2 @@
+#include "../../Flutter/Flutter-Release.xcconfig"
+#include "Warnings.xcconfig"
diff --git a/examples/flutter/materials/macos/Runner/Configs/Warnings.xcconfig b/examples/flutter/materials/macos/Runner/Configs/Warnings.xcconfig
new file mode 100644
index 00000000..42bcbf47
--- /dev/null
+++ b/examples/flutter/materials/macos/Runner/Configs/Warnings.xcconfig
@@ -0,0 +1,13 @@
+WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings
+GCC_WARN_UNDECLARED_SELECTOR = YES
+CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES
+CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE
+CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
+CLANG_WARN_PRAGMA_PACK = YES
+CLANG_WARN_STRICT_PROTOTYPES = YES
+CLANG_WARN_COMMA = YES
+GCC_WARN_STRICT_SELECTOR_MATCH = YES
+CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES
+CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES
+GCC_WARN_SHADOW = YES
+CLANG_WARN_UNREACHABLE_CODE = YES
diff --git a/examples/flutter/materials/macos/Runner/DebugProfile.entitlements b/examples/flutter/materials/macos/Runner/DebugProfile.entitlements
new file mode 100644
index 00000000..dddb8a30
--- /dev/null
+++ b/examples/flutter/materials/macos/Runner/DebugProfile.entitlements
@@ -0,0 +1,12 @@
+
+
+
+
+ com.apple.security.app-sandbox
+
+ com.apple.security.cs.allow-jit
+
+ com.apple.security.network.server
+
+
+
diff --git a/examples/flutter/materials/macos/Runner/Info.plist b/examples/flutter/materials/macos/Runner/Info.plist
new file mode 100644
index 00000000..4789daa6
--- /dev/null
+++ b/examples/flutter/materials/macos/Runner/Info.plist
@@ -0,0 +1,32 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIconFile
+
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ $(PRODUCT_NAME)
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ $(FLUTTER_BUILD_NAME)
+ CFBundleVersion
+ $(FLUTTER_BUILD_NUMBER)
+ LSMinimumSystemVersion
+ $(MACOSX_DEPLOYMENT_TARGET)
+ NSHumanReadableCopyright
+ $(PRODUCT_COPYRIGHT)
+ NSMainNibFile
+ MainMenu
+ NSPrincipalClass
+ NSApplication
+
+
diff --git a/examples/flutter/materials/macos/Runner/MainFlutterWindow.swift b/examples/flutter/materials/macos/Runner/MainFlutterWindow.swift
new file mode 100644
index 00000000..3cc05eb2
--- /dev/null
+++ b/examples/flutter/materials/macos/Runner/MainFlutterWindow.swift
@@ -0,0 +1,15 @@
+import Cocoa
+import FlutterMacOS
+
+class MainFlutterWindow: NSWindow {
+ override func awakeFromNib() {
+ let flutterViewController = FlutterViewController()
+ let windowFrame = self.frame
+ self.contentViewController = flutterViewController
+ self.setFrame(windowFrame, display: true)
+
+ RegisterGeneratedPlugins(registry: flutterViewController)
+
+ super.awakeFromNib()
+ }
+}
diff --git a/examples/flutter/materials/macos/Runner/Release.entitlements b/examples/flutter/materials/macos/Runner/Release.entitlements
new file mode 100644
index 00000000..852fa1a4
--- /dev/null
+++ b/examples/flutter/materials/macos/Runner/Release.entitlements
@@ -0,0 +1,8 @@
+
+
+
+
+ com.apple.security.app-sandbox
+
+
+
diff --git a/examples/flutter/materials/macos/Runner/RunnerDebug.entitlements b/examples/flutter/materials/macos/Runner/RunnerDebug.entitlements
new file mode 100644
index 00000000..d35e43ae
--- /dev/null
+++ b/examples/flutter/materials/macos/Runner/RunnerDebug.entitlements
@@ -0,0 +1,8 @@
+
+
+
+
+ com.apple.security.cs.allow-jit
+
+
+
diff --git a/examples/flutter/materials/macos/RunnerTests/RunnerTests.swift b/examples/flutter/materials/macos/RunnerTests/RunnerTests.swift
new file mode 100644
index 00000000..61f3bd1f
--- /dev/null
+++ b/examples/flutter/materials/macos/RunnerTests/RunnerTests.swift
@@ -0,0 +1,12 @@
+import Cocoa
+import FlutterMacOS
+import XCTest
+
+class RunnerTests: XCTestCase {
+
+ func testExample() {
+ // If you add code to the Runner application, consider adding tests here.
+ // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
+ }
+
+}
diff --git a/examples/flutter/materials/pubspec.yaml b/examples/flutter/materials/pubspec.yaml
new file mode 100644
index 00000000..938b335b
--- /dev/null
+++ b/examples/flutter/materials/pubspec.yaml
@@ -0,0 +1,40 @@
+name: materials
+description: "A new Flutter project."
+publish_to: 'none' # Remove this line if you wish to publish to pub.dev
+
+version: 1.0.0+1
+
+environment:
+ sdk: ^3.7.0-78.0.dev
+
+dependencies:
+ flutter:
+ sdk: flutter
+ cupertino_icons: ^1.0.8
+ thermion_dart:
+ path: ../../../thermion_dart
+ thermion_flutter:
+ path: ../../../thermion_flutter/thermion_flutter
+ thermion_flutter_ffi:
+ path: ../../../thermion_flutter/thermion_flutter_ffi
+ thermion_flutter_platform_interface:
+ path: ../../../thermion_flutter/thermion_flutter_platform_interface
+
+dev_dependencies:
+ flutter_test:
+ sdk: flutter
+
+ flutter_lints: ^5.0.0
+
+dependency_overrides:
+ thermion_dart:
+ path: ../../../thermion_dart
+ thermion_flutter:
+ path: ../../../thermion_flutter/thermion_flutter
+ thermion_flutter_ffi:
+ path: ../../../thermion_flutter/thermion_flutter_ffi
+ thermion_flutter_platform_interface:
+ path: ../../../thermion_flutter/thermion_flutter_platform_interface
+
+flutter:
+ uses-material-design: true
diff --git a/examples/flutter/materials/test/widget_test.dart b/examples/flutter/materials/test/widget_test.dart
new file mode 100644
index 00000000..deb698ef
--- /dev/null
+++ b/examples/flutter/materials/test/widget_test.dart
@@ -0,0 +1,30 @@
+// This is a basic Flutter widget test.
+//
+// To perform an interaction with a widget in your test, use the WidgetTester
+// utility in the flutter_test package. For example, you can send tap and scroll
+// gestures. You can also use WidgetTester to find child widgets in the widget
+// tree, read text, and verify that the values of widget properties are correct.
+
+import 'package:flutter/material.dart';
+import 'package:flutter_test/flutter_test.dart';
+
+import 'package:materials/main.dart';
+
+void main() {
+ testWidgets('Counter increments smoke test', (WidgetTester tester) async {
+ // Build our app and trigger a frame.
+ await tester.pumpWidget(const MyApp());
+
+ // Verify that our counter starts at 0.
+ expect(find.text('0'), findsOneWidget);
+ expect(find.text('1'), findsNothing);
+
+ // Tap the '+' icon and trigger a frame.
+ await tester.tap(find.byIcon(Icons.add));
+ await tester.pump();
+
+ // Verify that our counter has incremented.
+ expect(find.text('0'), findsNothing);
+ expect(find.text('1'), findsOneWidget);
+ });
+}
diff --git a/materials/grid.mat b/materials/grid.mat
index cf3faf25..e41174f2 100644
--- a/materials/grid.mat
+++ b/materials/grid.mat
@@ -10,10 +10,10 @@ material {
name : color
}
],
- depthWrite : true,
- depthCulling : false,
+ depthWrite : false,
+ depthCulling : true,
shadingModel : unlit,
- blending: transparent,
+ blending: opaque,
variantFilter : [ skinning, shadowReceiver, vsm ],
culling: none,
instanced: false,
@@ -22,7 +22,11 @@ material {
vertex {
void materialVertex(inout MaterialVertexInputs material) {
- material.worldPosition = getWorldFromModelMatrix() * getPosition();
+ vec4 modelSpace = getPosition();
+ vec4 worldSpace = getWorldFromModelMatrix() * modelSpace;
+ vec4 clipSpace = getClipFromWorldMatrix() * worldSpace;
+ clipSpace.z = 0.01f;
+ material.worldPosition = getWorldFromClipMatrix() * clipSpace;
}
}
diff --git a/materials/unlit_fixed_size.mat b/materials/unlit_fixed_size.mat
index 6444abaa..46ade86f 100644
--- a/materials/unlit_fixed_size.mat
+++ b/materials/unlit_fixed_size.mat
@@ -39,9 +39,9 @@
worldSpace = getWorldFromModelMatrix() * modelSpace;
material.worldPosition = worldSpace;
- //vec4 clipSpace = getClipFromWorldMatrix() * worldSpace;
- //clipSpace.z = 0.99f;
- //material.worldPosition = getWorldFromClipMatrix() * clipSpace;
+ vec4 clipSpace = getClipFromWorldMatrix() * worldSpace;
+ clipSpace.z = 0.99f;
+ material.worldPosition = getWorldFromClipMatrix() * clipSpace;
}
}
diff --git a/thermion_dart/ffigen/native.yaml b/thermion_dart/ffigen/native.yaml
index d848b9f5..ab383dbd 100644
--- a/thermion_dart/ffigen/native.yaml
+++ b/thermion_dart/ffigen/native.yaml
@@ -1,21 +1,11 @@
output: '../lib/src/viewer/src/ffi/src/thermion_dart.g.dart'
headers:
entry-points:
- - '../native/include/ThermionDartRenderThreadApi.h'
- - '../native/include/ThermionDartApi.h'
- - '../native/include/TView.h'
- - '../native/include/TCamera.h'
- - '../native/include/TGizmo.h'
+ - '../native/include/c_api/*.h'
- '../native/include/ResourceBuffer.h'
include-directives:
- - '../native/include/ThermionDartRenderThreadApi.h'
- - '../native/include/ThermionDartApi.h'
- - '../native/include/TView.h'
- - '../native/include/TCamera.h'
- - '../native/include/TGizmo.h'
- - '../native/include/TMaterialInstance.h'
+ - '../native/include/c_api/*.h'
- '../native/include/ResourceBuffer.h'
- - '../native/include/APIBoundaryTypes.h'
ffi-native:
assetId: package:thermion_dart/thermion_dart.dart
ignore-source-errors: true
diff --git a/thermion_dart/lib/src/input/input.dart b/thermion_dart/lib/src/input/input.dart
index 6a8072f8..9f9bbc4a 100644
--- a/thermion_dart/lib/src/input/input.dart
+++ b/thermion_dart/lib/src/input/input.dart
@@ -4,4 +4,6 @@ export 'src/input_handler.dart';
export 'src/delegates.dart';
export 'src/delegate_input_handler.dart';
export 'src/implementations/default_pick_delegate.dart';
+export 'src/implementations/gizmo_pick_delegate.dart';
+export 'src/implementations/gizmo_input_handler.dart';
export 'src/implementations/third_person_camera_delegate.dart';
diff --git a/thermion_dart/lib/src/input/src/delegate_input_handler.dart b/thermion_dart/lib/src/input/src/delegate_input_handler.dart
index e100152f..72cc75c6 100644
--- a/thermion_dart/lib/src/input/src/delegate_input_handler.dart
+++ b/thermion_dart/lib/src/input/src/delegate_input_handler.dart
@@ -1,5 +1,4 @@
import 'dart:async';
-import 'dart:math';
import 'package:logging/logging.dart';
import 'package:thermion_dart/thermion_dart.dart';
import 'package:vector_math/vector_math_64.dart';
@@ -54,6 +53,13 @@ class DelegateInputHandler implements InputHandler {
_actions = actions;
}
+ if (pickDelegate != null) {
+ if (_actions[InputType.LMB_DOWN] != null) {
+ throw Exception();
+ }
+ _actions[InputType.LMB_DOWN] = InputAction.PICK;
+ }
+
for (var gestureType in InputType.values) {
_inputDeltas[gestureType] = Vector3.zero();
}
@@ -94,7 +100,7 @@ class DelegateInputHandler implements InputHandler {
clampY: clampY,
entity: entity,
rotationSensitivity: rotateSensitivity,
- zoomSensitivity:zoomSensitivity,
+ zoomSensitivity: zoomSensitivity,
panSensitivity: panSensitivity,
movementSensitivity: movementSensitivity),
actions: {
@@ -265,7 +271,8 @@ class DelegateInputHandler implements InputHandler {
Future onScaleEnd(int pointerCount, double velocity) async {}
@override
- Future onScaleStart(Vector2 localPosition, int pointerCount, Duration? sourceTimestamp ) async {
+ Future onScaleStart(Vector2 localPosition, int pointerCount,
+ Duration? sourceTimestamp) async {
// noop
}
diff --git a/thermion_dart/lib/src/input/src/delegates.dart b/thermion_dart/lib/src/input/src/delegates.dart
index c2cdb2f1..fc1909bd 100644
--- a/thermion_dart/lib/src/input/src/delegates.dart
+++ b/thermion_dart/lib/src/input/src/delegates.dart
@@ -24,4 +24,5 @@ abstract class VelocityDelegate {
abstract class PickDelegate {
const PickDelegate();
void pick(Vector2 location);
+ Future dispose();
}
diff --git a/thermion_dart/lib/src/input/src/implementations/default_pick_delegate.dart b/thermion_dart/lib/src/input/src/implementations/default_pick_delegate.dart
index 73835163..35074414 100644
--- a/thermion_dart/lib/src/input/src/implementations/default_pick_delegate.dart
+++ b/thermion_dart/lib/src/input/src/implementations/default_pick_delegate.dart
@@ -1,13 +1,24 @@
+import 'dart:async';
+
import 'package:thermion_dart/thermion_dart.dart';
import 'package:vector_math/vector_math_64.dart';
class DefaultPickDelegate extends PickDelegate {
final ThermionViewer viewer;
- const DefaultPickDelegate(this.viewer);
+ DefaultPickDelegate(this.viewer);
+
+ final _picked = StreamController();
+ Stream get picked => _picked.stream;
+
+ Future dispose() async {
+ _picked.close();
+ }
@override
void pick(Vector2 location) {
- viewer.pick(location.x.toInt(), location.y.toInt());
+ viewer.pick(location.x.toInt(), location.y.toInt(), (result) {
+ _picked.sink.add(result.entity);
+ });
}
}
diff --git a/thermion_dart/lib/src/input/src/implementations/free_flight_camera_delegate.dart b/thermion_dart/lib/src/input/src/implementations/free_flight_camera_delegate.dart
index 6ea8e4e4..73de7af1 100644
--- a/thermion_dart/lib/src/input/src/implementations/free_flight_camera_delegate.dart
+++ b/thermion_dart/lib/src/input/src/implementations/free_flight_camera_delegate.dart
@@ -86,13 +86,14 @@ class FreeFlightInputHandlerDelegate implements InputHandlerDelegate {
if (_queuedRotationDelta.length2 > 0.0) {
double deltaX = _queuedRotationDelta.x * rotationSensitivity;
double deltaY = _queuedRotationDelta.y * rotationSensitivity;
- relativeRotation = Quaternion.axisAngle(current.up, -deltaX) * Quaternion.axisAngle(current.right, -deltaY);
+ relativeRotation = Quaternion.axisAngle(current.up, -deltaX) *
+ Quaternion.axisAngle(current.right, -deltaY);
_queuedRotationDelta = Vector2.zero();
}
// Apply (mouse) pan
if (_queuedTranslateDelta.length2 > 0.0) {
- double deltaX = _queuedTranslateDelta.x * panSensitivity;
+ double deltaX = -_queuedTranslateDelta.x * panSensitivity;
double deltaY = _queuedTranslateDelta.y * panSensitivity;
double deltaZ = -_queuedTranslateDelta.z * panSensitivity;
@@ -104,8 +105,9 @@ class FreeFlightInputHandlerDelegate implements InputHandlerDelegate {
// Apply zoom
if (_queuedZoomDelta != 0.0) {
- relativeTranslation += current.forward
- ..scaled(_queuedZoomDelta * zoomSensitivity);
+ var zoomTranslation = current.forward..scaled(zoomSensitivity);
+ zoomTranslation.scale(_queuedZoomDelta);
+ relativeTranslation += zoomTranslation;
_queuedZoomDelta = 0.0;
}
@@ -128,11 +130,10 @@ class FreeFlightInputHandlerDelegate implements InputHandlerDelegate {
await viewer.setTransform(
await entity,
-
- Matrix4.compose(
- relativeTranslation, relativeRotation, Vector3(1, 1, 1)) * current );
+ Matrix4.compose(
+ relativeTranslation, relativeRotation, Vector3(1, 1, 1)) *
+ current);
_executing = false;
}
-
}
diff --git a/thermion_dart/lib/src/input/src/implementations/gizmo_input_handler.dart b/thermion_dart/lib/src/input/src/implementations/gizmo_input_handler.dart
new file mode 100644
index 00000000..05fd0025
--- /dev/null
+++ b/thermion_dart/lib/src/input/src/implementations/gizmo_input_handler.dart
@@ -0,0 +1,238 @@
+import 'dart:async';
+import 'package:thermion_dart/thermion_dart.dart';
+import 'package:vector_math/vector_math_64.dart';
+
+class _Gizmo {
+ bool isVisible = false;
+
+ final ThermionViewer viewer;
+ final nonPickable = {};
+ final GizmoAsset _asset;
+
+ _Gizmo(this._asset, this.viewer);
+
+ Axis? _active;
+ Axis? get active => _active;
+
+ Vector3? _activeCords;
+
+ void checkHover(int x, int y) async {
+ _asset.pick(x, y, handler: (result, coords) async {
+ switch (result) {
+ case GizmoPickResultType.None:
+ await _asset.unhighlight();
+ _active = null;
+ break;
+ case GizmoPickResultType.AxisX:
+ _active = Axis.X;
+ _activeCords = coords;
+
+ case GizmoPickResultType.AxisY:
+ _active = Axis.Y;
+ _activeCords = coords;
+
+ case GizmoPickResultType.AxisZ:
+ _active = Axis.Z;
+ _activeCords = coords;
+
+ default:
+ }
+ });
+ }
+
+ Matrix4? gizmoTransform;
+
+ Future attach(ThermionEntity entity) async {
+ if (_asset.nonPickableEntities.contains(entity)) {
+ return;
+ }
+ final transform = await viewer.getWorldTransform(entity);
+ transform.setRotation(Matrix3.identity());
+ transform.setDiagonal(Vector4.all(1.0));
+ await viewer.setTransform(_asset.entity, transform);
+ await viewer.setParent(entity, _asset.entity);
+ if (!isVisible) {
+ await _asset.addToScene();
+ isVisible = true;
+ }
+ gizmoTransform = await viewer.getWorldTransform(_asset.entity);
+ }
+
+ Future detach() async {
+ await _asset.removeFromScene();
+ _active = null;
+ isVisible = false;
+ }
+
+ void _updateTransform(Vector2 currentPosition, Vector2 delta) async {
+ if (gizmoTransform == null) {
+ return;
+ }
+
+ var view = await viewer.getViewAt(0);
+ var camera = await viewer.getActiveCamera();
+
+ var viewport = await view.getViewport();
+
+ var projectionMatrix = await viewer.getCameraProjectionMatrix();
+ var viewMatrix = await camera.getViewMatrix();
+ var inverseViewMatrix = await camera.getModelMatrix();
+ var inverseProjectionMatrix = projectionMatrix.clone()..invert();
+
+ // get gizmo position in screenspace
+ var gizmoPositionWorldSpace = gizmoTransform!.getTranslation();
+ Vector4 gizmoClipSpace = projectionMatrix *
+ viewMatrix *
+ Vector4(gizmoPositionWorldSpace.x, gizmoPositionWorldSpace.y,
+ gizmoPositionWorldSpace.z, 1.0);
+
+ var gizmoNdc = gizmoClipSpace / gizmoClipSpace.w;
+
+ var gizmoScreenSpace = Vector2(((gizmoNdc.x / 2) + 0.5) * viewport.width,
+ viewport.height - (((gizmoNdc.y / 2) + 0.5) * viewport.height));
+
+ gizmoScreenSpace += delta;
+
+ gizmoNdc = Vector4(((gizmoScreenSpace.x / viewport.width) - 0.5) * 2,
+ (((gizmoScreenSpace.y / viewport.height)) - 0.5) * -2, gizmoNdc.z, 1.0);
+
+ var gizmoViewSpace = inverseProjectionMatrix * gizmoNdc;
+ gizmoViewSpace /= gizmoViewSpace.w;
+
+ var newPosition = (inverseViewMatrix * gizmoViewSpace).xyz;
+
+ Vector3 worldSpaceDelta = newPosition - gizmoTransform!.getTranslation();
+ worldSpaceDelta.multiply(_active!.asVector());
+
+ gizmoTransform!.setTranslation(gizmoTransform!.getTranslation() + worldSpaceDelta);
+
+ await viewer.setTransform(_asset.entity, gizmoTransform!);
+ }
+}
+
+class GizmoInputHandler extends InputHandler {
+ final InputHandler wrapped;
+ final ThermionViewer viewer;
+ late final _Gizmo translationGizmo;
+
+ GizmoInputHandler({required this.wrapped, required this.viewer}) {
+ initialize();
+ }
+
+ final _initialized = Completer();
+ Future initialize() async {
+ if (_initialized.isCompleted) {
+ throw Exception("Already initialized");
+ }
+ await viewer.initialized;
+ final view = await viewer.getViewAt(0);
+ var translationGizmoAsset =
+ await viewer.createGizmo(view, GizmoType.translation);
+ this.translationGizmo = _Gizmo(translationGizmoAsset, viewer);
+ _initialized.complete(true);
+ }
+
+ @override
+ Stream get cameraUpdated => throw UnimplementedError();
+
+ @override
+ Future dispose() async {
+ await viewer.removeEntity(translationGizmo._asset);
+ }
+
+ @override
+ InputAction? getActionForType(InputType gestureType) {
+ if (gestureType == InputType.LMB_DOWN) {
+ return InputAction.PICK;
+ }
+ throw UnimplementedError();
+ }
+
+ @override
+ Future get initialized => _initialized.future;
+
+ @override
+ void keyDown(PhysicalKey key) {
+ wrapped.keyDown(key);
+ }
+
+ @override
+ void keyUp(PhysicalKey key) {
+ wrapped.keyDown(key);
+ }
+
+ @override
+ Future onPointerDown(Vector2 localPosition, bool isMiddle) async {
+ if (!_initialized.isCompleted) {
+ return;
+ }
+ await viewer.pick(localPosition.x.toInt(), localPosition.y.toInt(),
+ (result) {
+ translationGizmo.attach(result.entity);
+ });
+ }
+
+ @override
+ Future onPointerHover(Vector2 localPosition, Vector2 delta) async {
+ if (!_initialized.isCompleted) {
+ return;
+ }
+ translationGizmo.checkHover(
+ localPosition.x.floor(), localPosition.y.floor());
+ }
+
+ @override
+ Future onPointerMove(
+ Vector2 localPosition, Vector2 delta, bool isMiddle) async {
+ if (!isMiddle && translationGizmo._active != null) {
+ final scaledDelta = Vector2(
+ delta.x,
+ delta.y,
+ );
+ translationGizmo._updateTransform(localPosition, scaledDelta);
+ return;
+ }
+ return wrapped.onPointerMove(localPosition, delta, isMiddle);
+ }
+
+ @override
+ Future onPointerScroll(
+ Vector2 localPosition, double scrollDelta) async {
+ return wrapped.onPointerScroll(localPosition, scrollDelta);
+ }
+
+ @override
+ Future onPointerUp(bool isMiddle) async {
+ await wrapped.onPointerUp(isMiddle);
+ }
+
+ @override
+ Future onScaleEnd(int pointerCount, double velocity) {
+ return wrapped.onScaleEnd(pointerCount, velocity);
+ }
+
+ @override
+ Future onScaleStart(
+ Vector2 focalPoint, int pointerCount, Duration? sourceTimestamp) {
+ return wrapped.onScaleStart(focalPoint, pointerCount, sourceTimestamp);
+ }
+
+ @override
+ Future onScaleUpdate(
+ Vector2 focalPoint,
+ Vector2 focalPointDelta,
+ double horizontalScale,
+ double verticalScale,
+ double scale,
+ int pointerCount,
+ double rotation,
+ Duration? sourceTimestamp) {
+ return wrapped.onScaleUpdate(focalPoint, focalPointDelta, horizontalScale,
+ verticalScale, scale, pointerCount, rotation, sourceTimestamp);
+ }
+
+ @override
+ void setActionForType(InputType gestureType, InputAction gestureAction) {
+ throw UnimplementedError();
+ }
+}
diff --git a/thermion_dart/lib/src/input/src/implementations/gizmo_pick_delegate.dart b/thermion_dart/lib/src/input/src/implementations/gizmo_pick_delegate.dart
new file mode 100644
index 00000000..18db23d8
--- /dev/null
+++ b/thermion_dart/lib/src/input/src/implementations/gizmo_pick_delegate.dart
@@ -0,0 +1,41 @@
+// import 'dart:async';
+
+// import 'package:thermion_dart/thermion_dart.dart';
+// import 'package:vector_math/vector_math_64.dart';
+
+// class GizmoPickDelegate extends PickDelegate {
+// final ThermionViewer viewer;
+// late final GizmoAsset translationGizmo;
+
+// GizmoPickDelegate(this.viewer) {
+// initialize();
+// }
+
+// bool _initialized = false;
+// Future initialize() async {
+// if (_initialized) {
+// throw Exception("Already initialized");
+// }
+// final view = await viewer.getViewAt(0);
+// translationGizmo = await viewer.createGizmo(view, GizmoType.translation);
+// await translationGizmo.addToScene();
+// _initialized = true;
+// }
+
+// final _picked = StreamController();
+// Stream get picked => _picked.stream;
+
+// Future dispose() async {
+// _picked.close();
+// }
+
+// @override
+// void pick(Vector2 location) {
+// if (!_initialized) {
+// return;
+// }
+// viewer.pick(location.x.toInt(), location.y.toInt(), (result) {
+// translationGizmo.attach(result.entity);
+// });
+// }
+// }
diff --git a/thermion_dart/lib/src/input/src/implementations/picking_camera_gesture_handler.dart b/thermion_dart/lib/src/input/src/implementations/picking_camera_gesture_handler.dart
index f3056f20..5a4f88e5 100644
--- a/thermion_dart/lib/src/input/src/implementations/picking_camera_gesture_handler.dart
+++ b/thermion_dart/lib/src/input/src/implementations/picking_camera_gesture_handler.dart
@@ -1,230 +1,329 @@
// import 'dart:async';
-// import 'package:flutter/gestures.dart';
-// import 'package:flutter/services.dart';
-// import 'package:logging/logging.dart';
-// import 'package:thermion_dart/thermion_dart/entities/abstract_gizmo.dart';
-// import 'package:thermion_dart/thermion_dart/thermion_viewer.dart';
-// import 'dart:ui';
-// import 'package:thermion_dart/thermion_dart/input/input_handler.dart';
+// import 'package:thermion_dart/thermion_dart.dart';
+// import 'package:vector_math/vector_math_64.dart';
-// // Renamed implementation
-// class PickingCameraGestureHandler implements InputHandler {
+// import '../input_handler.dart';
+
+// class GizmoPickingHandler implements InputHandler {
// final ThermionViewer viewer;
-// final bool enableCamera;
-// final bool enablePicking;
-// final Logger _logger = Logger("PickingCameraGestureHandler");
+// late final GizmoAsset _translationGizmo;
-// AbstractGizmo? _gizmo;
-// Timer? _scrollTimer;
-// ThermionEntity? _highlightedEntity;
-// StreamSubscription? _pickResultSubscription;
+// GizmoPickingHandler(this.viewer) {}
-// bool _gizmoAttached = false;
+// final _initialized = Completer();
-// PickingCameraGestureHandler({
-// required this.viewer,
-// this.enableCamera = true,
-// this.enablePicking = true,
-// }) {
-// try {
-// _gizmo = viewer.gizmo;
-// } catch (err) {
-// _logger.warning(
-// "Failed to get gizmo. If you are running on WASM, this is expected");
+// Future initialize() async {
+// if (_initialized.isCompleted) {
+// throw Exception("Already initialized");
// }
+// final view = await viewer.getViewAt(0);
+// _translationGizmo = await viewer.createGizmo(view, GizmoType.translation);
+// _initialized.complete(true);
+// }
-// _pickResultSubscription = viewer.pickResult.listen(_onPickResult);
-
-// // Add keyboard listener
-// RawKeyboard.instance.addListener(_handleKeyEvent);
+// Future dispose() async {
+// await viewer.removeEntity(_translationGizmo);
// }
// @override
-// ThermionGestureState get currentState => _currentState;
-
-// void _handleKeyEvent(RawKeyEvent event) {
-// if (event is RawKeyDownEvent &&
-// event.logicalKey == LogicalKeyboardKey.escape) {
-// _resetToNullState();
-// }
-// }
-
-// void _resetToNullState() async {
-// _currentState = ThermionGestureState.NULL;
-// if (_highlightedEntity != null) {
-// await viewer.removeStencilHighlight(_highlightedEntity!);
-// _highlightedEntity = null;
-// }
-// }
-
-// void _onPickResult(FilamentPickResult result) async {
-// var targetEntity = await viewer.getAncestor(result.entity) ?? result.entity;
-
-// if (_highlightedEntity != targetEntity) {
-// if (_highlightedEntity != null) {
-// await viewer.removeStencilHighlight(_highlightedEntity!);
-// }
-
-// _highlightedEntity = targetEntity;
-// if (_highlightedEntity != null) {
-// await viewer.setStencilHighlight(_highlightedEntity!);
-// _gizmo?.attach(_highlightedEntity!);
-// }
-// }
-// }
+// Stream get cameraUpdated => throw UnimplementedError();
// @override
-// Future onPointerHover(Offset localPosition, Offset delta) async {
-// if (_gizmoAttached) {
-// _gizmo?.checkHover(localPosition.dx, localPosition.dy);
-// }
-
-// if (_highlightedEntity != null) {
-// await viewer.queuePositionUpdateFromViewportCoords(
-// _highlightedEntity!,
-// localPosition.dx,
-// localPosition.dy,
-// );
-// }
-// }
-
-// @override
-// Future onPointerScroll(Offset localPosition, double scrollDelta) async {
-// if (!enableCamera) {
-// return;
-// }
-// if (_currentState == ThermionGestureState.NULL ||
-// _currentState == ThermionGestureState.ZOOMING) {
-// await _zoom(localPosition, scrollDelta);
-// }
-// }
-
-// @override
-// Future onPointerDown(Offset localPosition, int buttons) async {
-// if (_highlightedEntity != null) {
-// _resetToNullState();
-// return;
-// }
-
-// if (enablePicking && buttons != kMiddleMouseButton) {
-// viewer.pick(localPosition.dx.toInt(), localPosition.dy.toInt());
-// }
-
-// if (buttons == kMiddleMouseButton && enableCamera) {
-// await viewer.rotateStart(localPosition.dx, localPosition.dy);
-// _currentState = ThermionGestureState.ROTATING;
-// } else if (buttons == kPrimaryMouseButton && enableCamera) {
-// await viewer.panStart(localPosition.dx, localPosition.dy);
-// _currentState = ThermionGestureState.PANNING;
-// }
-// }
-
-// @override
-// Future onPointerMove(
-// Offset localPosition, Offset delta, int buttons) async {
-// if (_highlightedEntity != null) {
-// await _handleEntityHighlightedMove(localPosition);
-// return;
-// }
-
-// switch (_currentState) {
-// case ThermionGestureState.NULL:
-// break;
-
-// case ThermionGestureState.ROTATING:
-// if (enableCamera) {
-// await viewer.rotateUpdate(localPosition.dx, localPosition.dy);
-// }
-// break;
-// case ThermionGestureState.PANNING:
-// if (enableCamera) {
-// await viewer.panUpdate(localPosition.dx, localPosition.dy);
-// }
-// break;
-// case ThermionGestureState.ZOOMING:
-// // ignore
-// break;
-// }
-// }
-
-// @override
-// Future onPointerUp(int buttons) async {
-// switch (_currentState) {
-// case ThermionGestureState.ROTATING:
-// await viewer.rotateEnd();
-// _currentState = ThermionGestureState.NULL;
-// break;
-// case ThermionGestureState.PANNING:
-// await viewer.panEnd();
-// _currentState = ThermionGestureState.NULL;
-// break;
-// default:
-// break;
-// }
-// }
-
-// Future _handleEntityHighlightedMove(Offset localPosition) async {
-// if (_highlightedEntity != null) {
-// await viewer.queuePositionUpdateFromViewportCoords(
-// _highlightedEntity!,
-// localPosition.dx,
-// localPosition.dy,
-// );
-// }
-// }
-
-// Future _zoom(Offset localPosition, double scrollDelta) async {
-// _scrollTimer?.cancel();
-// _currentState = ThermionGestureState.ZOOMING;
-// await viewer.zoomBegin();
-// await viewer.zoomUpdate(
-// localPosition.dx, localPosition.dy, scrollDelta > 0 ? 1 : -1);
-
-// _scrollTimer = Timer(const Duration(milliseconds: 100), () async {
-// await viewer.zoomEnd();
-// _currentState = ThermionGestureState.NULL;
-// });
-// }
-
-// @override
-// void dispose() {
-// _pickResultSubscription?.cancel();
-// if (_highlightedEntity != null) {
-// viewer.removeStencilHighlight(_highlightedEntity!);
-// }
-// RawKeyboard.instance.removeListener(_handleKeyEvent);
-// }
-
-// @override
-// Future get initialized => viewer.initialized;
-
-// @override
-// InputAction getActionForType(InputType type) {
-// // TODO: implement getActionForType
+// InputAction? getActionForType(InputType gestureType) {
// throw UnimplementedError();
// }
// @override
-// Future onScaleEnd() {
+// Future get initialized => _initialized.future;
+
+// @override
+// void keyDown(PhysicalKey key) {}
+
+// @override
+// void keyUp(PhysicalKey key) {}
+
+// @override
+// Future onPointerDown(Vector2 localPosition, bool isMiddle) {
+// viewer.pick(localPosition.x.floor(), localPosition.y.floor(), (axis) {
+
+// })
+// // _translationGizmo.pick(
+// // localPosition.x.floor(), localPosition.y.floor(), (axis) {});
+// }
+
+// @override
+// Future onPointerHover(Vector2 localPosition, Vector2 delta) {
+// // TODO: implement onPointerHover
+// throw UnimplementedError();
+// }
+
+// @override
+// Future onPointerMove(
+// Vector2 localPosition, Vector2 delta, bool isMiddle) {
+// // TODO: implement onPointerMove
+// throw UnimplementedError();
+// }
+
+// @override
+// Future onPointerScroll(Vector2 localPosition, double scrollDelta) {
+// // TODO: implement onPointerScroll
+// throw UnimplementedError();
+// }
+
+// @override
+// Future onPointerUp(bool isMiddle) {
+// // TODO: implement onPointerUp
+// throw UnimplementedError();
+// }
+
+// @override
+// Future onScaleEnd(int pointerCount, double velocity) {
// // TODO: implement onScaleEnd
// throw UnimplementedError();
// }
// @override
-// Future onScaleStart() {
+// Future onScaleStart(
+// Vector2 focalPoint, int pointerCount, Duration? sourceTimestamp) {
// // TODO: implement onScaleStart
// throw UnimplementedError();
// }
// @override
-// Future onScaleUpdate() {
+// Future onScaleUpdate(
+// Vector2 focalPoint,
+// Vector2 focalPointDelta,
+// double horizontalScale,
+// double verticalScale,
+// double scale,
+// int pointerCount,
+// double rotation,
+// Duration? sourceTimestamp) {
// // TODO: implement onScaleUpdate
// throw UnimplementedError();
// }
// @override
-// void setActionForType(InputType type, InputAction action) {
+// void setActionForType(InputType gestureType, InputAction gestureAction) {
// // TODO: implement setActionForType
// }
// }
+// // final ThermionViewer viewer;
+// // final bool enableCamera;
+// // final bool enablePicking;
+// // final Logger _logger = Logger("PickingCameraGestureHandler");
+
+// // AbstractGizmo? _gizmo;
+// // Timer? _scrollTimer;
+// // ThermionEntity? _highlightedEntity;
+// // StreamSubscription? _pickResultSubscription;
+
+// // bool _gizmoAttached = false;
+
+// // PickingCameraGestureHandler({
+// // required this.viewer,
+// // this.enableCamera = true,
+// // this.enablePicking = true,
+// // }) {
+// // try {
+// // _gizmo = viewer.gizmo;
+// // } catch (err) {
+// // _logger.warning(
+// // "Failed to get gizmo. If you are running on WASM, this is expected");
+// // }
+
+// // _pickResultSubscription = viewer.pickResult.listen(_onPickResult);
+
+// // // Add keyboard listener
+// // RawKeyboard.instance.addListener(_handleKeyEvent);
+// // }
+
+// // @override
+// // ThermionGestureState get currentState => _currentState;
+
+// // void _handleKeyEvent(RawKeyEvent event) {
+// // if (event is RawKeyDownEvent &&
+// // event.logicalKey == LogicalKeyboardKey.escape) {
+// // _resetToNullState();
+// // }
+// // }
+
+// // void _resetToNullState() async {
+// // _currentState = ThermionGestureState.NULL;
+// // if (_highlightedEntity != null) {
+// // await viewer.removeStencilHighlight(_highlightedEntity!);
+// // _highlightedEntity = null;
+// // }
+// // }
+
+// // void _onPickResult(FilamentPickResult result) async {
+// // var targetEntity = await viewer.getAncestor(result.entity) ?? result.entity;
+
+// // if (_highlightedEntity != targetEntity) {
+// // if (_highlightedEntity != null) {
+// // await viewer.removeStencilHighlight(_highlightedEntity!);
+// // }
+
+// // _highlightedEntity = targetEntity;
+// // if (_highlightedEntity != null) {
+// // await viewer.setStencilHighlight(_highlightedEntity!);
+// // _gizmo?.attach(_highlightedEntity!);
+// // }
+// // }
+// // }
+
+// // @override
+// // Future onPointerHover(Offset localPosition, Offset delta) async {
+// // if (_gizmoAttached) {
+// // _gizmo?.checkHover(localPosition.dx, localPosition.dy);
+// // }
+
+// // if (_highlightedEntity != null) {
+// // await viewer.queuePositionUpdateFromViewportCoords(
+// // _highlightedEntity!,
+// // localPosition.dx,
+// // localPosition.dy,
+// // );
+// // }
+// // }
+
+// // @override
+// // Future onPointerScroll(Offset localPosition, double scrollDelta) async {
+// // if (!enableCamera) {
+// // return;
+// // }
+// // if (_currentState == ThermionGestureState.NULL ||
+// // _currentState == ThermionGestureState.ZOOMING) {
+// // await _zoom(localPosition, scrollDelta);
+// // }
+// // }
+
+// // @override
+// // Future onPointerDown(Offset localPosition, int buttons) async {
+// // if (_highlightedEntity != null) {
+// // _resetToNullState();
+// // return;
+// // }
+
+// // if (enablePicking && buttons != kMiddleMouseButton) {
+// // viewer.pick(localPosition.dx.toInt(), localPosition.dy.toInt());
+// // }
+
+// // if (buttons == kMiddleMouseButton && enableCamera) {
+// // await viewer.rotateStart(localPosition.dx, localPosition.dy);
+// // _currentState = ThermionGestureState.ROTATING;
+// // } else if (buttons == kPrimaryMouseButton && enableCamera) {
+// // await viewer.panStart(localPosition.dx, localPosition.dy);
+// // _currentState = ThermionGestureState.PANNING;
+// // }
+// // }
+
+// // @override
+// // Future onPointerMove(
+// // Offset localPosition, Offset delta, int buttons) async {
+// // if (_highlightedEntity != null) {
+// // await _handleEntityHighlightedMove(localPosition);
+// // return;
+// // }
+
+// // switch (_currentState) {
+// // case ThermionGestureState.NULL:
+// // break;
+
+// // case ThermionGestureState.ROTATING:
+// // if (enableCamera) {
+// // await viewer.rotateUpdate(localPosition.dx, localPosition.dy);
+// // }
+// // break;
+// // case ThermionGestureState.PANNING:
+// // if (enableCamera) {
+// // await viewer.panUpdate(localPosition.dx, localPosition.dy);
+// // }
+// // break;
+// // case ThermionGestureState.ZOOMING:
+// // // ignore
+// // break;
+// // }
+// // }
+
+// // @override
+// // Future onPointerUp(int buttons) async {
+// // switch (_currentState) {
+// // case ThermionGestureState.ROTATING:
+// // await viewer.rotateEnd();
+// // _currentState = ThermionGestureState.NULL;
+// // break;
+// // case ThermionGestureState.PANNING:
+// // await viewer.panEnd();
+// // _currentState = ThermionGestureState.NULL;
+// // break;
+// // default:
+// // break;
+// // }
+// // }
+
+// // Future _handleEntityHighlightedMove(Offset localPosition) async {
+// // if (_highlightedEntity != null) {
+// // await viewer.queuePositionUpdateFromViewportCoords(
+// // _highlightedEntity!,
+// // localPosition.dx,
+// // localPosition.dy,
+// // );
+// // }
+// // }
+
+// // Future _zoom(Offset localPosition, double scrollDelta) async {
+// // _scrollTimer?.cancel();
+// // _currentState = ThermionGestureState.ZOOMING;
+// // await viewer.zoomBegin();
+// // await viewer.zoomUpdate(
+// // localPosition.dx, localPosition.dy, scrollDelta > 0 ? 1 : -1);
+
+// // _scrollTimer = Timer(const Duration(milliseconds: 100), () async {
+// // await viewer.zoomEnd();
+// // _currentState = ThermionGestureState.NULL;
+// // });
+// // }
+
+// // @override
+// // void dispose() {
+// // _pickResultSubscription?.cancel();
+// // if (_highlightedEntity != null) {
+// // viewer.removeStencilHighlight(_highlightedEntity!);
+// // }
+// // RawKeyboard.instance.removeListener(_handleKeyEvent);
+// // }
+
+// // @override
+// // Future get initialized => viewer.initialized;
+
+// // @override
+// // InputAction getActionForType(InputType type) {
+// // // TODO: implement getActionForType
+// // throw UnimplementedError();
+// // }
+
+// // @override
+// // Future onScaleEnd() {
+// // // TODO: implement onScaleEnd
+// // throw UnimplementedError();
+// // }
+
+// // @override
+// // Future onScaleStart() {
+// // // TODO: implement onScaleStart
+// // throw UnimplementedError();
+// // }
+
+// // @override
+// // Future onScaleUpdate() {
+// // // TODO: implement onScaleUpdate
+// // throw UnimplementedError();
+// // }
+
+// // @override
+// // void setActionForType(InputType type, InputAction action) {
+// // // TODO: implement setActionForType
+// // }
+// // }
diff --git a/thermion_dart/lib/src/utils/src/axis.dart b/thermion_dart/lib/src/utils/src/axis.dart
index 6c9226e4..f4e7a34d 100644
--- a/thermion_dart/lib/src/utils/src/axis.dart
+++ b/thermion_dart/lib/src/utils/src/axis.dart
@@ -4,41 +4,40 @@ import 'package:vector_math/vector_math_64.dart';
import '../../viewer/viewer.dart';
-class Axis {
+class AxisWidget {
final ThermionViewer _viewer;
final ThermionEntity xAxis;
final ThermionEntity yAxis;
final ThermionEntity zAxis;
- Axis._(this.xAxis, this.yAxis, this.zAxis, this._viewer);
+ AxisWidget._(this.xAxis, this.yAxis, this.zAxis, this._viewer);
static Future create(ThermionViewer viewer) async {
- final xAxis = await viewer!.createGeometry(
+ final xAxis = await viewer.createGeometry(
Geometry(Float32List.fromList([0, 0, 0, 10, 0, 0]), [0, 1],
primitiveType: PrimitiveType.LINES),
- materialInstance: await viewer!.createUnlitMaterialInstance());
- final yAxis = await viewer!.createGeometry(
+ materialInstances: [await viewer.createUnlitMaterialInstance()]);
+ final yAxis = await viewer.createGeometry(
Geometry(Float32List.fromList([0, 0, 0, 0, 10, 0]), [0, 1],
primitiveType: PrimitiveType.LINES),
- materialInstance: await viewer!.createUnlitMaterialInstance());
- final zAxis = await viewer!.createGeometry(
+ materialInstances: [await viewer.createUnlitMaterialInstance()]);
+ final zAxis = await viewer.createGeometry(
Geometry(Float32List.fromList([0, 0, 0, 0, 0, 10]), [0, 1],
primitiveType: PrimitiveType.LINES),
- materialInstance: await viewer!.createUnlitMaterialInstance());
-
- await viewer!.setMaterialPropertyFloat4(
- xAxis, "baseColorFactor", 0, 1.0, 0.0, 0.0, 1.0);
- await viewer!.setMaterialPropertyFloat4(
- yAxis, "baseColorFactor", 0, 0.0, 1.0, 0.0, 1.0);
- await viewer!.setMaterialPropertyFloat4(
- zAxis, "baseColorFactor", 0, 0.0, 0.0, 1.0, 1.0);
- return Axis._(xAxis, yAxis, zAxis, viewer);
+ materialInstances: [await viewer.createUnlitMaterialInstance()]);
+ throw Exception("TODO");
+ // await viewer!.setMaterialPropertyFloat4(
+ // xAxis, "baseColorFactor", 0, 1.0, 0.0, 0.0, 1.0);
+ // await viewer!.setMaterialPropertyFloat4(
+ // yAxis, "baseColorFactor", 0, 0.0, 1.0, 0.0, 1.0);
+ // await viewer!.setMaterialPropertyFloat4(
+ // zAxis, "baseColorFactor", 0, 0.0, 0.0, 1.0, 1.0);
+ // return Axis._(xAxis, yAxis, zAxis, viewer);
}
Future setTransform(Matrix4 transform) async {
await _viewer.setTransform(xAxis, transform);
await _viewer.setTransform(yAxis, transform);
await _viewer.setTransform(zAxis, transform);
-
}
}
diff --git a/thermion_dart/lib/src/utils/src/gizmo.dart b/thermion_dart/lib/src/utils/src/gizmo.dart
index ad023f0c..5de06146 100644
--- a/thermion_dart/lib/src/utils/src/gizmo.dart
+++ b/thermion_dart/lib/src/utils/src/gizmo.dart
@@ -1,127 +1,120 @@
import 'dart:async';
-
import 'package:thermion_dart/src/viewer/viewer.dart';
-import 'package:vector_math/vector_math_64.dart';
-abstract class Gizmo {
- bool get isVisible;
- bool get isHovered;
- void reset();
- Future attach(ThermionEntity entity);
- Future detach();
+// abstract class BaseGizmo extends Gizmo {
+// final ThermionEntity x;
+// final ThermionEntity y;
+// final ThermionEntity z;
+// final ThermionEntity center;
- Stream get boundingBox;
+// ThermionEntity? _activeAxis;
+// ThermionEntity? _activeEntity;
+// ThermionViewer viewer;
- void checkHover(int x, int y);
-}
+// bool _visible = false;
+// bool get isVisible => _visible;
-abstract class BaseGizmo extends Gizmo {
- final ThermionEntity x;
- final ThermionEntity y;
- final ThermionEntity z;
- final ThermionEntity center;
+// bool _isHovered = false;
+// bool get isHovered => _isHovered;
- ThermionEntity? _activeAxis;
- ThermionEntity? _activeEntity;
- ThermionViewer viewer;
+// final Set ignore;
- bool _visible = false;
- bool get isVisible => _visible;
+// Stream get boundingBox => _boundingBoxController.stream;
+// final _boundingBoxController = StreamController.broadcast();
- bool _isHovered = false;
- bool get isHovered => _isHovered;
+// ThermionEntity get entity => center;
- final Set ignore;
+// BaseGizmo(
+// {required this.x,
+// required this.y,
+// required this.z,
+// required this.center,
+// required this.viewer,
+// this.ignore = const {}}) {
+// onPick(_onGizmoPickResult);
+// }
- Stream get boundingBox => _boundingBoxController.stream;
- final _boundingBoxController = StreamController.broadcast();
+// final _stopwatch = Stopwatch();
- BaseGizmo({required this.x, required this.y, required this.z, required this.center, required this.viewer,
- this.ignore = const {}}) {
- onPick(_onGizmoPickResult);
- }
+// double _transX = 0.0;
+// double _transY = 0.0;
- final _stopwatch = Stopwatch();
+// Future translate(double transX, double transY) async {
+// if (!_stopwatch.isRunning) {
+// _stopwatch.start();
+// }
- double _transX = 0.0;
- double _transY = 0.0;
+// _transX += transX;
+// _transY += transY;
- Future translate(double transX, double transY) async {
- if (!_stopwatch.isRunning) {
- _stopwatch.start();
- }
+// if (_stopwatch.elapsedMilliseconds < 16) {
+// return;
+// }
- _transX += transX;
- _transY += transY;
+// final axis = Vector3(_activeAxis == x ? 1.0 : 0.0,
+// _activeAxis == y ? 1.0 : 0.0, _activeAxis == z ? 1.0 : 0.0);
- if (_stopwatch.elapsedMilliseconds < 16) {
- return;
- }
+// await viewer.queueRelativePositionUpdateWorldAxis(
+// _activeEntity!,
+// _transX,
+// -_transY, // flip the sign because "up" in NDC Y axis is positive, but negative in Flutter
+// axis.x,
+// axis.y,
+// axis.z);
+// _transX = 0;
+// _transY = 0;
+// _stopwatch.reset();
+// }
- final axis = Vector3(_activeAxis == x ? 1.0 : 0.0,
- _activeAxis == y ? 1.0 : 0.0, _activeAxis == z ? 1.0 : 0.0);
+// void reset() {
+// _activeAxis = null;
+// }
- await viewer.queueRelativePositionUpdateWorldAxis(
- _activeEntity!,
- _transX,
- -_transY, // flip the sign because "up" in NDC Y axis is positive, but negative in Flutter
- axis.x,
- axis.y,
- axis.z);
- _transX = 0;
- _transY = 0;
- _stopwatch.reset();
- }
+// void _onGizmoPickResult(FilamentPickResult result) async {
+// if (result.entity == x || result.entity == y || result.entity == z) {
+// _activeAxis = result.entity;
+// _isHovered = true;
+// } else if (result.entity == 0) {
+// _activeAxis = null;
+// _isHovered = false;
+// } else {
+// throw Exception("Unexpected gizmo pick result");
+// }
+// }
- void reset() {
- _activeAxis = null;
- }
+// Future attach(ThermionEntity entity) async {
+// _activeAxis = null;
+// if (entity == _activeEntity) {
+// return;
+// }
+// if (entity == center) {
+// _activeEntity = null;
+// return;
+// }
+// _visible = true;
- void _onGizmoPickResult(FilamentPickResult result) async {
- if (result.entity == x || result.entity == y || result.entity == z) {
- _activeAxis = result.entity;
- _isHovered = true;
- } else if (result.entity == 0) {
- _activeAxis = null;
- _isHovered = false;
- } else {
- throw Exception("Unexpected gizmo pick result");
- }
- }
+// if (_activeEntity != null) {
+// // await viewer.removeStencilHighlight(_activeEntity!);
+// }
+// _activeEntity = entity;
- Future attach(ThermionEntity entity) async {
- _activeAxis = null;
- if (entity == _activeEntity) {
- return;
- }
- if (entity == center) {
- _activeEntity = null;
- return;
- }
- _visible = true;
+// await viewer.setParent(center, entity, preserveScaling: false);
+// _boundingBoxController.sink.add(await viewer.getViewportBoundingBox(x));
+// }
- if (_activeEntity != null) {
- await viewer.removeStencilHighlight(_activeEntity!);
- }
- _activeEntity = entity;
+// Future detach() async {
+// await setVisibility(false);
+// }
- await viewer.setParent(center, entity, preserveScaling: false);
- _boundingBoxController.sink.add(await viewer.getViewportBoundingBox(x));
- }
+// @override
+// void checkHover(int x, int y) {
+// pick(x, y);
+// }
- Future detach() async {
- await setVisibility(false);
- }
+// Future pick(int x, int y);
- @override
- void checkHover(int x, int y) {
- pick(x, y);
- }
-
- Future pick(int x, int y);
-
- Future setVisibility(bool visible);
- void onPick(void Function(PickResult result) callback);
-}
+// Future setVisibility(bool visible);
+// void onPick(void Function(PickResult result) callback);
+// }
diff --git a/thermion_dart/lib/src/viewer/src/events.dart b/thermion_dart/lib/src/viewer/src/events.dart
deleted file mode 100644
index 0180ef1d..00000000
--- a/thermion_dart/lib/src/viewer/src/events.dart
+++ /dev/null
@@ -1,85 +0,0 @@
-import 'shared_types/shared_types.dart';
-
-///
-/// To ensure we can easily store/recreate a particular, [ThermionViewer] will raise an event whenever an
-/// entity is added/removed.
-///
-enum EventType { EntityAdded, EntityRemoved, EntityHidden, EntityRevealed, ClearLights }
-
-///
-/// An "entity added" event must provide sufficient detail to enable that asset to be reloaded in future.
-/// This requires a bit more legwork because entities may be lights (direct/indirect), geometry or gltf.
-///
-enum EntityType { Geometry, Gltf, DirectLight, IBL }
-
-class SceneUpdateEvent {
- late final ThermionEntity? entity;
- late final EventType eventType;
-
- EntityType get addedEntityType {
- if (_directLight != null) {
- return EntityType.DirectLight;
- } else if (_ibl != null) {
- return EntityType.IBL;
- } else if (_gltf != null) {
- return EntityType.Gltf;
- } else if (_geometry != null) {
- return EntityType.Geometry;
- } else {
- throw Exception("Unknown entity type");
- }
- }
-
- DirectLight? _directLight;
- IBL? _ibl;
- GLTF? _gltf;
- Geometry? _geometry;
-
- SceneUpdateEvent.remove(this.entity) {
- this.eventType = EventType.EntityRemoved;
- }
-
- SceneUpdateEvent.reveal(this.entity) {
- this.eventType = EventType.EntityRevealed;
- }
-
- SceneUpdateEvent.hide(this.entity) {
- this.eventType = EventType.EntityHidden;
- }
-
- SceneUpdateEvent.addDirectLight(this.entity, this._directLight) {
- this.eventType = EventType.EntityAdded;
- }
-
- SceneUpdateEvent.addIbl(this.entity, this._ibl) {
- this.eventType = EventType.EntityAdded;
- }
-
- SceneUpdateEvent.addGltf(this.entity, this._gltf) {
- this.eventType = EventType.EntityAdded;
- }
-
- SceneUpdateEvent.addGeometry(this.entity, this._geometry) {
- this.eventType = EventType.EntityAdded;
- }
-
- SceneUpdateEvent.clearLights() {
- this.eventType = EventType.ClearLights;
- }
-
- DirectLight getDirectLight() {
- return _directLight!;
- }
-
- IBL getAsIBL() {
- return _ibl!;
- }
-
- GLTF getAsGLTF() {
- return _gltf!;
- }
-
- Geometry getAsGeometry() {
- return _geometry!;
- }
-}
diff --git a/thermion_dart/lib/src/viewer/src/ffi/src/ffi_asset.dart b/thermion_dart/lib/src/viewer/src/ffi/src/ffi_asset.dart
new file mode 100644
index 00000000..fceaa67a
--- /dev/null
+++ b/thermion_dart/lib/src/viewer/src/ffi/src/ffi_asset.dart
@@ -0,0 +1,186 @@
+import 'dart:typed_data';
+
+import 'package:thermion_dart/src/viewer/src/ffi/src/callbacks.dart';
+import 'package:thermion_dart/src/viewer/src/ffi/src/thermion_viewer_ffi.dart';
+import 'package:thermion_dart/thermion_dart.dart';
+
+import 'ffi_material_instance.dart';
+
+class FFIAsset extends ThermionAsset {
+ final Pointer pointer;
+ final Pointer sceneManager;
+ Pointer get renderableManager =>
+ Engine_getRenderableManager(engine);
+ final Pointer engine;
+ FFIAsset? _highlight;
+ final Pointer _unlitMaterialProvider;
+ final bool isInstance;
+
+ late final ThermionEntity entity;
+
+ FFIAsset(
+ this.pointer, this.sceneManager, this.engine, this._unlitMaterialProvider,
+ {this.isInstance = false}) {
+ entity = SceneAsset_getEntity(pointer);
+ }
+
+ @override
+ Future> getChildEntities() async {
+ var count = SceneAsset_getChildEntityCount(pointer);
+ var children = Int32List(count);
+ SceneAsset_getChildEntities(pointer, children.address);
+ return children;
+ }
+
+ @override
+ Future getInstance(int index) async {
+ if (isInstance) {
+ throw Exception(
+ "This is itself an instance. Call getInstance on the original asset that this instance was created from");
+ }
+ var instance = SceneAsset_getInstance(pointer, index);
+ if (instance == nullptr) {
+ throw Exception("No instance available at index $index");
+ }
+ return FFIAsset(instance, sceneManager, engine, _unlitMaterialProvider);
+ }
+
+ ///
+ ///
+ ///
+ @override
+ Future createInstance(
+ {covariant List? materialInstances = null}) async {
+ var created = await withPointerCallback((cb) {
+ var ptrList = Int64List(materialInstances?.length ?? 0);
+ if (materialInstances != null && materialInstances.isNotEmpty) {
+ ptrList.setRange(
+ 0,
+ materialInstances.length,
+ materialInstances
+ .cast()
+ .map((mi) => mi.pointer.address)
+ .toList());
+ }
+
+ SceneAsset_createInstanceRenderThread(
+ pointer,
+ ptrList.address.cast>(),
+ materialInstances?.length ?? 0,
+ cb);
+ });
+ if (created == FILAMENT_ASSET_ERROR) {
+ throw Exception("Failed to create instance");
+ }
+ return FFIAsset(created, sceneManager, engine, _unlitMaterialProvider);
+ }
+
+ ///
+ ///
+ ///
+ @override
+ Future getInstanceCount() async {
+ return SceneAsset_getInstanceCount(pointer);
+ }
+
+ ///
+ ///
+ ///
+ @override
+ Future> getInstances() async {
+ var count = await getInstanceCount();
+ final result = List.generate(count, (i) {
+ return FFIAsset(SceneAsset_getInstance(pointer, i), sceneManager, engine,
+ _unlitMaterialProvider);
+ });
+
+ return result;
+ }
+
+ @override
+ Future removeStencilHighlight() async {
+ if (_highlight != null) {
+ SceneManager_removeFromScene(sceneManager, _highlight!.entity);
+ final childEntities = await _highlight!.getChildEntities();
+ for (final child in childEntities) {
+ SceneManager_removeFromScene(sceneManager, child);
+ }
+ }
+ }
+
+ @override
+ Future setStencilHighlight(
+ {double r = 1.0,
+ double g = 0.0,
+ double b = 0.0,
+ int? entityIndex}) async {
+ if (_highlight == null) {
+ var targetEntity = this.entity;
+ if (entityIndex != null) {
+ final childEntities = await this.getChildEntities();
+ targetEntity = childEntities[entityIndex!];
+ }
+ var sourceMaterialInstance = ThermionFFIMaterialInstance(
+ RenderableManager_getMaterialInstanceAt(
+ renderableManager, targetEntity, 0));
+
+ await sourceMaterialInstance.setStencilWriteEnabled(true);
+ await sourceMaterialInstance.setDepthWriteEnabled(true);
+ await sourceMaterialInstance
+ .setStencilOpDepthStencilPass(StencilOperation.REPLACE);
+
+ await sourceMaterialInstance.setStencilReferenceValue(1);
+
+ final materialInstancePtr =
+ await withPointerCallback((cb) {
+ final key = Struct.create();
+ MaterialProvider_createMaterialInstanceRenderThread(
+ _unlitMaterialProvider, key.address, cb);
+ });
+ final highlightMaterialInstance =
+ ThermionFFIMaterialInstance(materialInstancePtr);
+ await highlightMaterialInstance
+ .setStencilCompareFunction(SamplerCompareFunction.NE);
+ await highlightMaterialInstance.setStencilReferenceValue(1);
+
+ await highlightMaterialInstance.setDepthCullingEnabled(false);
+
+ await highlightMaterialInstance.setParameterFloat("vertexScale", 1.03);
+ await highlightMaterialInstance.setParameterFloat4(
+ "baseColorFactor", r, g, b, 1.0);
+
+ var highlightInstance = await this
+ .createInstance(materialInstances: [highlightMaterialInstance]);
+ _highlight = highlightInstance;
+
+ var targetHighlightEntity = _highlight!.entity;
+
+ if (entityIndex != null) {
+ var highlightChildEntities = await _highlight!.getChildEntities();
+ targetHighlightEntity = highlightChildEntities[entityIndex!];
+ }
+
+ RenderableManager_setPriority(
+ renderableManager, targetHighlightEntity, 7);
+ RenderableManager_setPriority(renderableManager, targetEntity, 0);
+
+ await highlightMaterialInstance.setStencilReferenceValue(1);
+
+ SceneManager_addToScene(sceneManager, targetHighlightEntity);
+ }
+ }
+
+ @override
+ Future addToScene() async {
+ SceneAsset_addToScene(pointer, SceneManager_getScene(sceneManager));
+
+ }
+
+ @override
+ Future removeFromScene() async {
+ SceneManager_removeFromScene(sceneManager, entity);
+ for (final child in await getChildEntities()) {
+ SceneManager_removeFromScene(sceneManager, child);
+ }
+ }
+}
diff --git a/thermion_dart/lib/src/viewer/src/ffi/src/ffi_camera.dart b/thermion_dart/lib/src/viewer/src/ffi/src/ffi_camera.dart
index 365fe9fd..38c91a56 100644
--- a/thermion_dart/lib/src/viewer/src/ffi/src/ffi_camera.dart
+++ b/thermion_dart/lib/src/viewer/src/ffi/src/ffi_camera.dart
@@ -9,9 +9,10 @@ import 'thermion_dart.g.dart' as g;
class FFICamera extends Camera {
final Pointer camera;
final Pointer engine;
+ final Pointer transformManager;
late ThermionEntity _entity;
- FFICamera(this.camera, this.engine) {
+ FFICamera(this.camera, this.engine, this.transformManager) {
_entity = g.Camera_getEntity(camera);
}
@@ -29,7 +30,7 @@ class FFICamera extends Camera {
@override
Future setTransform(Matrix4 transform) async {
var entity = g.Camera_getEntity(camera);
- g.Engine_setTransform(engine, entity, matrix4ToDouble4x4(transform));
+ g.TransformManager_setTransform(transformManager, entity, matrix4ToDouble4x4(transform));
}
@override
diff --git a/thermion_dart/lib/src/viewer/src/ffi/src/ffi_gizmo.dart b/thermion_dart/lib/src/viewer/src/ffi/src/ffi_gizmo.dart
index 872a689f..c858e537 100644
--- a/thermion_dart/lib/src/viewer/src/ffi/src/ffi_gizmo.dart
+++ b/thermion_dart/lib/src/viewer/src/ffi/src/ffi_gizmo.dart
@@ -1,50 +1,69 @@
import 'dart:async';
-import 'dart:ffi';
+import 'package:thermion_dart/src/viewer/src/ffi/src/callbacks.dart';
+import 'package:thermion_dart/src/viewer/src/ffi/src/ffi_asset.dart';
+import 'package:thermion_dart/src/viewer/src/shared_types/entities.dart';
+import 'package:thermion_dart/thermion_dart.dart';
+import 'package:vector_math/vector_math_64.dart';
-import 'package:thermion_dart/src/viewer/src/ffi/src/thermion_dart.g.dart';
-
-import '../../../../utils/src/gizmo.dart';
-import '../../../viewer.dart';
-
-class FFIGizmo extends BaseGizmo {
- Pointer pointer;
+import 'ffi_view.dart';
+class FFIGizmo extends FFIAsset implements GizmoAsset {
+ final Set nonPickableEntities;
late NativeCallable _nativeCallback;
+
+ void Function(GizmoPickResultType axis, Vector3 coords)? _callback;
+
+ late FFIView _view;
+
+ void _onPickResult(int resultType, double x, double y, double z) {
+ _callback?.call(GizmoPickResultType.values[resultType], Vector3(x, y, z));
+ }
+
FFIGizmo(
- this.pointer, ThermionViewer viewer) : super(x: 0, y: 0, z: 0, center: 0, viewer: viewer) {
+ this._view,
+ super.pointer,
+ super.sceneManager,
+ super.renderableManager,
+ super.unlitMaterialProvider,
+ this.nonPickableEntities
+ ) {
_nativeCallback =
NativeCallable.listener(_onPickResult);
}
- ///
- /// The result(s) of calling [pickGizmo] (see below).
- ///
- // Stream get onPick => _pickResultController.stream;
- // final _pickResultController = StreamController.broadcast();
-
- void Function(PickResult)? _callback;
-
- void onPick(void Function(PickResult) callback) {
- _callback = callback;
- }
-
- void _onPickResult(DartEntityId entityId, int x, int y, Pointer view) {
- _callback?.call((entity: entityId, x: x, y: y, depth: 0, fragX: 0, fragY: 0, fragZ: 0));
- }
-
- ///
- /// Used to test whether a Gizmo is at the given viewport coordinates.
- /// Called by `FilamentGestureDetector` on a mouse/finger down event. You probably don't want to call this yourself.
- /// This is asynchronous and will require 2-3 frames to complete - subscribe to the [gizmoPickResult] stream to receive the results of this method.
- /// [x] and [y] must be in local logical coordinates (i.e. where 0,0 is at top-left of the ThermionWidget).
- ///
@override
- Future pick(int x, int y) async {
- Gizmo_pick(pointer, x.toInt(), y, _nativeCallback.nativeFunction);
+ Future removeStencilHighlight() async {
+ throw Exception("Not supported for gizmo");
}
@override
- Future setVisibility(bool visible) async {
- Gizmo_setVisibility(pointer, visible);
+ Future setStencilHighlight(
+ {double r = 1.0,
+ double g = 0.0,
+ double b = 0.0,
+ int? entityIndex}) async {
+ throw Exception("Not supported for gizmo");
+ }
+
+ @override
+ Future pick(int x, int y,
+ {Future Function(GizmoPickResultType result, Vector3 coords)?
+ handler}) async {
+ _callback = handler;
+ final viewport = await _view.getViewport();
+ y = viewport.height - y;
+
+ Gizmo_pick(pointer.cast(), x, y, _nativeCallback.nativeFunction);
+ }
+
+ @override
+ Future highlight(Axis axis) async {
+ Gizmo_unhighlight(pointer.cast());
+ Gizmo_highlight(pointer.cast(), TGizmoAxis.values[axis.index]);
+ }
+
+ @override
+ Future unhighlight() async {
+ Gizmo_unhighlight(pointer.cast());
}
}
diff --git a/thermion_dart/lib/src/viewer/src/ffi/src/ffi_material_instance.dart b/thermion_dart/lib/src/viewer/src/ffi/src/ffi_material_instance.dart
new file mode 100644
index 00000000..7d918935
--- /dev/null
+++ b/thermion_dart/lib/src/viewer/src/ffi/src/ffi_material_instance.dart
@@ -0,0 +1,116 @@
+import 'dart:ffi';
+
+import 'package:ffi/ffi.dart';
+import 'package:thermion_dart/src/viewer/src/ffi/src/thermion_dart.g.dart';
+import 'package:thermion_dart/thermion_dart.dart';
+
+class ThermionFFIMaterialInstance extends MaterialInstance {
+ final Pointer pointer;
+
+ ThermionFFIMaterialInstance(this.pointer) {
+ if (pointer == nullptr) {
+ throw Exception("MaterialInstance not found");
+ }
+ }
+
+ @override
+ Future setDepthCullingEnabled(bool enabled) async {
+ MaterialInstance_setDepthCulling(this.pointer, enabled);
+ }
+
+ @override
+ Future setDepthWriteEnabled(bool enabled) async {
+ MaterialInstance_setDepthWrite(this.pointer, enabled);
+ }
+
+ @override
+ Future setParameterFloat4(
+ String name, double x, double y, double z, double w) async {
+ MaterialInstance_setParameterFloat4(
+ pointer, name.toNativeUtf8().cast(), x, y, z, w);
+ }
+
+ @override
+ Future setParameterFloat2(String name, double x, double y) async {
+ MaterialInstance_setParameterFloat2(
+ pointer, name.toNativeUtf8().cast(), x, y);
+ }
+
+ @override
+ Future setParameterFloat(String name, double value) async {
+ MaterialInstance_setParameterFloat(
+ pointer, name.toNativeUtf8().cast(), value);
+ }
+
+ @override
+ Future setParameterInt(String name, int value) async {
+ MaterialInstance_setParameterInt(
+ pointer, name.toNativeUtf8().cast(), value);
+ }
+
+ @override
+ Future setDepthFunc(SamplerCompareFunction depthFunc) async {
+ MaterialInstance_setDepthFunc(pointer, TSamplerCompareFunc.values[depthFunc.index]);
+ }
+
+ @override
+ Future setStencilCompareFunction(SamplerCompareFunction func,
+ [StencilFace face = StencilFace.FRONT_AND_BACK]) async {
+ MaterialInstance_setStencilCompareFunction(
+ pointer, TSamplerCompareFunc.values[func.index], TStencilFace.values[face.index]);
+ }
+
+ @override
+ Future setStencilOpDepthFail(StencilOperation op,
+ [StencilFace face = StencilFace.FRONT_AND_BACK]) async {
+ MaterialInstance_setStencilOpDepthFail(pointer,
+ TStencilOperation.values[op.index], TStencilFace.values[face.index]);
+ }
+
+ @override
+ Future setStencilOpDepthStencilPass(StencilOperation op,
+ [StencilFace face = StencilFace.FRONT_AND_BACK]) async {
+ MaterialInstance_setStencilOpDepthStencilPass(pointer,
+ TStencilOperation.values[op.index], TStencilFace.values[face.index]);
+ }
+
+ @override
+ Future setStencilOpStencilFail(StencilOperation op,
+ [StencilFace face = StencilFace.FRONT_AND_BACK]) async {
+ MaterialInstance_setStencilOpStencilFail(pointer,
+ TStencilOperation.values[op.index], TStencilFace.values[face.index]);
+ }
+
+ @override
+ Future setStencilReferenceValue(int value,
+ [StencilFace face = StencilFace.FRONT_AND_BACK]) async {
+ MaterialInstance_setStencilReferenceValue(
+ pointer, value, TStencilFace.values[face.index]);
+ }
+
+ @override
+ Future setStencilWriteEnabled(bool enabled) async {
+ MaterialInstance_setStencilWrite(pointer, enabled);
+ }
+
+ @override
+ Future setCullingMode(CullingMode cullingMode) async {
+ MaterialInstance_setCullingMode(
+ pointer, TCullingMode.values[cullingMode.index]);
+ }
+
+ @override
+ Future isStencilWriteEnabled() async {
+ return MaterialInstance_isStencilWriteEnabled(pointer);
+ }
+
+ @override
+ Future setStencilReadMask(int mask) async {
+ MaterialInstance_setStencilReadMask(pointer, mask);
+ }
+
+ @override
+ Future setStencilWriteMask(int mask) async {
+ MaterialInstance_setStencilWriteMask(pointer, mask);
+ }
+}
diff --git a/thermion_dart/lib/src/viewer/src/ffi/src/ffi_view.dart b/thermion_dart/lib/src/viewer/src/ffi/src/ffi_view.dart
index 442c6d4b..d737ef15 100644
--- a/thermion_dart/lib/src/viewer/src/ffi/src/ffi_view.dart
+++ b/thermion_dart/lib/src/viewer/src/ffi/src/ffi_view.dart
@@ -18,7 +18,7 @@ class FFIView extends View {
@override
Future setRenderTarget(covariant FFIRenderTarget? renderTarget) async {
- if(renderTarget != null) {
+ if (renderTarget != null) {
View_setRenderTarget(view, renderTarget.renderTarget);
} else {
View_setRenderTarget(view, nullptr);
@@ -39,8 +39,9 @@ class FFIView extends View {
@override
Future getCamera() async {
final engine = Viewer_getEngine(viewer);
- final cameraPtr = View_getCamera(view);
- return FFICamera(cameraPtr, engine);
+ final transformManager = Engine_getTransformManager(engine);
+ final cameraPtr = View_getCamera(view);
+ return FFICamera(cameraPtr, engine, transformManager);
}
@override
@@ -72,4 +73,12 @@ class FFIView extends View {
final engine = await Viewer_getEngine(viewer);
View_setToneMappingRenderThread(view, engine, mapper.index);
}
+
+ Future setStencilBufferEnabled(bool enabled) async {
+ return View_setStencilBufferEnabled(view, enabled);
+ }
+
+ Future isStencilBufferEnabled() async {
+ return View_isStencilBufferEnabled(view);
+ }
}
diff --git a/thermion_dart/lib/src/viewer/src/ffi/src/thermion_dart.g.dart b/thermion_dart/lib/src/viewer/src/ffi/src/thermion_dart.g.dart
index 6c0d5e20..d24933dd 100644
--- a/thermion_dart/lib/src/viewer/src/ffi/src/thermion_dart.g.dart
+++ b/thermion_dart/lib/src/viewer/src/ffi/src/thermion_dart.g.dart
@@ -7,6 +7,34 @@ library;
import 'dart:ffi' as ffi;
+@ffi.Native)>(isLeaf: true)
+external bool MaterialInstance_isStencilWriteEnabled(
+ ffi.Pointer materialInstance,
+);
+
+@ffi.Native, ffi.Bool)>(
+ isLeaf: true)
+external void MaterialInstance_setStencilWrite(
+ ffi.Pointer materialInstance,
+ bool enabled,
+);
+
+@ffi.Native, ffi.UnsignedInt)>(
+ symbol: "MaterialInstance_setCullingMode", isLeaf: true)
+external void _MaterialInstance_setCullingMode(
+ ffi.Pointer materialInstance,
+ int culling,
+);
+
+void MaterialInstance_setCullingMode(
+ ffi.Pointer materialInstance,
+ TCullingMode culling,
+) =>
+ _MaterialInstance_setCullingMode(
+ materialInstance,
+ culling.value,
+ );
+
@ffi.Native, ffi.Bool)>(
isLeaf: true)
external void MaterialInstance_setDepthWrite(
@@ -70,7 +98,7 @@ external void _MaterialInstance_setDepthFunc(
void MaterialInstance_setDepthFunc(
ffi.Pointer materialInstance,
- TDepthFunc depthFunc,
+ TSamplerCompareFunc depthFunc,
) =>
_MaterialInstance_setDepthFunc(
materialInstance,
@@ -78,12 +106,132 @@ void MaterialInstance_setDepthFunc(
);
@ffi.Native<
- ffi.Pointer Function(LoadFilamentResourceFromOwner,
- FreeFilamentResourceFromOwner, ffi.Pointer)>(isLeaf: true)
-external ffi.Pointer make_resource_loader(
- LoadFilamentResourceFromOwner loadFn,
- FreeFilamentResourceFromOwner freeFn,
- ffi.Pointer owner,
+ ffi.Void Function(
+ ffi.Pointer, ffi.UnsignedInt, ffi.UnsignedInt)>(
+ symbol: "MaterialInstance_setStencilOpStencilFail", isLeaf: true)
+external void _MaterialInstance_setStencilOpStencilFail(
+ ffi.Pointer materialInstance,
+ int op,
+ int face,
+);
+
+void MaterialInstance_setStencilOpStencilFail(
+ ffi.Pointer materialInstance,
+ TStencilOperation op,
+ TStencilFace face,
+) =>
+ _MaterialInstance_setStencilOpStencilFail(
+ materialInstance,
+ op.value,
+ face.value,
+ );
+
+@ffi.Native<
+ ffi.Void Function(
+ ffi.Pointer, ffi.UnsignedInt, ffi.UnsignedInt)>(
+ symbol: "MaterialInstance_setStencilOpDepthFail", isLeaf: true)
+external void _MaterialInstance_setStencilOpDepthFail(
+ ffi.Pointer materialInstance,
+ int op,
+ int face,
+);
+
+void MaterialInstance_setStencilOpDepthFail(
+ ffi.Pointer materialInstance,
+ TStencilOperation op,
+ TStencilFace face,
+) =>
+ _MaterialInstance_setStencilOpDepthFail(
+ materialInstance,
+ op.value,
+ face.value,
+ );
+
+@ffi.Native<
+ ffi.Void Function(
+ ffi.Pointer, ffi.UnsignedInt, ffi.UnsignedInt)>(
+ symbol: "MaterialInstance_setStencilOpDepthStencilPass", isLeaf: true)
+external void _MaterialInstance_setStencilOpDepthStencilPass(
+ ffi.Pointer materialInstance,
+ int op,
+ int face,
+);
+
+void MaterialInstance_setStencilOpDepthStencilPass(
+ ffi.Pointer materialInstance,
+ TStencilOperation op,
+ TStencilFace face,
+) =>
+ _MaterialInstance_setStencilOpDepthStencilPass(
+ materialInstance,
+ op.value,
+ face.value,
+ );
+
+@ffi.Native<
+ ffi.Void Function(
+ ffi.Pointer, ffi.UnsignedInt, ffi.UnsignedInt)>(
+ symbol: "MaterialInstance_setStencilCompareFunction", isLeaf: true)
+external void _MaterialInstance_setStencilCompareFunction(
+ ffi.Pointer materialInstance,
+ int func,
+ int face,
+);
+
+void MaterialInstance_setStencilCompareFunction(
+ ffi.Pointer materialInstance,
+ TSamplerCompareFunc func,
+ TStencilFace face,
+) =>
+ _MaterialInstance_setStencilCompareFunction(
+ materialInstance,
+ func.value,
+ face.value,
+ );
+
+@ffi.Native<
+ ffi.Void Function(
+ ffi.Pointer, ffi.Uint8, ffi.UnsignedInt)>(
+ symbol: "MaterialInstance_setStencilReferenceValue", isLeaf: true)
+external void _MaterialInstance_setStencilReferenceValue(
+ ffi.Pointer materialInstance,
+ int value,
+ int face,
+);
+
+void MaterialInstance_setStencilReferenceValue(
+ ffi.Pointer materialInstance,
+ int value,
+ TStencilFace face,
+) =>
+ _MaterialInstance_setStencilReferenceValue(
+ materialInstance,
+ value,
+ face.value,
+ );
+
+@ffi.Native, ffi.Uint8)>(
+ isLeaf: true)
+external void MaterialInstance_setStencilReadMask(
+ ffi.Pointer materialInstance,
+ int mask,
+);
+
+@ffi.Native, ffi.Uint8)>(
+ isLeaf: true)
+external void MaterialInstance_setStencilWriteMask(
+ ffi.Pointer materialInstance,
+ int mask,
+);
+
+@ffi.Native<
+ ffi.Pointer Function(ffi.Pointer, ffi.Pointer,
+ ffi.Pointer, ffi.Pointer)>(isLeaf: true)
+external ffi.Pointer Viewer_create(
+ ffi.Pointer context,
+ ffi.Pointer loader,
+ ffi.Pointer platform,
+ ffi.Pointer uberArchivePath,
);
@ffi.Native)>(isLeaf: true)
@@ -212,48 +360,6 @@ external void Viewer_setViewRenderable(
bool renderable,
);
-@ffi.Native<
- ffi.Void Function(
- ffi.Pointer,
- ffi.Pointer,
- ffi.Int,
- ffi.Int,
- ffi.Pointer<
- ffi.NativeFunction<
- ffi.Void Function(
- EntityId entityId,
- ffi.Int x,
- ffi.Int y,
- ffi.Pointer tView,
- ffi.Float depth,
- ffi.Float fragX,
- ffi.Float fragY,
- ffi.Float fragZ)>>)>(isLeaf: true)
-external void Viewer_pick(
- ffi.Pointer viewer,
- ffi.Pointer tView,
- int x,
- int y,
- ffi.Pointer<
- ffi.NativeFunction<
- ffi.Void Function(
- EntityId entityId,
- ffi.Int x,
- ffi.Int y,
- ffi.Pointer tView,
- ffi.Float depth,
- ffi.Float fragX,
- ffi.Float fragY,
- ffi.Float fragZ)>>
- callback,
-);
-
-@ffi.Native, EntityId)>(isLeaf: true)
-external bool Viewer_isNonPickableEntity(
- ffi.Pointer viewer,
- int entityId,
-);
-
@ffi.Native Function(ffi.Pointer)>(isLeaf: true)
external ffi.Pointer Viewer_getEngine(
ffi.Pointer viewer,
@@ -266,14 +372,6 @@ external ffi.Pointer Engine_getCameraComponent(
int entityId,
);
-@ffi.Native, EntityId, double4x4)>(
- isLeaf: true)
-external void Engine_setTransform(
- ffi.Pointer tEngine,
- int entity,
- double4x4 transform,
-);
-
@ffi.Native)>(isLeaf: true)
external void clear_background_image(
ffi.Pointer viewer,
@@ -425,49 +523,6 @@ external void set_light_direction(
double z,
);
-@ffi.Native<
- EntityId Function(ffi.Pointer, ffi.Pointer,
- ffi.Int, ffi.Bool)>(isLeaf: true)
-external int load_glb(
- ffi.Pointer sceneManager,
- ffi.Pointer assetPath,
- int numInstances,
- bool keepData,
-);
-
-@ffi.Native<
- EntityId Function(ffi.Pointer, ffi.Pointer,
- ffi.Pointer, ffi.Bool)>(isLeaf: true)
-external int load_gltf(
- ffi.Pointer sceneManager,
- ffi.Pointer assetPath,
- ffi.Pointer relativePath,
- bool keepData,
-);
-
-@ffi.Native, EntityId)>(
- isLeaf: true)
-external int create_instance(
- ffi.Pointer sceneManager,
- int id,
-);
-
-@ffi.Native, EntityId)>(
- isLeaf: true)
-external int get_instance_count(
- ffi.Pointer sceneManager,
- int entityId,
-);
-
-@ffi.Native<
- ffi.Void Function(ffi.Pointer, EntityId,
- ffi.Pointer)>(isLeaf: true)
-external void get_instances(
- ffi.Pointer sceneManager,
- int entityId,
- ffi.Pointer out,
-);
-
@ffi.Native)>(isLeaf: true)
external int get_main_camera(
ffi.Pointer viewer,
@@ -479,411 +534,6 @@ external void set_frame_interval(
double interval,
);
-@ffi.Native<
- ffi.Void Function(ffi.Pointer, EntityId,
- ffi.Pointer, ffi.Pointer, ffi.Int)>(isLeaf: true)
-external void apply_weights(
- ffi.Pointer sceneManager,
- int entity,
- ffi.Pointer entityName,
- ffi.Pointer weights,
- int count,
-);
-
-@ffi.Native<
- ffi.Bool Function(ffi.Pointer, EntityId,
- ffi.Pointer, ffi.Int)>(isLeaf: true)
-external bool set_morph_target_weights(
- ffi.Pointer sceneManager,
- int entity,
- ffi.Pointer morphData,
- int numWeights,
-);
-
-@ffi.Native<
- ffi.Pointer