diff --git a/.github/images/table-of-contents.png b/.github/images/table-of-contents.png
new file mode 100644
index 00000000..cb0cc7e8
Binary files /dev/null and b/.github/images/table-of-contents.png differ
diff --git a/.github/workflows/android_deploy_production.yml b/.github/workflows/android_deploy_production.yml
index 0a7725f7..4c387402 100644
--- a/.github/workflows/android_deploy_production.yml
+++ b/.github/workflows/android_deploy_production.yml
@@ -7,7 +7,7 @@ on:
jobs:
build_and_deploy_android:
- name: Build & Deploy Android
+ name: Android - Deploy Production build to Firebase
runs-on: ubuntu-latest
environment: production
timeout-minutes: 30
@@ -32,9 +32,6 @@ jobs:
dart pub global activate mason_cli
mason get
mason make template -c mason-config.json
- # Move the generated project to the root directory for next steps & cleanup to not affect static code analysis
- rsync -av --remove-source-files flutter_templates/ ./
- rm -rf bricks sample
- name: Get Flutter dependencies
run: flutter pub get
@@ -48,9 +45,17 @@ jobs:
run: |
echo -e "$ENV" > .env
+ - name: Set up release signing configs
+ env:
+ ANDROID_RELEASE_KEYSTORE_BASE64: ${{ secrets.ANDROID_RELEASE_KEYSTORE_BASE64 }}
+ ANDROID_SIGNING_PROPERTIES: ${{ secrets.ANDROID_SIGNING_PROPERTIES }}
+ run: |
+ echo $ANDROID_RELEASE_KEYSTORE_BASE64 | base64 --decode > android/config/release.keystore
+ echo "$ANDROID_SIGNING_PROPERTIES" > android/signing.properties
+
# App Bundle requires Firebase connected to Play Store to upload https://appdistribution.page.link/KPoa
- name: Build Android apk
- run: flutter build apk --flavor production --debug --build-number $GITHUB_RUN_NUMBER
+ run: flutter build apk --flavor production --release --build-number $GITHUB_RUN_NUMBER
- name: Deploy Android Production to Firebase
uses: wzieba/Firebase-Distribution-Github-Action@v1.5.0
@@ -58,4 +63,4 @@ jobs:
appId: ${{ vars.FIREBASE_ANDROID_APP_ID }}
serviceCredentialsFileContent: ${{ secrets.FIREBASE_DISTRIBUTION_CREDENTIAL_JSON }}
groups: ${{ vars.FIREBASE_DISTRIBUTION_TESTER_GROUPS }}
- file: build/app/outputs/flutter-apk/app-production-debug.apk
+ file: build/app/outputs/flutter-apk/app-production-release.apk
diff --git a/.github/workflows/android_deploy_production_to_playstore.yml b/.github/workflows/android_deploy_production_to_playstore.yml
index 5f9fadb2..1ca9e0ed 100644
--- a/.github/workflows/android_deploy_production_to_playstore.yml
+++ b/.github/workflows/android_deploy_production_to_playstore.yml
@@ -7,7 +7,7 @@ on:
jobs:
build_and_deploy_android:
- name: Build & Deploy Android
+ name: Android - Deploy Production build to Play Store
runs-on: ubuntu-latest
environment: production
timeout-minutes: 30
@@ -32,9 +32,6 @@ jobs:
dart pub global activate mason_cli
mason get
mason make template -c mason-config.json
- # Move the generated project to the root directory for next steps & cleanup to not affect static code analysis
- rsync -av --remove-source-files flutter_templates/ ./
- rm -rf bricks sample
- name: Get Flutter dependencies
run: flutter pub get
diff --git a/.github/workflows/android_deploy_staging.yml b/.github/workflows/android_deploy_staging.yml
index 3261228f..b6d3ad21 100644
--- a/.github/workflows/android_deploy_staging.yml
+++ b/.github/workflows/android_deploy_staging.yml
@@ -7,7 +7,7 @@ on:
jobs:
build_and_deploy_android:
- name: Build & Deploy Android
+ name: Android - Deploy Staging build to Firebase
runs-on: ubuntu-latest
environment: staging
timeout-minutes: 30
@@ -32,9 +32,6 @@ jobs:
dart pub global activate mason_cli
mason get
mason make template -c mason-config.json
- # Move the generated project to the root directory for next steps & cleanup to not affect static code analysis
- rsync -av --remove-source-files flutter_templates/ ./
- rm -rf bricks sample
- name: Get Flutter dependencies
run: flutter pub get
diff --git a/.github/workflows/ios_deploy_staging_to_firebase.yml b/.github/workflows/ios_deploy_staging_to_firebase.yml
index e56615e4..a3d1ae54 100644
--- a/.github/workflows/ios_deploy_staging_to_firebase.yml
+++ b/.github/workflows/ios_deploy_staging_to_firebase.yml
@@ -1,4 +1,4 @@
-name: ios-deploy-to-staging
+name: iOS - Deploy Staging build to Firebase
on:
# Trigger the workflow on push action
push:
@@ -6,8 +6,8 @@ on:
- develop
jobs:
- build_and_upload_staging_app_to_firebase:
- name: Build And Upload iOS Staging Application To Firebase
+ build_and_deploy_ios:
+ name: iOS - Deploy Staging build to Firebase
runs-on: macOS-latest
environment: staging
env:
@@ -42,9 +42,6 @@ jobs:
dart pub global activate mason_cli
mason get
mason make template -c mason-config.json
- # Move the generated project to the root directory for next steps & cleanup to not affect static code analysis
- rsync -av --remove-source-files flutter_templates/ ./
- rm -rf bricks sample
- name: Get Flutter dependencies
run: flutter pub get
diff --git a/.github/workflows/ios_deploy_to_app_store.yml b/.github/workflows/ios_deploy_to_app_store.yml
index b2da332c..a8d8663d 100644
--- a/.github/workflows/ios_deploy_to_app_store.yml
+++ b/.github/workflows/ios_deploy_to_app_store.yml
@@ -1,4 +1,4 @@
-name: ios-deploy-production-to-app-store
+name: iOS - Deploy Production build to AppStore
on:
# Trigger the workflow on push action
push:
@@ -6,8 +6,8 @@ on:
- main
jobs:
- build_and_upload_to_app_store:
- name: Build And Upload iOS Application Production To AppStore
+ build_and_deploy_ios:
+ name: iOS - Deploy Production build to AppStore
runs-on: macOS-latest
environment: production
timeout-minutes: 30
@@ -43,9 +43,6 @@ jobs:
dart pub global activate mason_cli
mason get
mason make template -c mason-config.json
- # Move the generated project to the root directory for next steps & cleanup to not affect static code analysis
- rsync -av --remove-source-files flutter_templates/ ./
- rm -rf bricks sample
- name: Get Flutter dependencies
run: flutter pub get
diff --git a/.github/workflows/ios_deploy_to_testflight.yml b/.github/workflows/ios_deploy_to_testflight.yml
index 52ac52ae..a516b573 100644
--- a/.github/workflows/ios_deploy_to_testflight.yml
+++ b/.github/workflows/ios_deploy_to_testflight.yml
@@ -1,4 +1,4 @@
-name: ios-deploy-production-to-testflight
+name: iOS - Deploy Production build to TestFlight
on:
# Trigger the workflow on push action
push:
@@ -6,8 +6,8 @@ on:
- main
jobs:
- build_and_upload_to_testflight:
- name: Build And Upload iOS Application Production To TestFlight
+ build_and_deploy_ios:
+ name: iOS - Deploy Production build to TestFlight
runs-on: macOS-latest
environment: production
timeout-minutes: 30
@@ -43,9 +43,6 @@ jobs:
dart pub global activate mason_cli
mason get
mason make template -c mason-config.json
- # Move the generated project to the root directory for next steps & cleanup to not affect static code analysis
- rsync -av --remove-source-files flutter_templates/ ./
- rm -rf bricks sample
- name: Get Flutter dependencies
run: flutter pub get
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 1ae97f50..49da7aff 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -25,9 +25,6 @@ jobs:
dart pub global activate mason_cli
mason get
mason make template -c mason-config.json
- # Move the generated project to the root directory for next steps & cleanup to not affect static code analysis
- rsync -av --remove-source-files flutter_templates/ ./
- rm -rf bricks sample
- name: Get Flutter dependencies
run: flutter pub get
@@ -53,6 +50,8 @@ jobs:
steps:
- name: Check out
uses: actions/checkout@v3
+ with:
+ ref: ${{ github.head_ref }}
- name: Set up Flutter environment
uses: subosito/flutter-action@v2
@@ -114,11 +113,11 @@ jobs:
field: project_name
value: sample
- - name: Generate the new sample project
+ - name: Generate the new "sample" project
run: |
dart pub global activate mason_cli
mason get
- mason make template -c mason-config.json
+ mason make template -c mason-config.json -o sample
- id: changes
name: Check for changes in the sample project
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
new file mode 100644
index 00000000..63919bd4
--- /dev/null
+++ b/CODE_OF_CONDUCT.md
@@ -0,0 +1,70 @@
+# Code of Conduct - Flutter Templates
+
+## Our Pledge
+
+In the interest of fostering an open and welcoming environment, we as
+contributors and maintainers pledge to make participation in our project and
+our community a harassment-free experience for everyone, regardless of age, body
+size, disability, ethnicity, sex characteristics, gender identity and expression,
+level of experience, education, socio-economic status, nationality, personal
+appearance, race, religion, or sexual identity and orientation.
+
+## Our Standards
+
+Examples of behavior that contributes to a positive environment for our
+community include:
+
+* Demonstrating empathy and kindness toward other people
+* Being respectful of differing opinions, viewpoints, and experiences
+* Giving and gracefully accepting constructive feedback
+* Accepting responsibility and apologizing to those affected by our mistakes,
+ and learning from the experience
+* Focusing on what is best not just for us as individuals, but for the
+ overall community
+
+Examples of unacceptable behavior include:
+
+* The use of sexualized language or imagery, and sexual attention or
+ advances
+* Trolling, insulting or derogatory comments, and personal or political attacks
+* Public or private harassment
+* Publishing others' private information, such as a physical or email
+ address, without their explicit permission
+* Other conduct which could reasonably be considered inappropriate in a
+ professional setting
+
+## Our Responsibilities
+
+Project maintainers are responsible for clarifying and enforcing our standards of
+acceptable behavior and will take appropriate and fair corrective action in
+response to any instances of unacceptable behavior.
+
+Project maintainers have the right and responsibility to remove, edit, or reject
+comments, commits, code, wiki edits, issues, and other contributions that are
+not aligned to this Code of Conduct, or to ban
+temporarily or permanently any contributor for other behaviors that they deem
+inappropriate, threatening, offensive, or harmful.
+
+## Scope
+
+This Code of Conduct applies within all community spaces, and also applies when
+an individual is officially representing the community in public spaces.
+Examples of representing our community include using an official e-mail address,
+posting via an official social media account, or acting as an appointed
+representative at an online or offline event.
+
+## Enforcement
+
+Instances of abusive, harassing, or otherwise unacceptable behavior may be
+reported to the community leaders responsible for enforcement at <>.
+All complaints will be reviewed and investigated promptly and fairly.
+
+All community leaders are obligated to respect the privacy and security of the
+reporter of any incident.
+
+## Attribution
+
+This Code of Conduct is adapted from the [Contributor Covenant](https://contributor-covenant.org/), version
+[1.4](https://www.contributor-covenant.org/version/1/4/code-of-conduct/code_of_conduct.md) and
+[2.0](https://www.contributor-covenant.org/version/2/0/code_of_conduct/code_of_conduct.md),
+and was generated by [contributing-gen](https://github.com/bttger/contributing-gen).
\ No newline at end of file
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 00000000..7193406d
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,103 @@
+# Contributing to Flutter Templates
+
+First off, thanks for taking the time to contribute! 🎉
+
+Read our [Code of Conduct](./CODE_OF_CONDUCT.md) to keep our community approachable and respectable.
+
+Please make sure to read the relevant section before making your contribution. It will make it much easier for us maintainers and smooth out the experience for all involved. The community looks forward to your contributions.
+
+Use the table of contents icon on the top left corner of this document to get to a specific section of this guide quickly.
+
+> And if you like the project, but just don't have time to contribute, that's fine. There are other easy ways to support the project and show your appreciation, which we would also be very happy about:
+> - Star the project
+> - Tweet about it
+> - Refer to this project in your project's readme
+> - Mention the project at local meetups and tell your friends/colleagues
+
+## Code of Conduct
+
+This project and everyone participating in it is governed by the
+[Flutter Templates Code of Conduct](https://github.com/nimblehq/flutter-templatesblob/master/CODE_OF_CONDUCT.md).
+By participating, you are expected to uphold this code. Please report unacceptable behavior
+to .
+
+## What should I know before I get started?
+
+### Get to know Mason
+
+The Flutter templates use [Mason](https://github.com/felangel/mason) as the primary tool for generating a new Flutter project. Take some time to become familiar with it.
+
+### Flutter templates structure
+
+The repository contains three main files/directories:
+- The `bricks` directory contains the primary development, which is the "template" brick.
+- The `sample` directory contains a sample Flutter project that was automatically generated by the CI workflow. This ensures that the project is not broken during development.
+- The `mason.yaml` file lists all the bricks in the repository.
+
+## I Have a Question
+
+Before you ask a question, it is best to search for existing [Issues](https://github.com/nimblehq/flutter-templates/issues) that might help you. In case you have found a suitable issue and still need clarification, you can write your question in this issue. It is also advisable to search the internet for answers first.
+
+If you still feel the need to ask a question and need clarification, we recommend the following:
+
+- Open a [Discussion](https://github.com/nimblehq/flutter-templates/discussions/new?category=q-a).
+- Provide as much context as you can about what you're running into.
+- Provide the project version and platform info (OS, Flutter version, etc), depending on what seems relevant.
+
+We will then analyze and plan for it.
+
+## I Want To Contribute
+
+### Reporting Bugs
+
+#### Before Submitting a Bug Report
+
+A good bug report shouldn't leave others needing to chase you up for more information. Therefore, we ask you to investigate carefully, collect information, and describe the issue in detail in your report. Please complete the following steps in advance to help us fix any potential bug as fast as possible.
+
+- Make sure that you are using the latest version.
+- Determine if your bug is really a bug and not an error on your side, e.g., using incompatible environment components/versions (Make sure that you have read the [README](https://github.com/nimblehq/flutter-templates/blob/main/README.md). If you are looking for support, you might want to check [this section](#i-have-a-question)).
+- To see if other users have experienced (and potentially already solved) the same issue you are having, check if there is not already a bug report existing for your bug or error in the [bug tracker](https://github.com/nimblehq/flutter-templates/issues?q=is%3Aissue+label%3A%22type+%3A+bug%22+).
+- Also, make sure to search the internet (including Stack Overflow) to see if users outside of the GitHub community have discussed the issue.
+- Collect information about the bug:
+ - Stack trace (Traceback)
+ - OS, Platform and Version (Windows, Linux, macOS, x86, ARM)
+ - Flutter's doctor (if the generated project runs failed)
+ - Possibly your input and the output
+ - Can you reliably reproduce the issue? And can you also reproduce it with older versions?
+
+#### How Do I Submit a Good Bug Report?
+
+> You must never report security related issues, vulnerabilities, or bugs including sensitive information to the issue tracker, or elsewhere in public. Instead sensitive bugs must be sent by email to .
+
+We use GitHub issues to track bugs and errors. If you run into an issue with the project:
+
+- Open a [Bug Report's Issue](https://github.com/nimblehq/flutter-templates/issues/new?assignees=&labels=type+%3A+bug&projects=&template=bug_template.md&title=Fix%3A+).
+- Explain the behavior you would expect and the actual behavior.
+- Please provide as much context as possible and describe the *reproduction steps* that someone else can follow to recreate the issue on their own. This usually includes your code. For good bug reports, you should isolate the problem and create a reduced test case.
+- Provide the information you collected in the previous section.
+
+### Your First Code Contribution
+
+If you're not sure where to start contributing to Flutter Templates, browse through the [Issues](https://github.com/nimblehq/flutter-templates/issues) and choose one that suits you best.
+
+### Pull Requests
+
+Please follow these steps to have your contribution considered by the maintainers:
+
+- Follow the [Flutter convention & style guides](https://nimblehq.co/compass/development/code-conventions/flutter/).
+- After submitting your pull request, verify that all [status checks](https://help.github.com/articles/about-status-checks/) are passing What if the status checks are failing?
If a status check is failing, and you believe that the failure is unrelated to your change, please leave a comment on the pull request explaining why you believe the failure is unrelated. If we conclude that the failure was a false positive, then we will open an issue to track that problem with our status check suite.
+
+While the prerequisites above must be satisfied prior to having your pull request reviewed, the reviewer(s) may ask you to complete additional design work, tests, or other changes before your pull request can be ultimately accepted.
+
+## Style guides
+### Git Branch Management
+
+Check out our [Branch Management](https://nimblehq.co/compass/development/version-control/branch-management/) for more details about the branch formatting, naming, etc.
+
+### Git Commit Messages
+
+Check out our [Committing Code](https://nimblehq.co/compass/development/version-control/committing-code/) for more details about the commit message formatting, structure, etc.
+
+### Code Conventions
+
+Check out our [Flutter convention](https://nimblehq.co/compass/development/code-conventions/flutter/) for more details about the code convention and style guides.
diff --git a/README.md b/README.md
index 409ec897..800ac17e 100644
--- a/README.md
+++ b/README.md
@@ -33,7 +33,7 @@ Before using the template, ensure that you have installed the following prerequi
Follow these steps to set up a new project from the template:
-1. Clone or download this repository to your local machine.
+1. Use [Use this template](https://github.com/new?template_name=flutter-templates&template_owner=nimblehq) feature to create your new project repository or clone this template repository to your local machine.
2. Fetch all required bricks by running the command:
@@ -47,11 +47,16 @@ Follow these steps to set up a new project from the template:
`$ mason make template -c mason-config.json` to provide necessary inputs via a JSON file, e.g., [mason-config.json](mason-config.json) for the sample project.
-Once the project is generated at `/{project_name}`, please refer to the [Getting Started](bricks/template/__brick__/%7B%7Bproject_name.snakeCase()%7D%7D#getting-started) documentation to make it ready for development.
+Once the project is generated, please refer to the [Getting Started](bricks/template/__brick__/%7B%7Bproject_name.snakeCase()%7D%7D#getting-started) documentation to make it ready for development.
That's it! You have now set up a new Flutter project using the template 🎉
> **Note**
+>
+> The script generates all project files to the current working folder as default and cleans up all template stuff in the end. Run it with [Custom Output Directory](https://github.com/felangel/mason/tree/master/packages/mason_cli#custom-output-directory) to set a custom output folder and keep the template stuff to rerun.
+>
+> `$ mason make template -c mason-config.json -o my_flutter_project`
+>
> You can find detailed information on `make` command options and usage in the [Mason documentation](https://github.com/felangel/mason/tree/master/packages/mason_cli#overview).
## Documentation
diff --git a/bricks/permission_handler/__brick__/{{project_name.snakeCase()}}/lib/utils/wrappers/permission_wrapper.dart b/bricks/permission_handler/__brick__/lib/utils/wrappers/permission_wrapper.dart
similarity index 100%
rename from bricks/permission_handler/__brick__/{{project_name.snakeCase()}}/lib/utils/wrappers/permission_wrapper.dart
rename to bricks/permission_handler/__brick__/lib/utils/wrappers/permission_wrapper.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/.env.sample b/bricks/template/__brick__/.env.sample
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/.env.sample
rename to bricks/template/__brick__/.env.sample
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/.github/CODEOWNERS b/bricks/template/__brick__/.github/CODEOWNERS
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/.github/CODEOWNERS
rename to bricks/template/__brick__/.github/CODEOWNERS
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/.github/ISSUE_TEMPLATE/bug_template.md b/bricks/template/__brick__/.github/ISSUE_TEMPLATE/bug_template.md
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/.github/ISSUE_TEMPLATE/bug_template.md
rename to bricks/template/__brick__/.github/ISSUE_TEMPLATE/bug_template.md
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/.github/ISSUE_TEMPLATE/chore_template.md b/bricks/template/__brick__/.github/ISSUE_TEMPLATE/chore_template.md
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/.github/ISSUE_TEMPLATE/chore_template.md
rename to bricks/template/__brick__/.github/ISSUE_TEMPLATE/chore_template.md
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/.github/ISSUE_TEMPLATE/feature_template.md b/bricks/template/__brick__/.github/ISSUE_TEMPLATE/feature_template.md
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/.github/ISSUE_TEMPLATE/feature_template.md
rename to bricks/template/__brick__/.github/ISSUE_TEMPLATE/feature_template.md
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/.github/ISSUE_TEMPLATE/story_template.md b/bricks/template/__brick__/.github/ISSUE_TEMPLATE/story_template.md
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/.github/ISSUE_TEMPLATE/story_template.md
rename to bricks/template/__brick__/.github/ISSUE_TEMPLATE/story_template.md
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/.github/PULL_REQUEST_TEMPLATE.md b/bricks/template/__brick__/.github/PULL_REQUEST_TEMPLATE.md
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/.github/PULL_REQUEST_TEMPLATE.md
rename to bricks/template/__brick__/.github/PULL_REQUEST_TEMPLATE.md
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/.github/PULL_REQUEST_TEMPLATE/release_template.md b/bricks/template/__brick__/.github/PULL_REQUEST_TEMPLATE/release_template.md
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/.github/PULL_REQUEST_TEMPLATE/release_template.md
rename to bricks/template/__brick__/.github/PULL_REQUEST_TEMPLATE/release_template.md
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/.github/wiki/.keep b/bricks/template/__brick__/.github/wiki/.keep
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/.github/wiki/.keep
rename to bricks/template/__brick__/.github/wiki/.keep
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/.github/workflows/android_deploy_production.yml b/bricks/template/__brick__/.github/workflows/android_deploy_production.yml
similarity index 68%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/.github/workflows/android_deploy_production.yml
rename to bricks/template/__brick__/.github/workflows/android_deploy_production.yml
index f73c2c71..d78f52b5 100644
--- a/bricks/template/__brick__/{{project_name.snakeCase()}}/.github/workflows/android_deploy_production.yml
+++ b/bricks/template/__brick__/.github/workflows/android_deploy_production.yml
@@ -7,7 +7,7 @@ on:
jobs:
build_and_deploy_android:
- name: Build & Deploy Android
+ name: Android - Deploy Production build to Firebase
runs-on: ubuntu-latest
environment: production
timeout-minutes: 30
@@ -39,9 +39,17 @@ jobs:
run: |
echo -e "$ENV" > .env
+ - name: Set up release signing configs
+ env:
+ ANDROID_RELEASE_KEYSTORE_BASE64: ${{#mustacheCase}}secrets.ANDROID_RELEASE_KEYSTORE_BASE64{{/mustacheCase}}
+ ANDROID_SIGNING_PROPERTIES: ${{#mustacheCase}}secrets.ANDROID_SIGNING_PROPERTIES{{/mustacheCase}}
+ run: |
+ echo $ANDROID_RELEASE_KEYSTORE_BASE64 | base64 --decode > android/config/release.keystore
+ echo "$ANDROID_SIGNING_PROPERTIES" > android/signing.properties
+
# App Bundle requires Firebase connected to Play Store to upload https://appdistribution.page.link/KPoa
- name: Build Android apk
- run: flutter build apk --flavor production --debug --build-number $GITHUB_RUN_NUMBER
+ run: flutter build apk --flavor production --release --build-number $GITHUB_RUN_NUMBER
- name: Deploy Android Production to Firebase
uses: wzieba/Firebase-Distribution-Github-Action@v1.5.0
@@ -49,4 +57,4 @@ jobs:
appId: ${{#mustacheCase}}vars.FIREBASE_ANDROID_APP_ID{{/mustacheCase}}
serviceCredentialsFileContent: ${{#mustacheCase}}secrets.FIREBASE_DISTRIBUTION_CREDENTIAL_JSON{{/mustacheCase}}
groups: ${{#mustacheCase}}vars.FIREBASE_DISTRIBUTION_TESTER_GROUPS{{/mustacheCase}}
- file: build/app/outputs/flutter-apk/app-production-debug.apk
+ file: build/app/outputs/flutter-apk/app-production-release.apk
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/.github/workflows/android_deploy_production_to_playstore.yml b/bricks/template/__brick__/.github/workflows/android_deploy_production_to_playstore.yml
similarity index 97%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/.github/workflows/android_deploy_production_to_playstore.yml
rename to bricks/template/__brick__/.github/workflows/android_deploy_production_to_playstore.yml
index fa85666b..687faaf7 100644
--- a/bricks/template/__brick__/{{project_name.snakeCase()}}/.github/workflows/android_deploy_production_to_playstore.yml
+++ b/bricks/template/__brick__/.github/workflows/android_deploy_production_to_playstore.yml
@@ -7,7 +7,7 @@ on:
jobs:
build_and_deploy_android:
- name: Build & Deploy Android
+ name: Android - Deploy Production build to Play Store
runs-on: ubuntu-latest
environment: production
timeout-minutes: 30
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/.github/workflows/android_deploy_staging.yml b/bricks/template/__brick__/.github/workflows/android_deploy_staging.yml
similarity index 96%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/.github/workflows/android_deploy_staging.yml
rename to bricks/template/__brick__/.github/workflows/android_deploy_staging.yml
index 175eaee1..60ede1f1 100644
--- a/bricks/template/__brick__/{{project_name.snakeCase()}}/.github/workflows/android_deploy_staging.yml
+++ b/bricks/template/__brick__/.github/workflows/android_deploy_staging.yml
@@ -7,7 +7,7 @@ on:
jobs:
build_and_deploy_android:
- name: Build & Deploy Android
+ name: Android - Deploy Staging build to Firebase
runs-on: ubuntu-latest
environment: staging
timeout-minutes: 30
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/.github/workflows/bump_version.yml b/bricks/template/__brick__/.github/workflows/bump_version.yml
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/.github/workflows/bump_version.yml
rename to bricks/template/__brick__/.github/workflows/bump_version.yml
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/.github/workflows/ios_deploy_staging_to_firebase.yml b/bricks/template/__brick__/.github/workflows/ios_deploy_staging_to_firebase.yml
similarity index 94%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/.github/workflows/ios_deploy_staging_to_firebase.yml
rename to bricks/template/__brick__/.github/workflows/ios_deploy_staging_to_firebase.yml
index fd5e6b08..bb9e3523 100644
--- a/bricks/template/__brick__/{{project_name.snakeCase()}}/.github/workflows/ios_deploy_staging_to_firebase.yml
+++ b/bricks/template/__brick__/.github/workflows/ios_deploy_staging_to_firebase.yml
@@ -1,4 +1,4 @@
-name: ios-deploy-to-staging
+name: iOS - Deploy Staging build to Firebase
on:
# Trigger the workflow on push action
push:
@@ -6,8 +6,8 @@ on:
- develop
jobs:
- build_and_upload_staging_app_to_firebase:
- name: Build And Upload iOS Staging Application To Firebase
+ build_and_deploy_ios:
+ name: iOS - Deploy Staging build to Firebase
runs-on: macOS-latest
environment: staging
env:
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/.github/workflows/ios_deploy_to_app_store.yml b/bricks/template/__brick__/.github/workflows/ios_deploy_to_app_store.yml
similarity index 95%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/.github/workflows/ios_deploy_to_app_store.yml
rename to bricks/template/__brick__/.github/workflows/ios_deploy_to_app_store.yml
index 73329426..9a7340a9 100644
--- a/bricks/template/__brick__/{{project_name.snakeCase()}}/.github/workflows/ios_deploy_to_app_store.yml
+++ b/bricks/template/__brick__/.github/workflows/ios_deploy_to_app_store.yml
@@ -1,4 +1,4 @@
-name: ios-deploy-production-to-app-store
+name: iOS - Deploy Production build to AppStore
on:
# Trigger the workflow on push action
push:
@@ -6,8 +6,8 @@ on:
- main
jobs:
- build_and_upload_to_app_store:
- name: Build And Upload iOS Application Production To AppStore
+ build_and_deploy_ios:
+ name: iOS - Deploy Production build to AppStore
runs-on: macOS-latest
environment: production
timeout-minutes: 30
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/.github/workflows/ios_deploy_to_testflight.yml b/bricks/template/__brick__/.github/workflows/ios_deploy_to_testflight.yml
similarity index 95%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/.github/workflows/ios_deploy_to_testflight.yml
rename to bricks/template/__brick__/.github/workflows/ios_deploy_to_testflight.yml
index 3b9a98ba..71b38077 100644
--- a/bricks/template/__brick__/{{project_name.snakeCase()}}/.github/workflows/ios_deploy_to_testflight.yml
+++ b/bricks/template/__brick__/.github/workflows/ios_deploy_to_testflight.yml
@@ -1,4 +1,4 @@
-name: ios-deploy-production-to-testflight
+name: iOS - Deploy Production build to TestFlight
on:
# Trigger the workflow on push action
push:
@@ -6,8 +6,8 @@ on:
- main
jobs:
- build_and_upload_to_testflight:
- name: Build And Upload iOS Application Production To TestFlight
+ build_and_deploy_ios:
+ name: iOS - Deploy Production build to TestFlight
runs-on: macOS-latest
environment: production
timeout-minutes: 30
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/.github/workflows/publish_wiki.yml b/bricks/template/__brick__/.github/workflows/publish_wiki.yml
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/.github/workflows/publish_wiki.yml
rename to bricks/template/__brick__/.github/workflows/publish_wiki.yml
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/.github/workflows/test.yml b/bricks/template/__brick__/.github/workflows/test.yml
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/.github/workflows/test.yml
rename to bricks/template/__brick__/.github/workflows/test.yml
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/.github/workflows/whatsnew/whatsnew-en-US b/bricks/template/__brick__/.github/workflows/whatsnew/whatsnew-en-US
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/.github/workflows/whatsnew/whatsnew-en-US
rename to bricks/template/__brick__/.github/workflows/whatsnew/whatsnew-en-US
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/.gitignore b/bricks/template/__brick__/.gitignore
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/.gitignore
rename to bricks/template/__brick__/.gitignore
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/.metadata b/bricks/template/__brick__/.metadata
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/.metadata
rename to bricks/template/__brick__/.metadata
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/README.md b/bricks/template/__brick__/README.md
similarity index 85%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/README.md
rename to bricks/template/__brick__/README.md
index 386f4a20..e613cf20 100644
--- a/bricks/template/__brick__/{{project_name.snakeCase()}}/README.md
+++ b/bricks/template/__brick__/README.md
@@ -12,12 +12,18 @@
### Setup
- Create these `.env` files in the root directory according to the flavors and add the required
-environment variables. The example environment variable is in `.env.sample`.
+environment variables. The example file is `.env.sample`.
- Staging: `.env.staging`
- Production: `.env`
+- To make the Android release build,
+
+ - put the `release.keystore` at the `android/config` folder,
+
+ - create the `signing.properties` file to provide keystore credentials in the `android` folder. The example file is `signing.properties.sample`.
+
### Run
- Run code generator for JSON models, DI dependencies, etc:
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/analysis_options.yaml b/bricks/template/__brick__/analysis_options.yaml
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/analysis_options.yaml
rename to bricks/template/__brick__/analysis_options.yaml
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/android/.gitignore b/bricks/template/__brick__/android/.gitignore
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/android/.gitignore
rename to bricks/template/__brick__/android/.gitignore
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/build.gradle b/bricks/template/__brick__/android/app/build.gradle
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/build.gradle
rename to bricks/template/__brick__/android/app/build.gradle
diff --git a/bricks/template/__brick__/android/app/proguard-rules.pro b/bricks/template/__brick__/android/app/proguard-rules.pro
new file mode 100644
index 00000000..0acab615
--- /dev/null
+++ b/bricks/template/__brick__/android/app/proguard-rules.pro
@@ -0,0 +1,24 @@
+# Add project specific ProGuard rules here.
+# You can control the set of applied configuration files using the
+# proguardFiles setting in build.gradle.kts.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
+
+# Keep BuildConfig for Flutter Config https://github.com/ByneappLLC/flutter_config/blob/master/doc/ANDROID.md#android-setup
+-keep class {{package_name.dotCase()}}.BuildConfig { *; }
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/debug/AndroidManifest.xml b/bricks/template/__brick__/android/app/src/debug/AndroidManifest.xml
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/debug/AndroidManifest.xml
rename to bricks/template/__brick__/android/app/src/debug/AndroidManifest.xml
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/main/AndroidManifest.xml b/bricks/template/__brick__/android/app/src/main/AndroidManifest.xml
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/main/AndroidManifest.xml
rename to bricks/template/__brick__/android/app/src/main/AndroidManifest.xml
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/main/kotlin/{{package_name.pathCase()}}/MainActivity.kt b/bricks/template/__brick__/android/app/src/main/kotlin/{{package_name.pathCase()}}/MainActivity.kt
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/main/kotlin/{{package_name.pathCase()}}/MainActivity.kt
rename to bricks/template/__brick__/android/app/src/main/kotlin/{{package_name.pathCase()}}/MainActivity.kt
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/main/res/drawable-v21/launch_background.xml b/bricks/template/__brick__/android/app/src/main/res/drawable-v21/launch_background.xml
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/main/res/drawable-v21/launch_background.xml
rename to bricks/template/__brick__/android/app/src/main/res/drawable-v21/launch_background.xml
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/main/res/drawable/launch_background.xml b/bricks/template/__brick__/android/app/src/main/res/drawable/launch_background.xml
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/main/res/drawable/launch_background.xml
rename to bricks/template/__brick__/android/app/src/main/res/drawable/launch_background.xml
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/bricks/template/__brick__/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
rename to bricks/template/__brick__/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/bricks/template/__brick__/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
rename to bricks/template/__brick__/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/bricks/template/__brick__/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
rename to bricks/template/__brick__/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/bricks/template/__brick__/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
rename to bricks/template/__brick__/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/bricks/template/__brick__/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
rename to bricks/template/__brick__/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/main/res/values-night/styles.xml b/bricks/template/__brick__/android/app/src/main/res/values-night/styles.xml
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/main/res/values-night/styles.xml
rename to bricks/template/__brick__/android/app/src/main/res/values-night/styles.xml
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/main/res/values/strings.xml b/bricks/template/__brick__/android/app/src/main/res/values/strings.xml
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/main/res/values/strings.xml
rename to bricks/template/__brick__/android/app/src/main/res/values/strings.xml
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/main/res/values/styles.xml b/bricks/template/__brick__/android/app/src/main/res/values/styles.xml
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/main/res/values/styles.xml
rename to bricks/template/__brick__/android/app/src/main/res/values/styles.xml
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/profile/AndroidManifest.xml b/bricks/template/__brick__/android/app/src/profile/AndroidManifest.xml
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/profile/AndroidManifest.xml
rename to bricks/template/__brick__/android/app/src/profile/AndroidManifest.xml
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/staging/res/values/strings.xml b/bricks/template/__brick__/android/app/src/staging/res/values/strings.xml
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/android/app/src/staging/res/values/strings.xml
rename to bricks/template/__brick__/android/app/src/staging/res/values/strings.xml
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/android/build.gradle b/bricks/template/__brick__/android/build.gradle
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/android/build.gradle
rename to bricks/template/__brick__/android/build.gradle
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/android/config/debug.keystore b/bricks/template/__brick__/android/config/debug.keystore
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/android/config/debug.keystore
rename to bricks/template/__brick__/android/config/debug.keystore
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/android/gradle.properties b/bricks/template/__brick__/android/gradle.properties
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/android/gradle.properties
rename to bricks/template/__brick__/android/gradle.properties
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/android/gradle/wrapper/gradle-wrapper.properties b/bricks/template/__brick__/android/gradle/wrapper/gradle-wrapper.properties
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/android/gradle/wrapper/gradle-wrapper.properties
rename to bricks/template/__brick__/android/gradle/wrapper/gradle-wrapper.properties
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/android/settings.gradle b/bricks/template/__brick__/android/settings.gradle
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/android/settings.gradle
rename to bricks/template/__brick__/android/settings.gradle
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/android/signing.properties b/bricks/template/__brick__/android/signing.properties.sample
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/android/signing.properties
rename to bricks/template/__brick__/android/signing.properties.sample
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/assets/fonts/neuzeit.otf b/bricks/template/__brick__/assets/fonts/neuzeit.otf
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/assets/fonts/neuzeit.otf
rename to bricks/template/__brick__/assets/fonts/neuzeit.otf
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/assets/images/nimble_logo.png b/bricks/template/__brick__/assets/images/nimble_logo.png
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/assets/images/nimble_logo.png
rename to bricks/template/__brick__/assets/images/nimble_logo.png
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/assets/svg/flutter_logo.svg b/bricks/template/__brick__/assets/svg/flutter_logo.svg
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/assets/svg/flutter_logo.svg
rename to bricks/template/__brick__/assets/svg/flutter_logo.svg
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/build.yaml b/bricks/template/__brick__/build.yaml
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/build.yaml
rename to bricks/template/__brick__/build.yaml
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/codecov.yml b/bricks/template/__brick__/codecov.yml
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/codecov.yml
rename to bricks/template/__brick__/codecov.yml
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/integration_test/real_app_test.dart b/bricks/template/__brick__/integration_test/real_app_test.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/integration_test/real_app_test.dart
rename to bricks/template/__brick__/integration_test/real_app_test.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/integration_test/screens/home_screen_test.dart b/bricks/template/__brick__/integration_test/screens/home_screen_test.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/integration_test/screens/home_screen_test.dart
rename to bricks/template/__brick__/integration_test/screens/home_screen_test.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/integration_test/utils/test_util.dart b/bricks/template/__brick__/integration_test/utils/test_util.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/integration_test/utils/test_util.dart
rename to bricks/template/__brick__/integration_test/utils/test_util.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/.gitignore b/bricks/template/__brick__/ios/.gitignore
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/.gitignore
rename to bricks/template/__brick__/ios/.gitignore
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Flutter/AppFrameworkInfo.plist b/bricks/template/__brick__/ios/Flutter/AppFrameworkInfo.plist
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Flutter/AppFrameworkInfo.plist
rename to bricks/template/__brick__/ios/Flutter/AppFrameworkInfo.plist
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Flutter/Debug.xcconfig b/bricks/template/__brick__/ios/Flutter/Debug.xcconfig
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Flutter/Debug.xcconfig
rename to bricks/template/__brick__/ios/Flutter/Debug.xcconfig
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Flutter/Release.xcconfig b/bricks/template/__brick__/ios/Flutter/Release.xcconfig
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Flutter/Release.xcconfig
rename to bricks/template/__brick__/ios/Flutter/Release.xcconfig
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Gemfile b/bricks/template/__brick__/ios/Gemfile
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Gemfile
rename to bricks/template/__brick__/ios/Gemfile
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Gemfile.lock b/bricks/template/__brick__/ios/Gemfile.lock
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Gemfile.lock
rename to bricks/template/__brick__/ios/Gemfile.lock
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Podfile b/bricks/template/__brick__/ios/Podfile
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Podfile
rename to bricks/template/__brick__/ios/Podfile
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Podfile.lock b/bricks/template/__brick__/ios/Podfile.lock
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Podfile.lock
rename to bricks/template/__brick__/ios/Podfile.lock
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner.xcodeproj/project.pbxproj b/bricks/template/__brick__/ios/Runner.xcodeproj/project.pbxproj
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner.xcodeproj/project.pbxproj
rename to bricks/template/__brick__/ios/Runner.xcodeproj/project.pbxproj
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/bricks/template/__brick__/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
rename to bricks/template/__brick__/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/bricks/template/__brick__/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
rename to bricks/template/__brick__/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/bricks/template/__brick__/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
rename to bricks/template/__brick__/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner.xcodeproj/xcshareddata/xcschemes/production.xcscheme b/bricks/template/__brick__/ios/Runner.xcodeproj/xcshareddata/xcschemes/production.xcscheme
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner.xcodeproj/xcshareddata/xcschemes/production.xcscheme
rename to bricks/template/__brick__/ios/Runner.xcodeproj/xcshareddata/xcschemes/production.xcscheme
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner.xcodeproj/xcshareddata/xcschemes/staging.xcscheme b/bricks/template/__brick__/ios/Runner.xcodeproj/xcshareddata/xcschemes/staging.xcscheme
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner.xcodeproj/xcshareddata/xcschemes/staging.xcscheme
rename to bricks/template/__brick__/ios/Runner.xcodeproj/xcshareddata/xcschemes/staging.xcscheme
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner.xcworkspace/contents.xcworkspacedata b/bricks/template/__brick__/ios/Runner.xcworkspace/contents.xcworkspacedata
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner.xcworkspace/contents.xcworkspacedata
rename to bricks/template/__brick__/ios/Runner.xcworkspace/contents.xcworkspacedata
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/bricks/template/__brick__/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
rename to bricks/template/__brick__/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/bricks/template/__brick__/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
rename to bricks/template/__brick__/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/AppDelegate.swift b/bricks/template/__brick__/ios/Runner/AppDelegate.swift
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/AppDelegate.swift
rename to bricks/template/__brick__/ios/Runner/AppDelegate.swift
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
rename to bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
rename to bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
rename to bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
rename to bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
rename to bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
rename to bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
rename to bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
rename to bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
rename to bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
rename to bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
rename to bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
rename to bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
rename to bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
rename to bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
rename to bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
rename to bricks/template/__brick__/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/bricks/template/__brick__/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
rename to bricks/template/__brick__/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/bricks/template/__brick__/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
rename to bricks/template/__brick__/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/bricks/template/__brick__/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
rename to bricks/template/__brick__/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/bricks/template/__brick__/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
rename to bricks/template/__brick__/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/bricks/template/__brick__/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
rename to bricks/template/__brick__/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Base.lproj/LaunchScreen.storyboard b/bricks/template/__brick__/ios/Runner/Base.lproj/LaunchScreen.storyboard
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Base.lproj/LaunchScreen.storyboard
rename to bricks/template/__brick__/ios/Runner/Base.lproj/LaunchScreen.storyboard
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Base.lproj/Main.storyboard b/bricks/template/__brick__/ios/Runner/Base.lproj/Main.storyboard
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Base.lproj/Main.storyboard
rename to bricks/template/__brick__/ios/Runner/Base.lproj/Main.storyboard
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Info.plist b/bricks/template/__brick__/ios/Runner/Info.plist
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Info.plist
rename to bricks/template/__brick__/ios/Runner/Info.plist
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Runner-Bridging-Header.h b/bricks/template/__brick__/ios/Runner/Runner-Bridging-Header.h
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/Runner/Runner-Bridging-Header.h
rename to bricks/template/__brick__/ios/Runner/Runner-Bridging-Header.h
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/RunnerTests/RunnerTests.swift b/bricks/template/__brick__/ios/RunnerTests/RunnerTests.swift
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/RunnerTests/RunnerTests.swift
rename to bricks/template/__brick__/ios/RunnerTests/RunnerTests.swift
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/fastlane/Constants/Constants.rb b/bricks/template/__brick__/ios/fastlane/Constants/Constants.rb
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/fastlane/Constants/Constants.rb
rename to bricks/template/__brick__/ios/fastlane/Constants/Constants.rb
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/fastlane/Constants/Environments.rb b/bricks/template/__brick__/ios/fastlane/Constants/Environments.rb
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/fastlane/Constants/Environments.rb
rename to bricks/template/__brick__/ios/fastlane/Constants/Environments.rb
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/fastlane/Fastfile b/bricks/template/__brick__/ios/fastlane/Fastfile
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/fastlane/Fastfile
rename to bricks/template/__brick__/ios/fastlane/Fastfile
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/fastlane/Gymfile b/bricks/template/__brick__/ios/fastlane/Gymfile
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/fastlane/Gymfile
rename to bricks/template/__brick__/ios/fastlane/Gymfile
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/fastlane/Managers/BuildManager.rb b/bricks/template/__brick__/ios/fastlane/Managers/BuildManager.rb
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/fastlane/Managers/BuildManager.rb
rename to bricks/template/__brick__/ios/fastlane/Managers/BuildManager.rb
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/fastlane/Managers/DistributionManager.rb b/bricks/template/__brick__/ios/fastlane/Managers/DistributionManager.rb
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/fastlane/Managers/DistributionManager.rb
rename to bricks/template/__brick__/ios/fastlane/Managers/DistributionManager.rb
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/fastlane/Managers/MatchManager.rb b/bricks/template/__brick__/ios/fastlane/Managers/MatchManager.rb
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/fastlane/Managers/MatchManager.rb
rename to bricks/template/__brick__/ios/fastlane/Managers/MatchManager.rb
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/fastlane/Matchfile b/bricks/template/__brick__/ios/fastlane/Matchfile
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/fastlane/Matchfile
rename to bricks/template/__brick__/ios/fastlane/Matchfile
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/ios/fastlane/Pluginfile b/bricks/template/__brick__/ios/fastlane/Pluginfile
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/ios/fastlane/Pluginfile
rename to bricks/template/__brick__/ios/fastlane/Pluginfile
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/l10n.yaml b/bricks/template/__brick__/l10n.yaml
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/l10n.yaml
rename to bricks/template/__brick__/l10n.yaml
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/lib/app/resources/app_colors.dart b/bricks/template/__brick__/lib/app/resources/app_colors.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/lib/app/resources/app_colors.dart
rename to bricks/template/__brick__/lib/app/resources/app_colors.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/lib/app/screens/home/home_screen.dart b/bricks/template/__brick__/lib/app/screens/home/home_screen.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/lib/app/screens/home/home_screen.dart
rename to bricks/template/__brick__/lib/app/screens/home/home_screen.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/lib/app/screens/home/home_view_model.dart b/bricks/template/__brick__/lib/app/screens/home/home_view_model.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/lib/app/screens/home/home_view_model.dart
rename to bricks/template/__brick__/lib/app/screens/home/home_view_model.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/lib/app/screens/home/home_view_state.dart b/bricks/template/__brick__/lib/app/screens/home/home_view_state.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/lib/app/screens/home/home_view_state.dart
rename to bricks/template/__brick__/lib/app/screens/home/home_view_state.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/lib/data/local/secure_storage.dart b/bricks/template/__brick__/lib/data/local/secure_storage.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/lib/data/local/secure_storage.dart
rename to bricks/template/__brick__/lib/data/local/secure_storage.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/lib/data/remote/datasources/api_service.dart b/bricks/template/__brick__/lib/data/remote/datasources/api_service.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/lib/data/remote/datasources/api_service.dart
rename to bricks/template/__brick__/lib/data/remote/datasources/api_service.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/lib/data/remote/models/requests/.keep b/bricks/template/__brick__/lib/data/remote/models/requests/.keep
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/lib/data/remote/models/requests/.keep
rename to bricks/template/__brick__/lib/data/remote/models/requests/.keep
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/lib/data/remote/models/responses/user_response.dart b/bricks/template/__brick__/lib/data/remote/models/responses/user_response.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/lib/data/remote/models/responses/user_response.dart
rename to bricks/template/__brick__/lib/data/remote/models/responses/user_response.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/lib/data/repositories/credential_repository_impl.dart b/bricks/template/__brick__/lib/data/repositories/credential_repository_impl.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/lib/data/repositories/credential_repository_impl.dart
rename to bricks/template/__brick__/lib/data/repositories/credential_repository_impl.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/lib/di/di.dart b/bricks/template/__brick__/lib/di/di.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/lib/di/di.dart
rename to bricks/template/__brick__/lib/di/di.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/lib/di/interceptor/app_interceptor.dart b/bricks/template/__brick__/lib/di/interceptor/app_interceptor.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/lib/di/interceptor/app_interceptor.dart
rename to bricks/template/__brick__/lib/di/interceptor/app_interceptor.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/lib/di/module/network_module.dart b/bricks/template/__brick__/lib/di/module/network_module.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/lib/di/module/network_module.dart
rename to bricks/template/__brick__/lib/di/module/network_module.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/lib/di/module/storage_module.dart b/bricks/template/__brick__/lib/di/module/storage_module.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/lib/di/module/storage_module.dart
rename to bricks/template/__brick__/lib/di/module/storage_module.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/lib/di/provider/dio_provider.dart b/bricks/template/__brick__/lib/di/provider/dio_provider.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/lib/di/provider/dio_provider.dart
rename to bricks/template/__brick__/lib/di/provider/dio_provider.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/lib/domain/exceptions/network_exceptions.dart b/bricks/template/__brick__/lib/domain/exceptions/network_exceptions.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/lib/domain/exceptions/network_exceptions.dart
rename to bricks/template/__brick__/lib/domain/exceptions/network_exceptions.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/lib/domain/models/user.dart b/bricks/template/__brick__/lib/domain/models/user.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/lib/domain/models/user.dart
rename to bricks/template/__brick__/lib/domain/models/user.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/lib/domain/repositories/credential_repository.dart b/bricks/template/__brick__/lib/domain/repositories/credential_repository.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/lib/domain/repositories/credential_repository.dart
rename to bricks/template/__brick__/lib/domain/repositories/credential_repository.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/lib/domain/usecases/base/base_use_case.dart b/bricks/template/__brick__/lib/domain/usecases/base/base_use_case.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/lib/domain/usecases/base/base_use_case.dart
rename to bricks/template/__brick__/lib/domain/usecases/base/base_use_case.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/lib/domain/usecases/base/use_case_result.dart b/bricks/template/__brick__/lib/domain/usecases/base/use_case_result.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/lib/domain/usecases/base/use_case_result.dart
rename to bricks/template/__brick__/lib/domain/usecases/base/use_case_result.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/lib/domain/usecases/get_users_use_case.dart b/bricks/template/__brick__/lib/domain/usecases/get_users_use_case.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/lib/domain/usecases/get_users_use_case.dart
rename to bricks/template/__brick__/lib/domain/usecases/get_users_use_case.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/lib/env.dart b/bricks/template/__brick__/lib/env.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/lib/env.dart
rename to bricks/template/__brick__/lib/env.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/lib/l10n/app_en.arb b/bricks/template/__brick__/lib/l10n/app_en.arb
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/lib/l10n/app_en.arb
rename to bricks/template/__brick__/lib/l10n/app_en.arb
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/lib/l10n/app_th.arb b/bricks/template/__brick__/lib/l10n/app_th.arb
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/lib/l10n/app_th.arb
rename to bricks/template/__brick__/lib/l10n/app_th.arb
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/lib/l10n/app_vi.arb b/bricks/template/__brick__/lib/l10n/app_vi.arb
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/lib/l10n/app_vi.arb
rename to bricks/template/__brick__/lib/l10n/app_vi.arb
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/lib/main.dart b/bricks/template/__brick__/lib/main.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/lib/main.dart
rename to bricks/template/__brick__/lib/main.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/pubspec.lock b/bricks/template/__brick__/pubspec.lock
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/pubspec.lock
rename to bricks/template/__brick__/pubspec.lock
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/pubspec.yaml b/bricks/template/__brick__/pubspec.yaml
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/pubspec.yaml
rename to bricks/template/__brick__/pubspec.yaml
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/test/app/screens/home/home_view_model_test.dart b/bricks/template/__brick__/test/app/screens/home/home_view_model_test.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/test/app/screens/home/home_view_model_test.dart
rename to bricks/template/__brick__/test/app/screens/home/home_view_model_test.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/test/data/repositories/credential_repository_test.dart b/bricks/template/__brick__/test/data/repositories/credential_repository_test.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/test/data/repositories/credential_repository_test.dart
rename to bricks/template/__brick__/test/data/repositories/credential_repository_test.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/test/domain/usecases/get_users_use_case_test.dart b/bricks/template/__brick__/test/domain/usecases/get_users_use_case_test.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/test/domain/usecases/get_users_use_case_test.dart
rename to bricks/template/__brick__/test/domain/usecases/get_users_use_case_test.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/test/mocks/data/remote/models/responses/user_response_mocks.dart b/bricks/template/__brick__/test/mocks/data/remote/models/responses/user_response_mocks.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/test/mocks/data/remote/models/responses/user_response_mocks.dart
rename to bricks/template/__brick__/test/mocks/data/remote/models/responses/user_response_mocks.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/test/mocks/generate_mocks.dart b/bricks/template/__brick__/test/mocks/generate_mocks.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/test/mocks/generate_mocks.dart
rename to bricks/template/__brick__/test/mocks/generate_mocks.dart
diff --git a/bricks/template/__brick__/{{project_name.snakeCase()}}/test_driver/integration_test.dart b/bricks/template/__brick__/test_driver/integration_test.dart
similarity index 100%
rename from bricks/template/__brick__/{{project_name.snakeCase()}}/test_driver/integration_test.dart
rename to bricks/template/__brick__/test_driver/integration_test.dart
diff --git a/bricks/template/hooks/bundles/permission_handler_bundle.dart b/bricks/template/hooks/bundles/permission_handler_bundle.dart
index f44eebd4..4065d27f 100644
--- a/bricks/template/hooks/bundles/permission_handler_bundle.dart
+++ b/bricks/template/hooks/bundles/permission_handler_bundle.dart
@@ -3,4 +3,4 @@
import 'package:mason/mason.dart';
-final permissionHandlerBundle = MasonBundle.fromJson({"files":[{"path":"{{project_name.snakeCase()}}/lib/utils/wrappers/permission_wrapper.dart","data":"aW1wb3J0ICdwYWNrYWdlOnBlcm1pc3Npb25faGFuZGxlci9wZXJtaXNzaW9uX2hhbmRsZXIuZGFydCcKICAgIGFzIHBlcm1pc3Npb25faGFuZGxlcjsKCmFic3RyYWN0IGNsYXNzIFBlcm1pc3Npb25XcmFwcGVyIHsKICBGdXR1cmU8Ym9vbD4gcmVxdWVzdENhbWVyYVBlcm1pc3Npb24oKTsKCiAgRnV0dXJlPGJvb2w+IGlzQ2FtZXJhUGVybWlzc2lvbkRlbmllZCgpOwoKICBGdXR1cmU8Ym9vbD4gaXNDYW1lcmFQZXJtaXNzaW9uUGVybWFuZW50bHlEZW5pZWQoKTsKfQoKY2xhc3MgUGVybWlzc2lvbldyYXBwZXJJbXBsIGV4dGVuZHMgUGVybWlzc2lvbldyYXBwZXIgewogIEBvdmVycmlkZQogIEZ1dHVyZTxib29sPiByZXF1ZXN0Q2FtZXJhUGVybWlzc2lvbigpIHsKICAgIHJldHVybiBwZXJtaXNzaW9uX2hhbmRsZXIuUGVybWlzc2lvbi5jYW1lcmEucmVxdWVzdCgpLnRoZW4oCiAgICAgICAgKHN0YXR1cykgPT4gc3RhdHVzID09IHBlcm1pc3Npb25faGFuZGxlci5QZXJtaXNzaW9uU3RhdHVzLmdyYW50ZWQpOwogIH0KCiAgQG92ZXJyaWRlCiAgRnV0dXJlPGJvb2w+IGlzQ2FtZXJhUGVybWlzc2lvbkRlbmll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gICAgIyMgZGFydDogUGVybWlzc2lvbkdyb3VwLmJsdWV0b290aAogICAgICAjICdQRVJNSVNTSU9OX0JMVUVUT09USD0xJywKCiAgICAgICMjIGRhcnQ6IFBlcm1pc3Npb25Hcm91cC5hcHBUcmFja2luZ1RyYW5zcGFyZW5jeQogICAgICAjICdQRVJNSVNTSU9OX0FQUF9UUkFDS0lOR19UUkFOU1BBUkVOQ1k9MScsCgogICAgICAjIyBkYXJ0OiBQZXJtaXNzaW9uR3JvdXAuY3JpdGljYWxBbGVydHMKICAgICAgIyAnUEVSTUlTU0lPTl9DUklUSUNBTF9BTEVSVFM9MScKICAgICAgXQ==","type":"text"},{"path":"{{~ _pubspec_dependency.yaml }}","data":"CiAgcGVybWlzc2lvbl9oYW5kbGVyOiBeMTAuMi4w","type":"text"}],"hooks":[],"name":"permission_handler","description":"A new brick created with the Mason CLI.","version":"0.1.0+1","environment":{"mason":">=0.1.0-dev.41 <0.1.0"},"readme":{"path":"README.md","data":"IyBwZXJtaXNzaW9uX2hhbmRsZXIKClshW1Bvd2VyZWQgYnkgTWFzb25dKGh0dHBzOi8vaW1nLnNoaWVsZHMuaW8vZW5kcG9pbnQ/dXJsPWh0dHBzJTNBJTJGJTJGdGlueXVybC5jb20lMkZtYXNvbi1iYWRnZSldKGh0dHBzOi8vZ2l0aHViLmNvbS9mZWxhbmdlbC9tYXNvbikKCkEgbmV3IGJyaWNrIGNyZWF0ZWQgd2l0aCB0aGUgTWFzb24gQ0xJLgoKIyMgRGVzY3JpcHRpb24g8J+agAoKVGhpcyBicmljayBoYXMgdGhlIHNpbXBsZSBpbXBsZW1lbnRhdGlvbiBvZiBbcGVybWlzc2lvbl9oYW5kbGVyXShodHRwczovL3B1Yi5kZXYvcGFja2FnZXMvcGVybWlzc2lvbl9oYW5kbGVyKSBwYWNrYWdlLgo=","type":"text"},"vars":{"project_name":{"type":"string"}}});
\ No newline at end of file
+final permissionHandlerBundle = MasonBundle.fromJson({"files":[{"path":"lib/utils/wrapp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yAnUEVSTUlTU0lPTl9DUklUSUNBTF9BTEVSVFM9MScKICAgICAgXQ==","type":"text"},{"path":"{{~ _pubspec_dependency.yaml }}","data":"CiAgcGVybWlzc2lvbl9oYW5kbGVyOiBeMTAuMi4w","type":"text"}],"hooks":[],"name":"permission_handler","description":"A new brick created with the Mason CLI.","version":"0.1.0+1","environment":{"mason":">=0.1.0-dev.41 <0.1.0"},"readme":{"path":"README.md","data":"IyBwZXJtaXNzaW9uX2hhbmRsZXIKClshW1Bvd2VyZWQgYnkgTWFzb25dKGh0dHBzOi8vaW1nLnNoaWVsZHMuaW8vZW5kcG9pbnQ/dXJsPWh0dHBzJTNBJTJGJTJGdGlueXVybC5jb20lMkZtYXNvbi1iYWRnZSldKGh0dHBzOi8vZ2l0aHViLmNvbS9mZWxhbmdlbC9tYXNvbikKCkEgbmV3IGJyaWNrIGNyZWF0ZWQgd2l0aCB0aGUgTWFzb24gQ0xJLgoKIyMgRGVzY3JpcHRpb24g8J+agAoKVGhpcyBicmljayBoYXMgdGhlIHNpbXBsZSBpbXBsZW1lbnRhdGlvbiBvZiBbcGVybWlzc2lvbl9oYW5kbGVyXShodHRwczovL3B1Yi5kZXYvcGFja2FnZXMvcGVybWlzc2lvbl9oYW5kbGVyKSBwYWNrYWdlLgo=","type":"text"},"vars":{"project_name":{"type":"string"}}});
\ No newline at end of file
diff --git a/bricks/template/hooks/hooks_util.dart b/bricks/template/hooks/hooks_util.dart
new file mode 100644
index 00000000..66a3df96
--- /dev/null
+++ b/bricks/template/hooks/hooks_util.dart
@@ -0,0 +1,14 @@
+import 'dart:io';
+
+Future deleteFileSystemEntities(List entities) async {
+ entities.forEach((entity) {
+ if (entity.existsSync()) {
+ print('Delete ' + entity.path);
+ if (entity is File) {
+ entity.deleteSync();
+ } else if (entity is Directory) {
+ entity.deleteSync(recursive: true);
+ }
+ }
+ });
+}
diff --git a/bricks/template/hooks/post_gen.dart b/bricks/template/hooks/post_gen.dart
index b3b333ca..569a2c51 100644
--- a/bricks/template/hooks/post_gen.dart
+++ b/bricks/template/hooks/post_gen.dart
@@ -3,6 +3,7 @@ import 'dart:io';
import 'package:mason/mason.dart';
import 'bundles/permission_handler_bundle.dart';
+import 'hooks_util.dart';
Future run(HookContext context) async {
try {
@@ -10,6 +11,13 @@ Future run(HookContext context) async {
} catch (e) {
context.logger.err(e.toString());
}
+
+ // Clean up the output folder, even at the root, to have only the final generated project in the end
+ print("> Clean up the output folder (post): " + Directory.current.path);
+ final List entities = [
+ Directory(Directory.current.path + '/bricks'),
+ ];
+ await deleteFileSystemEntities(entities);
}
Future generateBricks(HookContext context) async {
diff --git a/bricks/template/hooks/pre_gen.dart b/bricks/template/hooks/pre_gen.dart
index fded861b..80aeb252 100644
--- a/bricks/template/hooks/pre_gen.dart
+++ b/bricks/template/hooks/pre_gen.dart
@@ -1,8 +1,25 @@
+import 'dart:io';
+
import 'package:mason/mason.dart';
import 'bundles/permission_handler_bundle.dart';
+import 'hooks_util.dart';
Future run(HookContext context) async {
+ // Clean up the output folder, even at the root, to have only the final generated project in the end
+ print("> Clean up the output folder (pre): " + Directory.current.path);
+ final exclusions = [
+ // we should not delete .git
+ Directory.current.path + '/.git',
+ // the bricks folder can be deleted at post_gen only
+ Directory.current.path + '/bricks',
+ ];
+ final entities = Directory.current
+ .listSync(recursive: false)
+ .where((entity) => !exclusions.contains(entity.path))
+ .toList();
+ await deleteFileSystemEntities(entities);
+
try {
final additionalVars = {};
if (context.vars['add_permission_handler'] == true) {
diff --git a/mason-config.json b/mason-config.json
index 90f6e06f..4cb4c41e 100644
--- a/mason-config.json
+++ b/mason-config.json
@@ -2,7 +2,7 @@
"project_name": "flutter_templates",
"package_name": "co.nimblehq.flutter.template",
"app_name": "Flutter Templates",
- "app_version": "1.11.0",
+ "app_version": "1.12.0",
"build_number": "1",
"json_field_rename_format": "snake",
"add_permission_handler": true
diff --git a/sample/.github/workflows/android_deploy_production.yml b/sample/.github/workflows/android_deploy_production.yml
index c05c3fa0..700abdd8 100644
--- a/sample/.github/workflows/android_deploy_production.yml
+++ b/sample/.github/workflows/android_deploy_production.yml
@@ -7,7 +7,7 @@ on:
jobs:
build_and_deploy_android:
- name: Build & Deploy Android
+ name: Android - Deploy Production build to Firebase
runs-on: ubuntu-latest
environment: production
timeout-minutes: 30
@@ -39,9 +39,17 @@ jobs:
run: |
echo -e "$ENV" > .env
+ - name: Set up release signing configs
+ env:
+ ANDROID_RELEASE_KEYSTORE_BASE64: ${{ secrets.ANDROID_RELEASE_KEYSTORE_BASE64 }}
+ ANDROID_SIGNING_PROPERTIES: ${{ secrets.ANDROID_SIGNING_PROPERTIES }}
+ run: |
+ echo $ANDROID_RELEASE_KEYSTORE_BASE64 | base64 --decode > android/config/release.keystore
+ echo "$ANDROID_SIGNING_PROPERTIES" > android/signing.properties
+
# App Bundle requires Firebase connected to Play Store to upload https://appdistribution.page.link/KPoa
- name: Build Android apk
- run: flutter build apk --flavor production --debug --build-number $GITHUB_RUN_NUMBER
+ run: flutter build apk --flavor production --release --build-number $GITHUB_RUN_NUMBER
- name: Deploy Android Production to Firebase
uses: wzieba/Firebase-Distribution-Github-Action@v1.5.0
@@ -49,4 +57,4 @@ jobs:
appId: ${{ vars.FIREBASE_ANDROID_APP_ID }}
serviceCredentialsFileContent: ${{ secrets.FIREBASE_DISTRIBUTION_CREDENTIAL_JSON }}
groups: ${{ vars.FIREBASE_DISTRIBUTION_TESTER_GROUPS }}
- file: build/app/outputs/flutter-apk/app-production-debug.apk
+ file: build/app/outputs/flutter-apk/app-production-release.apk
diff --git a/sample/.github/workflows/android_deploy_production_to_playstore.yml b/sample/.github/workflows/android_deploy_production_to_playstore.yml
index 3725357b..5de24626 100644
--- a/sample/.github/workflows/android_deploy_production_to_playstore.yml
+++ b/sample/.github/workflows/android_deploy_production_to_playstore.yml
@@ -7,7 +7,7 @@ on:
jobs:
build_and_deploy_android:
- name: Build & Deploy Android
+ name: Android - Deploy Production build to Play Store
runs-on: ubuntu-latest
environment: production
timeout-minutes: 30
diff --git a/sample/.github/workflows/android_deploy_staging.yml b/sample/.github/workflows/android_deploy_staging.yml
index c4c64aea..6120d5ac 100644
--- a/sample/.github/workflows/android_deploy_staging.yml
+++ b/sample/.github/workflows/android_deploy_staging.yml
@@ -7,7 +7,7 @@ on:
jobs:
build_and_deploy_android:
- name: Build & Deploy Android
+ name: Android - Deploy Staging build to Firebase
runs-on: ubuntu-latest
environment: staging
timeout-minutes: 30
diff --git a/sample/.github/workflows/ios_deploy_staging_to_firebase.yml b/sample/.github/workflows/ios_deploy_staging_to_firebase.yml
index 9fbc3f57..a20c1d66 100644
--- a/sample/.github/workflows/ios_deploy_staging_to_firebase.yml
+++ b/sample/.github/workflows/ios_deploy_staging_to_firebase.yml
@@ -1,4 +1,4 @@
-name: ios-deploy-to-staging
+name: iOS - Deploy Staging build to Firebase
on:
# Trigger the workflow on push action
push:
@@ -6,8 +6,8 @@ on:
- develop
jobs:
- build_and_upload_staging_app_to_firebase:
- name: Build And Upload iOS Staging Application To Firebase
+ build_and_deploy_ios:
+ name: iOS - Deploy Staging build to Firebase
runs-on: macOS-latest
environment: staging
env:
diff --git a/sample/.github/workflows/ios_deploy_to_app_store.yml b/sample/.github/workflows/ios_deploy_to_app_store.yml
index 62eec025..7387736c 100644
--- a/sample/.github/workflows/ios_deploy_to_app_store.yml
+++ b/sample/.github/workflows/ios_deploy_to_app_store.yml
@@ -1,4 +1,4 @@
-name: ios-deploy-production-to-app-store
+name: iOS - Deploy Production build to AppStore
on:
# Trigger the workflow on push action
push:
@@ -6,8 +6,8 @@ on:
- main
jobs:
- build_and_upload_to_app_store:
- name: Build And Upload iOS Application Production To AppStore
+ build_and_deploy_ios:
+ name: iOS - Deploy Production build to AppStore
runs-on: macOS-latest
environment: production
timeout-minutes: 30
diff --git a/sample/.github/workflows/ios_deploy_to_testflight.yml b/sample/.github/workflows/ios_deploy_to_testflight.yml
index f0a7fdf8..fd026ed7 100644
--- a/sample/.github/workflows/ios_deploy_to_testflight.yml
+++ b/sample/.github/workflows/ios_deploy_to_testflight.yml
@@ -1,4 +1,4 @@
-name: ios-deploy-production-to-testflight
+name: iOS - Deploy Production build to TestFlight
on:
# Trigger the workflow on push action
push:
@@ -6,8 +6,8 @@ on:
- main
jobs:
- build_and_upload_to_testflight:
- name: Build And Upload iOS Application Production To TestFlight
+ build_and_deploy_ios:
+ name: iOS - Deploy Production build to TestFlight
runs-on: macOS-latest
environment: production
timeout-minutes: 30
diff --git a/sample/README.md b/sample/README.md
index 51cd5b1b..552b9b77 100644
--- a/sample/README.md
+++ b/sample/README.md
@@ -12,12 +12,18 @@
### Setup
- Create these `.env` files in the root directory according to the flavors and add the required
-environment variables. The example environment variable is in `.env.sample`.
+environment variables. The example file is `.env.sample`.
- Staging: `.env.staging`
- Production: `.env`
+- To make the Android release build,
+
+ - put the `release.keystore` at the `android/config` folder,
+
+ - create the `signing.properties` file to provide keystore credentials in the `android` folder. The example file is `signing.properties.sample`.
+
### Run
- Run code generator for JSON models, DI dependencies, etc:
diff --git a/sample/android/app/proguard-rules.pro b/sample/android/app/proguard-rules.pro
new file mode 100644
index 00000000..572f5d65
--- /dev/null
+++ b/sample/android/app/proguard-rules.pro
@@ -0,0 +1,24 @@
+# Add project specific ProGuard rules here.
+# You can control the set of applied configuration files using the
+# proguardFiles setting in build.gradle.kts.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
+
+# Keep BuildConfig for Flutter Config https://github.com/ByneappLLC/flutter_config/blob/master/doc/ANDROID.md#android-setup
+-keep class co.nimblehq.flutter.template.BuildConfig { *; }
diff --git a/sample/android/signing.properties.sample b/sample/android/signing.properties.sample
new file mode 100644
index 00000000..b9688427
--- /dev/null
+++ b/sample/android/signing.properties.sample
@@ -0,0 +1,3 @@
+KEYSTORE_PASSWORD=
+KEY_ALIAS=
+KEY_PASSWORD=
diff --git a/sample/pubspec.yaml b/sample/pubspec.yaml
index 22e174ba..28f9fe97 100644
--- a/sample/pubspec.yaml
+++ b/sample/pubspec.yaml
@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
-version: 1.11.0+1
+version: 1.12.0+1
environment:
sdk: '>=3.0.0 <4.0.0'