From 0ac24e5d2c2fb8be4b9dbd3c13a77c668d5c0bba Mon Sep 17 00:00:00 2001 From: Vadim Date: Sun, 9 Apr 2023 13:35:58 +0300 Subject: [PATCH] Temporarily removed firebase --- .github/workflows/cd_dev.yml | 40 +++++++++++++++++------------------ .github/workflows/cd_prod.yml | 40 +++++++++++++++++------------------ lib/main_prod.dart | 3 --- pubspec.yaml | 1 - 4 files changed, 40 insertions(+), 44 deletions(-) diff --git a/.github/workflows/cd_dev.yml b/.github/workflows/cd_dev.yml index 77b7a1d..986e001 100644 --- a/.github/workflows/cd_dev.yml +++ b/.github/workflows/cd_dev.yml @@ -23,12 +23,12 @@ jobs: timeout-minutes: 30 steps: - - uses: shaunco/ssh-agent@git-repo-mapping - with: - ssh-private-key: | - ${{ secrets.M3_LIGHTMETER_IAP_KEY }} - repo-mappings: | - github.com/vodemn/m3_lightmeter_iap + # - uses: shaunco/ssh-agent@git-repo-mapping + # with: + # ssh-private-key: | + # ${{ secrets.M3_LIGHTMETER_IAP_KEY }} + # repo-mappings: | + # github.com/vodemn/m3_lightmeter_iap - uses: actions/checkout@v3 with: @@ -51,21 +51,21 @@ jobs: echo -n "$KEYSTORE_PROPERTIES" | base64 --decode --output $KEYSTORE_PROPERTIES_PATH cp $KEYSTORE_PROPERTIES_PATH ./android - - name: Restore android/app/google-services.json - env: - KEYSTORE: ${{ secrets.FIREBASE_OPTIONS }} - run: | - GOOGLE_SERVICES_JSON_ANDROID_PATH=$RUNNER_TEMP/google-services.json - echo -n "$GOOGLE_SERVICES_JSON_ANDROID" | base64 --decode --output $GOOGLE_SERVICES_JSON_ANDROID_PATH - cp $GOOGLE_SERVICES_JSON_ANDROID_PATH ./android/app + # - name: Restore android/app/google-services.json + # env: + # KEYSTORE: ${{ secrets.FIREBASE_OPTIONS }} + # run: | + # GOOGLE_SERVICES_JSON_ANDROID_PATH=$RUNNER_TEMP/google-services.json + # echo -n "$GOOGLE_SERVICES_JSON_ANDROID" | base64 --decode --output $GOOGLE_SERVICES_JSON_ANDROID_PATH + # cp $GOOGLE_SERVICES_JSON_ANDROID_PATH ./android/app - - name: Restore lib/firebase_options.dart - env: - KEYSTORE: ${{ secrets.FIREBASE_OPTIONS }} - run: | - FIREBASE_OPTIONS_PATH=$RUNNER_TEMP/firebase_options.dart - echo -n "$FIREBASE_OPTIONS" | base64 --decode --output $FIREBASE_OPTIONS_PATH - cp $FIREBASE_OPTIONS_PATH ./lib + # - name: Restore lib/firebase_options.dart + # env: + # KEYSTORE: ${{ secrets.FIREBASE_OPTIONS }} + # run: | + # FIREBASE_OPTIONS_PATH=$RUNNER_TEMP/firebase_options.dart + # echo -n "$FIREBASE_OPTIONS" | base64 --decode --output $FIREBASE_OPTIONS_PATH + # cp $FIREBASE_OPTIONS_PATH ./lib - name: Install Flutter uses: subosito/flutter-action@v2 diff --git a/.github/workflows/cd_prod.yml b/.github/workflows/cd_prod.yml index 624dd62..d36050c 100644 --- a/.github/workflows/cd_prod.yml +++ b/.github/workflows/cd_prod.yml @@ -14,12 +14,12 @@ jobs: timeout-minutes: 30 steps: - - uses: shaunco/ssh-agent@git-repo-mapping - with: - ssh-private-key: | - ${{ secrets.M3_LIGHTMETER_IAP_KEY }} - repo-mappings: | - github.com/vodemn/m3_lightmeter_iap + # - uses: shaunco/ssh-agent@git-repo-mapping + # with: + # ssh-private-key: | + # ${{ secrets.M3_LIGHTMETER_IAP_KEY }} + # repo-mappings: | + # github.com/vodemn/m3_lightmeter_iap - uses: actions/checkout@v3 with: @@ -42,21 +42,21 @@ jobs: echo -n "$KEYSTORE_PROPERTIES" | base64 --decode --output $KEYSTORE_PROPERTIES_PATH cp $KEYSTORE_PROPERTIES_PATH ./android - - name: Restore android/app/google-services.json - env: - KEYSTORE: ${{ secrets.FIREBASE_OPTIONS }} - run: | - GOOGLE_SERVICES_JSON_ANDROID_PATH=$RUNNER_TEMP/google-services.json - echo -n "$GOOGLE_SERVICES_JSON_ANDROID" | base64 --decode --output $GOOGLE_SERVICES_JSON_ANDROID_PATH - cp $GOOGLE_SERVICES_JSON_ANDROID_PATH ./android/app + # - name: Restore android/app/google-services.json + # env: + # GOOGLE_SERVICES_JSON_ANDROID: ${{ secrets.GOOGLE_SERVICES_JSON_ANDROID }} + # run: | + # GOOGLE_SERVICES_JSON_ANDROID_PATH=$RUNNER_TEMP/google-services.json + # echo -n "$GOOGLE_SERVICES_JSON_ANDROID" | base64 --decode --output $GOOGLE_SERVICES_JSON_ANDROID_PATH + # cp $GOOGLE_SERVICES_JSON_ANDROID_PATH ./android/app - - name: Restore firebase_options.dart - env: - KEYSTORE: ${{ secrets.FIREBASE_OPTIONS }} - run: | - FIREBASE_OPTIONS_PATH=$RUNNER_TEMP/firebase_options.dart - echo -n "$FIREBASE_OPTIONS" | base64 --decode --output $FIREBASE_OPTIONS_PATH - cp $FIREBASE_OPTIONS_PATH ./lib + # - name: Restore firebase_options.dart + # env: + # FIREBASE_OPTIONS: ${{ secrets.FIREBASE_OPTIONS }} + # run: | + # FIREBASE_OPTIONS_PATH=$RUNNER_TEMP/firebase_options.dart + # echo -n "$FIREBASE_OPTIONS" | base64 --decode --output $FIREBASE_OPTIONS_PATH + # cp $FIREBASE_OPTIONS_PATH ./lib - name: Install Flutter uses: subosito/flutter-action@v2 diff --git a/lib/main_prod.dart b/lib/main_prod.dart index aefaa2f..cb6e570 100644 --- a/lib/main_prod.dart +++ b/lib/main_prod.dart @@ -1,12 +1,9 @@ -import 'package:firebase_core/firebase_core.dart'; import 'package:flutter/material.dart'; import 'package:lightmeter/environment.dart'; import 'application.dart'; -import 'firebase_options.dart'; Future main() async { WidgetsFlutterBinding.ensureInitialized(); - await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform); runApp(const Application(Environment.prod())); } diff --git a/pubspec.yaml b/pubspec.yaml index 06cf9b8..410f1f8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,7 +11,6 @@ dependencies: camera: 0.10.0+4 exif: 3.1.2 dynamic_color: 1.5.4 - firebase_core: 2.7.0 flutter: sdk: flutter flutter_bloc: 8.1.1