Skip to content

Commit

Permalink
[Chore] Generate & update sample project
Browse files Browse the repository at this point in the history
  • Loading branch information
bot-nimble committed Aug 31, 2023
1 parent 67bd37f commit e039988
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 139 deletions.
7 changes: 4 additions & 3 deletions sample/.github/workflows/android_deploy_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
build_and_deploy_android:
name: Build & Deploy Android
runs-on: ubuntu-latest
environment: production
timeout-minutes: 30
steps:
- name: Check out
Expand All @@ -34,9 +35,9 @@ jobs:

- name: Set up .env
env:
ENV_PRODUCTION: ${{ secrets.ENV_PRODUCTION }}
ENV: ${{ secrets.ENV }}
run: |
echo $ENV_PRODUCTION > .env
echo "$ENV" > .env
# App Bundle requires Firebase connected to Play Store to upload https://appdistribution.page.link/KPoa
- name: Build Android apk
Expand All @@ -45,7 +46,7 @@ jobs:
- name: Deploy Android Production to Firebase
uses: wzieba/[email protected]
with:
appId: ${{ secrets.FIREBASE_ANDROID_APP_ID_PRODUCTION }}
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
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
build_and_deploy_android:
name: Build & Deploy Android
runs-on: ubuntu-latest
environment: production
timeout-minutes: 30
steps:
- name: Check out
Expand All @@ -34,17 +35,17 @@ jobs:

- name: Set up .env
env:
ENV_PRODUCTION: ${{ secrets.ENV_PRODUCTION }}
ENV: ${{ secrets.ENV }}
run: |
echo $ENV_PRODUCTION > .env
echo "$ENV" > .env
- name: Set up release signing configs
env:
ANDROID_RELEASE_KEYSTORE_BASE64: ${{ secrets.ANDROID_RELEASE_KEYSTORE_BASE64 }}
ANDROID_SIGNING_PROPERTIES_BASE64: ${{ secrets.ANDROID_SIGNING_PROPERTIES_BASE64 }}
ANDROID_SIGNING_PROPERTIES: ${{ secrets.ANDROID_SIGNING_PROPERTIES }}
run: |
echo $ANDROID_RELEASE_KEYSTORE_BASE64 | base64 --decode > android/config/release.keystore
echo $ANDROID_SIGNING_PROPERTIES_BASE64 | base64 --decode > android/signing.properties
echo "$ANDROID_SIGNING_PROPERTIES" > android/signing.properties
- name: Build Production App Bundle
run: flutter build appbundle --flavor production --release --build-number $GITHUB_RUN_NUMBER
Expand Down
7 changes: 4 additions & 3 deletions sample/.github/workflows/android_deploy_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
build_and_deploy_android:
name: Build & Deploy Android
runs-on: ubuntu-latest
environment: staging
timeout-minutes: 30
steps:
- name: Check out
Expand All @@ -34,9 +35,9 @@ jobs:

- name: Set up .env.staging
env:
ENV_STAGING: ${{ secrets.ENV_STAGING }}
ENV: ${{ secrets.ENV }}
run: |
echo $ENV_STAGING > .env.staging
echo "$ENV" > .env.staging
# App Bundle requires Firebase connected to Play Store to upload https://appdistribution.page.link/KPoa
- name: Build Android apk
Expand All @@ -45,7 +46,7 @@ jobs:
- name: Deploy Android Staging to Firebase
uses: wzieba/[email protected]
with:
appId: ${{ secrets.FIREBASE_ANDROID_APP_ID_STAGING }}
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-staging-debug.apk
2 changes: 0 additions & 2 deletions sample/.github/workflows/bump_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ jobs:
steps:
- name: Check out
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Set new version
run: |
Expand Down
7 changes: 4 additions & 3 deletions sample/.github/workflows/ios_deploy_staging_to_firebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
build_and_upload_staging_app_to_firebase:
name: Build And Upload iOS Staging Application To Firebase
runs-on: macOS-latest
environment: staging
env:
TEAM_ID: ${{ secrets.TEAM_ID }}
FASTLANE_USER: ${{ secrets.FASTLANE_USER }}
Expand All @@ -18,7 +19,7 @@ jobs:
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
FIREBASE_CLI_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }}
FIREBASE_APP_ID_STAGING: ${{ secrets.FIREBASE_IOS_APP_ID_STAGING }}
FIREBASE_APP_ID: ${{ vars.FIREBASE_IOS_APP_ID }}
FIREBASE_DISTRIBUTION_TESTER_GROUPS: ${{ vars.FIREBASE_DISTRIBUTION_TESTER_GROUPS }}
GITHUB_RUN_NUMBER: $GITHUB_RUN_NUMBER
steps:
Expand All @@ -41,9 +42,9 @@ jobs:

