generated from nimblehq/git-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #181 from nimblehq/release/1.6.0
Release 1.6.0
- Loading branch information
Showing
22 changed files
with
469 additions
and
48 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Team | ||
# @luongvo is the Team Lead | ||
* @manh-t @doannimble @luongvo @markgravity | ||
* @manh-t @doannimble @luongvo @markgravity @sleepylee @chornerman | ||
|
||
# Engineering Leads | ||
CODEOWNERS @nimblehq/engineering-leads |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Android - Deploy Production build to Firebase | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build_and_deploy_android: | ||
name: Build & Deploy Android | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: Generate new project | ||
run: make run PACKAGE_NAME=co.nimblehq.flutter.template PROJECT_NAME=flutter_templates APP_NAME="Flutter Templates" | ||
|
||
- name: Set up Java JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '11' | ||
|
||
- name: Set up Flutter environment | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
flutter-version: '3.3.10' | ||
|
||
- name: Get Flutter dependencies | ||
run: flutter pub get | ||
|
||
- name: Run code generator | ||
run: flutter packages pub run build_runner build --delete-conflicting-outputs | ||
|
||
- name: Set up .env | ||
env: | ||
ENV_PRODUCTION: ${{ secrets.ENV_PRODUCTION }} | ||
run: | | ||
echo $ENV_PRODUCTION > .env | ||
# 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 | ||
|
||
- name: Deploy Android Production to Firebase | ||
uses: wzieba/[email protected] | ||
with: | ||
appId: ${{ secrets.FIREBASE_ANDROID_APP_ID_PRODUCTION }} | ||
serviceCredentialsFileContent: ${{ secrets.FIREBASE_DISTRIBUTION_CREDENTIAL_JSON }} | ||
groups: nimble | ||
file: build/app/outputs/flutter-apk/app-production-debug.apk |
62 changes: 62 additions & 0 deletions
62
.github/workflows/android_deploy_production_to_playstore.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Android - Deploy Production build to Play Store | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build_and_deploy_android: | ||
name: Build & Deploy Android | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: Generate new project | ||
run: make run PACKAGE_NAME=co.nimblehq.flutter.template PROJECT_NAME=flutter_templates APP_NAME="Flutter Templates" | ||
|
||
- name: Set up Java JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '11' | ||
|
||
- name: Set up Flutter environment | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
flutter-version: '3.3.10' | ||
|
||
- name: Get Flutter dependencies | ||
run: flutter pub get | ||
|
||
- name: Run code generator | ||
run: flutter packages pub run build_runner build --delete-conflicting-outputs | ||
|
||
- name: Set up .env | ||
env: | ||
ENV_PRODUCTION: ${{ secrets.ENV_PRODUCTION }} | ||
run: | | ||
echo $ENV_PRODUCTION > .env | ||
- name: Build Production App Bundle | ||
run: flutter build appbundle --flavor production --release --build-number $GITHUB_RUN_NUMBER | ||
|
||
# TODO We will enable this step later when having a shared Service Account on our organization | ||
# Basically, this step will work properly after providing a valid Service Account. | ||
# - name: Upload Android Production Release bundle to Play Store | ||
# uses: r0adkll/upload-google-play@v1 | ||
# with: | ||
# serviceAccountJson: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }} | ||
# packageName: co.nimblehq.flutter.template | ||
# releaseFile: build/app/outputs/bundle/productionRelease/app-production-release.aab | ||
# track: internal | ||
# userFraction: 1.0 | ||
# whatsNewDirectory: .github/workflows/whatsnew |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Android - Deploy Staging build to Firebase | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
build_and_deploy_android: | ||
name: Build & Deploy Android | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
environment: staging | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: Generate new project | ||
run: make run PACKAGE_NAME=co.nimblehq.flutter.template PROJECT_NAME=flutter_templates APP_NAME="Flutter Templates" | ||
|
||
- name: Set up Java JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '11' | ||
|
||
- name: Set up Flutter environment | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
flutter-version: '3.3.10' | ||
|
||
- name: Get Flutter dependencies | ||
run: flutter pub get | ||
|
||
- name: Run code generator | ||
run: flutter packages pub run build_runner build --delete-conflicting-outputs | ||
|
||
- name: Set up .env.staging | ||
env: | ||
ENV_STAGING: ${{ secrets.ENV_STAGING }} | ||
run: | | ||
echo $ENV_STAGING > .env.staging | ||
# App Bundle requires Firebase connected to Play Store to upload https://appdistribution.page.link/KPoa | ||
- name: Build Android apk | ||
run: flutter build apk --flavor staging --debug --build-number $GITHUB_RUN_NUMBER | ||
|
||
- name: Deploy Android Staging to Firebase | ||
uses: wzieba/[email protected] | ||
with: | ||
appId: ${{ secrets.FIREBASE_ANDROID_APP_ID_STAGING }} | ||
serviceCredentialsFileContent: ${{ secrets.FIREBASE_DISTRIBUTION_CREDENTIAL_JSON }} | ||
groups: nimble | ||
file: build/app/outputs/flutter-apk/app-staging-debug.apk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,32 +14,35 @@ jobs: | |
test: | ||
name: Template initializing scripts test | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- uses: actions/setup-python@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: Set new project | ||
- name: Generate new project | ||
run: make run PACKAGE_NAME=co.nimblehq.flutter.template PROJECT_NAME=flutter_templates APP_NAME="Flutter Templates" | ||
|
||
- uses: subosito/flutter-action@v1 | ||
- name: Set up Flutter environment | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' # 'dev', 'alpha', default to: 'stable' | ||
channel: 'stable' | ||
flutter-version: '3.3.10' | ||
|
||
- name: Get flutter dependencies. | ||
- name: Get Flutter dependencies | ||
run: flutter pub get | ||
|
||
- name: Run code generator | ||
run: flutter packages pub run build_runner build --delete-conflicting-outputs | ||
|
||
- name: Check for any formatting issues in the code. | ||
- name: Check for any formatting issues in the code | ||
run: flutter format --set-exit-if-changed . | ||
|
||
- name: Statically analyze the Dart code for any errors. | ||
- name: Statically analyze the Dart code for any errors | ||
run: flutter analyze . | ||
|
||
- name: Run widget tests, unit tests. | ||
- name: Run widget tests, unit tests | ||
run: flutter test --machine --coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,11 @@ All the templates that can be used to kick off a new Flutter application quickly | |
|
||
Clone the repository | ||
|
||
`git clone [email protected]:nimblehq/flutter_templates.git` | ||
`git clone [email protected]:nimblehq/flutter-templates.git` | ||
|
||
## Documentation | ||
|
||
Checkout the [Wiki](https://github.com/nimblehq/flutter-templates/wiki) page to access the full documentation. | ||
|
||
## Use the template | ||
|
||
|
@@ -28,7 +32,7 @@ Clone the repository | |
| PROJECT_NAME | Yes | The application project name. The naming convention follows `your_project_name` | | ||
| APP_NAME | Yes | The application name. | | ||
|
||
More available configs [here](https://github.com/nimblehq/flutter_templates/wiki/Generating-A-Project) | ||
More available configs [here](https://github.com/nimblehq/flutter-templates/wiki/Generating-A-Project) | ||
|
||
- For more supporting commands, run: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.