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 #194 from nimblehq/release/1.7.0
Release 1.7.0
- Loading branch information
Showing
140 changed files
with
460 additions
and
710 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -14,15 +14,17 @@ jobs: | |
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Checkout the latest code | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Set new version | ||
id: set_version | ||
run: | | ||
perl -i -pe 's/^(version:\s+\d+\.\d+\.\d+\+)(\d+)$/"version: ${{ github.event.inputs.newVersion }}+".($2+1)/e' ./template/pubspec.yaml | ||
uses: jossef/[email protected] | ||
with: | ||
file: mason-config.json | ||
field: app_version | ||
value: ${{ github.event.inputs.newVersion }} | ||
|
||
- name: Create pull request | ||
uses: peter-evans/create-pull-request@v4 | ||
|
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,69 @@ | ||
name: ios-deploy-to-staging | ||
on: | ||
# Trigger the workflow on push action | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
build_and_upload_staging_app_to_firebase: | ||
name: Build And Upload iOS Staging Application To Firebase | ||
runs-on: macOS-latest | ||
env: | ||
TEAM_ID: ${{ secrets.TEAM_ID }} | ||
FASTLANE_USER: ${{ secrets.FASTLANE_USER }} | ||
FASTLANE_PASSWORD: ${{ secrets.FASTLANE_PASSWORD }} | ||
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD: ${{ secrets.FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD }} | ||
FASTLANE_SESSION: ${{ secrets.FASTLANE_SESSION }} | ||
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} | ||
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install SSH key | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
- name: Set up Flutter environment | ||
uses: subosito/flutter-action@v1 | ||
with: | ||
channel: 'stable' | ||
flutter-version: '3.3.10' | ||
|
||
- name: Generate new project | ||
run: | | ||
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/template | ||
- name: Get Flutter dependencies | ||
run: flutter pub get | ||
|
||
- name: Set up .env.staging | ||
env: | ||
ENV_STAGING: ${{ secrets.ENV_STAGING }} | ||
run: | | ||
echo $ENV_STAGING > .env.staging | ||
- name: Run code generator | ||
run: flutter packages pub run build_runner build --delete-conflicting-outputs | ||
|
||
- name: Bundle install | ||
run: cd ./ios && bundle install | ||
|
||
- name: Pod install | ||
run: cd ./ios && pod install | ||
|
||
- name: Match Adhoc | ||
run: cd ./ios && bundle exec fastlane sync_adhoc_staging_signing | ||
|
||
- name: Deploy to Firebase | ||
run: | | ||
cd ./ios && bundle exec fastlane build_and_upload_staging_app | ||
env: | ||
FIREBASE_CLI_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }} |
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 |
---|---|---|
|
@@ -16,22 +16,24 @@ jobs: | |
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- 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: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Flutter environment | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
flutter-version: '3.3.10' | ||
|
||
- name: Generate new project | ||
run: | | ||
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/template | ||
- name: Get Flutter dependencies | ||
run: flutter pub get | ||
|
||
|
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,9 +1,13 @@ | ||
# Miscellaneous | ||
.DS_Store | ||
|
||
# Python | ||
.venv/ | ||
scripts/__pycache__/ | ||
|
||
# VSCode | ||
.vscode | ||
|
||
# Intellij | ||
*.iml | ||
.idea/* | ||
|
||
# Mason | ||
mason-lock.json | ||
.mason/ |
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,3 @@ | ||
# 0.1.0+1 | ||
|
||
- TODO: Describe initial release. |
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 @@ | ||
TODO: Add your license here. |
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,21 @@ | ||
# template | ||
|
||
[![Powered by Mason](https://img.shields.io/endpoint?url=https%3A%2F%2Ftinyurl.com%2Fmason-badge)](https://github.com/felangel/mason) | ||
|
||
A new brick created with the Mason CLI. | ||
|
||
_Generated by [mason][1] 🧱_ | ||
|
||
## Getting Started 🚀 | ||
|
||
This is a starting point for a new brick. | ||
A few resources to get you started if this is your first brick template: | ||
|
||
- [Official Mason Documentation][2] | ||
- [Code generation with Mason Blog][3] | ||
- [Very Good Livestream: Felix Angelov Demos Mason][4] | ||
|
||
[1]: https://github.com/felangel/mason | ||
[2]: https://github.com/felangel/mason/tree/master/packages/mason_cli#readme | ||
[3]: https://verygood.ventures/blog/code-generation-with-mason | ||
[4]: https://youtu.be/G4PTjA6tpTU |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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.