- name: Set up .env.staging
env:
ENV_STAGING: ${{ secrets.ENV_STAGING }}
ENV: ${{ secrets.ENV }}
run: |
echo $ENV_STAGING > .env.staging
echo "$ENV" > .env.staging
- name: Run code generator
run: flutter packages pub run build_runner build --delete-conflicting-outputs
Expand Down
1 change: 1 addition & 0 deletions sample/.github/workflows/ios_deploy_to_app_store.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
build_and_upload_to_app_store:
name: Build And Upload iOS Application To AppStore
runs-on: macOS-latest
environment: staging
timeout-minutes: 30
env:
TEAM_ID: ${{ secrets.TEAM_ID }}
Expand Down
1 change: 1 addition & 0 deletions sample/.github/workflows/ios_deploy_to_testflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
build_and_upload_to_testflight:
name: Build And Upload iOS Application To TestFlight
runs-on: macOS-latest
environment: staging
timeout-minutes: 30
env:
TEAM_ID: ${{ secrets.TEAM_ID }}
Expand Down
4 changes: 2 additions & 2 deletions sample/ios/fastlane/Constants/Environments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def self.FIREBASE_CLI_TOKEN
ENV['FIREBASE_CLI_TOKEN']
end

def self.FIREBASE_APP_ID_STAGING
ENV['FIREBASE_APP_ID_STAGING']
def self.FIREBASE_APP_ID
ENV['FIREBASE_APP_ID']
end

def self.FIREBASE_TESTER_GROUPS
Expand Down
2 changes: 1 addition & 1 deletion sample/ios/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ platform :ios do
scheme_name: Constants.SCHEME_NAME_STAGING,
product_name: Constants.PRODUCT_NAME_STAGING,
bundle_id: Constants.BUNDLE_ID_STAGING,
app_id: Environments.FIREBASE_APP_ID_STAGING
app_id: Environments.FIREBASE_APP_ID
)
end

