Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/very_good_flame_game_hoosk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: very_good_flame_game_hooks

on:
pull_request:
paths:
- ".github/workflows/very_good_flame_game_hooks.yaml"
- "very_good_flame_game/hooks/**"
push:
branches:
- main
paths:
- ".github/workflows/very_good_flame_game_hooks.yaml"
- "very_good_flame_game/hooks/**"

jobs:
build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1
with:
working_directory: "very_good_flame_game/hooks"
analyze_directories: "lib test"
report_on: "pre_gen.dart"
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if (keystorePropertiesFile.exists()) {
}

android {
namespace "{{org_name.dotCase()}}.{{project_name.snakeCase()}}"
namespace "{{android_namespace}"
compileSdkVersion flutter.compileSdkVersion
ndkVersion flutter.ndkVersion

Expand All @@ -48,7 +48,7 @@ android {

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "{{org_name.dotCase()}}.{{project_name.snakeCase()}}"
applicationId "{{android_application_id}}"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion flutter.minSdkVersion
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="{{org_name.dotCase()}}.{{project_name.snakeCase()}}">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="{{org_name.dotCase()}}.{{project_name.snakeCase()}}">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:label="${appName}"
android:icon="@mipmap/ic_launcher">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package {{org_name.dotCase()}}.{{project_name.snakeCase()}}
package {{android_namespace}}

import io.flutter.embedding.android.FlutterActivity

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="{{org_name.dotCase()}}.{{project_name.snakeCase()}}">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.veryGoodFlameGame;
PRODUCT_BUNDLE_IDENTIFIER = {{ios_application_id}};
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand All @@ -517,7 +517,7 @@
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.veryGoodFlameGame.RunnerTests;
PRODUCT_BUNDLE_IDENTIFIER = {{ios_application_id}}.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
Expand All @@ -535,7 +535,7 @@
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.veryGoodFlameGame.RunnerTests;
PRODUCT_BUNDLE_IDENTIFIER = {{ios_application_id}}.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
Expand All @@ -551,7 +551,7 @@
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.veryGoodFlameGame.RunnerTests;
PRODUCT_BUNDLE_IDENTIFIER = {{ios_application_id}}.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
Expand Down Expand Up @@ -627,7 +627,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.veryGoodFlameGame.dev;
PRODUCT_BUNDLE_IDENTIFIER = {{ios_application_id}}.dev;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
Expand All @@ -645,7 +645,7 @@
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.veryGoodFlameGame.RunnerTests;
PRODUCT_BUNDLE_IDENTIFIER = {{ios_application_id}}.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
Expand Down Expand Up @@ -720,7 +720,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.veryGoodFlameGame.dev;
PRODUCT_BUNDLE_IDENTIFIER = {{ios_application_id}}.dev;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand All @@ -737,7 +737,7 @@
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.veryGoodFlameGame.RunnerTests;
PRODUCT_BUNDLE_IDENTIFIER = {{ios_application_id}}.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
Expand Down Expand Up @@ -808,7 +808,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.veryGoodFlameGame.dev;
PRODUCT_BUNDLE_IDENTIFIER = {{ios_application_id}}.dev;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand All @@ -825,7 +825,7 @@
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.veryGoodFlameGame.RunnerTests;
PRODUCT_BUNDLE_IDENTIFIER = {{ios_application_id}}.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
Expand Down Expand Up @@ -901,7 +901,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.veryGoodFlameGame.stg;
PRODUCT_BUNDLE_IDENTIFIER = {{ios_application_id}}.stg;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
Expand All @@ -919,7 +919,7 @@
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.veryGoodFlameGame.RunnerTests;
PRODUCT_BUNDLE_IDENTIFIER = {{ios_application_id}}.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
Expand Down Expand Up @@ -994,7 +994,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.veryGoodFlameGame.stg;
PRODUCT_BUNDLE_IDENTIFIER = {{ios_application_id}}.stg;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand All @@ -1011,7 +1011,7 @@
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.veryGoodFlameGame.RunnerTests;
PRODUCT_BUNDLE_IDENTIFIER = {{ios_application_id}}.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
Expand Down Expand Up @@ -1082,7 +1082,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.veryGoodFlameGame.stg;
PRODUCT_BUNDLE_IDENTIFIER = {{ios_application_id}}.stg;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand All @@ -1099,7 +1099,7 @@
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.veryGoodFlameGame.RunnerTests;
PRODUCT_BUNDLE_IDENTIFIER = {{ios_application_id}}.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
Expand Down Expand Up @@ -1227,7 +1227,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.veryGoodFlameGame;
PRODUCT_BUNDLE_IDENTIFIER = {{ios_application_id}};
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
Expand All @@ -1250,7 +1250,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.veryGoodFlameGame;
PRODUCT_BUNDLE_IDENTIFIER = {{ios_application_id}};
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.veryGoodFlameGame.RunnerTests;
PRODUCT_BUNDLE_IDENTIFIER = {{macos_application_id}}.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/{{project_name.snakeCase()}}.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/{{project_name.snakeCase()}}";
Expand All @@ -516,7 +516,7 @@
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.veryGoodFlameGame.RunnerTests;
PRODUCT_BUNDLE_IDENTIFIER = {{macos_application_id}}.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/{{project_name.snakeCase()}}.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/{{project_name.snakeCase()}}";
Expand All @@ -531,7 +531,7 @@
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.veryGoodFlameGame.RunnerTests;
PRODUCT_BUNDLE_IDENTIFIER = {{macos_application_id}}.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/{{project_name.snakeCase()}}.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/{{project_name.snakeCase()}}";
Expand Down Expand Up @@ -858,7 +858,7 @@
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.veryGoodFlameGame.RunnerTests;
PRODUCT_BUNDLE_IDENTIFIER = {{macos_application_id}}.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/{{project_name.snakeCase()}}.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/{{project_name.snakeCase()}}";
Expand Down Expand Up @@ -957,7 +957,7 @@
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.veryGoodFlameGame.RunnerTests;
PRODUCT_BUNDLE_IDENTIFIER = {{macos_application_id}}.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/{{project_name.snakeCase()}}.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/{{project_name.snakeCase()}}";
Expand Down Expand Up @@ -1048,7 +1048,7 @@
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.veryGoodFlameGame.RunnerTests;
PRODUCT_BUNDLE_IDENTIFIER = {{macos_application_id}}.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/{{project_name.snakeCase()}}.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/{{project_name.snakeCase()}}";
Expand Down Expand Up @@ -1139,7 +1139,7 @@
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.veryGoodFlameGame.RunnerTests;
PRODUCT_BUNDLE_IDENTIFIER = {{macos_application_id}}.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/{{project_name.snakeCase()}}.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/{{project_name.snakeCase()}}";
Expand Down Expand Up @@ -1230,7 +1230,7 @@
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.veryGoodFlameGame.RunnerTests;
PRODUCT_BUNDLE_IDENTIFIER = {{macos_application_id}}.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/{{project_name.snakeCase()}}.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/{{project_name.snakeCase()}}";
Expand Down Expand Up @@ -1321,7 +1321,7 @@
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.veryGoodFlameGame.RunnerTests;
PRODUCT_BUNDLE_IDENTIFIER = {{macos_application_id}}.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/{{project_name.snakeCase()}}.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/{{project_name.snakeCase()}}";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ BEGIN
BEGIN
BLOCK "040904e4"
BEGIN
VALUE "CompanyName", "com.example.verygoodcore.{{project_name.paramCase()}}" "\0"
VALUE "CompanyName", "{{windows_application_id}}" "\0"
VALUE "FileDescription", "{{project_name.snakeCase()}}" "\0"
VALUE "FileVersion", VERSION_AS_STRING "\0"
VALUE "InternalName", "{{project_name.snakeCase()}}" "\0"
VALUE "LegalCopyright", "Copyright (C) 2022 com.example.verygoodcore.{{project_name.paramCase()}}. All rights reserved." "\0"
VALUE "LegalCopyright", "Copyright (C) 2022 {{windows_application_id}}. All rights reserved." "\0"
VALUE "OriginalFilename", "{{project_name.snakeCase()}}.exe" "\0"
VALUE "ProductName", "{{project_name.titleCase()}}" "\0"
VALUE "ProductVersion", VERSION_AS_STRING "\0"
Expand Down
6 changes: 6 additions & 0 deletions very_good_flame_game/brick.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ vars:
description: The organization name
default: com.example
prompt: What is the organization name?
application_id:
type: string
description: >-
The application id on Android, Bundle ID on iOS and company name on Windows.
If omitted value will be formed based on org_name and project_name.
prompt: What is the application id?
description:
type: string
description: A short project description
Expand Down
1 change: 1 addition & 0 deletions very_good_flame_game/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"project_name": "unicorn_game",
"org_name": "very_good_ventures",
"application_id": "verygood.ventures.test",
"description": "A very_good_flame_game configuration."
}
1 change: 1 addition & 0 deletions very_good_flame_game/hooks/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include: package:very_good_analysis/analysis_options.6.0.0.yaml
1 change: 1 addition & 0 deletions very_good_flame_game/hooks/lib/src/models/models.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export 'very_good_flame_game_configuration.dart';
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import 'package:very_good_core_hooks/very_good_core_hooks.dart';

/// {@template very_good_flame_game_configuration}
/// Configuration for the `very_good_flame_game` brick.
/// {@endtemplate}
typedef VeryGoodFlameGameConfiguration = VeryGoodCoreConfiguration;
1 change: 1 addition & 0 deletions very_good_flame_game/hooks/lib/very_good_core_hooks.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export 'src/models/models.dart';
Loading