From 699457e6637f380cb86ab0b353490cea88ced03e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 11 Apr 2022 14:18:19 -0500 Subject: [PATCH] chore: generate template (#17) --- .../.github/workflows/my_plugin.yaml | 26 +++---- .../.github/workflows/my_plugin_android.yaml | 12 ++-- .../.github/workflows/my_plugin_ios.yaml | 12 ++-- .../.github/workflows/my_plugin_linux.yaml | 12 ++-- .../.github/workflows/my_plugin_macos.yaml | 12 ++-- .../my_plugin_platform_interface.yaml | 12 ++-- .../.github/workflows/my_plugin_web.yaml | 12 ++-- .../.github/workflows/my_plugin_windows.yaml | 12 ++-- .../snakeCase}}_android.yaml | 21 ------ .../snakeCase}}_ios.yaml | 21 ------ .../snakeCase}}_linux.yaml | 21 ------ .../snakeCase}}_macos.yaml | 21 ------ .../snakeCase}}_platform_interface.yaml | 21 ------ .../snakeCase}}_web.yaml | 21 ------ .../snakeCase}}_windows.yaml | 21 ------ ...yaml => {{project_name.snakeCase()}}.yaml} | 26 +++---- .../{{project_name.snakeCase()}}_android.yaml | 21 ++++++ .../{{project_name.snakeCase()}}_ios.yaml | 21 ++++++ .../{{project_name.snakeCase()}}_linux.yaml | 21 ++++++ .../{{project_name.snakeCase()}}_macos.yaml | 21 ++++++ ...name.snakeCase()}}_platform_interface.yaml | 21 ++++++ .../{{project_name.snakeCase()}}_web.yaml | 21 ++++++ .../{{project_name.snakeCase()}}_windows.yaml | 21 ++++++ brick/__brick__/README.md | 2 +- .../snakeCase}}/example/README.md | 3 - .../snakeCase}}/pubspec.yaml | 49 ------------- .../android/settings.gradle | 1 - .../snakeCase}}_android.dart | 27 ------- .../snakeCase}}_android/pubspec.yaml | 29 -------- .../pascalCase}}Plugin.h | 4 -- .../snakeCase}}_ios.dart | 27 ------- .../snakeCase}}_ios/pubspec.yaml | 28 -------- .../snakeCase}}_linux.dart | 27 ------- .../snakeCase}}_linux_plugin.cc | 68 ------------------ .../snakeCase}}_linux/pubspec.yaml | 27 ------- .../snakeCase}}_macos.dart | 27 ------- .../snakeCase}}_macos/pubspec.yaml | 27 ------- .../snakeCase}}_platform_interface/README.md | 14 ---- .../snakeCase}}_platform_interface.dart | 40 ----------- .../snakeCase}}_platform_interface_test.dart | 37 ---------- .../snakeCase}}_web.dart | 19 ----- .../snakeCase}}_web/pubspec.yaml | 29 -------- .../snakeCase}}_web_test.dart | 33 --------- .../snakeCase}}_windows.dart | 27 ------- .../snakeCase}}_windows/pubspec.yaml | 27 ------- .../CHANGELOG.md | 0 .../LICENSE | 0 .../README.md | 2 +- .../analysis_options.yaml | 0 .../coverage_badge.svg | 0 .../example/.gitignore | 0 .../example/.metadata | 0 .../example/README.md | 3 + .../example/analysis_options.yaml | 0 .../example/android/.gitignore | 0 .../example/android/app/build.gradle | 2 +- .../app/src/debug}/AndroidManifest.xml | 2 +- .../android/app/src/main/AndroidManifest.xml | 2 +- .../example/MainActivity.kt | 2 +- .../res/drawable-v21/launch_background.xml | 0 .../main/res/drawable/launch_background.xml | 0 .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin .../app/src/main/res/values-night/styles.xml | 0 .../app/src/main/res/values/styles.xml | 0 .../app/src/profile}/AndroidManifest.xml | 2 +- .../example/android/build.gradle | 0 .../example/android/gradle.properties | 0 .../gradle/wrapper/gradle-wrapper.properties | 0 .../example/android/settings.gradle | 0 .../example/integration_test/app_test.dart | 2 +- .../example/ios/.gitignore | 0 .../ios/Flutter/AppFrameworkInfo.plist | 0 .../example/ios/Flutter/Debug.xcconfig | 0 .../example/ios/Flutter/Release.xcconfig | 0 .../example/ios/Podfile | 0 .../ios/Runner.xcodeproj/project.pbxproj | 6 +- .../contents.xcworkspacedata | 0 .../xcshareddata/IDEWorkspaceChecks.plist | 0 .../xcshareddata/WorkspaceSettings.xcsettings | 0 .../xcshareddata/xcschemes/Runner.xcscheme | 0 .../contents.xcworkspacedata | 0 .../xcshareddata/IDEWorkspaceChecks.plist | 0 .../xcshareddata/WorkspaceSettings.xcsettings | 0 .../example/ios/Runner/AppDelegate.swift | 0 .../AppIcon.appiconset/Contents.json | 0 .../Icon-App-1024x1024@1x.png | Bin .../AppIcon.appiconset/Icon-App-20x20@1x.png | Bin .../AppIcon.appiconset/Icon-App-20x20@2x.png | Bin .../AppIcon.appiconset/Icon-App-20x20@3x.png | Bin .../AppIcon.appiconset/Icon-App-29x29@1x.png | Bin .../AppIcon.appiconset/Icon-App-29x29@2x.png | Bin .../AppIcon.appiconset/Icon-App-29x29@3x.png | Bin .../AppIcon.appiconset/Icon-App-40x40@1x.png | Bin .../AppIcon.appiconset/Icon-App-40x40@2x.png | Bin .../AppIcon.appiconset/Icon-App-40x40@3x.png | Bin .../AppIcon.appiconset/Icon-App-60x60@2x.png | Bin .../AppIcon.appiconset/Icon-App-60x60@3x.png | Bin .../AppIcon.appiconset/Icon-App-76x76@1x.png | Bin .../AppIcon.appiconset/Icon-App-76x76@2x.png | Bin .../Icon-App-83.5x83.5@2x.png | Bin .../LaunchImage.imageset/Contents.json | 0 .../LaunchImage.imageset/LaunchImage.png | Bin .../LaunchImage.imageset/LaunchImage@2x.png | Bin .../LaunchImage.imageset/LaunchImage@3x.png | Bin .../LaunchImage.imageset/README.md | 0 .../Runner/Base.lproj/LaunchScreen.storyboard | 0 .../ios/Runner/Base.lproj/Main.storyboard | 0 .../example/ios/Runner/Info.plist | 0 .../ios/Runner/Runner-Bridging-Header.h | 0 .../example/lib/main.dart | 4 +- .../example/linux/.gitignore | 0 .../example/linux/CMakeLists.txt | 2 +- .../example/linux/flutter/CMakeLists.txt | 0 .../linux/flutter/generated_plugins.cmake | 2 +- .../example/linux/main.cc | 0 .../example/linux/my_application.cc | 0 .../example/linux/my_application.h | 0 .../example/macos/.gitignore | 0 .../macos/Flutter/Flutter-Debug.xcconfig | 0 .../macos/Flutter/Flutter-Release.xcconfig | 0 .../example/macos/Podfile | 0 .../macos/Runner.xcodeproj/project.pbxproj | 0 .../xcshareddata/IDEWorkspaceChecks.plist | 0 .../xcshareddata/xcschemes/Runner.xcscheme | 0 .../contents.xcworkspacedata | 0 .../xcshareddata/IDEWorkspaceChecks.plist | 0 .../example/macos/Runner/AppDelegate.swift | 0 .../AppIcon.appiconset/Contents.json | 0 .../AppIcon.appiconset/app_icon_1024.png | Bin .../AppIcon.appiconset/app_icon_128.png | Bin .../AppIcon.appiconset/app_icon_16.png | Bin .../AppIcon.appiconset/app_icon_256.png | Bin .../AppIcon.appiconset/app_icon_32.png | Bin .../AppIcon.appiconset/app_icon_512.png | Bin .../AppIcon.appiconset/app_icon_64.png | Bin .../macos/Runner/Base.lproj/MainMenu.xib | 0 .../macos/Runner/Configs/AppInfo.xcconfig | 2 +- .../macos/Runner/Configs/Debug.xcconfig | 0 .../macos/Runner/Configs/Release.xcconfig | 0 .../macos/Runner/Configs/Warnings.xcconfig | 0 .../macos/Runner/DebugProfile.entitlements | 0 .../example/macos/Runner/Info.plist | 0 .../macos/Runner/MainFlutterWindow.swift | 0 .../example/macos/Runner/Release.entitlements | 0 .../example/pubspec.yaml | 8 +-- .../example/test_driver/integration_test.dart | 0 .../example/web/favicon.png | Bin .../example/web/icons/Icon-192.png | Bin .../example/web/icons/Icon-512.png | Bin .../example/web/icons/Icon-maskable-192.png | Bin .../example/web/icons/Icon-maskable-512.png | Bin .../example/web/index.html | 0 .../example/web/manifest.json | 0 .../example/windows/.gitignore | 0 .../example/windows/CMakeLists.txt | 0 .../example/windows/flutter/CMakeLists.txt | 0 .../windows/flutter/generated_plugins.cmake | 2 +- .../example/windows/runner/CMakeLists.txt | 0 .../example/windows/runner/Runner.rc | 0 .../example/windows/runner/flutter_window.cpp | 0 .../example/windows/runner/flutter_window.h | 0 .../example/windows/runner/main.cpp | 0 .../example/windows/runner/resource.h | 0 .../windows/runner/resources/app_icon.ico | Bin .../windows/runner/runner.exe.manifest | 0 .../example/windows/runner/utils.cpp | 0 .../example/windows/runner/utils.h | 0 .../example/windows/runner/win32_window.cpp | 0 .../example/windows/runner/win32_window.h | 0 .../lib/{{project_name.snakeCase()}}.dart} | 4 +- .../{{project_name.snakeCase()}}/pubspec.yaml | 49 +++++++++++++ .../{{project_name.snakeCase()}}_test.dart} | 20 +++--- .../CHANGELOG.md | 0 .../LICENSE | 0 .../README.md | 6 +- .../android/.gitignore | 0 .../android/build.gradle | 2 +- .../android/settings.gradle | 1 + .../android/src/main/AndroidManifest.xml | 2 +- .../{{project_name.pascalCase()}}Plugin.kt} | 6 +- .../{{project_name.snakeCase()}}_android.dart | 27 +++++++ .../pubspec.yaml | 29 ++++++++ ...ject_name.snakeCase()}}_android_test.dart} | 18 ++--- .../CHANGELOG.md | 0 .../LICENSE | 0 .../README.md | 6 +- .../{{project_name.pascalCase()}}Plugin.h | 4 ++ .../{{project_name.pascalCase()}}Plugin.m} | 6 +- .../{{project_name.snakeCase()}}_ios.podspec} | 6 +- .../lib/{{project_name.snakeCase()}}_ios.dart | 27 +++++++ .../pubspec.yaml | 28 ++++++++ ...{project_name.snakeCase()}}_ios_test.dart} | 18 ++--- .../.gitignore | 0 .../CHANGELOG.md | 0 .../LICENSE | 0 .../README.md | 6 +- .../analysis_options.yaml | 0 .../{{project_name.snakeCase()}}_linux.dart | 27 +++++++ .../{{project_name.snakeCase()}}_linux.dart} | 2 +- .../linux/.gitignore | 0 .../linux/CMakeLists.txt | 4 +- .../{{project_name.snakeCase()}}_plugin.h} | 6 +- ...project_name.snakeCase()}}_linux_plugin.cc | 68 ++++++++++++++++++ .../pubspec.yaml | 27 +++++++ ...roject_name.snakeCase()}}_linux_test.dart} | 18 ++--- .../.gitignore | 0 .../CHANGELOG.md | 0 .../LICENSE | 0 .../README.md | 6 +- .../analysis_options.yaml | 0 .../{{project_name.snakeCase()}}_macos.dart | 27 +++++++ ...{{project_name.pascalCase()}}Plugin.swift} | 6 +- ...{project_name.snakeCase()}}_macos.podspec} | 6 +- .../pubspec.yaml | 27 +++++++ ...roject_name.snakeCase()}}_macos_test.dart} | 18 ++--- .../CHANGELOG.md | 0 .../LICENSE | 0 .../README.md | 14 ++++ .../analysis_options.yaml | 0 ...channel_{{project_name.snakeCase()}}.dart} | 8 +-- ...name.snakeCase()}}_platform_interface.dart | 40 +++++++++++ .../pubspec.yaml | 4 +- ...el_{{project_name.snakeCase()}}_test.dart} | 10 +-- ...snakeCase()}}_platform_interface_test.dart | 37 ++++++++++ .../.gitignore | 0 .../CHANGELOG.md | 0 .../LICENSE | 0 .../README.md | 6 +- .../analysis_options.yaml | 0 .../lib/{{project_name.snakeCase()}}_web.dart | 19 +++++ .../pubspec.yaml | 29 ++++++++ ...{{project_name.snakeCase()}}_web_test.dart | 33 +++++++++ .../.gitignore | 0 .../.metadata | 0 .../CHANGELOG.md | 0 .../LICENSE | 0 .../README.md | 6 +- .../analysis_options.yaml | 0 .../{{project_name.snakeCase()}}_windows.dart | 27 +++++++ .../pubspec.yaml | 27 +++++++ ...ject_name.snakeCase()}}_windows_test.dart} | 18 ++--- .../windows/.gitignore | 0 .../windows/CMakeLists.txt | 8 +-- .../{{project_name.snakeCase()}}_windows.h} | 2 +- ...ect_name.snakeCase()}}_windows_plugin.cpp} | 24 +++---- 249 files changed, 932 insertions(+), 932 deletions(-) delete mode 100644 brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android.yaml delete mode 100644 brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios.yaml delete mode 100644 brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux.yaml delete mode 100644 brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos.yaml delete mode 100644 brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface.yaml delete mode 100644 brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web.yaml delete mode 100644 brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows.yaml rename brick/__brick__/.github/workflows/{{{#snakeCase}}{{project_name}}{{/snakeCase}}.yaml => {{project_name.snakeCase()}}.yaml} (79%) create mode 100644 brick/__brick__/.github/workflows/{{project_name.snakeCase()}}_android.yaml create mode 100644 brick/__brick__/.github/workflows/{{project_name.snakeCase()}}_ios.yaml create mode 100644 brick/__brick__/.github/workflows/{{project_name.snakeCase()}}_linux.yaml create mode 100644 brick/__brick__/.github/workflows/{{project_name.snakeCase()}}_macos.yaml create mode 100644 brick/__brick__/.github/workflows/{{project_name.snakeCase()}}_platform_interface.yaml create mode 100644 brick/__brick__/.github/workflows/{{project_name.snakeCase()}}_web.yaml create mode 100644 brick/__brick__/.github/workflows/{{project_name.snakeCase()}}_windows.yaml delete mode 100644 brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/README.md delete mode 100644 brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/pubspec.yaml delete mode 100644 brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/android/settings.gradle delete mode 100644 brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android.dart delete mode 100644 brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/pubspec.yaml delete mode 100644 brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/ios/Classes/{{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin.h delete mode 100644 brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios.dart delete mode 100644 brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/pubspec.yaml delete mode 100644 brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/lib/src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux.dart delete mode 100644 brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/linux/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux_plugin.cc delete mode 100644 brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/pubspec.yaml delete mode 100644 brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos.dart delete mode 100644 brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/pubspec.yaml delete mode 100644 brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/README.md delete mode 100644 brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface.dart delete mode 100644 brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface_test.dart delete mode 100644 brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web.dart delete mode 100644 brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web/pubspec.yaml delete mode 100644 brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web_test.dart delete mode 100644 brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows.dart delete mode 100644 brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/pubspec.yaml rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/CHANGELOG.md (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/LICENSE (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/README.md (97%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/analysis_options.yaml (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/coverage_badge.svg (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/.gitignore (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/.metadata (100%) create mode 100644 brick/__brick__/{{project_name.snakeCase()}}/example/README.md rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/analysis_options.yaml (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/android/.gitignore (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/android/app/build.gradle (96%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/android/app/src/profile => {{project_name.snakeCase()}}/example/android/app/src/debug}/AndroidManifest.xml (84%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/android/app/src/main/AndroidManifest.xml (96%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/android/app/src/main/kotlin/com/example/{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}/example/android/app/src/main/kotlin/com/example/{{project_name.snakeCase()}}}/example/MainActivity.kt (64%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/android/app/src/main/res/drawable-v21/launch_background.xml (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/android/app/src/main/res/drawable/launch_background.xml (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/android/app/src/main/res/values-night/styles.xml (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/android/app/src/main/res/values/styles.xml (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/android/app/src/debug => {{project_name.snakeCase()}}/example/android/app/src/profile}/AndroidManifest.xml (82%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/android/build.gradle (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/android/gradle.properties (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/android/gradle/wrapper/gradle-wrapper.properties (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/android/settings.gradle (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/integration_test/app_test.dart (92%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/.gitignore (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Flutter/AppFrameworkInfo.plist (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Flutter/Debug.xcconfig (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Flutter/Release.xcconfig (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Podfile (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner.xcodeproj/project.pbxproj (99%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner.xcworkspace/contents.xcworkspacedata (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner/AppDelegate.swift (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner/Base.lproj/LaunchScreen.storyboard (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner/Base.lproj/Main.storyboard (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner/Info.plist (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/ios/Runner/Runner-Bridging-Header.h (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/lib/main.dart (89%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/linux/.gitignore (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/linux/CMakeLists.txt (98%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/linux/flutter/CMakeLists.txt (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/linux/flutter/generated_plugins.cmake (89%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/linux/main.cc (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/linux/my_application.cc (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/linux/my_application.h (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/macos/.gitignore (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/macos/Flutter/Flutter-Debug.xcconfig (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/macos/Flutter/Flutter-Release.xcconfig (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/macos/Podfile (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/macos/Runner.xcodeproj/project.pbxproj (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/macos/Runner.xcworkspace/contents.xcworkspacedata (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/macos/Runner/AppDelegate.swift (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/macos/Runner/Base.lproj/MainMenu.xib (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/macos/Runner/Configs/AppInfo.xcconfig (89%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/macos/Runner/Configs/Debug.xcconfig (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/macos/Runner/Configs/Release.xcconfig (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/macos/Runner/Configs/Warnings.xcconfig (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/macos/Runner/DebugProfile.entitlements (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/macos/Runner/Info.plist (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/macos/Runner/MainFlutterWindow.swift (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/macos/Runner/Release.entitlements (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/pubspec.yaml (70%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/test_driver/integration_test.dart (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/web/favicon.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/web/icons/Icon-192.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/web/icons/Icon-512.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/web/icons/Icon-maskable-192.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/web/icons/Icon-maskable-512.png (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/web/index.html (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/web/manifest.json (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/windows/.gitignore (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/windows/CMakeLists.txt (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/windows/flutter/CMakeLists.txt (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/windows/flutter/generated_plugins.cmake (89%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/windows/runner/CMakeLists.txt (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/windows/runner/Runner.rc (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/windows/runner/flutter_window.cpp (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/windows/runner/flutter_window.h (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/windows/runner/main.cpp (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/windows/runner/resource.h (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/windows/runner/resources/app_icon.ico (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/windows/runner/runner.exe.manifest (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/windows/runner/utils.cpp (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/windows/runner/utils.h (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/windows/runner/win32_window.cpp (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}} => {{project_name.snakeCase()}}}/example/windows/runner/win32_window.h (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}.dart => {{project_name.snakeCase()}}/lib/{{project_name.snakeCase()}}.dart} (62%) create mode 100644 brick/__brick__/{{project_name.snakeCase()}}/pubspec.yaml rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_test.dart => {{project_name.snakeCase()}}/test/{{project_name.snakeCase()}}_test.dart} (52%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_android => {{project_name.snakeCase()}}_android}/CHANGELOG.md (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_android => {{project_name.snakeCase()}}_android}/LICENSE (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios => {{project_name.snakeCase()}}_android}/README.md (74%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_android => {{project_name.snakeCase()}}_android}/android/.gitignore (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_android => {{project_name.snakeCase()}}_android}/android/build.gradle (95%) create mode 100644 brick/__brick__/{{project_name.snakeCase()}}_android/android/settings.gradle rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_android => {{project_name.snakeCase()}}_android}/android/src/main/AndroidManifest.xml (61%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/android/src/main/kotlin/{{#pathCase}}{{org_name}}{{/pathCase}}/{{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin.kt => {{project_name.snakeCase()}}_android/android/src/main/kotlin/{{org_name.pathCase()}}/{{project_name.pascalCase()}}Plugin.kt} (84%) create mode 100644 brick/__brick__/{{project_name.snakeCase()}}_android/lib/{{project_name.snakeCase()}}_android.dart create mode 100644 brick/__brick__/{{project_name.snakeCase()}}_android/pubspec.yaml rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android_test.dart => {{project_name.snakeCase()}}_android/test/{{project_name.snakeCase()}}_android_test.dart} (51%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios => {{project_name.snakeCase()}}_ios}/CHANGELOG.md (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios => {{project_name.snakeCase()}}_ios}/LICENSE (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_android => {{project_name.snakeCase()}}_ios}/README.md (73%) create mode 100644 brick/__brick__/{{project_name.snakeCase()}}_ios/ios/Classes/{{project_name.pascalCase()}}Plugin.h rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/ios/Classes/{{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin.m => {{project_name.snakeCase()}}_ios/ios/Classes/{{project_name.pascalCase()}}Plugin.m} (64%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/ios/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios.podspec => {{project_name.snakeCase()}}_ios/ios/{{project_name.snakeCase()}}_ios.podspec} (69%) create mode 100644 brick/__brick__/{{project_name.snakeCase()}}_ios/lib/{{project_name.snakeCase()}}_ios.dart create mode 100644 brick/__brick__/{{project_name.snakeCase()}}_ios/pubspec.yaml rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios_test.dart => {{project_name.snakeCase()}}_ios/test/{{project_name.snakeCase()}}_ios_test.dart} (51%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux => {{project_name.snakeCase()}}_linux}/.gitignore (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux => {{project_name.snakeCase()}}_linux}/CHANGELOG.md (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux => {{project_name.snakeCase()}}_linux}/LICENSE (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_web => {{project_name.snakeCase()}}_linux}/README.md (74%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux => {{project_name.snakeCase()}}_linux}/analysis_options.yaml (100%) create mode 100644 brick/__brick__/{{project_name.snakeCase()}}_linux/lib/src/{{project_name.snakeCase()}}_linux.dart rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux.dart => {{project_name.snakeCase()}}_linux/lib/{{project_name.snakeCase()}}_linux.dart} (76%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux => {{project_name.snakeCase()}}_linux}/linux/.gitignore (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux => {{project_name.snakeCase()}}_linux}/linux/CMakeLists.txt (81%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/linux/include/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/{{#snakeCase}}{{project_name}}{{/snakeCase}}_plugin.h => {{project_name.snakeCase()}}_linux/linux/include/{{project_name.snakeCase()}}_linux/{{project_name.snakeCase()}}_plugin.h} (55%) create mode 100644 brick/__brick__/{{project_name.snakeCase()}}_linux/linux/{{project_name.snakeCase()}}_linux_plugin.cc create mode 100644 brick/__brick__/{{project_name.snakeCase()}}_linux/pubspec.yaml rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux_test.dart => {{project_name.snakeCase()}}_linux/test/{{project_name.snakeCase()}}_linux_test.dart} (51%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos => {{project_name.snakeCase()}}_macos}/.gitignore (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos => {{project_name.snakeCase()}}_macos}/CHANGELOG.md (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos => {{project_name.snakeCase()}}_macos}/LICENSE (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux => {{project_name.snakeCase()}}_macos}/README.md (73%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos => {{project_name.snakeCase()}}_macos}/analysis_options.yaml (100%) create mode 100644 brick/__brick__/{{project_name.snakeCase()}}_macos/lib/{{project_name.snakeCase()}}_macos.dart rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/macos/Classes/{{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin.swift => {{project_name.snakeCase()}}_macos/macos/Classes/{{project_name.pascalCase()}}Plugin.swift} (67%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/macos/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos.podspec => {{project_name.snakeCase()}}_macos/macos/{{project_name.snakeCase()}}_macos.podspec} (67%) create mode 100644 brick/__brick__/{{project_name.snakeCase()}}_macos/pubspec.yaml rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos_test.dart => {{project_name.snakeCase()}}_macos/test/{{project_name.snakeCase()}}_macos_test.dart} (51%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface => {{project_name.snakeCase()}}_platform_interface}/CHANGELOG.md (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface => {{project_name.snakeCase()}}_platform_interface}/LICENSE (100%) create mode 100644 brick/__brick__/{{project_name.snakeCase()}}_platform_interface/README.md rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface => {{project_name.snakeCase()}}_platform_interface}/analysis_options.yaml (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/lib/src/method_channel_{{#snakeCase}}{{project_name}}{{/snakeCase}}.dart => {{project_name.snakeCase()}}_platform_interface/lib/src/method_channel_{{project_name.snakeCase()}}.dart} (52%) create mode 100644 brick/__brick__/{{project_name.snakeCase()}}_platform_interface/lib/{{project_name.snakeCase()}}_platform_interface.dart rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface => {{project_name.snakeCase()}}_platform_interface}/pubspec.yaml (58%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/test/src/method_channel_{{#snakeCase}}{{project_name}}{{/snakeCase}}_test.dart => {{project_name.snakeCase()}}_platform_interface/test/src/method_channel_{{project_name.snakeCase()}}_test.dart} (62%) create mode 100644 brick/__brick__/{{project_name.snakeCase()}}_platform_interface/test/{{project_name.snakeCase()}}_platform_interface_test.dart rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_web => {{project_name.snakeCase()}}_web}/.gitignore (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_web => {{project_name.snakeCase()}}_web}/CHANGELOG.md (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_web => {{project_name.snakeCase()}}_web}/LICENSE (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos => {{project_name.snakeCase()}}_web}/README.md (73%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_web => {{project_name.snakeCase()}}_web}/analysis_options.yaml (100%) create mode 100644 brick/__brick__/{{project_name.snakeCase()}}_web/lib/{{project_name.snakeCase()}}_web.dart create mode 100644 brick/__brick__/{{project_name.snakeCase()}}_web/pubspec.yaml create mode 100644 brick/__brick__/{{project_name.snakeCase()}}_web/test/{{project_name.snakeCase()}}_web_test.dart rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows => {{project_name.snakeCase()}}_windows}/.gitignore (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows => {{project_name.snakeCase()}}_windows}/.metadata (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows => {{project_name.snakeCase()}}_windows}/CHANGELOG.md (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows => {{project_name.snakeCase()}}_windows}/LICENSE (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows => {{project_name.snakeCase()}}_windows}/README.md (73%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows => {{project_name.snakeCase()}}_windows}/analysis_options.yaml (100%) create mode 100644 brick/__brick__/{{project_name.snakeCase()}}_windows/lib/{{project_name.snakeCase()}}_windows.dart create mode 100644 brick/__brick__/{{project_name.snakeCase()}}_windows/pubspec.yaml rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows_test.dart => {{project_name.snakeCase()}}_windows/test/{{project_name.snakeCase()}}_windows_test.dart} (51%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows => {{project_name.snakeCase()}}_windows}/windows/.gitignore (100%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows => {{project_name.snakeCase()}}_windows}/windows/CMakeLists.txt (65%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/windows/include/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows.h => {{project_name.snakeCase()}}_windows/windows/include/{{project_name.snakeCase()}}_windows/{{project_name.snakeCase()}}_windows.h} (82%) rename brick/__brick__/{{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/windows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows_plugin.cpp => {{project_name.snakeCase()}}_windows/windows/{{project_name.snakeCase()}}_windows_plugin.cpp} (59%) diff --git a/brick/__brick__/.github/workflows/my_plugin.yaml b/brick/__brick__/.github/workflows/my_plugin.yaml index fd0a188..a9c93f8 100644 --- a/brick/__brick__/.github/workflows/my_plugin.yaml +++ b/brick/__brick__/.github/workflows/my_plugin.yaml @@ -1,16 +1,16 @@ -name: {{#snakeCase}}{{project_name}}{{/snakeCase}} +name: {{project_name.snakeCase()}} on: pull_request: paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}/**" + - ".github/workflows/{{project_name.snakeCase()}}.yaml" + - "src/{{project_name.snakeCase()}}/**" push: branches: - main paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}/**" + - ".github/workflows/{{project_name.snakeCase()}}.yaml" + - "src/{{project_name.snakeCase()}}/**" jobs: build: @@ -18,14 +18,14 @@ jobs: with: flutter_channel: stable flutter_version: 2.10.1 - working_directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}} + working_directory: src/{{project_name.snakeCase()}} android: runs-on: macos-10.15 defaults: run: - working-directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example + working-directory: src/{{project_name.snakeCase()}}/example steps: - uses: actions/checkout@v2 @@ -63,14 +63,14 @@ jobs: with: api-level: 29 script: flutter test integration_test - working-directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example + working-directory: src/{{project_name.snakeCase()}}/example ios: runs-on: macos-10.15 defaults: run: - working-directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example + working-directory: src/{{project_name.snakeCase()}}/example steps: - uses: actions/checkout@v2 @@ -91,7 +91,7 @@ jobs: defaults: run: - working-directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example + working-directory: src/{{project_name.snakeCase()}}/example steps: - uses: actions/checkout@v2 @@ -117,7 +117,7 @@ jobs: defaults: run: - working-directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example + working-directory: src/{{project_name.snakeCase()}}/example steps: - uses: actions/checkout@v2 @@ -138,7 +138,7 @@ jobs: defaults: run: - working-directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example + working-directory: src/{{project_name.snakeCase()}}/example steps: - uses: actions/checkout@v2 @@ -164,7 +164,7 @@ jobs: defaults: run: - working-directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example + working-directory: src/{{project_name.snakeCase()}}/example steps: - uses: actions/checkout@v2 diff --git a/brick/__brick__/.github/workflows/my_plugin_android.yaml b/brick/__brick__/.github/workflows/my_plugin_android.yaml index e49d947..52a64dd 100644 --- a/brick/__brick__/.github/workflows/my_plugin_android.yaml +++ b/brick/__brick__/.github/workflows/my_plugin_android.yaml @@ -1,16 +1,16 @@ -name: {{#snakeCase}}{{project_name}}{{/snakeCase}}_android +name: {{project_name.snakeCase()}}_android on: pull_request: paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/**" + - ".github/workflows/{{project_name.snakeCase()}}_android.yaml" + - "src/{{project_name.snakeCase()}}_android/**" push: branches: - main paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/**" + - ".github/workflows/{{project_name.snakeCase()}}_android.yaml" + - "src/{{project_name.snakeCase()}}_android/**" jobs: build: @@ -18,4 +18,4 @@ jobs: with: flutter_channel: stable flutter_version: 2.10.1 - working_directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android + working_directory: src/{{project_name.snakeCase()}}_android diff --git a/brick/__brick__/.github/workflows/my_plugin_ios.yaml b/brick/__brick__/.github/workflows/my_plugin_ios.yaml index 169e9e7..d865aaa 100644 --- a/brick/__brick__/.github/workflows/my_plugin_ios.yaml +++ b/brick/__brick__/.github/workflows/my_plugin_ios.yaml @@ -1,16 +1,16 @@ -name: {{#snakeCase}}{{project_name}}{{/snakeCase}}_ios +name: {{project_name.snakeCase()}}_ios on: pull_request: paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/**" + - ".github/workflows/{{project_name.snakeCase()}}_ios.yaml" + - "src/{{project_name.snakeCase()}}_ios/**" push: branches: - main paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/**" + - ".github/workflows/{{project_name.snakeCase()}}_ios.yaml" + - "src/{{project_name.snakeCase()}}_ios/**" jobs: build: @@ -18,4 +18,4 @@ jobs: with: flutter_channel: stable flutter_version: 2.10.1 - working_directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios + working_directory: src/{{project_name.snakeCase()}}_ios diff --git a/brick/__brick__/.github/workflows/my_plugin_linux.yaml b/brick/__brick__/.github/workflows/my_plugin_linux.yaml index 60971e4..4ee843c 100644 --- a/brick/__brick__/.github/workflows/my_plugin_linux.yaml +++ b/brick/__brick__/.github/workflows/my_plugin_linux.yaml @@ -1,16 +1,16 @@ -name: {{#snakeCase}}{{project_name}}{{/snakeCase}}_linux +name: {{project_name.snakeCase()}}_linux on: pull_request: paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/**" + - ".github/workflows/{{project_name.snakeCase()}}_linux.yaml" + - "src/{{project_name.snakeCase()}}_linux/**" push: branches: - main paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/**" + - ".github/workflows/{{project_name.snakeCase()}}_linux.yaml" + - "src/{{project_name.snakeCase()}}_linux/**" jobs: build: @@ -18,4 +18,4 @@ jobs: with: flutter_channel: stable flutter_version: 2.10.1 - working_directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux + working_directory: src/{{project_name.snakeCase()}}_linux diff --git a/brick/__brick__/.github/workflows/my_plugin_macos.yaml b/brick/__brick__/.github/workflows/my_plugin_macos.yaml index 5092cea..ecfabc0 100644 --- a/brick/__brick__/.github/workflows/my_plugin_macos.yaml +++ b/brick/__brick__/.github/workflows/my_plugin_macos.yaml @@ -1,16 +1,16 @@ -name: {{#snakeCase}}{{project_name}}{{/snakeCase}}_macos +name: {{project_name.snakeCase()}}_macos on: pull_request: paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/**" + - ".github/workflows/{{project_name.snakeCase()}}_macos.yaml" + - "src/{{project_name.snakeCase()}}_macos/**" push: branches: - main paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/**" + - ".github/workflows/{{project_name.snakeCase()}}_macos.yaml" + - "src/{{project_name.snakeCase()}}_macos/**" jobs: build: @@ -18,4 +18,4 @@ jobs: with: flutter_channel: stable flutter_version: 2.10.1 - working_directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos + working_directory: src/{{project_name.snakeCase()}}_macos diff --git a/brick/__brick__/.github/workflows/my_plugin_platform_interface.yaml b/brick/__brick__/.github/workflows/my_plugin_platform_interface.yaml index 0386ea0..05e9291 100644 --- a/brick/__brick__/.github/workflows/my_plugin_platform_interface.yaml +++ b/brick/__brick__/.github/workflows/my_plugin_platform_interface.yaml @@ -1,16 +1,16 @@ -name: {{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface +name: {{project_name.snakeCase()}}_platform_interface on: pull_request: paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/**" + - ".github/workflows/{{project_name.snakeCase()}}_platform_interface.yaml" + - "src/{{project_name.snakeCase()}}_platform_interface/**" push: branches: - main paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/**" + - ".github/workflows/{{project_name.snakeCase()}}_platform_interface.yaml" + - "src/{{project_name.snakeCase()}}_platform_interface/**" jobs: build: @@ -18,4 +18,4 @@ jobs: with: flutter_channel: stable flutter_version: 2.10.1 - working_directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface + working_directory: src/{{project_name.snakeCase()}}_platform_interface diff --git a/brick/__brick__/.github/workflows/my_plugin_web.yaml b/brick/__brick__/.github/workflows/my_plugin_web.yaml index dd9a564..4c7bab7 100644 --- a/brick/__brick__/.github/workflows/my_plugin_web.yaml +++ b/brick/__brick__/.github/workflows/my_plugin_web.yaml @@ -1,16 +1,16 @@ -name: {{#snakeCase}}{{project_name}}{{/snakeCase}}_web +name: {{project_name.snakeCase()}}_web on: pull_request: paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web/**" + - ".github/workflows/{{project_name.snakeCase()}}_web.yaml" + - "src/{{project_name.snakeCase()}}_web/**" push: branches: - main paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web/**" + - ".github/workflows/{{project_name.snakeCase()}}_web.yaml" + - "src/{{project_name.snakeCase()}}_web/**" jobs: build: @@ -18,4 +18,4 @@ jobs: with: flutter_channel: stable flutter_version: 2.10.1 - working_directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web + working_directory: src/{{project_name.snakeCase()}}_web diff --git a/brick/__brick__/.github/workflows/my_plugin_windows.yaml b/brick/__brick__/.github/workflows/my_plugin_windows.yaml index 4e06d49..e9aaebe 100644 --- a/brick/__brick__/.github/workflows/my_plugin_windows.yaml +++ b/brick/__brick__/.github/workflows/my_plugin_windows.yaml @@ -1,16 +1,16 @@ -name: {{#snakeCase}}{{project_name}}{{/snakeCase}}_windows +name: {{project_name.snakeCase()}}_windows on: pull_request: paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/**" + - ".github/workflows/{{project_name.snakeCase()}}_windows.yaml" + - "src/{{project_name.snakeCase()}}_windows/**" push: branches: - main paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/**" + - ".github/workflows/{{project_name.snakeCase()}}_windows.yaml" + - "src/{{project_name.snakeCase()}}_windows/**" jobs: build: @@ -18,4 +18,4 @@ jobs: with: flutter_channel: stable flutter_version: 2.10.1 - working_directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows + working_directory: src/{{project_name.snakeCase()}}_windows diff --git a/brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android.yaml b/brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android.yaml deleted file mode 100644 index e49d947..0000000 --- a/brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android.yaml +++ /dev/null @@ -1,21 +0,0 @@ -name: {{#snakeCase}}{{project_name}}{{/snakeCase}}_android - -on: - pull_request: - paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/**" - push: - branches: - - main - paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/**" - -jobs: - build: - uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 - with: - flutter_channel: stable - flutter_version: 2.10.1 - working_directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android diff --git a/brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios.yaml b/brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios.yaml deleted file mode 100644 index 169e9e7..0000000 --- a/brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios.yaml +++ /dev/null @@ -1,21 +0,0 @@ -name: {{#snakeCase}}{{project_name}}{{/snakeCase}}_ios - -on: - pull_request: - paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/**" - push: - branches: - - main - paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/**" - -jobs: - build: - uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 - with: - flutter_channel: stable - flutter_version: 2.10.1 - working_directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios diff --git a/brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux.yaml b/brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux.yaml deleted file mode 100644 index 60971e4..0000000 --- a/brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux.yaml +++ /dev/null @@ -1,21 +0,0 @@ -name: {{#snakeCase}}{{project_name}}{{/snakeCase}}_linux - -on: - pull_request: - paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/**" - push: - branches: - - main - paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/**" - -jobs: - build: - uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 - with: - flutter_channel: stable - flutter_version: 2.10.1 - working_directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux diff --git a/brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos.yaml b/brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos.yaml deleted file mode 100644 index 5092cea..0000000 --- a/brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos.yaml +++ /dev/null @@ -1,21 +0,0 @@ -name: {{#snakeCase}}{{project_name}}{{/snakeCase}}_macos - -on: - pull_request: - paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/**" - push: - branches: - - main - paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/**" - -jobs: - build: - uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 - with: - flutter_channel: stable - flutter_version: 2.10.1 - working_directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos diff --git a/brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface.yaml b/brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface.yaml deleted file mode 100644 index 0386ea0..0000000 --- a/brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface.yaml +++ /dev/null @@ -1,21 +0,0 @@ -name: {{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface - -on: - pull_request: - paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/**" - push: - branches: - - main - paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/**" - -jobs: - build: - uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 - with: - flutter_channel: stable - flutter_version: 2.10.1 - working_directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface diff --git a/brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web.yaml b/brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web.yaml deleted file mode 100644 index dd9a564..0000000 --- a/brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web.yaml +++ /dev/null @@ -1,21 +0,0 @@ -name: {{#snakeCase}}{{project_name}}{{/snakeCase}}_web - -on: - pull_request: - paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web/**" - push: - branches: - - main - paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web/**" - -jobs: - build: - uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 - with: - flutter_channel: stable - flutter_version: 2.10.1 - working_directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web diff --git a/brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows.yaml b/brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows.yaml deleted file mode 100644 index 4e06d49..0000000 --- a/brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows.yaml +++ /dev/null @@ -1,21 +0,0 @@ -name: {{#snakeCase}}{{project_name}}{{/snakeCase}}_windows - -on: - pull_request: - paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/**" - push: - branches: - - main - paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/**" - -jobs: - build: - uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 - with: - flutter_channel: stable - flutter_version: 2.10.1 - working_directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows diff --git a/brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}.yaml b/brick/__brick__/.github/workflows/{{project_name.snakeCase()}}.yaml similarity index 79% rename from brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}.yaml rename to brick/__brick__/.github/workflows/{{project_name.snakeCase()}}.yaml index fd0a188..a9c93f8 100644 --- a/brick/__brick__/.github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}.yaml +++ b/brick/__brick__/.github/workflows/{{project_name.snakeCase()}}.yaml @@ -1,16 +1,16 @@ -name: {{#snakeCase}}{{project_name}}{{/snakeCase}} +name: {{project_name.snakeCase()}} on: pull_request: paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}/**" + - ".github/workflows/{{project_name.snakeCase()}}.yaml" + - "src/{{project_name.snakeCase()}}/**" push: branches: - main paths: - - ".github/workflows/{{#snakeCase}}{{project_name}}{{/snakeCase}}.yaml" - - "src/{{#snakeCase}}{{project_name}}{{/snakeCase}}/**" + - ".github/workflows/{{project_name.snakeCase()}}.yaml" + - "src/{{project_name.snakeCase()}}/**" jobs: build: @@ -18,14 +18,14 @@ jobs: with: flutter_channel: stable flutter_version: 2.10.1 - working_directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}} + working_directory: src/{{project_name.snakeCase()}} android: runs-on: macos-10.15 defaults: run: - working-directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example + working-directory: src/{{project_name.snakeCase()}}/example steps: - uses: actions/checkout@v2 @@ -63,14 +63,14 @@ jobs: with: api-level: 29 script: flutter test integration_test - working-directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example + working-directory: src/{{project_name.snakeCase()}}/example ios: runs-on: macos-10.15 defaults: run: - working-directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example + working-directory: src/{{project_name.snakeCase()}}/example steps: - uses: actions/checkout@v2 @@ -91,7 +91,7 @@ jobs: defaults: run: - working-directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example + working-directory: src/{{project_name.snakeCase()}}/example steps: - uses: actions/checkout@v2 @@ -117,7 +117,7 @@ jobs: defaults: run: - working-directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example + working-directory: src/{{project_name.snakeCase()}}/example steps: - uses: actions/checkout@v2 @@ -138,7 +138,7 @@ jobs: defaults: run: - working-directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example + working-directory: src/{{project_name.snakeCase()}}/example steps: - uses: actions/checkout@v2 @@ -164,7 +164,7 @@ jobs: defaults: run: - working-directory: src/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example + working-directory: src/{{project_name.snakeCase()}}/example steps: - uses: actions/checkout@v2 diff --git a/brick/__brick__/.github/workflows/{{project_name.snakeCase()}}_android.yaml b/brick/__brick__/.github/workflows/{{project_name.snakeCase()}}_android.yaml new file mode 100644 index 0000000..52a64dd --- /dev/null +++ b/brick/__brick__/.github/workflows/{{project_name.snakeCase()}}_android.yaml @@ -0,0 +1,21 @@ +name: {{project_name.snakeCase()}}_android + +on: + pull_request: + paths: + - ".github/workflows/{{project_name.snakeCase()}}_android.yaml" + - "src/{{project_name.snakeCase()}}_android/**" + push: + branches: + - main + paths: + - ".github/workflows/{{project_name.snakeCase()}}_android.yaml" + - "src/{{project_name.snakeCase()}}_android/**" + +jobs: + build: + uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 + with: + flutter_channel: stable + flutter_version: 2.10.1 + working_directory: src/{{project_name.snakeCase()}}_android diff --git a/brick/__brick__/.github/workflows/{{project_name.snakeCase()}}_ios.yaml b/brick/__brick__/.github/workflows/{{project_name.snakeCase()}}_ios.yaml new file mode 100644 index 0000000..d865aaa --- /dev/null +++ b/brick/__brick__/.github/workflows/{{project_name.snakeCase()}}_ios.yaml @@ -0,0 +1,21 @@ +name: {{project_name.snakeCase()}}_ios + +on: + pull_request: + paths: + - ".github/workflows/{{project_name.snakeCase()}}_ios.yaml" + - "src/{{project_name.snakeCase()}}_ios/**" + push: + branches: + - main + paths: + - ".github/workflows/{{project_name.snakeCase()}}_ios.yaml" + - "src/{{project_name.snakeCase()}}_ios/**" + +jobs: + build: + uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 + with: + flutter_channel: stable + flutter_version: 2.10.1 + working_directory: src/{{project_name.snakeCase()}}_ios diff --git a/brick/__brick__/.github/workflows/{{project_name.snakeCase()}}_linux.yaml b/brick/__brick__/.github/workflows/{{project_name.snakeCase()}}_linux.yaml new file mode 100644 index 0000000..4ee843c --- /dev/null +++ b/brick/__brick__/.github/workflows/{{project_name.snakeCase()}}_linux.yaml @@ -0,0 +1,21 @@ +name: {{project_name.snakeCase()}}_linux + +on: + pull_request: + paths: + - ".github/workflows/{{project_name.snakeCase()}}_linux.yaml" + - "src/{{project_name.snakeCase()}}_linux/**" + push: + branches: + - main + paths: + - ".github/workflows/{{project_name.snakeCase()}}_linux.yaml" + - "src/{{project_name.snakeCase()}}_linux/**" + +jobs: + build: + uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 + with: + flutter_channel: stable + flutter_version: 2.10.1 + working_directory: src/{{project_name.snakeCase()}}_linux diff --git a/brick/__brick__/.github/workflows/{{project_name.snakeCase()}}_macos.yaml b/brick/__brick__/.github/workflows/{{project_name.snakeCase()}}_macos.yaml new file mode 100644 index 0000000..ecfabc0 --- /dev/null +++ b/brick/__brick__/.github/workflows/{{project_name.snakeCase()}}_macos.yaml @@ -0,0 +1,21 @@ +name: {{project_name.snakeCase()}}_macos + +on: + pull_request: + paths: + - ".github/workflows/{{project_name.snakeCase()}}_macos.yaml" + - "src/{{project_name.snakeCase()}}_macos/**" + push: + branches: + - main + paths: + - ".github/workflows/{{project_name.snakeCase()}}_macos.yaml" + - "src/{{project_name.snakeCase()}}_macos/**" + +jobs: + build: + uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 + with: + flutter_channel: stable + flutter_version: 2.10.1 + working_directory: src/{{project_name.snakeCase()}}_macos diff --git a/brick/__brick__/.github/workflows/{{project_name.snakeCase()}}_platform_interface.yaml b/brick/__brick__/.github/workflows/{{project_name.snakeCase()}}_platform_interface.yaml new file mode 100644 index 0000000..05e9291 --- /dev/null +++ b/brick/__brick__/.github/workflows/{{project_name.snakeCase()}}_platform_interface.yaml @@ -0,0 +1,21 @@ +name: {{project_name.snakeCase()}}_platform_interface + +on: + pull_request: + paths: + - ".github/workflows/{{project_name.snakeCase()}}_platform_interface.yaml" + - "src/{{project_name.snakeCase()}}_platform_interface/**" + push: + branches: + - main + paths: + - ".github/workflows/{{project_name.snakeCase()}}_platform_interface.yaml" + - "src/{{project_name.snakeCase()}}_platform_interface/**" + +jobs: + build: + uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 + with: + flutter_channel: stable + flutter_version: 2.10.1 + working_directory: src/{{project_name.snakeCase()}}_platform_interface diff --git a/brick/__brick__/.github/workflows/{{project_name.snakeCase()}}_web.yaml b/brick/__brick__/.github/workflows/{{project_name.snakeCase()}}_web.yaml new file mode 100644 index 0000000..4c7bab7 --- /dev/null +++ b/brick/__brick__/.github/workflows/{{project_name.snakeCase()}}_web.yaml @@ -0,0 +1,21 @@ +name: {{project_name.snakeCase()}}_web + +on: + pull_request: + paths: + - ".github/workflows/{{project_name.snakeCase()}}_web.yaml" + - "src/{{project_name.snakeCase()}}_web/**" + push: + branches: + - main + paths: + - ".github/workflows/{{project_name.snakeCase()}}_web.yaml" + - "src/{{project_name.snakeCase()}}_web/**" + +jobs: + build: + uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 + with: + flutter_channel: stable + flutter_version: 2.10.1 + working_directory: src/{{project_name.snakeCase()}}_web diff --git a/brick/__brick__/.github/workflows/{{project_name.snakeCase()}}_windows.yaml b/brick/__brick__/.github/workflows/{{project_name.snakeCase()}}_windows.yaml new file mode 100644 index 0000000..e9aaebe --- /dev/null +++ b/brick/__brick__/.github/workflows/{{project_name.snakeCase()}}_windows.yaml @@ -0,0 +1,21 @@ +name: {{project_name.snakeCase()}}_windows + +on: + pull_request: + paths: + - ".github/workflows/{{project_name.snakeCase()}}_windows.yaml" + - "src/{{project_name.snakeCase()}}_windows/**" + push: + branches: + - main + paths: + - ".github/workflows/{{project_name.snakeCase()}}_windows.yaml" + - "src/{{project_name.snakeCase()}}_windows/**" + +jobs: + build: + uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 + with: + flutter_channel: stable + flutter_version: 2.10.1 + working_directory: src/{{project_name.snakeCase()}}_windows diff --git a/brick/__brick__/README.md b/brick/__brick__/README.md index 21db0bb..7c2e1dc 100644 --- a/brick/__brick__/README.md +++ b/brick/__brick__/README.md @@ -1,4 +1,4 @@ -# {{#snakeCase}}{{project_name}}{{/snakeCase}} +# {{project_name.snakeCase()}} [![Very Good Ventures][logo_white]][very_good_ventures_link_dark] [![Very Good Ventures][logo_black]][very_good_ventures_link_light] diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/README.md b/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/README.md deleted file mode 100644 index 9c712c9..0000000 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# {{#snakeCase}}{{project_name}}{{/snakeCase}}_example - -Demonstrates how to use the {{#snakeCase}}{{project_name}}{{/snakeCase}} plugin. diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/pubspec.yaml b/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/pubspec.yaml deleted file mode 100644 index 95ba279..0000000 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/pubspec.yaml +++ /dev/null @@ -1,49 +0,0 @@ -name: {{#snakeCase}}{{project_name}}{{/snakeCase}} -description: {{{description}}} -version: 0.1.0+1 -publish_to: none - -environment: - sdk: ">=2.16.0 <3.0.0" - flutter: ">=2.10.0" - -flutter: - plugin: - platforms: - android: - default_package: {{#snakeCase}}{{project_name}}{{/snakeCase}}_android - ios: - default_package: {{#snakeCase}}{{project_name}}{{/snakeCase}}_ios - macos: - default_package: {{#snakeCase}}{{project_name}}{{/snakeCase}}_macos - linux: - default_package: {{#snakeCase}}{{project_name}}{{/snakeCase}}_linux - web: - default_package: {{#snakeCase}}{{project_name}}{{/snakeCase}}_web - windows: - default_package: {{#snakeCase}}{{project_name}}{{/snakeCase}}_windows - -dependencies: - flutter: - sdk: flutter - {{#snakeCase}}{{project_name}}{{/snakeCase}}_android: - path: ../{{#snakeCase}}{{project_name}}{{/snakeCase}}_android - {{#snakeCase}}{{project_name}}{{/snakeCase}}_ios: - path: ../{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios - {{#snakeCase}}{{project_name}}{{/snakeCase}}_linux: - path: ../{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux - {{#snakeCase}}{{project_name}}{{/snakeCase}}_macos: - path: ../{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos - {{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface: - path: ../{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface - {{#snakeCase}}{{project_name}}{{/snakeCase}}_web: - path: ../{{#snakeCase}}{{project_name}}{{/snakeCase}}_web - {{#snakeCase}}{{project_name}}{{/snakeCase}}_windows: - path: ../{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows - -dev_dependencies: - flutter_test: - sdk: flutter - mocktail: ^0.2.0 - plugin_platform_interface: ^2.0.0 - very_good_analysis: ^2.4.0 diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/android/settings.gradle b/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/android/settings.gradle deleted file mode 100644 index da4e902..0000000 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/android/settings.gradle +++ /dev/null @@ -1 +0,0 @@ -rootProject.name = '{{#snakeCase}}{{project_name}}{{/snakeCase}}_android' diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android.dart b/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android.dart deleted file mode 100644 index b674999..0000000 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android.dart +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) 2022, Very Good Ventures -// https://verygood.ventures -// -// Use of this source code is governed by an MIT-style -// license that can be found in the LICENSE file or at -// https://opensource.org/licenses/MIT. - -import 'package:flutter/foundation.dart'; -import 'package:flutter/services.dart'; -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface.dart'; - -/// The Android implementation of [{{#pascalCase}}{{project_name}}{{/pascalCase}}Platform]. -class {{#pascalCase}}{{project_name}}{{/pascalCase}}Android extends {{#pascalCase}}{{project_name}}{{/pascalCase}}Platform { - /// The method channel used to interact with the native platform. - @visibleForTesting - final methodChannel = const MethodChannel('{{#snakeCase}}{{project_name}}{{/snakeCase}}_android'); - - /// Registers this class as the default instance of [{{#pascalCase}}{{project_name}}{{/pascalCase}}Platform] - static void registerWith() { - {{#pascalCase}}{{project_name}}{{/pascalCase}}Platform.instance = {{#pascalCase}}{{project_name}}{{/pascalCase}}Android(); - } - - @override - Future getPlatformName() { - return methodChannel.invokeMethod('getPlatformName'); - } -} diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/pubspec.yaml b/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/pubspec.yaml deleted file mode 100644 index d7f61c3..0000000 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/pubspec.yaml +++ /dev/null @@ -1,29 +0,0 @@ -name: {{#snakeCase}}{{project_name}}{{/snakeCase}}_android -description: Android implementation of the {{#snakeCase}}{{project_name}}{{/snakeCase}} plugin -version: 0.1.0+1 -publish_to: none - -environment: - sdk: ">=2.16.0 <3.0.0" - flutter: ">=2.10.0" - -flutter: - plugin: - implements: {{#snakeCase}}{{project_name}}{{/snakeCase}} - platforms: - android: - package: {{#dotCase}}{{org_name}}{{/dotCase}} - pluginClass: {{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin - dartPluginClass: {{#pascalCase}}{{project_name}}{{/pascalCase}}Android - -dependencies: - flutter: - sdk: flutter - {{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface: - path: ../{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface - -dev_dependencies: - flutter_test: - sdk: flutter - plugin_platform_interface: ^2.0.0 - very_good_analysis: ^2.4.0 diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/ios/Classes/{{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin.h b/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/ios/Classes/{{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin.h deleted file mode 100644 index d4905c4..0000000 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/ios/Classes/{{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin.h +++ /dev/null @@ -1,4 +0,0 @@ -#import - -@interface {{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin : NSObject -@end diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios.dart b/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios.dart deleted file mode 100644 index 1f26826..0000000 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios.dart +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) 2022, Very Good Ventures -// https://verygood.ventures -// -// Use of this source code is governed by an MIT-style -// license that can be found in the LICENSE file or at -// https://opensource.org/licenses/MIT. - -import 'package:flutter/foundation.dart'; -import 'package:flutter/services.dart'; -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface.dart'; - -/// The iOS implementation of [{{#pascalCase}}{{project_name}}{{/pascalCase}}Platform]. -class {{#pascalCase}}{{project_name}}{{/pascalCase}}IOS extends {{#pascalCase}}{{project_name}}{{/pascalCase}}Platform { - /// The method channel used to interact with the native platform. - @visibleForTesting - final methodChannel = const MethodChannel('{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios'); - - /// Registers this class as the default instance of [{{#pascalCase}}{{project_name}}{{/pascalCase}}Platform] - static void registerWith() { - {{#pascalCase}}{{project_name}}{{/pascalCase}}Platform.instance = {{#pascalCase}}{{project_name}}{{/pascalCase}}IOS(); - } - - @override - Future getPlatformName() { - return methodChannel.invokeMethod('getPlatformName'); - } -} diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/pubspec.yaml b/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/pubspec.yaml deleted file mode 100644 index 61ec61f..0000000 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/pubspec.yaml +++ /dev/null @@ -1,28 +0,0 @@ -name: {{#snakeCase}}{{project_name}}{{/snakeCase}}_ios -description: iOS implementation of the {{#snakeCase}}{{project_name}}{{/snakeCase}} plugin -version: 0.1.0+1 -publish_to: none - -environment: - sdk: ">=2.16.0 <3.0.0" - flutter: ">=2.10.0" - -flutter: - plugin: - implements: {{#snakeCase}}{{project_name}}{{/snakeCase}} - platforms: - ios: - pluginClass: {{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin - dartPluginClass: {{#pascalCase}}{{project_name}}{{/pascalCase}}IOS - -dependencies: - flutter: - sdk: flutter - {{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface: - path: ../{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface - -dev_dependencies: - flutter_test: - sdk: flutter - plugin_platform_interface: ^2.0.0 - very_good_analysis: ^2.4.0 diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/lib/src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux.dart b/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/lib/src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux.dart deleted file mode 100644 index 1d0907e..0000000 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/lib/src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux.dart +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) 2022, Very Good Ventures -// https://verygood.ventures -// -// Use of this source code is governed by an MIT-style -// license that can be found in the LICENSE file or at -// https://opensource.org/licenses/MIT. - -import 'package:flutter/foundation.dart'; -import 'package:flutter/services.dart'; -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface.dart'; - -/// The Linux implementation of [{{#pascalCase}}{{project_name}}{{/pascalCase}}Platform]. -class {{#pascalCase}}{{project_name}}{{/pascalCase}}Linux extends {{#pascalCase}}{{project_name}}{{/pascalCase}}Platform { - /// The method channel used to interact with the native platform. - @visibleForTesting - final methodChannel = const MethodChannel('{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux'); - - /// Registers this class as the default instance of [{{#pascalCase}}{{project_name}}{{/pascalCase}}Platform] - static void registerWith() { - {{#pascalCase}}{{project_name}}{{/pascalCase}}Platform.instance = {{#pascalCase}}{{project_name}}{{/pascalCase}}Linux(); - } - - @override - Future getPlatformName() { - return methodChannel.invokeMethod('getPlatformName'); - } -} diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/linux/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux_plugin.cc b/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/linux/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux_plugin.cc deleted file mode 100644 index a452e28..0000000 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/linux/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux_plugin.cc +++ /dev/null @@ -1,68 +0,0 @@ -#include "include/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/{{#snakeCase}}{{project_name}}{{/snakeCase}}_plugin.h" - -#include -#include -#include - -#include - -const char kChannelName[] = "{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux"; -const char kGetPlatformName[] = "getPlatformName"; - -struct _Fl{{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin { - GObject parent_instance; - - FlPluginRegistrar* registrar; - - // Connection to Flutter engine. - FlMethodChannel* channel; -}; - -G_DEFINE_TYPE(Fl{{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin, fl_{{#snakeCase}}{{project_name}}{{/snakeCase}}_plugin, g_object_get_type()) - -// Called when a method call is received from Flutter. -static void method_call_cb(FlMethodChannel* channel, FlMethodCall* method_call, - gpointer user_data) { - const gchar* method = fl_method_call_get_name(method_call); - - g_autoptr(FlMethodResponse) response = nullptr; - if (strcmp(method, kGetPlatformName) == 0) - response = FL_METHOD_RESPONSE(fl_method_success_response_new(fl_value_new_string("Linux"))); - else - response = FL_METHOD_RESPONSE(fl_method_not_implemented_response_new()); - - g_autoptr(GError) error = nullptr; - if (!fl_method_call_respond(method_call, response, &error)) - g_warning("Failed to send method call response: %s", error->message); -} - -static void fl_{{#snakeCase}}{{project_name}}{{/snakeCase}}_plugin_dispose(GObject* object) { - G_OBJECT_CLASS(fl_{{#snakeCase}}{{project_name}}{{/snakeCase}}_plugin_parent_class)->dispose(object); -} - -static void fl_{{#snakeCase}}{{project_name}}{{/snakeCase}}_plugin_class_init(Fl{{#pascalCase}}{{project_name}}{{/pascalCase}}PluginClass* klass) { - G_OBJECT_CLASS(klass)->dispose = fl_{{#snakeCase}}{{project_name}}{{/snakeCase}}_plugin_dispose; -} - -Fl{{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin* fl_{{#snakeCase}}{{project_name}}{{/snakeCase}}_plugin_new(FlPluginRegistrar* registrar) { - Fl{{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin* self = FL_MY_PLUGIN_PLUGIN( - g_object_new(fl_{{#snakeCase}}{{project_name}}{{/snakeCase}}_plugin_get_type(), nullptr)); - - self->registrar = FL_PLUGIN_REGISTRAR(g_object_ref(registrar)); - - g_autoptr(FlStandardMethodCodec) codec = fl_standard_method_codec_new(); - self->channel = - fl_method_channel_new(fl_plugin_registrar_get_messenger(registrar), - kChannelName, FL_METHOD_CODEC(codec)); - fl_method_channel_set_method_call_handler(self->channel, method_call_cb, - g_object_ref(self), g_object_unref); - - return self; -} - -static void fl_{{#snakeCase}}{{project_name}}{{/snakeCase}}_plugin_init(Fl{{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin* self) {} - -void {{#snakeCase}}{{project_name}}{{/snakeCase}}_plugin_register_with_registrar(FlPluginRegistrar* registrar) { - Fl{{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin* plugin = fl_{{#snakeCase}}{{project_name}}{{/snakeCase}}_plugin_new(registrar); - g_object_unref(plugin); -} diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/pubspec.yaml b/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/pubspec.yaml deleted file mode 100644 index 2f46da9..0000000 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/pubspec.yaml +++ /dev/null @@ -1,27 +0,0 @@ -name: {{#snakeCase}}{{project_name}}{{/snakeCase}}_linux -description: Linux implementation of the {{#snakeCase}}{{project_name}}{{/snakeCase}} plugin -version: 0.1.0+1 -publish_to: none - -environment: - sdk: ">=2.16.0 <3.0.0" - flutter: ">=2.10.0" - -flutter: - plugin: - implements: {{#snakeCase}}{{project_name}}{{/snakeCase}} - platforms: - linux: - pluginClass: {{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin - dartPluginClass: {{#pascalCase}}{{project_name}}{{/pascalCase}}Linux - -dependencies: - flutter: - sdk: flutter - {{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface: - path: ../{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface - -dev_dependencies: - flutter_test: - sdk: flutter - very_good_analysis: ^2.4.0 diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos.dart b/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos.dart deleted file mode 100644 index be3df57..0000000 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos.dart +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) 2022, Very Good Ventures -// https://verygood.ventures -// -// Use of this source code is governed by an MIT-style -// license that can be found in the LICENSE file or at -// https://opensource.org/licenses/MIT. - -import 'package:flutter/foundation.dart'; -import 'package:flutter/services.dart'; -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface.dart'; - -/// The MacOS implementation of [{{#pascalCase}}{{project_name}}{{/pascalCase}}Platform]. -class {{#pascalCase}}{{project_name}}{{/pascalCase}}MacOS extends {{#pascalCase}}{{project_name}}{{/pascalCase}}Platform { - /// The method channel used to interact with the native platform. - @visibleForTesting - final methodChannel = const MethodChannel('{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos'); - - /// Registers this class as the default instance of [{{#pascalCase}}{{project_name}}{{/pascalCase}}Platform] - static void registerWith() { - {{#pascalCase}}{{project_name}}{{/pascalCase}}Platform.instance = {{#pascalCase}}{{project_name}}{{/pascalCase}}MacOS(); - } - - @override - Future getPlatformName() { - return methodChannel.invokeMethod('getPlatformName'); - } -} diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/pubspec.yaml b/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/pubspec.yaml deleted file mode 100644 index 4acfac7..0000000 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/pubspec.yaml +++ /dev/null @@ -1,27 +0,0 @@ -name: {{#snakeCase}}{{project_name}}{{/snakeCase}}_macos -description: MacOS implementation of the {{#snakeCase}}{{project_name}}{{/snakeCase}} plugin -version: 0.1.0+1 -publish_to: none - -environment: - sdk: ">=2.16.0 <3.0.0" - flutter: ">=2.10.0" - -flutter: - plugin: - implements: {{#snakeCase}}{{project_name}}{{/snakeCase}} - platforms: - macos: - pluginClass: {{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin - dartPluginClass: {{#pascalCase}}{{project_name}}{{/pascalCase}}MacOS - -dependencies: - flutter: - sdk: flutter - {{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface: - path: ../{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface - -dev_dependencies: - flutter_test: - sdk: flutter - very_good_analysis: ^2.4.0 diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/README.md b/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/README.md deleted file mode 100644 index c827f92..0000000 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/README.md +++ /dev/null @@ -1,14 +0,0 @@ -# {{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface - -[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link] - -A common platform interface for the `{{#snakeCase}}{{project_name}}{{/snakeCase}}` plugin. - -This interface allows platform-specific implementations of the `{{#snakeCase}}{{project_name}}{{/snakeCase}}` plugin, as well as the plugin itself, to ensure they are supporting the same interface. - -# Usage - -To implement a new platform-specific implementation of `{{#snakeCase}}{{project_name}}{{/snakeCase}}`, extend `{{#pascalCase}}{{project_name}}{{/pascalCase}}Platform` with an implementation that performs the platform-specific behavior. - -[very_good_analysis_badge]: https://img.shields.io/badge/style-very_good_analysis-B22C89.svg -[very_good_analysis_link]: https://pub.dev/packages/very_good_analysis \ No newline at end of file diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface.dart b/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface.dart deleted file mode 100644 index 196baa6..0000000 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface.dart +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2022, Very Good Ventures -// https://verygood.ventures -// -// Use of this source code is governed by an MIT-style -// license that can be found in the LICENSE file or at -// https://opensource.org/licenses/MIT. - -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/src/method_channel_{{#snakeCase}}{{project_name}}{{/snakeCase}}.dart'; -import 'package:plugin_platform_interface/plugin_platform_interface.dart'; - -/// The interface that implementations of {{#snakeCase}}{{project_name}}{{/snakeCase}} must implement. -/// -/// Platform implementations should extend this class -/// rather than implement it as `{{#pascalCase}}{{project_name}}{{/pascalCase}}`. -/// Extending this class (using `extends`) ensures that the subclass will get -/// the default implementation, while platform implementations that `implements` -/// this interface will be broken by newly added [{{#pascalCase}}{{project_name}}{{/pascalCase}}Platform] methods. -abstract class {{#pascalCase}}{{project_name}}{{/pascalCase}}Platform extends PlatformInterface { - /// Constructs a {{#pascalCase}}{{project_name}}{{/pascalCase}}Platform. - {{#pascalCase}}{{project_name}}{{/pascalCase}}Platform() : super(token: _token); - - static final Object _token = Object(); - - static {{#pascalCase}}{{project_name}}{{/pascalCase}}Platform _instance = MethodChannel{{#pascalCase}}{{project_name}}{{/pascalCase}}(); - - /// The default instance of [{{#pascalCase}}{{project_name}}{{/pascalCase}}Platform] to use. - /// - /// Defaults to [MethodChannel{{#pascalCase}}{{project_name}}{{/pascalCase}}]. - static {{#pascalCase}}{{project_name}}{{/pascalCase}}Platform get instance => _instance; - - /// Platform-specific plugins should set this with their own platform-specific - /// class that extends [{{#pascalCase}}{{project_name}}{{/pascalCase}}Platform] when they register themselves. - static set instance({{#pascalCase}}{{project_name}}{{/pascalCase}}Platform instance) { - PlatformInterface.verify(instance, _token); - _instance = instance; - } - - /// Return the current platform name. - Future getPlatformName(); -} diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface_test.dart b/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface_test.dart deleted file mode 100644 index 4002325..0000000 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface_test.dart +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) 2022, Very Good Ventures -// https://verygood.ventures -// -// Use of this source code is governed by an MIT-style -// license that can be found in the LICENSE file or at -// https://opensource.org/licenses/MIT. - -import 'package:flutter_test/flutter_test.dart'; -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface.dart'; - -class {{#pascalCase}}{{project_name}}{{/pascalCase}}Mock extends {{#pascalCase}}{{project_name}}{{/pascalCase}}Platform { - static const mockPlatformName = 'Mock'; - - @override - Future getPlatformName() async => mockPlatformName; -} - -void main() { - TestWidgetsFlutterBinding.ensureInitialized(); - group('{{#pascalCase}}{{project_name}}{{/pascalCase}}PlatformInterface', () { - late {{#pascalCase}}{{project_name}}{{/pascalCase}}Platform {{#camelCase}}{{project_name}}{{/camelCase}}Platform; - - setUp(() { - {{#camelCase}}{{project_name}}{{/camelCase}}Platform = {{#pascalCase}}{{project_name}}{{/pascalCase}}Mock(); - {{#pascalCase}}{{project_name}}{{/pascalCase}}Platform.instance = {{#camelCase}}{{project_name}}{{/camelCase}}Platform; - }); - - group('getPlatformName', () { - test('returns correct name', () async { - expect( - await {{#pascalCase}}{{project_name}}{{/pascalCase}}Platform.instance.getPlatformName(), - equals({{#pascalCase}}{{project_name}}{{/pascalCase}}Mock.mockPlatformName), - ); - }); - }); - }); -} diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web.dart b/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web.dart deleted file mode 100644 index 8d567aa..0000000 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web.dart +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2022, Very Good Ventures -// https://verygood.ventures -// -// Use of this source code is governed by an MIT-style -// license that can be found in the LICENSE file or at -// https://opensource.org/licenses/MIT. - -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface.dart'; - -/// The Web implementation of [{{#pascalCase}}{{project_name}}{{/pascalCase}}Platform]. -class {{#pascalCase}}{{project_name}}{{/pascalCase}}Web extends {{#pascalCase}}{{project_name}}{{/pascalCase}}Platform { - /// Registers this class as the default instance of [{{#pascalCase}}{{project_name}}{{/pascalCase}}Platform] - static void registerWith([Object? registrar]) { - {{#pascalCase}}{{project_name}}{{/pascalCase}}Platform.instance = {{#pascalCase}}{{project_name}}{{/pascalCase}}Web(); - } - - @override - Future getPlatformName() async => 'Web'; -} diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web/pubspec.yaml b/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web/pubspec.yaml deleted file mode 100644 index 4c4b03b..0000000 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web/pubspec.yaml +++ /dev/null @@ -1,29 +0,0 @@ -name: {{#snakeCase}}{{project_name}}{{/snakeCase}}_web -description: Web implementation of the {{#snakeCase}}{{project_name}}{{/snakeCase}} plugin -version: 0.1.0+1 -publish_to: none - -environment: - sdk: ">=2.16.0 <3.0.0" - flutter: ">=2.10.0" - -flutter: - plugin: - implements: {{#snakeCase}}{{project_name}}{{/snakeCase}} - platforms: - web: - pluginClass: {{#pascalCase}}{{project_name}}{{/pascalCase}}Web - fileName: {{#snakeCase}}{{project_name}}{{/snakeCase}}_web.dart - -dependencies: - flutter: - sdk: flutter - flutter_web_plugins: - sdk: flutter - {{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface: - path: ../{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface - -dev_dependencies: - flutter_test: - sdk: flutter - very_good_analysis: ^2.4.0 diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web_test.dart b/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web_test.dart deleted file mode 100644 index 3da9844..0000000 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web_test.dart +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2022, Very Good Ventures -// https://verygood.ventures -// -// Use of this source code is governed by an MIT-style -// license that can be found in the LICENSE file or at -// https://opensource.org/licenses/MIT. - -import 'package:flutter_test/flutter_test.dart'; -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface.dart'; -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}_web/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web.dart'; - -void main() { - TestWidgetsFlutterBinding.ensureInitialized(); - - group('{{#pascalCase}}{{project_name}}{{/pascalCase}}Web', () { - const kPlatformName = 'Web'; - late {{#pascalCase}}{{project_name}}{{/pascalCase}}Web {{#camelCase}}{{project_name}}{{/camelCase}}; - - setUp(() async { - {{#camelCase}}{{project_name}}{{/camelCase}} = {{#pascalCase}}{{project_name}}{{/pascalCase}}Web(); - }); - - test('can be registered', () { - {{#pascalCase}}{{project_name}}{{/pascalCase}}Web.registerWith(); - expect({{#pascalCase}}{{project_name}}{{/pascalCase}}Platform.instance, isA<{{#pascalCase}}{{project_name}}{{/pascalCase}}Web>()); - }); - - test('getPlatformName returns correct name', () async { - final name = await {{#camelCase}}{{project_name}}{{/camelCase}}.getPlatformName(); - expect(name, equals(kPlatformName)); - }); - }); -} diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows.dart b/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows.dart deleted file mode 100644 index eec3098..0000000 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows.dart +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) 2022, Very Good Ventures -// https://verygood.ventures -// -// Use of this source code is governed by an MIT-style -// license that can be found in the LICENSE file or at -// https://opensource.org/licenses/MIT. - -import 'package:flutter/foundation.dart'; -import 'package:flutter/services.dart'; -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface.dart'; - -/// The Windows implementation of [{{#pascalCase}}{{project_name}}{{/pascalCase}}Platform]. -class {{#pascalCase}}{{project_name}}{{/pascalCase}}Windows extends {{#pascalCase}}{{project_name}}{{/pascalCase}}Platform { - /// The method channel used to interact with the native platform. - @visibleForTesting - final methodChannel = const MethodChannel('{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows'); - - /// Registers this class as the default instance of [{{#pascalCase}}{{project_name}}{{/pascalCase}}Platform] - static void registerWith() { - {{#pascalCase}}{{project_name}}{{/pascalCase}}Platform.instance = {{#pascalCase}}{{project_name}}{{/pascalCase}}Windows(); - } - - @override - Future getPlatformName() { - return methodChannel.invokeMethod('getPlatformName'); - } -} diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/pubspec.yaml b/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/pubspec.yaml deleted file mode 100644 index e49fdb3..0000000 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/pubspec.yaml +++ /dev/null @@ -1,27 +0,0 @@ -name: {{#snakeCase}}{{project_name}}{{/snakeCase}}_windows -description: Windows implementation of the {{#snakeCase}}{{project_name}}{{/snakeCase}} plugin -version: 0.1.0+1 -publish_to: none - -environment: - sdk: ">=2.16.0 <3.0.0" - flutter: ">=2.10.0" - -flutter: - plugin: - implements: {{#snakeCase}}{{project_name}}{{/snakeCase}} - platforms: - windows: - pluginClass: {{#pascalCase}}{{project_name}}{{/pascalCase}}Windows - dartPluginClass: {{#pascalCase}}{{project_name}}{{/pascalCase}}Windows - -dependencies: - flutter: - sdk: flutter - {{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface: - path: ../{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface - -dev_dependencies: - flutter_test: - sdk: flutter - very_good_analysis: ^2.4.0 diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/CHANGELOG.md b/brick/__brick__/{{project_name.snakeCase()}}/CHANGELOG.md similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/CHANGELOG.md rename to brick/__brick__/{{project_name.snakeCase()}}/CHANGELOG.md diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/LICENSE b/brick/__brick__/{{project_name.snakeCase()}}/LICENSE similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/LICENSE rename to brick/__brick__/{{project_name.snakeCase()}}/LICENSE diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/README.md b/brick/__brick__/{{project_name.snakeCase()}}/README.md similarity index 97% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/README.md rename to brick/__brick__/{{project_name.snakeCase()}}/README.md index 21db0bb..7c2e1dc 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/README.md +++ b/brick/__brick__/{{project_name.snakeCase()}}/README.md @@ -1,4 +1,4 @@ -# {{#snakeCase}}{{project_name}}{{/snakeCase}} +# {{project_name.snakeCase()}} [![Very Good Ventures][logo_white]][very_good_ventures_link_dark] [![Very Good Ventures][logo_black]][very_good_ventures_link_light] diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/analysis_options.yaml b/brick/__brick__/{{project_name.snakeCase()}}/analysis_options.yaml similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/analysis_options.yaml rename to brick/__brick__/{{project_name.snakeCase()}}/analysis_options.yaml diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/coverage_badge.svg b/brick/__brick__/{{project_name.snakeCase()}}/coverage_badge.svg similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/coverage_badge.svg rename to brick/__brick__/{{project_name.snakeCase()}}/coverage_badge.svg diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/.gitignore b/brick/__brick__/{{project_name.snakeCase()}}/example/.gitignore similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/.gitignore rename to brick/__brick__/{{project_name.snakeCase()}}/example/.gitignore diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/.metadata b/brick/__brick__/{{project_name.snakeCase()}}/example/.metadata similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/.metadata rename to brick/__brick__/{{project_name.snakeCase()}}/example/.metadata diff --git a/brick/__brick__/{{project_name.snakeCase()}}/example/README.md b/brick/__brick__/{{project_name.snakeCase()}}/example/README.md new file mode 100644 index 0000000..f36c658 --- /dev/null +++ b/brick/__brick__/{{project_name.snakeCase()}}/example/README.md @@ -0,0 +1,3 @@ +# {{project_name.snakeCase()}}_example + +Demonstrates how to use the {{project_name.snakeCase()}} plugin. diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/analysis_options.yaml b/brick/__brick__/{{project_name.snakeCase()}}/example/analysis_options.yaml similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/analysis_options.yaml rename to brick/__brick__/{{project_name.snakeCase()}}/example/analysis_options.yaml diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/android/.gitignore b/brick/__brick__/{{project_name.snakeCase()}}/example/android/.gitignore similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/android/.gitignore rename to brick/__brick__/{{project_name.snakeCase()}}/example/android/.gitignore diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/android/app/build.gradle b/brick/__brick__/{{project_name.snakeCase()}}/example/android/app/build.gradle similarity index 96% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/android/app/build.gradle rename to brick/__brick__/{{project_name.snakeCase()}}/example/android/app/build.gradle index 7db2f95..2c466ad 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/android/app/build.gradle +++ b/brick/__brick__/{{project_name.snakeCase()}}/example/android/app/build.gradle @@ -43,7 +43,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId "{{#dotCase}}{{org_name}}{{/dotCase}}.example" + applicationId "{{org_name.dotCase()}}.example" minSdkVersion flutter.minSdkVersion targetSdkVersion flutter.targetSdkVersion versionCode flutterVersionCode.toInteger() diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/android/app/src/profile/AndroidManifest.xml b/brick/__brick__/{{project_name.snakeCase()}}/example/android/app/src/debug/AndroidManifest.xml similarity index 84% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/android/app/src/profile/AndroidManifest.xml rename to brick/__brick__/{{project_name.snakeCase()}}/example/android/app/src/debug/AndroidManifest.xml index e4d09aa..8bef2ba 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/android/app/src/profile/AndroidManifest.xml +++ b/brick/__brick__/{{project_name.snakeCase()}}/example/android/app/src/debug/AndroidManifest.xml @@ -1,5 +1,5 @@ + package="{{org_name.dotCase()}}.example"> diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/android/app/src/main/AndroidManifest.xml b/brick/__brick__/{{project_name.snakeCase()}}/example/android/app/src/main/AndroidManifest.xml similarity index 96% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/android/app/src/main/AndroidManifest.xml rename to brick/__brick__/{{project_name.snakeCase()}}/example/android/app/src/main/AndroidManifest.xml index bfab592..ab62d5e 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/android/app/src/main/AndroidManifest.xml +++ b/brick/__brick__/{{project_name.snakeCase()}}/example/android/app/src/main/AndroidManifest.xml @@ -1,5 +1,5 @@ + package="{{org_name.dotCase()}}.example"> + package="{{org_name.dotCase()}}"> diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/android/build.gradle b/brick/__brick__/{{project_name.snakeCase()}}/example/android/build.gradle similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/android/build.gradle rename to brick/__brick__/{{project_name.snakeCase()}}/example/android/build.gradle diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/android/gradle.properties b/brick/__brick__/{{project_name.snakeCase()}}/example/android/gradle.properties similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/android/gradle.properties rename to brick/__brick__/{{project_name.snakeCase()}}/example/android/gradle.properties diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/android/gradle/wrapper/gradle-wrapper.properties b/brick/__brick__/{{project_name.snakeCase()}}/example/android/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/android/gradle/wrapper/gradle-wrapper.properties rename to brick/__brick__/{{project_name.snakeCase()}}/example/android/gradle/wrapper/gradle-wrapper.properties diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/android/settings.gradle b/brick/__brick__/{{project_name.snakeCase()}}/example/android/settings.gradle similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/android/settings.gradle rename to brick/__brick__/{{project_name.snakeCase()}}/example/android/settings.gradle diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/integration_test/app_test.dart b/brick/__brick__/{{project_name.snakeCase()}}/example/integration_test/app_test.dart similarity index 92% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/integration_test/app_test.dart rename to brick/__brick__/{{project_name.snakeCase()}}/example/integration_test/app_test.dart index 658be2c..9105fd4 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/integration_test/app_test.dart +++ b/brick/__brick__/{{project_name.snakeCase()}}/example/integration_test/app_test.dart @@ -10,7 +10,7 @@ import 'dart:io'; import 'package:flutter_test/flutter_test.dart'; import 'package:integration_test/integration_test.dart'; -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}_example/main.dart' as app; +import 'package:{{project_name.snakeCase()}}_example/main.dart' as app; void main() { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/.gitignore b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/.gitignore similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/.gitignore rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/.gitignore diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Flutter/AppFrameworkInfo.plist b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Flutter/AppFrameworkInfo.plist similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Flutter/AppFrameworkInfo.plist rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Flutter/AppFrameworkInfo.plist diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Flutter/Debug.xcconfig b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Flutter/Debug.xcconfig similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Flutter/Debug.xcconfig rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Flutter/Debug.xcconfig diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Flutter/Release.xcconfig b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Flutter/Release.xcconfig similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Flutter/Release.xcconfig rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Flutter/Release.xcconfig diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Podfile b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Podfile similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Podfile rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Podfile diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner.xcodeproj/project.pbxproj b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner.xcodeproj/project.pbxproj similarity index 99% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner.xcodeproj/project.pbxproj rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner.xcodeproj/project.pbxproj index 485ff02..9c2d977 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner.xcodeproj/project.pbxproj +++ b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner.xcodeproj/project.pbxproj @@ -363,7 +363,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = {{#dotCase}}{{org_name}}{{/dotCase}}; + PRODUCT_BUNDLE_IDENTIFIER = {{org_name.dotCase()}}; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; @@ -492,7 +492,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = {{#dotCase}}{{org_name}}{{/dotCase}}; + PRODUCT_BUNDLE_IDENTIFIER = {{org_name.dotCase()}}; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; @@ -515,7 +515,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = {{#dotCase}}{{org_name}}{{/dotCase}}; + PRODUCT_BUNDLE_IDENTIFIER = {{org_name.dotCase()}}; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner.xcworkspace/contents.xcworkspacedata b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner.xcworkspace/contents.xcworkspacedata similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner.xcworkspace/contents.xcworkspacedata rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner.xcworkspace/contents.xcworkspacedata diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/AppDelegate.swift b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/AppDelegate.swift similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/AppDelegate.swift rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/AppDelegate.swift diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Base.lproj/LaunchScreen.storyboard b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Base.lproj/LaunchScreen.storyboard similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Base.lproj/LaunchScreen.storyboard rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Base.lproj/LaunchScreen.storyboard diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Base.lproj/Main.storyboard b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Base.lproj/Main.storyboard similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Base.lproj/Main.storyboard rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Base.lproj/Main.storyboard diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Info.plist b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Info.plist similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Info.plist rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Info.plist diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Runner-Bridging-Header.h b/brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Runner-Bridging-Header.h similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/ios/Runner/Runner-Bridging-Header.h rename to brick/__brick__/{{project_name.snakeCase()}}/example/ios/Runner/Runner-Bridging-Header.h diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/lib/main.dart b/brick/__brick__/{{project_name.snakeCase()}}/example/lib/main.dart similarity index 89% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/lib/main.dart rename to brick/__brick__/{{project_name.snakeCase()}}/example/lib/main.dart index d5eab2d..87998af 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/lib/main.dart +++ b/brick/__brick__/{{project_name.snakeCase()}}/example/lib/main.dart @@ -6,7 +6,7 @@ // https://opensource.org/licenses/MIT. import 'package:flutter/material.dart'; -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}/{{#snakeCase}}{{project_name}}{{/snakeCase}}.dart'; +import 'package:{{project_name.snakeCase()}}/{{project_name.snakeCase()}}.dart'; void main() => runApp(const MyApp()); @@ -32,7 +32,7 @@ class _HomePageState extends State { @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar(title: const Text('{{#pascalCase}}{{project_name}}{{/pascalCase}} Example')), + appBar: AppBar(title: const Text('{{project_name.pascalCase()}} Example')), body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/linux/.gitignore b/brick/__brick__/{{project_name.snakeCase()}}/example/linux/.gitignore similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/linux/.gitignore rename to brick/__brick__/{{project_name.snakeCase()}}/example/linux/.gitignore diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/linux/CMakeLists.txt b/brick/__brick__/{{project_name.snakeCase()}}/example/linux/CMakeLists.txt similarity index 98% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/linux/CMakeLists.txt rename to brick/__brick__/{{project_name.snakeCase()}}/example/linux/CMakeLists.txt index 467c002..df54d3d 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/linux/CMakeLists.txt +++ b/brick/__brick__/{{project_name.snakeCase()}}/example/linux/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.10) project(runner LANGUAGES CXX) set(BINARY_NAME "example") -set(APPLICATION_ID "{{#dotCase}}{{org_name}}{{/dotCase}}_example") +set(APPLICATION_ID "{{org_name.dotCase()}}_example") cmake_policy(SET CMP0063 NEW) diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/linux/flutter/CMakeLists.txt b/brick/__brick__/{{project_name.snakeCase()}}/example/linux/flutter/CMakeLists.txt similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/linux/flutter/CMakeLists.txt rename to brick/__brick__/{{project_name.snakeCase()}}/example/linux/flutter/CMakeLists.txt diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/linux/flutter/generated_plugins.cmake b/brick/__brick__/{{project_name.snakeCase()}}/example/linux/flutter/generated_plugins.cmake similarity index 89% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/linux/flutter/generated_plugins.cmake rename to brick/__brick__/{{project_name.snakeCase()}}/example/linux/flutter/generated_plugins.cmake index ae955e1..e12c3d6 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/linux/flutter/generated_plugins.cmake +++ b/brick/__brick__/{{project_name.snakeCase()}}/example/linux/flutter/generated_plugins.cmake @@ -3,7 +3,7 @@ # list(APPEND FLUTTER_PLUGIN_LIST - {{#snakeCase}}{{project_name}}{{/snakeCase}}_linux + {{project_name.snakeCase()}}_linux ) set(PLUGIN_BUNDLED_LIBRARIES) diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/linux/main.cc b/brick/__brick__/{{project_name.snakeCase()}}/example/linux/main.cc similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/linux/main.cc rename to brick/__brick__/{{project_name.snakeCase()}}/example/linux/main.cc diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/linux/my_application.cc b/brick/__brick__/{{project_name.snakeCase()}}/example/linux/my_application.cc similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/linux/my_application.cc rename to brick/__brick__/{{project_name.snakeCase()}}/example/linux/my_application.cc diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/linux/my_application.h b/brick/__brick__/{{project_name.snakeCase()}}/example/linux/my_application.h similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/linux/my_application.h rename to brick/__brick__/{{project_name.snakeCase()}}/example/linux/my_application.h diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/.gitignore b/brick/__brick__/{{project_name.snakeCase()}}/example/macos/.gitignore similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/.gitignore rename to brick/__brick__/{{project_name.snakeCase()}}/example/macos/.gitignore diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Flutter/Flutter-Debug.xcconfig b/brick/__brick__/{{project_name.snakeCase()}}/example/macos/Flutter/Flutter-Debug.xcconfig similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Flutter/Flutter-Debug.xcconfig rename to brick/__brick__/{{project_name.snakeCase()}}/example/macos/Flutter/Flutter-Debug.xcconfig diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Flutter/Flutter-Release.xcconfig b/brick/__brick__/{{project_name.snakeCase()}}/example/macos/Flutter/Flutter-Release.xcconfig similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Flutter/Flutter-Release.xcconfig rename to brick/__brick__/{{project_name.snakeCase()}}/example/macos/Flutter/Flutter-Release.xcconfig diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Podfile b/brick/__brick__/{{project_name.snakeCase()}}/example/macos/Podfile similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Podfile rename to brick/__brick__/{{project_name.snakeCase()}}/example/macos/Podfile diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner.xcodeproj/project.pbxproj b/brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner.xcodeproj/project.pbxproj similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner.xcodeproj/project.pbxproj rename to brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner.xcodeproj/project.pbxproj diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme rename to brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner.xcworkspace/contents.xcworkspacedata b/brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner.xcworkspace/contents.xcworkspacedata similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner.xcworkspace/contents.xcworkspacedata rename to brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner.xcworkspace/contents.xcworkspacedata diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/AppDelegate.swift b/brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/AppDelegate.swift similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/AppDelegate.swift rename to brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/AppDelegate.swift diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json rename to brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png b/brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png b/brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png b/brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png b/brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png b/brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png b/brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png b/brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Base.lproj/MainMenu.xib b/brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Base.lproj/MainMenu.xib similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Base.lproj/MainMenu.xib rename to brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Base.lproj/MainMenu.xib diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Configs/AppInfo.xcconfig b/brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Configs/AppInfo.xcconfig similarity index 89% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Configs/AppInfo.xcconfig rename to brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Configs/AppInfo.xcconfig index eb3eee7..82bb68d 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Configs/AppInfo.xcconfig +++ b/brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Configs/AppInfo.xcconfig @@ -8,7 +8,7 @@ PRODUCT_NAME = example // The application's bundle identifier -PRODUCT_BUNDLE_IDENTIFIER = {{#dotCase}}{{org_name}}{{/dotCase}} +PRODUCT_BUNDLE_IDENTIFIER = {{org_name.dotCase()}} // The copyright displayed in application information PRODUCT_COPYRIGHT = Copyright © 2022 dev.flutter.plugins. All rights reserved. diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Configs/Debug.xcconfig b/brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Configs/Debug.xcconfig similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Configs/Debug.xcconfig rename to brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Configs/Debug.xcconfig diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Configs/Release.xcconfig b/brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Configs/Release.xcconfig similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Configs/Release.xcconfig rename to brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Configs/Release.xcconfig diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Configs/Warnings.xcconfig b/brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Configs/Warnings.xcconfig similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Configs/Warnings.xcconfig rename to brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Configs/Warnings.xcconfig diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/DebugProfile.entitlements b/brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/DebugProfile.entitlements similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/DebugProfile.entitlements rename to brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/DebugProfile.entitlements diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Info.plist b/brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Info.plist similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Info.plist rename to brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Info.plist diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/MainFlutterWindow.swift b/brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/MainFlutterWindow.swift similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/MainFlutterWindow.swift rename to brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/MainFlutterWindow.swift diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Release.entitlements b/brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Release.entitlements similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/macos/Runner/Release.entitlements rename to brick/__brick__/{{project_name.snakeCase()}}/example/macos/Runner/Release.entitlements diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/pubspec.yaml b/brick/__brick__/{{project_name.snakeCase()}}/example/pubspec.yaml similarity index 70% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/pubspec.yaml rename to brick/__brick__/{{project_name.snakeCase()}}/example/pubspec.yaml index ef472cb..c4c4130 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/pubspec.yaml +++ b/brick/__brick__/{{project_name.snakeCase()}}/example/pubspec.yaml @@ -1,5 +1,5 @@ -name: {{#snakeCase}}{{project_name}}{{/snakeCase}}_example -description: Demonstrates how to use the {{#snakeCase}}{{project_name}}{{/snakeCase}} plugin. +name: {{project_name.snakeCase()}}_example +description: Demonstrates how to use the {{project_name.snakeCase()}} plugin. version: 0.1.0+1 publish_to: none @@ -10,9 +10,9 @@ environment: dependencies: flutter: sdk: flutter - {{#snakeCase}}{{project_name}}{{/snakeCase}}: + {{project_name.snakeCase()}}: # When depending on this package from a real application you should use: - # {{#snakeCase}}{{project_name}}{{/snakeCase}}: ^x.y.z + # {{project_name.snakeCase()}}: ^x.y.z # See https://dart.dev/tools/pub/dependencies#version-constraints # The example app is bundled with the plugin so we use a path dependency on # the parent directory to use the current plugin's version. diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/test_driver/integration_test.dart b/brick/__brick__/{{project_name.snakeCase()}}/example/test_driver/integration_test.dart similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/test_driver/integration_test.dart rename to brick/__brick__/{{project_name.snakeCase()}}/example/test_driver/integration_test.dart diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/web/favicon.png b/brick/__brick__/{{project_name.snakeCase()}}/example/web/favicon.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/web/favicon.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/web/favicon.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/web/icons/Icon-192.png b/brick/__brick__/{{project_name.snakeCase()}}/example/web/icons/Icon-192.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/web/icons/Icon-192.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/web/icons/Icon-192.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/web/icons/Icon-512.png b/brick/__brick__/{{project_name.snakeCase()}}/example/web/icons/Icon-512.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/web/icons/Icon-512.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/web/icons/Icon-512.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/web/icons/Icon-maskable-192.png b/brick/__brick__/{{project_name.snakeCase()}}/example/web/icons/Icon-maskable-192.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/web/icons/Icon-maskable-192.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/web/icons/Icon-maskable-192.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/web/icons/Icon-maskable-512.png b/brick/__brick__/{{project_name.snakeCase()}}/example/web/icons/Icon-maskable-512.png similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/web/icons/Icon-maskable-512.png rename to brick/__brick__/{{project_name.snakeCase()}}/example/web/icons/Icon-maskable-512.png diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/web/index.html b/brick/__brick__/{{project_name.snakeCase()}}/example/web/index.html similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/web/index.html rename to brick/__brick__/{{project_name.snakeCase()}}/example/web/index.html diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/web/manifest.json b/brick/__brick__/{{project_name.snakeCase()}}/example/web/manifest.json similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/web/manifest.json rename to brick/__brick__/{{project_name.snakeCase()}}/example/web/manifest.json diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/.gitignore b/brick/__brick__/{{project_name.snakeCase()}}/example/windows/.gitignore similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/.gitignore rename to brick/__brick__/{{project_name.snakeCase()}}/example/windows/.gitignore diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/CMakeLists.txt b/brick/__brick__/{{project_name.snakeCase()}}/example/windows/CMakeLists.txt similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/CMakeLists.txt rename to brick/__brick__/{{project_name.snakeCase()}}/example/windows/CMakeLists.txt diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/flutter/CMakeLists.txt b/brick/__brick__/{{project_name.snakeCase()}}/example/windows/flutter/CMakeLists.txt similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/flutter/CMakeLists.txt rename to brick/__brick__/{{project_name.snakeCase()}}/example/windows/flutter/CMakeLists.txt diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/flutter/generated_plugins.cmake b/brick/__brick__/{{project_name.snakeCase()}}/example/windows/flutter/generated_plugins.cmake similarity index 89% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/flutter/generated_plugins.cmake rename to brick/__brick__/{{project_name.snakeCase()}}/example/windows/flutter/generated_plugins.cmake index f9d8ca9..2c59eb5 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/flutter/generated_plugins.cmake +++ b/brick/__brick__/{{project_name.snakeCase()}}/example/windows/flutter/generated_plugins.cmake @@ -3,7 +3,7 @@ # list(APPEND FLUTTER_PLUGIN_LIST - {{#snakeCase}}{{project_name}}{{/snakeCase}}_windows + {{project_name.snakeCase()}}_windows ) set(PLUGIN_BUNDLED_LIBRARIES) diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/runner/CMakeLists.txt b/brick/__brick__/{{project_name.snakeCase()}}/example/windows/runner/CMakeLists.txt similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/runner/CMakeLists.txt rename to brick/__brick__/{{project_name.snakeCase()}}/example/windows/runner/CMakeLists.txt diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/runner/Runner.rc b/brick/__brick__/{{project_name.snakeCase()}}/example/windows/runner/Runner.rc similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/runner/Runner.rc rename to brick/__brick__/{{project_name.snakeCase()}}/example/windows/runner/Runner.rc diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/runner/flutter_window.cpp b/brick/__brick__/{{project_name.snakeCase()}}/example/windows/runner/flutter_window.cpp similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/runner/flutter_window.cpp rename to brick/__brick__/{{project_name.snakeCase()}}/example/windows/runner/flutter_window.cpp diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/runner/flutter_window.h b/brick/__brick__/{{project_name.snakeCase()}}/example/windows/runner/flutter_window.h similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/runner/flutter_window.h rename to brick/__brick__/{{project_name.snakeCase()}}/example/windows/runner/flutter_window.h diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/runner/main.cpp b/brick/__brick__/{{project_name.snakeCase()}}/example/windows/runner/main.cpp similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/runner/main.cpp rename to brick/__brick__/{{project_name.snakeCase()}}/example/windows/runner/main.cpp diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/runner/resource.h b/brick/__brick__/{{project_name.snakeCase()}}/example/windows/runner/resource.h similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/runner/resource.h rename to brick/__brick__/{{project_name.snakeCase()}}/example/windows/runner/resource.h diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/runner/resources/app_icon.ico b/brick/__brick__/{{project_name.snakeCase()}}/example/windows/runner/resources/app_icon.ico similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/runner/resources/app_icon.ico rename to brick/__brick__/{{project_name.snakeCase()}}/example/windows/runner/resources/app_icon.ico diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/runner/runner.exe.manifest b/brick/__brick__/{{project_name.snakeCase()}}/example/windows/runner/runner.exe.manifest similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/runner/runner.exe.manifest rename to brick/__brick__/{{project_name.snakeCase()}}/example/windows/runner/runner.exe.manifest diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/runner/utils.cpp b/brick/__brick__/{{project_name.snakeCase()}}/example/windows/runner/utils.cpp similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/runner/utils.cpp rename to brick/__brick__/{{project_name.snakeCase()}}/example/windows/runner/utils.cpp diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/runner/utils.h b/brick/__brick__/{{project_name.snakeCase()}}/example/windows/runner/utils.h similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/runner/utils.h rename to brick/__brick__/{{project_name.snakeCase()}}/example/windows/runner/utils.h diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/runner/win32_window.cpp b/brick/__brick__/{{project_name.snakeCase()}}/example/windows/runner/win32_window.cpp similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/runner/win32_window.cpp rename to brick/__brick__/{{project_name.snakeCase()}}/example/windows/runner/win32_window.cpp diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/runner/win32_window.h b/brick/__brick__/{{project_name.snakeCase()}}/example/windows/runner/win32_window.h similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/example/windows/runner/win32_window.h rename to brick/__brick__/{{project_name.snakeCase()}}/example/windows/runner/win32_window.h diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}.dart b/brick/__brick__/{{project_name.snakeCase()}}/lib/{{project_name.snakeCase()}}.dart similarity index 62% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}.dart rename to brick/__brick__/{{project_name.snakeCase()}}/lib/{{project_name.snakeCase()}}.dart index cb35689..f7341fb 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}.dart +++ b/brick/__brick__/{{project_name.snakeCase()}}/lib/{{project_name.snakeCase()}}.dart @@ -5,9 +5,9 @@ // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface.dart'; +import 'package:{{project_name.snakeCase()}}_platform_interface/{{project_name.snakeCase()}}_platform_interface.dart'; -{{#pascalCase}}{{project_name}}{{/pascalCase}}Platform get _platform => {{#pascalCase}}{{project_name}}{{/pascalCase}}Platform.instance; +{{project_name.pascalCase()}}Platform get _platform => {{project_name.pascalCase()}}Platform.instance; /// Returns the name of the current platform. Future getPlatformName() async { diff --git a/brick/__brick__/{{project_name.snakeCase()}}/pubspec.yaml b/brick/__brick__/{{project_name.snakeCase()}}/pubspec.yaml new file mode 100644 index 0000000..1608e66 --- /dev/null +++ b/brick/__brick__/{{project_name.snakeCase()}}/pubspec.yaml @@ -0,0 +1,49 @@ +name: {{project_name.snakeCase()}} +description: {{{description}}} +version: 0.1.0+1 +publish_to: none + +environment: + sdk: ">=2.16.0 <3.0.0" + flutter: ">=2.10.0" + +flutter: + plugin: + platforms: + android: + default_package: {{project_name.snakeCase()}}_android + ios: + default_package: {{project_name.snakeCase()}}_ios + macos: + default_package: {{project_name.snakeCase()}}_macos + linux: + default_package: {{project_name.snakeCase()}}_linux + web: + default_package: {{project_name.snakeCase()}}_web + windows: + default_package: {{project_name.snakeCase()}}_windows + +dependencies: + flutter: + sdk: flutter + {{project_name.snakeCase()}}_android: + path: ../{{project_name.snakeCase()}}_android + {{project_name.snakeCase()}}_ios: + path: ../{{project_name.snakeCase()}}_ios + {{project_name.snakeCase()}}_linux: + path: ../{{project_name.snakeCase()}}_linux + {{project_name.snakeCase()}}_macos: + path: ../{{project_name.snakeCase()}}_macos + {{project_name.snakeCase()}}_platform_interface: + path: ../{{project_name.snakeCase()}}_platform_interface + {{project_name.snakeCase()}}_web: + path: ../{{project_name.snakeCase()}}_web + {{project_name.snakeCase()}}_windows: + path: ../{{project_name.snakeCase()}}_windows + +dev_dependencies: + flutter_test: + sdk: flutter + mocktail: ^0.2.0 + plugin_platform_interface: ^2.0.0 + very_good_analysis: ^2.4.0 diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_test.dart b/brick/__brick__/{{project_name.snakeCase()}}/test/{{project_name.snakeCase()}}_test.dart similarity index 52% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_test.dart rename to brick/__brick__/{{project_name.snakeCase()}}/test/{{project_name.snakeCase()}}_test.dart index 8dbc560..3d23ead 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_test.dart +++ b/brick/__brick__/{{project_name.snakeCase()}}/test/{{project_name.snakeCase()}}_test.dart @@ -7,23 +7,23 @@ import 'package:flutter_test/flutter_test.dart'; import 'package:mocktail/mocktail.dart'; -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}/{{#snakeCase}}{{project_name}}{{/snakeCase}}.dart'; -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface.dart'; +import 'package:{{project_name.snakeCase()}}/{{project_name.snakeCase()}}.dart'; +import 'package:{{project_name.snakeCase()}}_platform_interface/{{project_name.snakeCase()}}_platform_interface.dart'; import 'package:plugin_platform_interface/plugin_platform_interface.dart'; -class Mock{{#pascalCase}}{{project_name}}{{/pascalCase}}Platform extends Mock +class Mock{{project_name.pascalCase()}}Platform extends Mock with MockPlatformInterfaceMixin - implements {{#pascalCase}}{{project_name}}{{/pascalCase}}Platform {} + implements {{project_name.pascalCase()}}Platform {} void main() { TestWidgetsFlutterBinding.ensureInitialized(); - group('{{#pascalCase}}{{project_name}}{{/pascalCase}}', () { - late {{#pascalCase}}{{project_name}}{{/pascalCase}}Platform {{#camelCase}}{{project_name}}{{/camelCase}}Platform; + group('{{project_name.pascalCase()}}', () { + late {{project_name.pascalCase()}}Platform {{project_name.camelCase()}}Platform; setUp(() { - {{#camelCase}}{{project_name}}{{/camelCase}}Platform = Mock{{#pascalCase}}{{project_name}}{{/pascalCase}}Platform(); - {{#pascalCase}}{{project_name}}{{/pascalCase}}Platform.instance = {{#camelCase}}{{project_name}}{{/camelCase}}Platform; + {{project_name.camelCase()}}Platform = Mock{{project_name.pascalCase()}}Platform(); + {{project_name.pascalCase()}}Platform.instance = {{project_name.camelCase()}}Platform; }); group('getPlatformName', () { @@ -31,7 +31,7 @@ void main() { () async { const platformName = '__test_platform__'; when( - () => {{#camelCase}}{{project_name}}{{/camelCase}}Platform.getPlatformName(), + () => {{project_name.camelCase()}}Platform.getPlatformName(), ).thenAnswer((_) async => platformName); final actualPlatformName = await getPlatformName(); @@ -41,7 +41,7 @@ void main() { test('throws exception when platform implementation is missing', () async { when( - () => {{#camelCase}}{{project_name}}{{/camelCase}}Platform.getPlatformName(), + () => {{project_name.camelCase()}}Platform.getPlatformName(), ).thenAnswer((_) async => null); expect(getPlatformName, throwsException); diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/CHANGELOG.md b/brick/__brick__/{{project_name.snakeCase()}}_android/CHANGELOG.md similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/CHANGELOG.md rename to brick/__brick__/{{project_name.snakeCase()}}_android/CHANGELOG.md diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/LICENSE b/brick/__brick__/{{project_name.snakeCase()}}_android/LICENSE similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/LICENSE rename to brick/__brick__/{{project_name.snakeCase()}}_android/LICENSE diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/README.md b/brick/__brick__/{{project_name.snakeCase()}}_android/README.md similarity index 74% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/README.md rename to brick/__brick__/{{project_name.snakeCase()}}_android/README.md index eea4220..6ae10bf 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/README.md +++ b/brick/__brick__/{{project_name.snakeCase()}}_android/README.md @@ -1,12 +1,12 @@ -# {{#snakeCase}}{{project_name}}{{/snakeCase}}_ios +# {{project_name.snakeCase()}}_android [![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link] -The ios implementation of `{{#snakeCase}}{{project_name}}{{/snakeCase}}`. +The Android implementation of `{{project_name.snakeCase()}}`. ## Usage -This package is [endorsed][endorsed_link], which means you can simply use `{{#snakeCase}}{{project_name}}{{/snakeCase}}` +This package is [endorsed][endorsed_link], which means you can simply use `{{project_name.snakeCase()}}` normally. This package will be automatically included in your app when you do. [endorsed_link]: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/android/.gitignore b/brick/__brick__/{{project_name.snakeCase()}}_android/android/.gitignore similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/android/.gitignore rename to brick/__brick__/{{project_name.snakeCase()}}_android/android/.gitignore diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/android/build.gradle b/brick/__brick__/{{project_name.snakeCase()}}_android/android/build.gradle similarity index 95% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/android/build.gradle rename to brick/__brick__/{{project_name.snakeCase()}}_android/android/build.gradle index 9754c57..ede4656 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/android/build.gradle +++ b/brick/__brick__/{{project_name.snakeCase()}}_android/android/build.gradle @@ -1,4 +1,4 @@ -group '{{#dotCase}}{{org_name}}{{/dotCase}}' +group '{{org_name.dotCase()}}' version '1.0-SNAPSHOT' buildscript { diff --git a/brick/__brick__/{{project_name.snakeCase()}}_android/android/settings.gradle b/brick/__brick__/{{project_name.snakeCase()}}_android/android/settings.gradle new file mode 100644 index 0000000..492fba4 --- /dev/null +++ b/brick/__brick__/{{project_name.snakeCase()}}_android/android/settings.gradle @@ -0,0 +1 @@ +rootProject.name = '{{project_name.snakeCase()}}_android' diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/android/src/main/AndroidManifest.xml b/brick/__brick__/{{project_name.snakeCase()}}_android/android/src/main/AndroidManifest.xml similarity index 61% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/android/src/main/AndroidManifest.xml rename to brick/__brick__/{{project_name.snakeCase()}}_android/android/src/main/AndroidManifest.xml index 9fec73c..5271e49 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/android/src/main/AndroidManifest.xml +++ b/brick/__brick__/{{project_name.snakeCase()}}_android/android/src/main/AndroidManifest.xml @@ -1,3 +1,3 @@ + package="{{org_name.dotCase()}}"> diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/android/src/main/kotlin/{{#pathCase}}{{org_name}}{{/pathCase}}/{{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin.kt b/brick/__brick__/{{project_name.snakeCase()}}_android/android/src/main/kotlin/{{org_name.pathCase()}}/{{project_name.pascalCase()}}Plugin.kt similarity index 84% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/android/src/main/kotlin/{{#pathCase}}{{org_name}}{{/pathCase}}/{{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin.kt rename to brick/__brick__/{{project_name.snakeCase()}}_android/android/src/main/kotlin/{{org_name.pathCase()}}/{{project_name.pascalCase()}}Plugin.kt index 6680c73..43ce513 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/android/src/main/kotlin/{{#pathCase}}{{org_name}}{{/pathCase}}/{{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin.kt +++ b/brick/__brick__/{{project_name.snakeCase()}}_android/android/src/main/kotlin/{{org_name.pathCase()}}/{{project_name.pascalCase()}}Plugin.kt @@ -1,4 +1,4 @@ -package {{#dotCase}}{{org_name}}{{/dotCase}} +package {{org_name.dotCase()}} import android.content.Context import androidx.annotation.NonNull @@ -9,12 +9,12 @@ import io.flutter.plugin.common.MethodChannel import io.flutter.plugin.common.MethodChannel.MethodCallHandler import io.flutter.plugin.common.MethodChannel.Result -class {{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin : FlutterPlugin, MethodCallHandler { +class {{project_name.pascalCase()}}Plugin : FlutterPlugin, MethodCallHandler { private lateinit var channel: MethodChannel private var context: Context? = null override fun onAttachedToEngine(@NonNull flutterPluginBinding: FlutterPlugin.FlutterPluginBinding) { - channel = MethodChannel(flutterPluginBinding.binaryMessenger, "{{#snakeCase}}{{project_name}}{{/snakeCase}}_android") + channel = MethodChannel(flutterPluginBinding.binaryMessenger, "{{project_name.snakeCase()}}_android") channel.setMethodCallHandler(this) context = flutterPluginBinding.applicationContext } diff --git a/brick/__brick__/{{project_name.snakeCase()}}_android/lib/{{project_name.snakeCase()}}_android.dart b/brick/__brick__/{{project_name.snakeCase()}}_android/lib/{{project_name.snakeCase()}}_android.dart new file mode 100644 index 0000000..e209f7b --- /dev/null +++ b/brick/__brick__/{{project_name.snakeCase()}}_android/lib/{{project_name.snakeCase()}}_android.dart @@ -0,0 +1,27 @@ +// Copyright (c) 2022, Very Good Ventures +// https://verygood.ventures +// +// Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file or at +// https://opensource.org/licenses/MIT. + +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; +import 'package:{{project_name.snakeCase()}}_platform_interface/{{project_name.snakeCase()}}_platform_interface.dart'; + +/// The Android implementation of [{{project_name.pascalCase()}}Platform]. +class {{project_name.pascalCase()}}Android extends {{project_name.pascalCase()}}Platform { + /// The method channel used to interact with the native platform. + @visibleForTesting + final methodChannel = const MethodChannel('{{project_name.snakeCase()}}_android'); + + /// Registers this class as the default instance of [{{project_name.pascalCase()}}Platform] + static void registerWith() { + {{project_name.pascalCase()}}Platform.instance = {{project_name.pascalCase()}}Android(); + } + + @override + Future getPlatformName() { + return methodChannel.invokeMethod('getPlatformName'); + } +} diff --git a/brick/__brick__/{{project_name.snakeCase()}}_android/pubspec.yaml b/brick/__brick__/{{project_name.snakeCase()}}_android/pubspec.yaml new file mode 100644 index 0000000..0312c3b --- /dev/null +++ b/brick/__brick__/{{project_name.snakeCase()}}_android/pubspec.yaml @@ -0,0 +1,29 @@ +name: {{project_name.snakeCase()}}_android +description: Android implementation of the {{project_name.snakeCase()}} plugin +version: 0.1.0+1 +publish_to: none + +environment: + sdk: ">=2.16.0 <3.0.0" + flutter: ">=2.10.0" + +flutter: + plugin: + implements: {{project_name.snakeCase()}} + platforms: + android: + package: {{org_name.dotCase()}} + pluginClass: {{project_name.pascalCase()}}Plugin + dartPluginClass: {{project_name.pascalCase()}}Android + +dependencies: + flutter: + sdk: flutter + {{project_name.snakeCase()}}_platform_interface: + path: ../{{project_name.snakeCase()}}_platform_interface + +dev_dependencies: + flutter_test: + sdk: flutter + plugin_platform_interface: ^2.0.0 + very_good_analysis: ^2.4.0 diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android_test.dart b/brick/__brick__/{{project_name.snakeCase()}}_android/test/{{project_name.snakeCase()}}_android_test.dart similarity index 51% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android_test.dart rename to brick/__brick__/{{project_name.snakeCase()}}_android/test/{{project_name.snakeCase()}}_android_test.dart index a85b30a..cc95df7 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android_test.dart +++ b/brick/__brick__/{{project_name.snakeCase()}}_android/test/{{project_name.snakeCase()}}_android_test.dart @@ -7,23 +7,23 @@ import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android.dart'; -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface.dart'; +import 'package:{{project_name.snakeCase()}}_android/{{project_name.snakeCase()}}_android.dart'; +import 'package:{{project_name.snakeCase()}}_platform_interface/{{project_name.snakeCase()}}_platform_interface.dart'; void main() { TestWidgetsFlutterBinding.ensureInitialized(); - group('{{#pascalCase}}{{project_name}}{{/pascalCase}}Android', () { + group('{{project_name.pascalCase()}}Android', () { const kPlatformName = 'Android'; - late {{#pascalCase}}{{project_name}}{{/pascalCase}}Android {{#camelCase}}{{project_name}}{{/camelCase}}; + late {{project_name.pascalCase()}}Android {{project_name.camelCase()}}; late List log; setUp(() async { - {{#camelCase}}{{project_name}}{{/camelCase}} = {{#pascalCase}}{{project_name}}{{/pascalCase}}Android(); + {{project_name.camelCase()}} = {{project_name.pascalCase()}}Android(); log = []; TestDefaultBinaryMessengerBinding.instance!.defaultBinaryMessenger - .setMockMethodCallHandler({{#camelCase}}{{project_name}}{{/camelCase}}.methodChannel, (methodCall) async { + .setMockMethodCallHandler({{project_name.camelCase()}}.methodChannel, (methodCall) async { log.add(methodCall); switch (methodCall.method) { case 'getPlatformName': @@ -35,12 +35,12 @@ void main() { }); test('can be registered', () { - {{#pascalCase}}{{project_name}}{{/pascalCase}}Android.registerWith(); - expect({{#pascalCase}}{{project_name}}{{/pascalCase}}Platform.instance, isA<{{#pascalCase}}{{project_name}}{{/pascalCase}}Android>()); + {{project_name.pascalCase()}}Android.registerWith(); + expect({{project_name.pascalCase()}}Platform.instance, isA<{{project_name.pascalCase()}}Android>()); }); test('getPlatformName returns correct name', () async { - final name = await {{#camelCase}}{{project_name}}{{/camelCase}}.getPlatformName(); + final name = await {{project_name.camelCase()}}.getPlatformName(); expect( log, [isMethodCall('getPlatformName', arguments: null)], diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/CHANGELOG.md b/brick/__brick__/{{project_name.snakeCase()}}_ios/CHANGELOG.md similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/CHANGELOG.md rename to brick/__brick__/{{project_name.snakeCase()}}_ios/CHANGELOG.md diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/LICENSE b/brick/__brick__/{{project_name.snakeCase()}}_ios/LICENSE similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/LICENSE rename to brick/__brick__/{{project_name.snakeCase()}}_ios/LICENSE diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/README.md b/brick/__brick__/{{project_name.snakeCase()}}_ios/README.md similarity index 73% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/README.md rename to brick/__brick__/{{project_name.snakeCase()}}_ios/README.md index 23645c1..bb0a783 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_android/README.md +++ b/brick/__brick__/{{project_name.snakeCase()}}_ios/README.md @@ -1,12 +1,12 @@ -# {{#snakeCase}}{{project_name}}{{/snakeCase}}_android +# {{project_name.snakeCase()}}_ios [![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link] -The Android implementation of `{{#snakeCase}}{{project_name}}{{/snakeCase}}`. +The ios implementation of `{{project_name.snakeCase()}}`. ## Usage -This package is [endorsed][endorsed_link], which means you can simply use `{{#snakeCase}}{{project_name}}{{/snakeCase}}` +This package is [endorsed][endorsed_link], which means you can simply use `{{project_name.snakeCase()}}` normally. This package will be automatically included in your app when you do. [endorsed_link]: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin diff --git a/brick/__brick__/{{project_name.snakeCase()}}_ios/ios/Classes/{{project_name.pascalCase()}}Plugin.h b/brick/__brick__/{{project_name.snakeCase()}}_ios/ios/Classes/{{project_name.pascalCase()}}Plugin.h new file mode 100644 index 0000000..7abcd5d --- /dev/null +++ b/brick/__brick__/{{project_name.snakeCase()}}_ios/ios/Classes/{{project_name.pascalCase()}}Plugin.h @@ -0,0 +1,4 @@ +#import + +@interface {{project_name.pascalCase()}}Plugin : NSObject +@end diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/ios/Classes/{{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin.m b/brick/__brick__/{{project_name.snakeCase()}}_ios/ios/Classes/{{project_name.pascalCase()}}Plugin.m similarity index 64% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/ios/Classes/{{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin.m rename to brick/__brick__/{{project_name.snakeCase()}}_ios/ios/Classes/{{project_name.pascalCase()}}Plugin.m index 7bca6eb..f2997b9 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/ios/Classes/{{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin.m +++ b/brick/__brick__/{{project_name.snakeCase()}}_ios/ios/Classes/{{project_name.pascalCase()}}Plugin.m @@ -1,10 +1,10 @@ -#import "{{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin.h" +#import "{{project_name.pascalCase()}}Plugin.h" -@implementation {{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin +@implementation {{project_name.pascalCase()}}Plugin + (void)registerWithRegistrar:(NSObject *)registrar { FlutterMethodChannel *channel = - [FlutterMethodChannel methodChannelWithName:@"{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios" + [FlutterMethodChannel methodChannelWithName:@"{{project_name.snakeCase()}}_ios" binaryMessenger:registrar.messenger]; [channel setMethodCallHandler:^(FlutterMethodCall *call, FlutterResult result) { if ([@"getPlatformName" isEqualToString:call.method]) { diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/ios/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios.podspec b/brick/__brick__/{{project_name.snakeCase()}}_ios/ios/{{project_name.snakeCase()}}_ios.podspec similarity index 69% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/ios/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios.podspec rename to brick/__brick__/{{project_name.snakeCase()}}_ios/ios/{{project_name.snakeCase()}}_ios.podspec index 4f679aa..8bd5a0e 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/ios/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios.podspec +++ b/brick/__brick__/{{project_name.snakeCase()}}_ios/ios/{{project_name.snakeCase()}}_ios.podspec @@ -2,11 +2,11 @@ # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html # Pod::Spec.new do |s| - s.name = '{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios' + s.name = '{{project_name.snakeCase()}}_ios' s.version = '0.0.1' - s.summary = 'An iOS implementation of the {{#snakeCase}}{{project_name}}{{/snakeCase}} plugin.' + s.summary = 'An iOS implementation of the {{project_name.snakeCase()}} plugin.' s.description = <<-DESC - An iOS implementation of the {{#snakeCase}}{{project_name}}{{/snakeCase}} plugin. + An iOS implementation of the {{project_name.snakeCase()}} plugin. DESC s.homepage = 'http://example.com' s.license = { :type => 'BSD', :file => '../LICENSE' } diff --git a/brick/__brick__/{{project_name.snakeCase()}}_ios/lib/{{project_name.snakeCase()}}_ios.dart b/brick/__brick__/{{project_name.snakeCase()}}_ios/lib/{{project_name.snakeCase()}}_ios.dart new file mode 100644 index 0000000..e4f9177 --- /dev/null +++ b/brick/__brick__/{{project_name.snakeCase()}}_ios/lib/{{project_name.snakeCase()}}_ios.dart @@ -0,0 +1,27 @@ +// Copyright (c) 2022, Very Good Ventures +// https://verygood.ventures +// +// Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file or at +// https://opensource.org/licenses/MIT. + +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; +import 'package:{{project_name.snakeCase()}}_platform_interface/{{project_name.snakeCase()}}_platform_interface.dart'; + +/// The iOS implementation of [{{project_name.pascalCase()}}Platform]. +class {{project_name.pascalCase()}}IOS extends {{project_name.pascalCase()}}Platform { + /// The method channel used to interact with the native platform. + @visibleForTesting + final methodChannel = const MethodChannel('{{project_name.snakeCase()}}_ios'); + + /// Registers this class as the default instance of [{{project_name.pascalCase()}}Platform] + static void registerWith() { + {{project_name.pascalCase()}}Platform.instance = {{project_name.pascalCase()}}IOS(); + } + + @override + Future getPlatformName() { + return methodChannel.invokeMethod('getPlatformName'); + } +} diff --git a/brick/__brick__/{{project_name.snakeCase()}}_ios/pubspec.yaml b/brick/__brick__/{{project_name.snakeCase()}}_ios/pubspec.yaml new file mode 100644 index 0000000..a61d979 --- /dev/null +++ b/brick/__brick__/{{project_name.snakeCase()}}_ios/pubspec.yaml @@ -0,0 +1,28 @@ +name: {{project_name.snakeCase()}}_ios +description: iOS implementation of the {{project_name.snakeCase()}} plugin +version: 0.1.0+1 +publish_to: none + +environment: + sdk: ">=2.16.0 <3.0.0" + flutter: ">=2.10.0" + +flutter: + plugin: + implements: {{project_name.snakeCase()}} + platforms: + ios: + pluginClass: {{project_name.pascalCase()}}Plugin + dartPluginClass: {{project_name.pascalCase()}}IOS + +dependencies: + flutter: + sdk: flutter + {{project_name.snakeCase()}}_platform_interface: + path: ../{{project_name.snakeCase()}}_platform_interface + +dev_dependencies: + flutter_test: + sdk: flutter + plugin_platform_interface: ^2.0.0 + very_good_analysis: ^2.4.0 diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios_test.dart b/brick/__brick__/{{project_name.snakeCase()}}_ios/test/{{project_name.snakeCase()}}_ios_test.dart similarity index 51% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios_test.dart rename to brick/__brick__/{{project_name.snakeCase()}}_ios/test/{{project_name.snakeCase()}}_ios_test.dart index 66bdc99..bc6a017 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios_test.dart +++ b/brick/__brick__/{{project_name.snakeCase()}}_ios/test/{{project_name.snakeCase()}}_ios_test.dart @@ -7,23 +7,23 @@ import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios/{{#snakeCase}}{{project_name}}{{/snakeCase}}_ios.dart'; -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface.dart'; +import 'package:{{project_name.snakeCase()}}_ios/{{project_name.snakeCase()}}_ios.dart'; +import 'package:{{project_name.snakeCase()}}_platform_interface/{{project_name.snakeCase()}}_platform_interface.dart'; void main() { TestWidgetsFlutterBinding.ensureInitialized(); - group('{{#pascalCase}}{{project_name}}{{/pascalCase}}IOS', () { + group('{{project_name.pascalCase()}}IOS', () { const kPlatformName = 'iOS'; - late {{#pascalCase}}{{project_name}}{{/pascalCase}}IOS {{#camelCase}}{{project_name}}{{/camelCase}}; + late {{project_name.pascalCase()}}IOS {{project_name.camelCase()}}; late List log; setUp(() async { - {{#camelCase}}{{project_name}}{{/camelCase}} = {{#pascalCase}}{{project_name}}{{/pascalCase}}IOS(); + {{project_name.camelCase()}} = {{project_name.pascalCase()}}IOS(); log = []; TestDefaultBinaryMessengerBinding.instance!.defaultBinaryMessenger - .setMockMethodCallHandler({{#camelCase}}{{project_name}}{{/camelCase}}.methodChannel, (methodCall) async { + .setMockMethodCallHandler({{project_name.camelCase()}}.methodChannel, (methodCall) async { log.add(methodCall); switch (methodCall.method) { case 'getPlatformName': @@ -35,12 +35,12 @@ void main() { }); test('can be registered', () { - {{#pascalCase}}{{project_name}}{{/pascalCase}}IOS.registerWith(); - expect({{#pascalCase}}{{project_name}}{{/pascalCase}}Platform.instance, isA<{{#pascalCase}}{{project_name}}{{/pascalCase}}IOS>()); + {{project_name.pascalCase()}}IOS.registerWith(); + expect({{project_name.pascalCase()}}Platform.instance, isA<{{project_name.pascalCase()}}IOS>()); }); test('getPlatformName returns correct name', () async { - final name = await {{#camelCase}}{{project_name}}{{/camelCase}}.getPlatformName(); + final name = await {{project_name.camelCase()}}.getPlatformName(); expect( log, [isMethodCall('getPlatformName', arguments: null)], diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/.gitignore b/brick/__brick__/{{project_name.snakeCase()}}_linux/.gitignore similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/.gitignore rename to brick/__brick__/{{project_name.snakeCase()}}_linux/.gitignore diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/CHANGELOG.md b/brick/__brick__/{{project_name.snakeCase()}}_linux/CHANGELOG.md similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/CHANGELOG.md rename to brick/__brick__/{{project_name.snakeCase()}}_linux/CHANGELOG.md diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/LICENSE b/brick/__brick__/{{project_name.snakeCase()}}_linux/LICENSE similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/LICENSE rename to brick/__brick__/{{project_name.snakeCase()}}_linux/LICENSE diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web/README.md b/brick/__brick__/{{project_name.snakeCase()}}_linux/README.md similarity index 74% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web/README.md rename to brick/__brick__/{{project_name.snakeCase()}}_linux/README.md index 264a760..5199445 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web/README.md +++ b/brick/__brick__/{{project_name.snakeCase()}}_linux/README.md @@ -1,12 +1,12 @@ -# {{#snakeCase}}{{project_name}}{{/snakeCase}}_web +# {{project_name.snakeCase()}}_linux [![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link] -The web implementation of `{{#snakeCase}}{{project_name}}{{/snakeCase}}`. +The linux implementation of `{{project_name.snakeCase()}}`. ## Usage -This package is [endorsed][endorsed_link], which means you can simply use `{{#snakeCase}}{{project_name}}{{/snakeCase}}` +This package is [endorsed][endorsed_link], which means you can simply use `{{project_name.snakeCase()}}` normally. This package will be automatically included in your app when you do. [endorsed_link]: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/analysis_options.yaml b/brick/__brick__/{{project_name.snakeCase()}}_linux/analysis_options.yaml similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/analysis_options.yaml rename to brick/__brick__/{{project_name.snakeCase()}}_linux/analysis_options.yaml diff --git a/brick/__brick__/{{project_name.snakeCase()}}_linux/lib/src/{{project_name.snakeCase()}}_linux.dart b/brick/__brick__/{{project_name.snakeCase()}}_linux/lib/src/{{project_name.snakeCase()}}_linux.dart new file mode 100644 index 0000000..a8c347a --- /dev/null +++ b/brick/__brick__/{{project_name.snakeCase()}}_linux/lib/src/{{project_name.snakeCase()}}_linux.dart @@ -0,0 +1,27 @@ +// Copyright (c) 2022, Very Good Ventures +// https://verygood.ventures +// +// Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file or at +// https://opensource.org/licenses/MIT. + +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; +import 'package:{{project_name.snakeCase()}}_platform_interface/{{project_name.snakeCase()}}_platform_interface.dart'; + +/// The Linux implementation of [{{project_name.pascalCase()}}Platform]. +class {{project_name.pascalCase()}}Linux extends {{project_name.pascalCase()}}Platform { + /// The method channel used to interact with the native platform. + @visibleForTesting + final methodChannel = const MethodChannel('{{project_name.snakeCase()}}_linux'); + + /// Registers this class as the default instance of [{{project_name.pascalCase()}}Platform] + static void registerWith() { + {{project_name.pascalCase()}}Platform.instance = {{project_name.pascalCase()}}Linux(); + } + + @override + Future getPlatformName() { + return methodChannel.invokeMethod('getPlatformName'); + } +} diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux.dart b/brick/__brick__/{{project_name.snakeCase()}}_linux/lib/{{project_name.snakeCase()}}_linux.dart similarity index 76% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux.dart rename to brick/__brick__/{{project_name.snakeCase()}}_linux/lib/{{project_name.snakeCase()}}_linux.dart index 2f720b1..8e9017a 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/lib/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux.dart +++ b/brick/__brick__/{{project_name.snakeCase()}}_linux/lib/{{project_name.snakeCase()}}_linux.dart @@ -5,4 +5,4 @@ // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. -export 'src/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux.dart'; +export 'src/{{project_name.snakeCase()}}_linux.dart'; diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/linux/.gitignore b/brick/__brick__/{{project_name.snakeCase()}}_linux/linux/.gitignore similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/linux/.gitignore rename to brick/__brick__/{{project_name.snakeCase()}}_linux/linux/.gitignore diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/linux/CMakeLists.txt b/brick/__brick__/{{project_name.snakeCase()}}_linux/linux/CMakeLists.txt similarity index 81% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/linux/CMakeLists.txt rename to brick/__brick__/{{project_name.snakeCase()}}_linux/linux/CMakeLists.txt index 77e64ba..dac6105 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/linux/CMakeLists.txt +++ b/brick/__brick__/{{project_name.snakeCase()}}_linux/linux/CMakeLists.txt @@ -1,11 +1,11 @@ cmake_minimum_required(VERSION 3.10) -set(PROJECT_NAME "{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux") +set(PROJECT_NAME "{{project_name.snakeCase()}}_linux") project(${PROJECT_NAME} LANGUAGES CXX) set(PLUGIN_NAME "${PROJECT_NAME}_plugin") list(APPEND PLUGIN_SOURCES - "{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux_plugin.cc" + "{{project_name.snakeCase()}}_linux_plugin.cc" ) add_library(${PLUGIN_NAME} SHARED diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/linux/include/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/{{#snakeCase}}{{project_name}}{{/snakeCase}}_plugin.h b/brick/__brick__/{{project_name.snakeCase()}}_linux/linux/include/{{project_name.snakeCase()}}_linux/{{project_name.snakeCase()}}_plugin.h similarity index 55% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/linux/include/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/{{#snakeCase}}{{project_name}}{{/snakeCase}}_plugin.h rename to brick/__brick__/{{project_name.snakeCase()}}_linux/linux/include/{{project_name.snakeCase()}}_linux/{{project_name.snakeCase()}}_plugin.h index c2e92c3..47b763b 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/linux/include/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/{{#snakeCase}}{{project_name}}{{/snakeCase}}_plugin.h +++ b/brick/__brick__/{{project_name.snakeCase()}}_linux/linux/include/{{project_name.snakeCase()}}_linux/{{project_name.snakeCase()}}_plugin.h @@ -11,13 +11,13 @@ G_BEGIN_DECLS #define FLUTTER_PLUGIN_EXPORT #endif -G_DECLARE_FINAL_TYPE(Fl{{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin, fl_{{#snakeCase}}{{project_name}}{{/snakeCase}}_plugin, FL, +G_DECLARE_FINAL_TYPE(Fl{{project_name.pascalCase()}}Plugin, fl_{{project_name.snakeCase()}}_plugin, FL, MY_PLUGIN_PLUGIN, GObject) -FLUTTER_PLUGIN_EXPORT Fl{{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin* fl_{{#snakeCase}}{{project_name}}{{/snakeCase}}_plugin_new( +FLUTTER_PLUGIN_EXPORT Fl{{project_name.pascalCase()}}Plugin* fl_{{project_name.snakeCase()}}_plugin_new( FlPluginRegistrar* registrar); -FLUTTER_PLUGIN_EXPORT void {{#snakeCase}}{{project_name}}{{/snakeCase}}_plugin_register_with_registrar( +FLUTTER_PLUGIN_EXPORT void {{project_name.snakeCase()}}_plugin_register_with_registrar( FlPluginRegistrar* registrar); G_END_DECLS diff --git a/brick/__brick__/{{project_name.snakeCase()}}_linux/linux/{{project_name.snakeCase()}}_linux_plugin.cc b/brick/__brick__/{{project_name.snakeCase()}}_linux/linux/{{project_name.snakeCase()}}_linux_plugin.cc new file mode 100644 index 0000000..7e2f493 --- /dev/null +++ b/brick/__brick__/{{project_name.snakeCase()}}_linux/linux/{{project_name.snakeCase()}}_linux_plugin.cc @@ -0,0 +1,68 @@ +#include "include/{{project_name.snakeCase()}}_linux/{{project_name.snakeCase()}}_plugin.h" + +#include +#include +#include + +#include + +const char kChannelName[] = "{{project_name.snakeCase()}}_linux"; +const char kGetPlatformName[] = "getPlatformName"; + +struct _Fl{{project_name.pascalCase()}}Plugin { + GObject parent_instance; + + FlPluginRegistrar* registrar; + + // Connection to Flutter engine. + FlMethodChannel* channel; +}; + +G_DEFINE_TYPE(Fl{{project_name.pascalCase()}}Plugin, fl_{{project_name.snakeCase()}}_plugin, g_object_get_type()) + +// Called when a method call is received from Flutter. +static void method_call_cb(FlMethodChannel* channel, FlMethodCall* method_call, + gpointer user_data) { + const gchar* method = fl_method_call_get_name(method_call); + + g_autoptr(FlMethodResponse) response = nullptr; + if (strcmp(method, kGetPlatformName) == 0) + response = FL_METHOD_RESPONSE(fl_method_success_response_new(fl_value_new_string("Linux"))); + else + response = FL_METHOD_RESPONSE(fl_method_not_implemented_response_new()); + + g_autoptr(GError) error = nullptr; + if (!fl_method_call_respond(method_call, response, &error)) + g_warning("Failed to send method call response: %s", error->message); +} + +static void fl_{{project_name.snakeCase()}}_plugin_dispose(GObject* object) { + G_OBJECT_CLASS(fl_{{project_name.snakeCase()}}_plugin_parent_class)->dispose(object); +} + +static void fl_{{project_name.snakeCase()}}_plugin_class_init(Fl{{project_name.pascalCase()}}PluginClass* klass) { + G_OBJECT_CLASS(klass)->dispose = fl_{{project_name.snakeCase()}}_plugin_dispose; +} + +Fl{{project_name.pascalCase()}}Plugin* fl_{{project_name.snakeCase()}}_plugin_new(FlPluginRegistrar* registrar) { + Fl{{project_name.pascalCase()}}Plugin* self = FL_MY_PLUGIN_PLUGIN( + g_object_new(fl_{{project_name.snakeCase()}}_plugin_get_type(), nullptr)); + + self->registrar = FL_PLUGIN_REGISTRAR(g_object_ref(registrar)); + + g_autoptr(FlStandardMethodCodec) codec = fl_standard_method_codec_new(); + self->channel = + fl_method_channel_new(fl_plugin_registrar_get_messenger(registrar), + kChannelName, FL_METHOD_CODEC(codec)); + fl_method_channel_set_method_call_handler(self->channel, method_call_cb, + g_object_ref(self), g_object_unref); + + return self; +} + +static void fl_{{project_name.snakeCase()}}_plugin_init(Fl{{project_name.pascalCase()}}Plugin* self) {} + +void {{project_name.snakeCase()}}_plugin_register_with_registrar(FlPluginRegistrar* registrar) { + Fl{{project_name.pascalCase()}}Plugin* plugin = fl_{{project_name.snakeCase()}}_plugin_new(registrar); + g_object_unref(plugin); +} diff --git a/brick/__brick__/{{project_name.snakeCase()}}_linux/pubspec.yaml b/brick/__brick__/{{project_name.snakeCase()}}_linux/pubspec.yaml new file mode 100644 index 0000000..9067b19 --- /dev/null +++ b/brick/__brick__/{{project_name.snakeCase()}}_linux/pubspec.yaml @@ -0,0 +1,27 @@ +name: {{project_name.snakeCase()}}_linux +description: Linux implementation of the {{project_name.snakeCase()}} plugin +version: 0.1.0+1 +publish_to: none + +environment: + sdk: ">=2.16.0 <3.0.0" + flutter: ">=2.10.0" + +flutter: + plugin: + implements: {{project_name.snakeCase()}} + platforms: + linux: + pluginClass: {{project_name.pascalCase()}}Plugin + dartPluginClass: {{project_name.pascalCase()}}Linux + +dependencies: + flutter: + sdk: flutter + {{project_name.snakeCase()}}_platform_interface: + path: ../{{project_name.snakeCase()}}_platform_interface + +dev_dependencies: + flutter_test: + sdk: flutter + very_good_analysis: ^2.4.0 diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux_test.dart b/brick/__brick__/{{project_name.snakeCase()}}_linux/test/{{project_name.snakeCase()}}_linux_test.dart similarity index 51% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux_test.dart rename to brick/__brick__/{{project_name.snakeCase()}}_linux/test/{{project_name.snakeCase()}}_linux_test.dart index fac3b9c..f086214 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux_test.dart +++ b/brick/__brick__/{{project_name.snakeCase()}}_linux/test/{{project_name.snakeCase()}}_linux_test.dart @@ -7,23 +7,23 @@ import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux.dart'; -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface.dart'; +import 'package:{{project_name.snakeCase()}}_linux/{{project_name.snakeCase()}}_linux.dart'; +import 'package:{{project_name.snakeCase()}}_platform_interface/{{project_name.snakeCase()}}_platform_interface.dart'; void main() { TestWidgetsFlutterBinding.ensureInitialized(); - group('{{#pascalCase}}{{project_name}}{{/pascalCase}}Linux', () { + group('{{project_name.pascalCase()}}Linux', () { const kPlatformName = 'Linux'; - late {{#pascalCase}}{{project_name}}{{/pascalCase}}Linux {{#camelCase}}{{project_name}}{{/camelCase}}; + late {{project_name.pascalCase()}}Linux {{project_name.camelCase()}}; late List log; setUp(() async { - {{#camelCase}}{{project_name}}{{/camelCase}} = {{#pascalCase}}{{project_name}}{{/pascalCase}}Linux(); + {{project_name.camelCase()}} = {{project_name.pascalCase()}}Linux(); log = []; TestDefaultBinaryMessengerBinding.instance!.defaultBinaryMessenger - .setMockMethodCallHandler({{#camelCase}}{{project_name}}{{/camelCase}}.methodChannel, (methodCall) async { + .setMockMethodCallHandler({{project_name.camelCase()}}.methodChannel, (methodCall) async { log.add(methodCall); switch (methodCall.method) { case 'getPlatformName': @@ -35,12 +35,12 @@ void main() { }); test('can be registered', () { - {{#pascalCase}}{{project_name}}{{/pascalCase}}Linux.registerWith(); - expect({{#pascalCase}}{{project_name}}{{/pascalCase}}Platform.instance, isA<{{#pascalCase}}{{project_name}}{{/pascalCase}}Linux>()); + {{project_name.pascalCase()}}Linux.registerWith(); + expect({{project_name.pascalCase()}}Platform.instance, isA<{{project_name.pascalCase()}}Linux>()); }); test('getPlatformName returns correct name', () async { - final name = await {{#camelCase}}{{project_name}}{{/camelCase}}.getPlatformName(); + final name = await {{project_name.camelCase()}}.getPlatformName(); expect( log, [isMethodCall('getPlatformName', arguments: null)], diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/.gitignore b/brick/__brick__/{{project_name.snakeCase()}}_macos/.gitignore similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/.gitignore rename to brick/__brick__/{{project_name.snakeCase()}}_macos/.gitignore diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/CHANGELOG.md b/brick/__brick__/{{project_name.snakeCase()}}_macos/CHANGELOG.md similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/CHANGELOG.md rename to brick/__brick__/{{project_name.snakeCase()}}_macos/CHANGELOG.md diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/LICENSE b/brick/__brick__/{{project_name.snakeCase()}}_macos/LICENSE similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/LICENSE rename to brick/__brick__/{{project_name.snakeCase()}}_macos/LICENSE diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/README.md b/brick/__brick__/{{project_name.snakeCase()}}_macos/README.md similarity index 73% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/README.md rename to brick/__brick__/{{project_name.snakeCase()}}_macos/README.md index 7c7754a..9252f21 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_linux/README.md +++ b/brick/__brick__/{{project_name.snakeCase()}}_macos/README.md @@ -1,12 +1,12 @@ -# {{#snakeCase}}{{project_name}}{{/snakeCase}}_linux +# {{project_name.snakeCase()}}_macos [![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link] -The linux implementation of `{{#snakeCase}}{{project_name}}{{/snakeCase}}`. +The macos implementation of `{{project_name.snakeCase()}}`. ## Usage -This package is [endorsed][endorsed_link], which means you can simply use `{{#snakeCase}}{{project_name}}{{/snakeCase}}` +This package is [endorsed][endorsed_link], which means you can simply use `{{project_name.snakeCase()}}` normally. This package will be automatically included in your app when you do. [endorsed_link]: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/analysis_options.yaml b/brick/__brick__/{{project_name.snakeCase()}}_macos/analysis_options.yaml similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/analysis_options.yaml rename to brick/__brick__/{{project_name.snakeCase()}}_macos/analysis_options.yaml diff --git a/brick/__brick__/{{project_name.snakeCase()}}_macos/lib/{{project_name.snakeCase()}}_macos.dart b/brick/__brick__/{{project_name.snakeCase()}}_macos/lib/{{project_name.snakeCase()}}_macos.dart new file mode 100644 index 0000000..75cdf12 --- /dev/null +++ b/brick/__brick__/{{project_name.snakeCase()}}_macos/lib/{{project_name.snakeCase()}}_macos.dart @@ -0,0 +1,27 @@ +// Copyright (c) 2022, Very Good Ventures +// https://verygood.ventures +// +// Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file or at +// https://opensource.org/licenses/MIT. + +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; +import 'package:{{project_name.snakeCase()}}_platform_interface/{{project_name.snakeCase()}}_platform_interface.dart'; + +/// The MacOS implementation of [{{project_name.pascalCase()}}Platform]. +class {{project_name.pascalCase()}}MacOS extends {{project_name.pascalCase()}}Platform { + /// The method channel used to interact with the native platform. + @visibleForTesting + final methodChannel = const MethodChannel('{{project_name.snakeCase()}}_macos'); + + /// Registers this class as the default instance of [{{project_name.pascalCase()}}Platform] + static void registerWith() { + {{project_name.pascalCase()}}Platform.instance = {{project_name.pascalCase()}}MacOS(); + } + + @override + Future getPlatformName() { + return methodChannel.invokeMethod('getPlatformName'); + } +} diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/macos/Classes/{{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin.swift b/brick/__brick__/{{project_name.snakeCase()}}_macos/macos/Classes/{{project_name.pascalCase()}}Plugin.swift similarity index 67% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/macos/Classes/{{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin.swift rename to brick/__brick__/{{project_name.snakeCase()}}_macos/macos/Classes/{{project_name.pascalCase()}}Plugin.swift index 5027c4a..447997d 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/macos/Classes/{{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin.swift +++ b/brick/__brick__/{{project_name.snakeCase()}}_macos/macos/Classes/{{project_name.pascalCase()}}Plugin.swift @@ -1,12 +1,12 @@ import FlutterMacOS import Foundation -public class {{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin: NSObject, FlutterPlugin { +public class {{project_name.pascalCase()}}Plugin: NSObject, FlutterPlugin { public static func register(with registrar: FlutterPluginRegistrar) { let channel = FlutterMethodChannel( - name: "{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos", + name: "{{project_name.snakeCase()}}_macos", binaryMessenger: registrar.messenger) - let instance = {{#pascalCase}}{{project_name}}{{/pascalCase}}Plugin() + let instance = {{project_name.pascalCase()}}Plugin() registrar.addMethodCallDelegate(instance, channel: channel) } diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/macos/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos.podspec b/brick/__brick__/{{project_name.snakeCase()}}_macos/macos/{{project_name.snakeCase()}}_macos.podspec similarity index 67% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/macos/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos.podspec rename to brick/__brick__/{{project_name.snakeCase()}}_macos/macos/{{project_name.snakeCase()}}_macos.podspec index 64e2666..fc794b4 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/macos/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos.podspec +++ b/brick/__brick__/{{project_name.snakeCase()}}_macos/macos/{{project_name.snakeCase()}}_macos.podspec @@ -2,11 +2,11 @@ # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html # Pod::Spec.new do |s| - s.name = '{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos' + s.name = '{{project_name.snakeCase()}}_macos' s.version = '0.0.1' - s.summary = 'A macOS implementation of the {{#snakeCase}}{{project_name}}{{/snakeCase}} plugin.' + s.summary = 'A macOS implementation of the {{project_name.snakeCase()}} plugin.' s.description = <<-DESC - A macOS implementation of the {{#snakeCase}}{{project_name}}{{/snakeCase}} plugin. + A macOS implementation of the {{project_name.snakeCase()}} plugin. DESC s.homepage = 'http://example.com' s.license = { :type => 'BSD', :file => '../LICENSE' } diff --git a/brick/__brick__/{{project_name.snakeCase()}}_macos/pubspec.yaml b/brick/__brick__/{{project_name.snakeCase()}}_macos/pubspec.yaml new file mode 100644 index 0000000..a00e8fd --- /dev/null +++ b/brick/__brick__/{{project_name.snakeCase()}}_macos/pubspec.yaml @@ -0,0 +1,27 @@ +name: {{project_name.snakeCase()}}_macos +description: MacOS implementation of the {{project_name.snakeCase()}} plugin +version: 0.1.0+1 +publish_to: none + +environment: + sdk: ">=2.16.0 <3.0.0" + flutter: ">=2.10.0" + +flutter: + plugin: + implements: {{project_name.snakeCase()}} + platforms: + macos: + pluginClass: {{project_name.pascalCase()}}Plugin + dartPluginClass: {{project_name.pascalCase()}}MacOS + +dependencies: + flutter: + sdk: flutter + {{project_name.snakeCase()}}_platform_interface: + path: ../{{project_name.snakeCase()}}_platform_interface + +dev_dependencies: + flutter_test: + sdk: flutter + very_good_analysis: ^2.4.0 diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos_test.dart b/brick/__brick__/{{project_name.snakeCase()}}_macos/test/{{project_name.snakeCase()}}_macos_test.dart similarity index 51% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos_test.dart rename to brick/__brick__/{{project_name.snakeCase()}}_macos/test/{{project_name.snakeCase()}}_macos_test.dart index 36952d3..944009f 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos_test.dart +++ b/brick/__brick__/{{project_name.snakeCase()}}_macos/test/{{project_name.snakeCase()}}_macos_test.dart @@ -7,23 +7,23 @@ import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos.dart'; -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface.dart'; +import 'package:{{project_name.snakeCase()}}_macos/{{project_name.snakeCase()}}_macos.dart'; +import 'package:{{project_name.snakeCase()}}_platform_interface/{{project_name.snakeCase()}}_platform_interface.dart'; void main() { TestWidgetsFlutterBinding.ensureInitialized(); - group('{{#pascalCase}}{{project_name}}{{/pascalCase}}MacOS', () { + group('{{project_name.pascalCase()}}MacOS', () { const kPlatformName = 'MacOS'; - late {{#pascalCase}}{{project_name}}{{/pascalCase}}MacOS {{#camelCase}}{{project_name}}{{/camelCase}}; + late {{project_name.pascalCase()}}MacOS {{project_name.camelCase()}}; late List log; setUp(() async { - {{#camelCase}}{{project_name}}{{/camelCase}} = {{#pascalCase}}{{project_name}}{{/pascalCase}}MacOS(); + {{project_name.camelCase()}} = {{project_name.pascalCase()}}MacOS(); log = []; TestDefaultBinaryMessengerBinding.instance!.defaultBinaryMessenger - .setMockMethodCallHandler({{#camelCase}}{{project_name}}{{/camelCase}}.methodChannel, (methodCall) async { + .setMockMethodCallHandler({{project_name.camelCase()}}.methodChannel, (methodCall) async { log.add(methodCall); switch (methodCall.method) { case 'getPlatformName': @@ -35,12 +35,12 @@ void main() { }); test('can be registered', () { - {{#pascalCase}}{{project_name}}{{/pascalCase}}MacOS.registerWith(); - expect({{#pascalCase}}{{project_name}}{{/pascalCase}}Platform.instance, isA<{{#pascalCase}}{{project_name}}{{/pascalCase}}MacOS>()); + {{project_name.pascalCase()}}MacOS.registerWith(); + expect({{project_name.pascalCase()}}Platform.instance, isA<{{project_name.pascalCase()}}MacOS>()); }); test('getPlatformName returns correct name', () async { - final name = await {{#camelCase}}{{project_name}}{{/camelCase}}.getPlatformName(); + final name = await {{project_name.camelCase()}}.getPlatformName(); expect( log, [isMethodCall('getPlatformName', arguments: null)], diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/CHANGELOG.md b/brick/__brick__/{{project_name.snakeCase()}}_platform_interface/CHANGELOG.md similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/CHANGELOG.md rename to brick/__brick__/{{project_name.snakeCase()}}_platform_interface/CHANGELOG.md diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/LICENSE b/brick/__brick__/{{project_name.snakeCase()}}_platform_interface/LICENSE similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/LICENSE rename to brick/__brick__/{{project_name.snakeCase()}}_platform_interface/LICENSE diff --git a/brick/__brick__/{{project_name.snakeCase()}}_platform_interface/README.md b/brick/__brick__/{{project_name.snakeCase()}}_platform_interface/README.md new file mode 100644 index 0000000..c79f599 --- /dev/null +++ b/brick/__brick__/{{project_name.snakeCase()}}_platform_interface/README.md @@ -0,0 +1,14 @@ +# {{project_name.snakeCase()}}_platform_interface + +[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link] + +A common platform interface for the `{{project_name.snakeCase()}}` plugin. + +This interface allows platform-specific implementations of the `{{project_name.snakeCase()}}` plugin, as well as the plugin itself, to ensure they are supporting the same interface. + +# Usage + +To implement a new platform-specific implementation of `{{project_name.snakeCase()}}`, extend `{{project_name.pascalCase()}}Platform` with an implementation that performs the platform-specific behavior. + +[very_good_analysis_badge]: https://img.shields.io/badge/style-very_good_analysis-B22C89.svg +[very_good_analysis_link]: https://pub.dev/packages/very_good_analysis \ No newline at end of file diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/analysis_options.yaml b/brick/__brick__/{{project_name.snakeCase()}}_platform_interface/analysis_options.yaml similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/analysis_options.yaml rename to brick/__brick__/{{project_name.snakeCase()}}_platform_interface/analysis_options.yaml diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/lib/src/method_channel_{{#snakeCase}}{{project_name}}{{/snakeCase}}.dart b/brick/__brick__/{{project_name.snakeCase()}}_platform_interface/lib/src/method_channel_{{project_name.snakeCase()}}.dart similarity index 52% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/lib/src/method_channel_{{#snakeCase}}{{project_name}}{{/snakeCase}}.dart rename to brick/__brick__/{{project_name.snakeCase()}}_platform_interface/lib/src/method_channel_{{project_name.snakeCase()}}.dart index 6bd1558..0aee9da 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/lib/src/method_channel_{{#snakeCase}}{{project_name}}{{/snakeCase}}.dart +++ b/brick/__brick__/{{project_name.snakeCase()}}_platform_interface/lib/src/method_channel_{{project_name.snakeCase()}}.dart @@ -7,13 +7,13 @@ import 'package:flutter/foundation.dart' show visibleForTesting; import 'package:flutter/services.dart'; -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface.dart'; +import 'package:{{project_name.snakeCase()}}_platform_interface/{{project_name.snakeCase()}}_platform_interface.dart'; -/// An implementation of [{{#pascalCase}}{{project_name}}{{/pascalCase}}Platform] that uses method channels. -class MethodChannel{{#pascalCase}}{{project_name}}{{/pascalCase}} extends {{#pascalCase}}{{project_name}}{{/pascalCase}}Platform { +/// An implementation of [{{project_name.pascalCase()}}Platform] that uses method channels. +class MethodChannel{{project_name.pascalCase()}} extends {{project_name.pascalCase()}}Platform { /// The method channel used to interact with the native platform. @visibleForTesting - final methodChannel = const MethodChannel('{{#snakeCase}}{{project_name}}{{/snakeCase}}'); + final methodChannel = const MethodChannel('{{project_name.snakeCase()}}'); @override Future getPlatformName() { diff --git a/brick/__brick__/{{project_name.snakeCase()}}_platform_interface/lib/{{project_name.snakeCase()}}_platform_interface.dart b/brick/__brick__/{{project_name.snakeCase()}}_platform_interface/lib/{{project_name.snakeCase()}}_platform_interface.dart new file mode 100644 index 0000000..d7b9ad5 --- /dev/null +++ b/brick/__brick__/{{project_name.snakeCase()}}_platform_interface/lib/{{project_name.snakeCase()}}_platform_interface.dart @@ -0,0 +1,40 @@ +// Copyright (c) 2022, Very Good Ventures +// https://verygood.ventures +// +// Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file or at +// https://opensource.org/licenses/MIT. + +import 'package:{{project_name.snakeCase()}}_platform_interface/src/method_channel_{{project_name.snakeCase()}}.dart'; +import 'package:plugin_platform_interface/plugin_platform_interface.dart'; + +/// The interface that implementations of {{project_name.snakeCase()}} must implement. +/// +/// Platform implementations should extend this class +/// rather than implement it as `{{project_name.pascalCase()}}`. +/// Extending this class (using `extends`) ensures that the subclass will get +/// the default implementation, while platform implementations that `implements` +/// this interface will be broken by newly added [{{project_name.pascalCase()}}Platform] methods. +abstract class {{project_name.pascalCase()}}Platform extends PlatformInterface { + /// Constructs a {{project_name.pascalCase()}}Platform. + {{project_name.pascalCase()}}Platform() : super(token: _token); + + static final Object _token = Object(); + + static {{project_name.pascalCase()}}Platform _instance = MethodChannel{{project_name.pascalCase()}}(); + + /// The default instance of [{{project_name.pascalCase()}}Platform] to use. + /// + /// Defaults to [MethodChannel{{project_name.pascalCase()}}]. + static {{project_name.pascalCase()}}Platform get instance => _instance; + + /// Platform-specific plugins should set this with their own platform-specific + /// class that extends [{{project_name.pascalCase()}}Platform] when they register themselves. + static set instance({{project_name.pascalCase()}}Platform instance) { + PlatformInterface.verify(instance, _token); + _instance = instance; + } + + /// Return the current platform name. + Future getPlatformName(); +} diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/pubspec.yaml b/brick/__brick__/{{project_name.snakeCase()}}_platform_interface/pubspec.yaml similarity index 58% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/pubspec.yaml rename to brick/__brick__/{{project_name.snakeCase()}}_platform_interface/pubspec.yaml index ca8e41d..b63eb3f 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/pubspec.yaml +++ b/brick/__brick__/{{project_name.snakeCase()}}_platform_interface/pubspec.yaml @@ -1,5 +1,5 @@ -name: {{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface -description: A common platform interface for the {{#snakeCase}}{{project_name}}{{/snakeCase}} plugin. +name: {{project_name.snakeCase()}}_platform_interface +description: A common platform interface for the {{project_name.snakeCase()}} plugin. version: 0.1.0+1 environment: diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/test/src/method_channel_{{#snakeCase}}{{project_name}}{{/snakeCase}}_test.dart b/brick/__brick__/{{project_name.snakeCase()}}_platform_interface/test/src/method_channel_{{project_name.snakeCase()}}_test.dart similarity index 62% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/test/src/method_channel_{{#snakeCase}}{{project_name}}{{/snakeCase}}_test.dart rename to brick/__brick__/{{project_name.snakeCase()}}_platform_interface/test/src/method_channel_{{project_name.snakeCase()}}_test.dart index 3e8406d..cf8fdc8 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/test/src/method_channel_{{#snakeCase}}{{project_name}}{{/snakeCase}}_test.dart +++ b/brick/__brick__/{{project_name.snakeCase()}}_platform_interface/test/src/method_channel_{{project_name.snakeCase()}}_test.dart @@ -7,18 +7,18 @@ import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/src/method_channel_{{#snakeCase}}{{project_name}}{{/snakeCase}}.dart'; +import 'package:{{project_name.snakeCase()}}_platform_interface/src/method_channel_{{project_name.snakeCase()}}.dart'; void main() { TestWidgetsFlutterBinding.ensureInitialized(); const kPlatformName = 'platformName'; - group('$MethodChannel{{#pascalCase}}{{project_name}}{{/pascalCase}}', () { - late MethodChannel{{#pascalCase}}{{project_name}}{{/pascalCase}} methodChannel{{#pascalCase}}{{project_name}}{{/pascalCase}}; + group('$MethodChannel{{project_name.pascalCase()}}', () { + late MethodChannel{{project_name.pascalCase()}} methodChannel{{project_name.pascalCase()}}; final log = []; setUp(() async { - methodChannel{{#pascalCase}}{{project_name}}{{/pascalCase}} = MethodChannel{{#pascalCase}}{{project_name}}{{/pascalCase}}() + methodChannel{{project_name.pascalCase()}} = MethodChannel{{project_name.pascalCase()}}() ..methodChannel.setMockMethodCallHandler((MethodCall methodCall) async { log.add(methodCall); switch (methodCall.method) { @@ -33,7 +33,7 @@ void main() { tearDown(log.clear); test('getPlatformName', () async { - final platformName = await methodChannel{{#pascalCase}}{{project_name}}{{/pascalCase}}.getPlatformName(); + final platformName = await methodChannel{{project_name.pascalCase()}}.getPlatformName(); expect( log, [isMethodCall('getPlatformName', arguments: null)], diff --git a/brick/__brick__/{{project_name.snakeCase()}}_platform_interface/test/{{project_name.snakeCase()}}_platform_interface_test.dart b/brick/__brick__/{{project_name.snakeCase()}}_platform_interface/test/{{project_name.snakeCase()}}_platform_interface_test.dart new file mode 100644 index 0000000..882447b --- /dev/null +++ b/brick/__brick__/{{project_name.snakeCase()}}_platform_interface/test/{{project_name.snakeCase()}}_platform_interface_test.dart @@ -0,0 +1,37 @@ +// Copyright (c) 2022, Very Good Ventures +// https://verygood.ventures +// +// Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file or at +// https://opensource.org/licenses/MIT. + +import 'package:flutter_test/flutter_test.dart'; +import 'package:{{project_name.snakeCase()}}_platform_interface/{{project_name.snakeCase()}}_platform_interface.dart'; + +class {{project_name.pascalCase()}}Mock extends {{project_name.pascalCase()}}Platform { + static const mockPlatformName = 'Mock'; + + @override + Future getPlatformName() async => mockPlatformName; +} + +void main() { + TestWidgetsFlutterBinding.ensureInitialized(); + group('{{project_name.pascalCase()}}PlatformInterface', () { + late {{project_name.pascalCase()}}Platform {{project_name.camelCase()}}Platform; + + setUp(() { + {{project_name.camelCase()}}Platform = {{project_name.pascalCase()}}Mock(); + {{project_name.pascalCase()}}Platform.instance = {{project_name.camelCase()}}Platform; + }); + + group('getPlatformName', () { + test('returns correct name', () async { + expect( + await {{project_name.pascalCase()}}Platform.instance.getPlatformName(), + equals({{project_name.pascalCase()}}Mock.mockPlatformName), + ); + }); + }); + }); +} diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web/.gitignore b/brick/__brick__/{{project_name.snakeCase()}}_web/.gitignore similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web/.gitignore rename to brick/__brick__/{{project_name.snakeCase()}}_web/.gitignore diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web/CHANGELOG.md b/brick/__brick__/{{project_name.snakeCase()}}_web/CHANGELOG.md similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web/CHANGELOG.md rename to brick/__brick__/{{project_name.snakeCase()}}_web/CHANGELOG.md diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web/LICENSE b/brick/__brick__/{{project_name.snakeCase()}}_web/LICENSE similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web/LICENSE rename to brick/__brick__/{{project_name.snakeCase()}}_web/LICENSE diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/README.md b/brick/__brick__/{{project_name.snakeCase()}}_web/README.md similarity index 73% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/README.md rename to brick/__brick__/{{project_name.snakeCase()}}_web/README.md index 2b73230..564d9cf 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_macos/README.md +++ b/brick/__brick__/{{project_name.snakeCase()}}_web/README.md @@ -1,12 +1,12 @@ -# {{#snakeCase}}{{project_name}}{{/snakeCase}}_macos +# {{project_name.snakeCase()}}_web [![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link] -The macos implementation of `{{#snakeCase}}{{project_name}}{{/snakeCase}}`. +The web implementation of `{{project_name.snakeCase()}}`. ## Usage -This package is [endorsed][endorsed_link], which means you can simply use `{{#snakeCase}}{{project_name}}{{/snakeCase}}` +This package is [endorsed][endorsed_link], which means you can simply use `{{project_name.snakeCase()}}` normally. This package will be automatically included in your app when you do. [endorsed_link]: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web/analysis_options.yaml b/brick/__brick__/{{project_name.snakeCase()}}_web/analysis_options.yaml similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_web/analysis_options.yaml rename to brick/__brick__/{{project_name.snakeCase()}}_web/analysis_options.yaml diff --git a/brick/__brick__/{{project_name.snakeCase()}}_web/lib/{{project_name.snakeCase()}}_web.dart b/brick/__brick__/{{project_name.snakeCase()}}_web/lib/{{project_name.snakeCase()}}_web.dart new file mode 100644 index 0000000..23e3e46 --- /dev/null +++ b/brick/__brick__/{{project_name.snakeCase()}}_web/lib/{{project_name.snakeCase()}}_web.dart @@ -0,0 +1,19 @@ +// Copyright (c) 2022, Very Good Ventures +// https://verygood.ventures +// +// Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file or at +// https://opensource.org/licenses/MIT. + +import 'package:{{project_name.snakeCase()}}_platform_interface/{{project_name.snakeCase()}}_platform_interface.dart'; + +/// The Web implementation of [{{project_name.pascalCase()}}Platform]. +class {{project_name.pascalCase()}}Web extends {{project_name.pascalCase()}}Platform { + /// Registers this class as the default instance of [{{project_name.pascalCase()}}Platform] + static void registerWith([Object? registrar]) { + {{project_name.pascalCase()}}Platform.instance = {{project_name.pascalCase()}}Web(); + } + + @override + Future getPlatformName() async => 'Web'; +} diff --git a/brick/__brick__/{{project_name.snakeCase()}}_web/pubspec.yaml b/brick/__brick__/{{project_name.snakeCase()}}_web/pubspec.yaml new file mode 100644 index 0000000..f57791e --- /dev/null +++ b/brick/__brick__/{{project_name.snakeCase()}}_web/pubspec.yaml @@ -0,0 +1,29 @@ +name: {{project_name.snakeCase()}}_web +description: Web implementation of the {{project_name.snakeCase()}} plugin +version: 0.1.0+1 +publish_to: none + +environment: + sdk: ">=2.16.0 <3.0.0" + flutter: ">=2.10.0" + +flutter: + plugin: + implements: {{project_name.snakeCase()}} + platforms: + web: + pluginClass: {{project_name.pascalCase()}}Web + fileName: {{project_name.snakeCase()}}_web.dart + +dependencies: + flutter: + sdk: flutter + flutter_web_plugins: + sdk: flutter + {{project_name.snakeCase()}}_platform_interface: + path: ../{{project_name.snakeCase()}}_platform_interface + +dev_dependencies: + flutter_test: + sdk: flutter + very_good_analysis: ^2.4.0 diff --git a/brick/__brick__/{{project_name.snakeCase()}}_web/test/{{project_name.snakeCase()}}_web_test.dart b/brick/__brick__/{{project_name.snakeCase()}}_web/test/{{project_name.snakeCase()}}_web_test.dart new file mode 100644 index 0000000..f5a6d24 --- /dev/null +++ b/brick/__brick__/{{project_name.snakeCase()}}_web/test/{{project_name.snakeCase()}}_web_test.dart @@ -0,0 +1,33 @@ +// Copyright (c) 2022, Very Good Ventures +// https://verygood.ventures +// +// Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file or at +// https://opensource.org/licenses/MIT. + +import 'package:flutter_test/flutter_test.dart'; +import 'package:{{project_name.snakeCase()}}_platform_interface/{{project_name.snakeCase()}}_platform_interface.dart'; +import 'package:{{project_name.snakeCase()}}_web/{{project_name.snakeCase()}}_web.dart'; + +void main() { + TestWidgetsFlutterBinding.ensureInitialized(); + + group('{{project_name.pascalCase()}}Web', () { + const kPlatformName = 'Web'; + late {{project_name.pascalCase()}}Web {{project_name.camelCase()}}; + + setUp(() async { + {{project_name.camelCase()}} = {{project_name.pascalCase()}}Web(); + }); + + test('can be registered', () { + {{project_name.pascalCase()}}Web.registerWith(); + expect({{project_name.pascalCase()}}Platform.instance, isA<{{project_name.pascalCase()}}Web>()); + }); + + test('getPlatformName returns correct name', () async { + final name = await {{project_name.camelCase()}}.getPlatformName(); + expect(name, equals(kPlatformName)); + }); + }); +} diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/.gitignore b/brick/__brick__/{{project_name.snakeCase()}}_windows/.gitignore similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/.gitignore rename to brick/__brick__/{{project_name.snakeCase()}}_windows/.gitignore diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/.metadata b/brick/__brick__/{{project_name.snakeCase()}}_windows/.metadata similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/.metadata rename to brick/__brick__/{{project_name.snakeCase()}}_windows/.metadata diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/CHANGELOG.md b/brick/__brick__/{{project_name.snakeCase()}}_windows/CHANGELOG.md similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/CHANGELOG.md rename to brick/__brick__/{{project_name.snakeCase()}}_windows/CHANGELOG.md diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/LICENSE b/brick/__brick__/{{project_name.snakeCase()}}_windows/LICENSE similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/LICENSE rename to brick/__brick__/{{project_name.snakeCase()}}_windows/LICENSE diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/README.md b/brick/__brick__/{{project_name.snakeCase()}}_windows/README.md similarity index 73% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/README.md rename to brick/__brick__/{{project_name.snakeCase()}}_windows/README.md index fdba3f4..a77d92b 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/README.md +++ b/brick/__brick__/{{project_name.snakeCase()}}_windows/README.md @@ -1,12 +1,12 @@ -# {{#snakeCase}}{{project_name}}{{/snakeCase}}_windows +# {{project_name.snakeCase()}}_windows [![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link] -The windows implementation of `{{#snakeCase}}{{project_name}}{{/snakeCase}}`. +The windows implementation of `{{project_name.snakeCase()}}`. ## Usage -This package is [endorsed][endorsed_link], which means you can simply use `{{#snakeCase}}{{project_name}}{{/snakeCase}}` +This package is [endorsed][endorsed_link], which means you can simply use `{{project_name.snakeCase()}}` normally. This package will be automatically included in your app when you do. [endorsed_link]: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/analysis_options.yaml b/brick/__brick__/{{project_name.snakeCase()}}_windows/analysis_options.yaml similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/analysis_options.yaml rename to brick/__brick__/{{project_name.snakeCase()}}_windows/analysis_options.yaml diff --git a/brick/__brick__/{{project_name.snakeCase()}}_windows/lib/{{project_name.snakeCase()}}_windows.dart b/brick/__brick__/{{project_name.snakeCase()}}_windows/lib/{{project_name.snakeCase()}}_windows.dart new file mode 100644 index 0000000..1c5a6de --- /dev/null +++ b/brick/__brick__/{{project_name.snakeCase()}}_windows/lib/{{project_name.snakeCase()}}_windows.dart @@ -0,0 +1,27 @@ +// Copyright (c) 2022, Very Good Ventures +// https://verygood.ventures +// +// Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file or at +// https://opensource.org/licenses/MIT. + +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; +import 'package:{{project_name.snakeCase()}}_platform_interface/{{project_name.snakeCase()}}_platform_interface.dart'; + +/// The Windows implementation of [{{project_name.pascalCase()}}Platform]. +class {{project_name.pascalCase()}}Windows extends {{project_name.pascalCase()}}Platform { + /// The method channel used to interact with the native platform. + @visibleForTesting + final methodChannel = const MethodChannel('{{project_name.snakeCase()}}_windows'); + + /// Registers this class as the default instance of [{{project_name.pascalCase()}}Platform] + static void registerWith() { + {{project_name.pascalCase()}}Platform.instance = {{project_name.pascalCase()}}Windows(); + } + + @override + Future getPlatformName() { + return methodChannel.invokeMethod('getPlatformName'); + } +} diff --git a/brick/__brick__/{{project_name.snakeCase()}}_windows/pubspec.yaml b/brick/__brick__/{{project_name.snakeCase()}}_windows/pubspec.yaml new file mode 100644 index 0000000..ea5591d --- /dev/null +++ b/brick/__brick__/{{project_name.snakeCase()}}_windows/pubspec.yaml @@ -0,0 +1,27 @@ +name: {{project_name.snakeCase()}}_windows +description: Windows implementation of the {{project_name.snakeCase()}} plugin +version: 0.1.0+1 +publish_to: none + +environment: + sdk: ">=2.16.0 <3.0.0" + flutter: ">=2.10.0" + +flutter: + plugin: + implements: {{project_name.snakeCase()}} + platforms: + windows: + pluginClass: {{project_name.pascalCase()}}Windows + dartPluginClass: {{project_name.pascalCase()}}Windows + +dependencies: + flutter: + sdk: flutter + {{project_name.snakeCase()}}_platform_interface: + path: ../{{project_name.snakeCase()}}_platform_interface + +dev_dependencies: + flutter_test: + sdk: flutter + very_good_analysis: ^2.4.0 diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows_test.dart b/brick/__brick__/{{project_name.snakeCase()}}_windows/test/{{project_name.snakeCase()}}_windows_test.dart similarity index 51% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows_test.dart rename to brick/__brick__/{{project_name.snakeCase()}}_windows/test/{{project_name.snakeCase()}}_windows_test.dart index 5f03f69..54adadc 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/test/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows_test.dart +++ b/brick/__brick__/{{project_name.snakeCase()}}_windows/test/{{project_name.snakeCase()}}_windows_test.dart @@ -7,23 +7,23 @@ import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface/{{#snakeCase}}{{project_name}}{{/snakeCase}}_platform_interface.dart'; -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows.dart'; +import 'package:{{project_name.snakeCase()}}_platform_interface/{{project_name.snakeCase()}}_platform_interface.dart'; +import 'package:{{project_name.snakeCase()}}_windows/{{project_name.snakeCase()}}_windows.dart'; void main() { TestWidgetsFlutterBinding.ensureInitialized(); - group('{{#pascalCase}}{{project_name}}{{/pascalCase}}Windows', () { + group('{{project_name.pascalCase()}}Windows', () { const kPlatformName = 'Windows'; - late {{#pascalCase}}{{project_name}}{{/pascalCase}}Windows {{#camelCase}}{{project_name}}{{/camelCase}}; + late {{project_name.pascalCase()}}Windows {{project_name.camelCase()}}; late List log; setUp(() async { - {{#camelCase}}{{project_name}}{{/camelCase}} = {{#pascalCase}}{{project_name}}{{/pascalCase}}Windows(); + {{project_name.camelCase()}} = {{project_name.pascalCase()}}Windows(); log = []; TestDefaultBinaryMessengerBinding.instance!.defaultBinaryMessenger - .setMockMethodCallHandler({{#camelCase}}{{project_name}}{{/camelCase}}.methodChannel, (methodCall) async { + .setMockMethodCallHandler({{project_name.camelCase()}}.methodChannel, (methodCall) async { log.add(methodCall); switch (methodCall.method) { case 'getPlatformName': @@ -35,12 +35,12 @@ void main() { }); test('can be registered', () { - {{#pascalCase}}{{project_name}}{{/pascalCase}}Windows.registerWith(); - expect({{#pascalCase}}{{project_name}}{{/pascalCase}}Platform.instance, isA<{{#pascalCase}}{{project_name}}{{/pascalCase}}Windows>()); + {{project_name.pascalCase()}}Windows.registerWith(); + expect({{project_name.pascalCase()}}Platform.instance, isA<{{project_name.pascalCase()}}Windows>()); }); test('getPlatformName returns correct name', () async { - final name = await {{#camelCase}}{{project_name}}{{/camelCase}}.getPlatformName(); + final name = await {{project_name.camelCase()}}.getPlatformName(); expect( log, [isMethodCall('getPlatformName', arguments: null)], diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/windows/.gitignore b/brick/__brick__/{{project_name.snakeCase()}}_windows/windows/.gitignore similarity index 100% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/windows/.gitignore rename to brick/__brick__/{{project_name.snakeCase()}}_windows/windows/.gitignore diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/windows/CMakeLists.txt b/brick/__brick__/{{project_name.snakeCase()}}_windows/windows/CMakeLists.txt similarity index 65% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/windows/CMakeLists.txt rename to brick/__brick__/{{project_name.snakeCase()}}_windows/windows/CMakeLists.txt index 476a5c5..c72cdba 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/windows/CMakeLists.txt +++ b/brick/__brick__/{{project_name.snakeCase()}}_windows/windows/CMakeLists.txt @@ -1,12 +1,12 @@ cmake_minimum_required(VERSION 3.14) -set(PROJECT_NAME "{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows") +set(PROJECT_NAME "{{project_name.snakeCase()}}_windows") project(${PROJECT_NAME} LANGUAGES CXX) set(PLUGIN_NAME "${PROJECT_NAME}_plugin") add_library(${PLUGIN_NAME} SHARED - "{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows_plugin.cpp" - "include/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows.h" + "{{project_name.snakeCase()}}_windows_plugin.cpp" + "include/{{project_name.snakeCase()}}_windows/{{project_name.snakeCase()}}_windows.h" ) apply_standard_settings(${PLUGIN_NAME}) set_target_properties(${PLUGIN_NAME} PROPERTIES CXX_VISIBILITY_PRESET hidden) @@ -16,7 +16,7 @@ target_include_directories(${PLUGIN_NAME} INTERFACE target_link_libraries(${PLUGIN_NAME} PRIVATE flutter flutter_wrapper_plugin) # List of absolute paths to libraries that should be bundled with the plugin -set({{#snakeCase}}{{project_name}}{{/snakeCase}}_bundled_libraries +set({{project_name.snakeCase()}}_bundled_libraries "" PARENT_SCOPE ) \ No newline at end of file diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/windows/include/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows.h b/brick/__brick__/{{project_name.snakeCase()}}_windows/windows/include/{{project_name.snakeCase()}}_windows/{{project_name.snakeCase()}}_windows.h similarity index 82% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/windows/include/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows.h rename to brick/__brick__/{{project_name.snakeCase()}}_windows/windows/include/{{project_name.snakeCase()}}_windows/{{project_name.snakeCase()}}_windows.h index 139790a..e091228 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/windows/include/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows.h +++ b/brick/__brick__/{{project_name.snakeCase()}}_windows/windows/include/{{project_name.snakeCase()}}_windows/{{project_name.snakeCase()}}_windows.h @@ -13,7 +13,7 @@ extern "C" { #endif -FLUTTER_PLUGIN_EXPORT void {{#pascalCase}}{{project_name}}{{/pascalCase}}WindowsRegisterWithRegistrar( +FLUTTER_PLUGIN_EXPORT void {{project_name.pascalCase()}}WindowsRegisterWithRegistrar( FlutterDesktopPluginRegistrarRef registrar); #if defined(__cplusplus) diff --git a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/windows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows_plugin.cpp b/brick/__brick__/{{project_name.snakeCase()}}_windows/windows/{{project_name.snakeCase()}}_windows_plugin.cpp similarity index 59% rename from brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/windows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows_plugin.cpp rename to brick/__brick__/{{project_name.snakeCase()}}_windows/windows/{{project_name.snakeCase()}}_windows_plugin.cpp index b3add5b..8c999d8 100644 --- a/brick/__brick__/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/windows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows_plugin.cpp +++ b/brick/__brick__/{{project_name.snakeCase()}}_windows/windows/{{project_name.snakeCase()}}_windows_plugin.cpp @@ -1,4 +1,4 @@ -#include "include/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows/{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows.h" +#include "include/{{project_name.snakeCase()}}_windows/{{project_name.snakeCase()}}_windows.h" // This must be included before many other Windows headers. #include @@ -14,13 +14,13 @@ namespace { using flutter::EncodableValue; -class {{#pascalCase}}{{project_name}}{{/pascalCase}}Windows : public flutter::Plugin { +class {{project_name.pascalCase()}}Windows : public flutter::Plugin { public: static void RegisterWithRegistrar(flutter::PluginRegistrarWindows *registrar); - {{#pascalCase}}{{project_name}}{{/pascalCase}}Windows(); + {{project_name.pascalCase()}}Windows(); - virtual ~{{#pascalCase}}{{project_name}}{{/pascalCase}}Windows(); + virtual ~{{project_name.pascalCase()}}Windows(); private: // Called when a method is called on this plugin's channel from Dart. @@ -30,14 +30,14 @@ class {{#pascalCase}}{{project_name}}{{/pascalCase}}Windows : public flutter::Pl }; // static -void {{#pascalCase}}{{project_name}}{{/pascalCase}}Windows::RegisterWithRegistrar( +void {{project_name.pascalCase()}}Windows::RegisterWithRegistrar( flutter::PluginRegistrarWindows *registrar) { auto channel = std::make_unique>( - registrar->messenger(), "{{#snakeCase}}{{project_name}}{{/snakeCase}}_windows", + registrar->messenger(), "{{project_name.snakeCase()}}_windows", &flutter::StandardMethodCodec::GetInstance()); - auto plugin = std::make_unique<{{#pascalCase}}{{project_name}}{{/pascalCase}}Windows>(); + auto plugin = std::make_unique<{{project_name.pascalCase()}}Windows>(); channel->SetMethodCallHandler( [plugin_pointer = plugin.get()](const auto &call, auto result) { @@ -47,11 +47,11 @@ void {{#pascalCase}}{{project_name}}{{/pascalCase}}Windows::RegisterWithRegistra registrar->AddPlugin(std::move(plugin)); } -{{#pascalCase}}{{project_name}}{{/pascalCase}}Windows::{{#pascalCase}}{{project_name}}{{/pascalCase}}Windows() {} +{{project_name.pascalCase()}}Windows::{{project_name.pascalCase()}}Windows() {} -{{#pascalCase}}{{project_name}}{{/pascalCase}}Windows::~{{#pascalCase}}{{project_name}}{{/pascalCase}}Windows() {} +{{project_name.pascalCase()}}Windows::~{{project_name.pascalCase()}}Windows() {} -void {{#pascalCase}}{{project_name}}{{/pascalCase}}Windows::HandleMethodCall( +void {{project_name.pascalCase()}}Windows::HandleMethodCall( const flutter::MethodCall &method_call, std::unique_ptr> result) { if (method_call.method_name().compare("getPlatformName") == 0) { @@ -64,9 +64,9 @@ void {{#pascalCase}}{{project_name}}{{/pascalCase}}Windows::HandleMethodCall( } // namespace -void {{#pascalCase}}{{project_name}}{{/pascalCase}}WindowsRegisterWithRegistrar( +void {{project_name.pascalCase()}}WindowsRegisterWithRegistrar( FlutterDesktopPluginRegistrarRef registrar) { - {{#pascalCase}}{{project_name}}{{/pascalCase}}Windows::RegisterWithRegistrar( + {{project_name.pascalCase()}}Windows::RegisterWithRegistrar( flutter::PluginRegistrarManager::GetInstance() ->GetRegistrar(registrar)); }