Expand Down
File renamed without changes.
128 changes: 8 additions & 120 deletions sample/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -193,14 +193,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "5.1.2"
equatable:
dependency: "direct main"
description:
name: equatable
sha256: c2b87cb7756efdf69892005af546c56c0b5037f54d2a88269b4f347a505e3ca2
url: "https://pub.dev"
source: hosted
version: "2.0.5"
fake_async:
dependency: transitive
description:
Expand Down Expand Up @@ -280,62 +272,6 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
flutter_riverpod:
dependency: "direct main"
description:
name: flutter_riverpod
sha256: b83ac5827baadefd331ea1d85110f34645827ea234ccabf53a655f41901a9bf4
url: "https://pub.dev"
source: hosted
version: "2.3.6"
flutter_secure_storage:
dependency: "direct main"
description:
name: flutter_secure_storage
sha256: "22dbf16f23a4bcf9d35e51be1c84ad5bb6f627750565edd70dab70f3ff5fff8f"
url: "https://pub.dev"
source: hosted
version: "8.1.0"
flutter_secure_storage_linux:
dependency: transitive
description:
name: flutter_secure_storage_linux
sha256: "3d5032e314774ee0e1a7d0a9f5e2793486f0dff2dd9ef5a23f4e3fb2a0ae6a9e"
url: "https://pub.dev"
source: hosted
version: "1.2.0"
flutter_secure_storage_macos:
dependency: transitive
description:
name: flutter_secure_storage_macos
sha256: bd33935b4b628abd0b86c8ca20655c5b36275c3a3f5194769a7b3f37c905369c
url: "https://pub.dev"
source: hosted
version: "3.0.1"
flutter_secure_storage_platform_interface:
dependency: transitive
description:
name: flutter_secure_storage_platform_interface
sha256: "0d4d3a5dd4db28c96ae414d7ba3b8422fd735a8255642774803b2532c9a61d7e"
url: "https://pub.dev"
source: hosted
version: "1.0.2"
flutter_secure_storage_web:
dependency: transitive
description:
name: flutter_secure_storage_web
sha256: "30f84f102df9dcdaa2241866a958c2ec976902ebdaa8883fbfe525f1f2f3cf20"
url: "https://pub.dev"
source: hosted
version: "1.1.2"
flutter_secure_storage_windows:
dependency: transitive
description:
name: flutter_secure_storage_windows
sha256: "38f9501c7cb6f38961ef0e1eacacee2b2d4715c63cc83fe56449c4d3d0b47255"
url: "https://pub.dev"
source: hosted
version: "2.1.1"
flutter_svg:
dependency: "direct main"
description:
Expand All @@ -344,6 +280,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.0.7"
flutter_riverpod:
dependency: "direct main"
description:
name: flutter_riverpod
sha256: b83ac5827baadefd331ea1d85110f34645827ea234ccabf53a655f41901a9bf4
url: "https://pub.dev"
source: hosted
version: "2.3.6"
flutter_test:
dependency: "direct dev"
description: flutter
Expand Down Expand Up @@ -447,14 +391,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.2"
injectable_generator:
dependency: "direct dev"
description:
name: injectable_generator
sha256: "4fe3db041b680098ce3af40b680734906e955a0ce89170d3993626d48d27b2f3"
url: "https://pub.dev"
source: hosted
version: "2.1.6"
integration_test:
dependency: "direct dev"
description: flutter
Expand Down Expand Up @@ -596,46 +532,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.0.1"
permission_handler:
dependency: "direct main"
description:
name: permission_handler
sha256: "63e5216aae014a72fe9579ccd027323395ce7a98271d9defa9d57320d001af81"
url: "https://pub.dev"
source: hosted
version: "10.4.3"
permission_handler_android:
dependency: transitive
description:
name: permission_handler_android
sha256: d74e77a5ecd38649905db0a7d05ef16bed42ff263b9efb73ed794317c5764ec3
url: "https://pub.dev"
source: hosted
version: "10.3.4"
permission_handler_apple:
dependency: transitive
description:
name: permission_handler_apple
sha256: "99e220bce3f8877c78e4ace901082fb29fa1b4ebde529ad0932d8d664b34f3f5"
url: "https://pub.dev"
source: hosted
version: "9.1.4"
permission_handler_platform_interface:
dependency: transitive
description:
name: permission_handler_platform_interface
sha256: "7c6b1500385dd1d2ca61bb89e2488ca178e274a69144d26bbd65e33eae7c02a9"
url: "https://pub.dev"
source: hosted
version: "3.11.3"
permission_handler_windows:
dependency: transitive
description:
name: permission_handler_windows
sha256: cc074aace208760f1eee6aa4fae766b45d947df85bc831cde77009cdb4720098
url: "https://pub.dev"
source: hosted
version: "0.1.3"
petitparser:
dependency: transitive
description:
Expand Down Expand Up @@ -692,14 +588,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.2.3"
recase:
dependency: transitive
description:
name: recase
sha256: e4eb4ec2dcdee52dcf99cb4ceabaffc631d7424ee55e56f280bc039737f89213
url: "https://pub.dev"
source: hosted
version: "4.1.0"
retrofit:
dependency: "direct main"
description:
Expand Down
2 changes: 1 addition & 1 deletion sample/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ dependencies:
flutter_localizations:
sdk: flutter
flutter_riverpod: ^2.3.6
flutter_secure_storage: ^8.0.0
flutter_secure_storage: ^9.0.0
flutter_svg: ^2.0.7
freezed_annotation: ^2.2.0
get_it: ^7.6.0
Expand Down

0 comments on commit e039988

Please sign in to comment.