diff --git a/bricks/wyatt_clean_code/README.md b/bricks/wyatt_clean_code/README.md index 0a61e5b..f2f4d3f 100644 --- a/bricks/wyatt_clean_code/README.md +++ b/bricks/wyatt_clean_code/README.md @@ -7,7 +7,7 @@ Create clean new **Flutter** project from scratch following Clean Code Architect ## Usage πŸš€ ```sh -mason make wyatt_clean_code +mason make wyatt_clean_code --project_name app --org_name fr.wyattstudio.app --description A new Wyatt Studio project. --platforms=android,ios --features=analysis,localization ``` ## Variables ✨ @@ -20,5 +20,70 @@ mason make wyatt_clean_code | `platforms` | Supported platforms | [android, ios] | `array` | | `features` | Enabled features | [analysis, localization] | `array` | +## Output πŸ“¦ + +``` +--project_name app --org_name fr.wyattstudio.app --description A new Wyatt Studio project. --platforms=android,ios,web --features=analysis,localization,router +β”œβ”€β”€ .vscode/ +| β”œβ”€β”€ launch.json +| └── settings.json +β”œβ”€β”€ android +| └── ... +β”œβ”€β”€ assets +| β”œβ”€β”€ l10n +| | └── intl_fr.arb +| β”œβ”€β”€ colors +| | └── dark.xml +| β”œβ”€β”€ fonts +| └── images +β”œβ”€β”€ ios +| └── ... +β”œβ”€β”€ lib +| β”œβ”€β”€ core +| | β”œβ”€β”€ enums +| | β”œβ”€β”€ errors +| | β”œβ”€β”€ extensions +| | | └── l10n.dart +| | β”œβ”€β”€ resources +| | | β”œβ”€β”€ app_router.dart +| | | └── app_theme.dart +| | └── utils +| | └── app_bloc_observer.dart +| β”œβ”€β”€ data +| | β”œβ”€β”€ models +| | β”œβ”€β”€ providers +| | └── repositories +| β”œβ”€β”€ domain +| | β”œβ”€β”€ entities +| | └── repositories +| β”œβ”€β”€ presentation +| | β”œβ”€β”€ bloc +| | | └── counter_cubit +| | | └── counter_cubit.dart +| | β”œβ”€β”€ pages +| | | β”œβ”€β”€ counter +| | | | β”œβ”€β”€ widgets +| | | | | └── counter_text.dart +| | | | └── counter_page.dart +| | | └── initial +| | | | └── initial_page.dart +| | └── shared +| | | β”œβ”€β”€ layouts +| | | β”œβ”€β”€ state_management +| | | | └── counter_state_management.dart +| | | └── widgets +| β”œβ”€β”€ app.dart +| β”œβ”€β”€ main.dart +| └── widget_tree.dart +β”œβ”€β”€ scripts +β”œβ”€β”€ web +| └── ... +β”œβ”€β”€ l10n.yaml +β”œβ”€β”€ Makefile +β”œβ”€β”€ pubspec.yaml +└── analysis_options.yaml +``` + + ## Prerequisite No prerequisites needed. diff --git a/bricks/wyatt_clean_code/__brick__/Makefile b/bricks/wyatt_clean_code/__brick__/Makefile index 521d49c..f46b81c 100644 --- a/bricks/wyatt_clean_code/__brick__/Makefile +++ b/bricks/wyatt_clean_code/__brick__/Makefile @@ -1,4 +1,5 @@ -.PHONY: help clean get upgrade format lint +.PHONY: help clean get upgrade format lint gen + # Adding a help file: https://gist.github.com/prwhite/8168133#gistcomment-1313022 help: ## This help dialog. @IFS=$$'\n' ; \ @@ -32,9 +33,6 @@ lint: ## Lints the code. @echo "β€’ Verifying code..." @dart analyze . || (echo "Error in project"; exit 1) -# {{#enable_l10n}} -.PHONY: intl -intl: get ## Generates the intl files. - @echo "β€’ Generating the intl files" - @flutter pub run intl_utils:generate -# {{/enable_l10n}} \ No newline at end of file +gen: get ## Run build_runner (Freezed, Fluttergen, etc...) + @echo "β€’ Running build_runner scripts" + @flutter pub run build_runner build \ No newline at end of file diff --git a/bricks/wyatt_clean_code/__brick__/assets/colors/dark.xml b/bricks/wyatt_clean_code/__brick__/assets/colors/dark.xml new file mode 100644 index 0000000..76afbe8 --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/assets/colors/dark.xml @@ -0,0 +1,9 @@ + + + #FFFFFF + #000000 + #EEEEEE + #979797 + #CF2A2A + #DF9527 + \ No newline at end of file diff --git a/bricks/wyatt_clean_code/__brick__/assets/fonts/.gitkeep b/bricks/wyatt_clean_code/__brick__/assets/fonts/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/bricks/wyatt_clean_code/__brick__/assets/images/.gitkeep b/bricks/wyatt_clean_code/__brick__/assets/images/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/bricks/wyatt_clean_code/__brick__/assets/{{#enable_l10n}}l10n{{/enable_l10n}}/intl_fr.arb b/bricks/wyatt_clean_code/__brick__/assets/{{#enable_l10n}}l10n{{/enable_l10n}}/intl_fr.arb index 1438eb6..1a6db0f 100644 --- a/bricks/wyatt_clean_code/__brick__/assets/{{#enable_l10n}}l10n{{/enable_l10n}}/intl_fr.arb +++ b/bricks/wyatt_clean_code/__brick__/assets/{{#enable_l10n}}l10n{{/enable_l10n}}/intl_fr.arb @@ -1,5 +1,11 @@ { - "@@locale": "fr_FR", + "@@locale": "fr", "counterAppBarTitle": "Compteur", - "goToCounter": "Aller au Compteur" + "@counterAppBarTitle": { + "description": "Texte affichΓ© dans l'AppBar de la page Compteur" + }, + "goToCounter": "Aller au Compteur", + "@goToCounter": { + "description": "Texte affichΓ© dans le bouton ammenant vers la page Compteur" + } } \ No newline at end of file diff --git a/bricks/wyatt_clean_code/__brick__/l10n.yaml b/bricks/wyatt_clean_code/__brick__/l10n.yaml new file mode 100644 index 0000000..dcb899b --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/l10n.yaml @@ -0,0 +1,4 @@ +arb-dir: assets/l10n +template-arb-file: intl_fr.arb +output-localization-file: app_localizations.dart +nullable-getter: false diff --git a/bricks/wyatt_clean_code/__brick__/lib/core/enums/.gitkeep b/bricks/wyatt_clean_code/__brick__/lib/core/enums/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/bricks/wyatt_clean_code/__brick__/lib/core/errors/.gitkeep b/bricks/wyatt_clean_code/__brick__/lib/core/errors/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/bricks/wyatt_clean_code/__brick__/lib/core/extensions/{{#enable_l10n}}l10n.dart{{/enable_l10n}} b/bricks/wyatt_clean_code/__brick__/lib/core/extensions/{{#enable_l10n}}l10n.dart{{/enable_l10n}} new file mode 100644 index 0000000..17c891b --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/lib/core/extensions/{{#enable_l10n}}l10n.dart{{/enable_l10n}} @@ -0,0 +1,8 @@ +import 'package:flutter/widgets.dart'; +import 'package:flutter_gen/gen_l10n/app_localizations.dart'; + +export 'package:flutter_gen/gen_l10n/app_localizations.dart'; + +extension AppLocalizationsX on BuildContext { + AppLocalizations get l10n => AppLocalizations.of(this); +} diff --git a/bricks/wyatt_clean_code/__brick__/lib/core/resources/app_theme.dart b/bricks/wyatt_clean_code/__brick__/lib/core/resources/app_theme.dart new file mode 100644 index 0000000..347cde2 --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/lib/core/resources/app_theme.dart @@ -0,0 +1,8 @@ +import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}/gen/colors.gen.dart'; +import 'package:flutter/material.dart'; + +abstract class AppTheme { + static ThemeData defaultTheme = ThemeData( + primaryColor: ColorName.crimsonRed + ); +} diff --git a/bricks/wyatt_clean_code/__brick__/lib/resources/{{#enable_router}}app_router.dart{{/enable_router}} b/bricks/wyatt_clean_code/__brick__/lib/core/resources/{{#enable_router}}app_router.dart{{/enable_router}} similarity index 100% rename from bricks/wyatt_clean_code/__brick__/lib/resources/{{#enable_router}}app_router.dart{{/enable_router}} rename to bricks/wyatt_clean_code/__brick__/lib/core/resources/{{#enable_router}}app_router.dart{{/enable_router}} diff --git a/bricks/wyatt_clean_code/__brick__/lib/data/models/.gitkeep b/bricks/wyatt_clean_code/__brick__/lib/data/models/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/bricks/wyatt_clean_code/__brick__/lib/data/providers/.gitkeep b/bricks/wyatt_clean_code/__brick__/lib/data/providers/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/bricks/wyatt_clean_code/__brick__/lib/data/repositories/.gitkeep b/bricks/wyatt_clean_code/__brick__/lib/data/repositories/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/bricks/wyatt_clean_code/__brick__/lib/domain/entities/.gitkeep b/bricks/wyatt_clean_code/__brick__/lib/domain/entities/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/bricks/wyatt_clean_code/__brick__/lib/domain/repositories/.gitkeep b/bricks/wyatt_clean_code/__brick__/lib/domain/repositories/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/bricks/wyatt_clean_code/__brick__/lib/core/logic/counter_cubit/counter_cubit.dart b/bricks/wyatt_clean_code/__brick__/lib/presentation/bloc/counter_cubit/counter_cubit.dart similarity index 100% rename from bricks/wyatt_clean_code/__brick__/lib/core/logic/counter_cubit/counter_cubit.dart rename to bricks/wyatt_clean_code/__brick__/lib/presentation/bloc/counter_cubit/counter_cubit.dart diff --git a/bricks/wyatt_clean_code/__brick__/lib/presentation/pages/counter/counter_page.dart b/bricks/wyatt_clean_code/__brick__/lib/presentation/pages/counter/counter_page.dart index 18d5178..c5c70fd 100644 --- a/bricks/wyatt_clean_code/__brick__/lib/presentation/pages/counter/counter_page.dart +++ b/bricks/wyatt_clean_code/__brick__/lib/presentation/pages/counter/counter_page.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}/core/logic/counter_cubit/counter_cubit.dart'; +import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}/presentation/bloc/counter_cubit/counter_cubit.dart'; import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}/presentation/shared/state_management/counter_state_management.dart'; -{{#enable_l10n}}import 'package:{{project_name.snakeCase()}}/generated/l10n.dart';{{/enable_l10n}} +{{#enable_l10n}}import 'package:{{project_name.snakeCase()}}/core/extensions/l10n.dart';{{/enable_l10n}} import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}/presentation/pages/counter/widgets/counter_text.dart'; class CounterPage extends StatelessWidget { @@ -13,7 +13,7 @@ class CounterPage extends StatelessWidget { return CounterStateManagement( builder: (BuildContext context, int state) { return Scaffold( - {{#enable_l10n}}appBar: AppBar(title: Text(S.of(context).counterAppBarTitle)),{{/enable_l10n}} + {{#enable_l10n}}appBar: AppBar(title: Text(context.l10n.counterAppBarTitle)),{{/enable_l10n}} {{^enable_l10n}}appBar: AppBar(title: Text('Counter')),{{/enable_l10n}} body: const Center(child: CounterText()), floatingActionButton: Column( diff --git a/bricks/wyatt_clean_code/__brick__/lib/presentation/pages/counter/widgets/counter_text.dart b/bricks/wyatt_clean_code/__brick__/lib/presentation/pages/counter/widgets/counter_text.dart index 1e124be..c0e2345 100644 --- a/bricks/wyatt_clean_code/__brick__/lib/presentation/pages/counter/widgets/counter_text.dart +++ b/bricks/wyatt_clean_code/__brick__/lib/presentation/pages/counter/widgets/counter_text.dart @@ -1,4 +1,4 @@ -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}/core/logic/counter_cubit/counter_cubit.dart'; +import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}/presentation/bloc/counter_cubit/counter_cubit.dart'; import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; diff --git a/bricks/wyatt_clean_code/__brick__/lib/presentation/pages/initial/initial_page.dart b/bricks/wyatt_clean_code/__brick__/lib/presentation/pages/initial/initial_page.dart index 88afdd8..258ff83 100644 --- a/bricks/wyatt_clean_code/__brick__/lib/presentation/pages/initial/initial_page.dart +++ b/bricks/wyatt_clean_code/__brick__/lib/presentation/pages/initial/initial_page.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; {{#enable_router}}import 'package:go_router/go_router.dart'; -import 'package:{{project_name.snakeCase()}}/resources/app_router.dart';{{/enable_router}} +import 'package:{{project_name.snakeCase()}}/core/resources/app_router.dart';{{/enable_router}} {{^enable_router}}import 'package:{{project_name.snakeCase()}}/presentation/pages/counter/counter_page.dart';{{/enable_router}} -{{#enable_l10n}}import 'package:{{project_name.snakeCase()}}/generated/l10n.dart';{{/enable_l10n}} +{{#enable_l10n}}import 'package:{{project_name.snakeCase()}}/core/extensions/l10n.dart';{{/enable_l10n}} class InitialPage extends StatelessWidget { const InitialPage({super.key}); @@ -16,7 +16,7 @@ class InitialPage extends StatelessWidget { Center(child: ElevatedButton( {{#enable_router}}onPressed: () => context.goNamed(AppRouter.counter),{{/enable_router}} {{^enable_router}}onPressed: () => Navigator.of(context).push(MaterialPageRoute(builder: (context) => CounterPage())),{{/enable_router}} - {{#enable_l10n}}child: Text(S.of(context).goToCounter),{{/enable_l10n}} + {{#enable_l10n}}child: Text(context.l10n.goToCounter),{{/enable_l10n}} {{^enable_l10n}}child: Text('Go to counter'),{{/enable_l10n}} ),) ], diff --git a/bricks/wyatt_clean_code/__brick__/lib/presentation/shared/layouts/.gitkeep b/bricks/wyatt_clean_code/__brick__/lib/presentation/shared/layouts/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/bricks/wyatt_clean_code/__brick__/lib/presentation/shared/state_management/counter_state_management.dart b/bricks/wyatt_clean_code/__brick__/lib/presentation/shared/state_management/counter_state_management.dart index e630452..56abbbc 100644 --- a/bricks/wyatt_clean_code/__brick__/lib/presentation/shared/state_management/counter_state_management.dart +++ b/bricks/wyatt_clean_code/__brick__/lib/presentation/shared/state_management/counter_state_management.dart @@ -1,4 +1,4 @@ -import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}/core/logic/counter_cubit/counter_cubit.dart'; +import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}/presentation/bloc/counter_cubit/counter_cubit.dart'; import 'package:flutter/material.dart'; import 'package:wyatt_bloc_helper/wyatt_bloc_helper.dart'; diff --git a/bricks/wyatt_clean_code/__brick__/lib/presentation/shared/widgets/.gitkeep b/bricks/wyatt_clean_code/__brick__/lib/presentation/shared/widgets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/bricks/wyatt_clean_code/__brick__/lib/resources/app_theme.dart b/bricks/wyatt_clean_code/__brick__/lib/resources/app_theme.dart deleted file mode 100644 index 28b8ba3..0000000 --- a/bricks/wyatt_clean_code/__brick__/lib/resources/app_theme.dart +++ /dev/null @@ -1,7 +0,0 @@ -import 'package:flutter/material.dart'; - -abstract class AppTheme { - static ThemeData defaultTheme = ThemeData( - primaryColor: Colors.blue - ); -} diff --git a/bricks/wyatt_clean_code/__brick__/lib/widget_tree.dart b/bricks/wyatt_clean_code/__brick__/lib/widget_tree.dart index bd7246a..690c099 100644 --- a/bricks/wyatt_clean_code/__brick__/lib/widget_tree.dart +++ b/bricks/wyatt_clean_code/__brick__/lib/widget_tree.dart @@ -1,8 +1,8 @@ -{{#enable_router}}import 'package:{{project_name.snakeCase()}}/resources/app_router.dart'; +{{#enable_router}}import 'package:{{project_name.snakeCase()}}/core/resources/app_router.dart'; import 'package:go_router/go_router.dart';{{/enable_router}} -import 'package:{{project_name.snakeCase()}}/resources/app_theme.dart'; +import 'package:{{project_name.snakeCase()}}/core/resources/app_theme.dart'; {{#enable_l10n}}import 'package:flutter_localizations/flutter_localizations.dart'; -import 'package:{{project_name.snakeCase()}}/generated/l10n.dart';{{/enable_l10n}} +import 'package:{{project_name.snakeCase()}}/core/extensions/l10n.dart';{{/enable_l10n}} import 'package:{{project_name.snakeCase()}}/presentation/pages/initial/initial_page.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; @@ -35,7 +35,7 @@ class WidgetTree extends StatelessWidget { routerDelegate: _router.routerDelegate, theme: AppTheme.defaultTheme, {{#enable_l10n}}localizationsDelegates: const [ - S.delegate, + AppLocalizations.delegate, GlobalMaterialLocalizations.delegate, GlobalWidgetsLocalizations.delegate, GlobalCupertinoLocalizations.delegate, @@ -51,7 +51,7 @@ class WidgetTree extends StatelessWidget { theme: AppTheme.defaultTheme, home: const InitialPage(), {{#enable_l10n}}localizationsDelegates: const [ - S.delegate, + AppLocalizations.delegate, GlobalMaterialLocalizations.delegate, GlobalWidgetsLocalizations.delegate, GlobalCupertinoLocalizations.delegate, diff --git a/bricks/wyatt_clean_code/__brick__/pubspec.yaml b/bricks/wyatt_clean_code/__brick__/pubspec.yaml index 7ace658..d8add2c 100644 --- a/bricks/wyatt_clean_code/__brick__/pubspec.yaml +++ b/bricks/wyatt_clean_code/__brick__/pubspec.yaml @@ -10,7 +10,7 @@ environment: dependencies: flutter: sdk: flutter - # {{#enable_l10n}} Localization + #{{#enable_l10n}} Localization flutter_localizations: sdk: flutter intl: ^0.17.0 @@ -29,15 +29,15 @@ dependencies: #{{/enable_forms}}{{#enable_freezed}} Freezed: model generation freezed_annotation: ^2.0.3 json_annotation: ^4.5.0 - # {{/enable_freezed}}{{#enable_http}} Advanced HTTP Client + #{{/enable_freezed}}{{#enable_http}} Advanced HTTP Client wyatt_http_client: git: url: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages ref: wyatt_http_client-v1.2.0 path: packages/wyatt_http_client - # {{/enable_http}}{{#enable_router}} Router + #{{/enable_http}}{{#enable_router}} Router go_router: ^4.1.0 - # {{/enable_router}} + #{{/enable_router}} flutter_bloc: ^8.0.1 equatable: ^2.0.3 @@ -55,28 +55,25 @@ dev_dependencies: sdk: flutter build_runner: ^2.1.11 dependency_validator: ^3.2.0 - - # {{#enable_l10n}} Localization utils - intl_utils: ^2.6.1 - # {{/enable_l10n}}{{#enable_freezed}} Freezed utils + flutter_gen_runner: ^4.3.0 + #{{#enable_freezed}} Freezed utils freezed: ^2.0.3+1 json_serializable: ^6.2.0 - # {{/enable_freezed}}{{#enable_analysis}} Analyzer + #{{/enable_freezed}}{{#enable_analysis}} Analyzer wyatt_analysis: git: url: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages ref: wyatt_analysis-v2.1.0 path: packages/wyatt_analysis - # {{/enable_analysis}}{{^enable_analysis}} + #{{/enable_analysis}}{{^enable_analysis}} flutter_lints: ^1.0.0 - # {{/enable_analysis}} + #{{/enable_analysis}} + +flutter_gen: + colors: + inputs: + - assets/colors/dark.xml flutter: uses-material-design: true - -# {{#enable_l10n}} Localization config -flutter_intl: - enabled: true - main_locale: fr - arb_dir: assets/l10n -# {{/enable_l10n}} + {{#enable_l10n}}generate: true{{/enable_l10n}} diff --git a/bricks/wyatt_clean_code/__brick__/scripts/.gitkeep b/bricks/wyatt_clean_code/__brick__/scripts/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/.gitignore b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/.gitignore new file mode 100644 index 0000000..6f56801 --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/.gitignore @@ -0,0 +1,13 @@ +gradle-wrapper.jar +/.gradle +/captures/ +/gradlew +/gradlew.bat +/local.properties +GeneratedPluginRegistrant.java + +# Remember to never publicly share your keystore. +# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app +key.properties +**/*.keystore +**/*.jks diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/build.gradle b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/build.gradle new file mode 100644 index 0000000..7b36f80 --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/build.gradle @@ -0,0 +1,71 @@ +def localProperties = new Properties() +def localPropertiesFile = rootProject.file('local.properties') +if (localPropertiesFile.exists()) { + localPropertiesFile.withReader('UTF-8') { reader -> + localProperties.load(reader) + } +} + +def flutterRoot = localProperties.getProperty('flutter.sdk') +if (flutterRoot == null) { + throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") +} + +def flutterVersionCode = localProperties.getProperty('flutter.versionCode') +if (flutterVersionCode == null) { + flutterVersionCode = '1' +} + +def flutterVersionName = localProperties.getProperty('flutter.versionName') +if (flutterVersionName == null) { + flutterVersionName = '1.0' +} + +apply plugin: 'com.android.application' +apply plugin: 'kotlin-android' +apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" + +android { + compileSdkVersion flutter.compileSdkVersion + ndkVersion flutter.ndkVersion + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + kotlinOptions { + jvmTarget = '1.8' + } + + sourceSets { + main.java.srcDirs += 'src/main/kotlin' + } + + defaultConfig { + // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). + applicationId "{{#dotCase}}{{org_name}}{{/dotCase}}.{{#snakeCase}}{{project_name}}{{/snakeCase}}" + // You can update the following values to match your application needs. + // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration. + minSdkVersion flutter.minSdkVersion + targetSdkVersion flutter.targetSdkVersion + versionCode flutterVersionCode.toInteger() + versionName flutterVersionName + } + + buildTypes { + release { + // TODO: Add your own signing config for the release build. + // Signing with the debug keys for now, so `flutter run --release` works. + signingConfig signingConfigs.debug + } + } +} + +flutter { + source '../..' +} + +dependencies { + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" +} diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/debug/AndroidManifest.xml b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/debug/AndroidManifest.xml new file mode 100644 index 0000000..dfa6d61 --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/debug/AndroidManifest.xml @@ -0,0 +1,8 @@ + + + + diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/AndroidManifest.xml b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..8a861ee --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/AndroidManifest.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/kotlin/{{#pathCase}}{{org_name}}{{/pathCase}}/MainActivity.kt b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/kotlin/{{#pathCase}}{{org_name}}{{/pathCase}}/MainActivity.kt new file mode 100644 index 0000000..b63fa48 --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/kotlin/{{#pathCase}}{{org_name}}{{/pathCase}}/MainActivity.kt @@ -0,0 +1,6 @@ +package {{#dotCase}}{{org_name}}{{/dotCase}}.{{#snakeCase}}{{project_name}}{{/snakeCase}} + +import io.flutter.embedding.android.FlutterActivity + +class MainActivity: FlutterActivity() { +} diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/res/drawable-v21/launch_background.xml b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/res/drawable-v21/launch_background.xml new file mode 100644 index 0000000..f74085f --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/res/drawable-v21/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/res/drawable/launch_background.xml b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/res/drawable/launch_background.xml new file mode 100644 index 0000000..304732f --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/res/drawable/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/res/mipmap-hdpi/ic_launcher.png b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..db77bb4 Binary files /dev/null and b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/res/mipmap-mdpi/ic_launcher.png b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..17987b7 Binary files /dev/null and b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..09d4391 Binary files /dev/null and b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..d5f1c8d Binary files /dev/null and b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..4d6372e Binary files /dev/null and b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/res/values-night/styles.xml b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/res/values-night/styles.xml new file mode 100644 index 0000000..06952be --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/res/values-night/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/res/values/styles.xml b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..cb1ef88 --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/main/res/values/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/profile/AndroidManifest.xml b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/profile/AndroidManifest.xml new file mode 100644 index 0000000..dfa6d61 --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/app/src/profile/AndroidManifest.xml @@ -0,0 +1,8 @@ + + + + diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/build.gradle b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/build.gradle new file mode 100644 index 0000000..83ae220 --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/build.gradle @@ -0,0 +1,31 @@ +buildscript { + ext.kotlin_version = '1.6.10' + repositories { + google() + mavenCentral() + } + + dependencies { + classpath 'com.android.tools.build:gradle:7.1.2' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } +} + +allprojects { + repositories { + google() + mavenCentral() + } +} + +rootProject.buildDir = '../build' +subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" +} +subprojects { + project.evaluationDependsOn(':app') +} + +task clean(type: Delete) { + delete rootProject.buildDir +} diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/gradle.properties b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/gradle.properties new file mode 100644 index 0000000..94adc3a --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/gradle.properties @@ -0,0 +1,3 @@ +org.gradle.jvmargs=-Xmx1536M +android.useAndroidX=true +android.enableJetifier=true diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/gradle/wrapper/gradle-wrapper.properties b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..cc5527d --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Fri Jun 23 08:50:38 CEST 2017 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/settings.gradle b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/settings.gradle new file mode 100644 index 0000000..44e62bc --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_android}}android{{/enable_android}}/settings.gradle @@ -0,0 +1,11 @@ +include ':app' + +def localPropertiesFile = new File(rootProject.projectDir, "local.properties") +def properties = new Properties() + +assert localPropertiesFile.exists() +localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } + +def flutterSdkPath = properties.getProperty("flutter.sdk") +assert flutterSdkPath != null, "flutter.sdk not set in local.properties" +apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/.gitignore b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/.gitignore new file mode 100644 index 0000000..7a7f987 --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/.gitignore @@ -0,0 +1,34 @@ +**/dgph +*.mode1v3 +*.mode2v3 +*.moved-aside +*.pbxuser +*.perspectivev3 +**/*sync/ +.sconsign.dblite +.tags* +**/.vagrant/ +**/DerivedData/ +Icon? +**/Pods/ +**/.symlinks/ +profile +xcuserdata +**/.generated/ +Flutter/App.framework +Flutter/Flutter.framework +Flutter/Flutter.podspec +Flutter/Generated.xcconfig +Flutter/ephemeral/ +Flutter/app.flx +Flutter/app.zip +Flutter/flutter_assets/ +Flutter/flutter_export_environment.sh +ServiceDefinitions.json +Runner/GeneratedPluginRegistrant.* + +# Exceptions to above rules. +!default.mode1v3 +!default.mode2v3 +!default.pbxuser +!default.perspectivev3 diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Flutter/AppFrameworkInfo.plist b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Flutter/AppFrameworkInfo.plist new file mode 100644 index 0000000..8d4492f --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Flutter/AppFrameworkInfo.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + MinimumOSVersion + 9.0 + + diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Flutter/Debug.xcconfig b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Flutter/Debug.xcconfig new file mode 100644 index 0000000..592ceee --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Flutter/Debug.xcconfig @@ -0,0 +1 @@ +#include "Generated.xcconfig" diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Flutter/Release.xcconfig b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Flutter/Release.xcconfig new file mode 100644 index 0000000..592ceee --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Flutter/Release.xcconfig @@ -0,0 +1 @@ +#include "Generated.xcconfig" diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner.xcodeproj/project.pbxproj b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000..44eb2f4 --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,484 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 97C146EF1CF9000F007C117D /* Products */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FD1CF9000F007C117D /* Assets.xcassets */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C147021CF9000F007C117D /* Info.plist */, + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, + ); + path = Runner; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 97C146ED1CF9000F007C117D /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Runner; + productName = Runner; + productReference = 97C146EE1CF9000F007C117D /* Runner.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 97C146E61CF9000F007C117D /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1300; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + LastSwiftMigration = 1100; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 97C146E51CF9000F007C117D; + productRefGroup = 97C146EF1CF9000F007C117D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 97C146ED1CF9000F007C117D /* Runner */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 97C146EC1CF9000F007C117D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; + }; + 9740EEB61CF901F6004384FC /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C146FB1CF9000F007C117D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 249021D3217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Profile; + }; + 249021D4217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = 6Z5P8GG96U; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = dotCaseorgnamedotCase.test; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Profile; + }; + 97C147031CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 97C147041CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 97C147061CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = 6Z5P8GG96U; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = dotCaseorgnamedotCase.test; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Debug; + }; + 97C147071CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = 6Z5P8GG96U; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = dotCaseorgnamedotCase.test; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147031CF9000F007C117D /* Debug */, + 97C147041CF9000F007C117D /* Release */, + 249021D3217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147061CF9000F007C117D /* Debug */, + 97C147071CF9000F007C117D /* Release */, + 249021D4217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 97C146E61CF9000F007C117D /* Project object */; +} diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..f9b0d7c --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000..c87d15a --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner.xcworkspace/contents.xcworkspacedata b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..1d526a1 --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..f9b0d7c --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/AppDelegate.swift b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/AppDelegate.swift new file mode 100644 index 0000000..70693e4 --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/AppDelegate.swift @@ -0,0 +1,13 @@ +import UIKit +import Flutter + +@UIApplicationMain +@objc class AppDelegate: FlutterAppDelegate { + override func application( + _ application: UIApplication, + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? + ) -> Bool { + GeneratedPluginRegistrant.register(with: self) + return super.application(application, didFinishLaunchingWithOptions: launchOptions) + } +} diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d36b1fa --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,122 @@ +{ + "images" : [ + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@3x.png", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@3x.png", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@3x.png", + "scale" : "3x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@3x.png", + "scale" : "3x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@1x.png", + "scale" : "1x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@1x.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@2x.png", + "scale" : "2x" + }, + { + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "Icon-App-83.5x83.5@2x.png", + "scale" : "2x" + }, + { + "size" : "1024x1024", + "idiom" : "ios-marketing", + "filename" : "Icon-App-1024x1024@1x.png", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png new file mode 100644 index 0000000..dc9ada4 Binary files /dev/null and b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png new file mode 100644 index 0000000..28c6bf0 Binary files /dev/null and b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png new file mode 100644 index 0000000..2ccbfd9 Binary files /dev/null and b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png new file mode 100644 index 0000000..f091b6b Binary files /dev/null and b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png new file mode 100644 index 0000000..4cde121 Binary files /dev/null and b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png new file mode 100644 index 0000000..d0ef06e Binary files /dev/null and b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png new file mode 100644 index 0000000..dcdc230 Binary files /dev/null and b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png new file mode 100644 index 0000000..2ccbfd9 Binary files /dev/null and b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png new file mode 100644 index 0000000..c8f9ed8 Binary files /dev/null and b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png new file mode 100644 index 0000000..a6d6b86 Binary files /dev/null and b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png new file mode 100644 index 0000000..a6d6b86 Binary files /dev/null and b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png new file mode 100644 index 0000000..75b2d16 Binary files /dev/null and b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png new file mode 100644 index 0000000..c4df70d Binary files /dev/null and b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png new file mode 100644 index 0000000..6a84f41 Binary files /dev/null and b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png new file mode 100644 index 0000000..d0e1f58 Binary files /dev/null and b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json new file mode 100644 index 0000000..0bedcf2 --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "LaunchImage.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/LaunchImage.imageset/README.md new file mode 100644 index 0000000..89c2725 --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Assets.xcassets/LaunchImage.imageset/README.md @@ -0,0 +1,5 @@ +# Launch Screen Assets + +You can customize the launch screen with your own desired assets by replacing the image files in this directory. + +You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. \ No newline at end of file diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Base.lproj/LaunchScreen.storyboard b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..f2e259c --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Base.lproj/Main.storyboard b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Base.lproj/Main.storyboard new file mode 100644 index 0000000..f3c2851 --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Info.plist b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Info.plist new file mode 100644 index 0000000..5e4d46d --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Info.plist @@ -0,0 +1,53 @@ + + + + + CFBundleLocalizations + + fr + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + Test + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + {{#titleCase}}{{project_name}}{{/titleCase}} + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleSignature + ???? + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIViewControllerBasedStatusBarAppearance + + CADisableMinimumFrameDurationOnPhone + + + diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Runner-Bridging-Header.h b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Runner-Bridging-Header.h new file mode 100644 index 0000000..308a2a5 --- /dev/null +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_ios}}ios{{/enable_ios}}/Runner/Runner-Bridging-Header.h @@ -0,0 +1 @@ +#import "GeneratedPluginRegistrant.h" diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_web}}web{{/enable_web}}/index.html b/bricks/wyatt_clean_code/__brick__/{{#enable_web}}web{{/enable_web}}/index.html index 474b554..f9b4f82 100644 --- a/bricks/wyatt_clean_code/__brick__/{{#enable_web}}web{{/enable_web}}/index.html +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_web}}web{{/enable_web}}/index.html @@ -18,7 +18,7 @@ - + diff --git a/bricks/wyatt_clean_code/__brick__/{{#enable_web}}web{{/enable_web}}/manifest.json b/bricks/wyatt_clean_code/__brick__/{{#enable_web}}web{{/enable_web}}/manifest.json index d119482..ec630c4 100644 --- a/bricks/wyatt_clean_code/__brick__/{{#enable_web}}web{{/enable_web}}/manifest.json +++ b/bricks/wyatt_clean_code/__brick__/{{#enable_web}}web{{/enable_web}}/manifest.json @@ -5,7 +5,7 @@ "display": "standalone", "background_color": "#0175C2", "theme_color": "#0175C2", - "description": "{{description}}", + "description": "{{{description}}}", "orientation": "portrait-primary", "prefer_related_applications": false, "icons": [ diff --git a/bricks/wyatt_clean_code/hooks/post_gen.dart b/bricks/wyatt_clean_code/hooks/post_gen.dart index a3be3a7..bed6fc2 100644 --- a/bricks/wyatt_clean_code/hooks/post_gen.dart +++ b/bricks/wyatt_clean_code/hooks/post_gen.dart @@ -20,13 +20,10 @@ import 'package:mason/mason.dart'; Future run(HookContext context) async { final workingDirectory = '${Directory.current.path}'; - final enablel10n = context.vars['enable_l10n'] as bool; - if (enablel10n) { - final processIntl = await Process.start( - 'make', - ['intl'], - workingDirectory: workingDirectory, - ); - await processIntl.stdout.pipe(stdout); - } + final process = await Process.start( + 'make', + ['gen'], + workingDirectory: workingDirectory, + ); + await process.stdout.pipe(stdout); } \ No newline at end of file