Temporarily removed firebase

This commit is contained in:
Vadim 2023-04-09 13:35:58 +03:00
parent b936924452
commit 0ac24e5d2c
4 changed files with 40 additions and 44 deletions

View file

@ -23,12 +23,12 @@ jobs:
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- uses: shaunco/ssh-agent@git-repo-mapping # - uses: shaunco/ssh-agent@git-repo-mapping
with: # with:
ssh-private-key: | # ssh-private-key: |
${{ secrets.M3_LIGHTMETER_IAP_KEY }} # ${{ secrets.M3_LIGHTMETER_IAP_KEY }}
repo-mappings: | # repo-mappings: |
github.com/vodemn/m3_lightmeter_iap # github.com/vodemn/m3_lightmeter_iap
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
@ -51,21 +51,21 @@ jobs:
echo -n "$KEYSTORE_PROPERTIES" | base64 --decode --output $KEYSTORE_PROPERTIES_PATH echo -n "$KEYSTORE_PROPERTIES" | base64 --decode --output $KEYSTORE_PROPERTIES_PATH
cp $KEYSTORE_PROPERTIES_PATH ./android cp $KEYSTORE_PROPERTIES_PATH ./android
- name: Restore android/app/google-services.json # - name: Restore android/app/google-services.json
env: # env:
KEYSTORE: ${{ secrets.FIREBASE_OPTIONS }} # KEYSTORE: ${{ secrets.FIREBASE_OPTIONS }}
run: | # run: |
GOOGLE_SERVICES_JSON_ANDROID_PATH=$RUNNER_TEMP/google-services.json # GOOGLE_SERVICES_JSON_ANDROID_PATH=$RUNNER_TEMP/google-services.json
echo -n "$GOOGLE_SERVICES_JSON_ANDROID" | base64 --decode --output $GOOGLE_SERVICES_JSON_ANDROID_PATH # echo -n "$GOOGLE_SERVICES_JSON_ANDROID" | base64 --decode --output $GOOGLE_SERVICES_JSON_ANDROID_PATH
cp $GOOGLE_SERVICES_JSON_ANDROID_PATH ./android/app # cp $GOOGLE_SERVICES_JSON_ANDROID_PATH ./android/app
- name: Restore lib/firebase_options.dart # - name: Restore lib/firebase_options.dart
env: # env:
KEYSTORE: ${{ secrets.FIREBASE_OPTIONS }} # KEYSTORE: ${{ secrets.FIREBASE_OPTIONS }}
run: | # run: |
FIREBASE_OPTIONS_PATH=$RUNNER_TEMP/firebase_options.dart # FIREBASE_OPTIONS_PATH=$RUNNER_TEMP/firebase_options.dart
echo -n "$FIREBASE_OPTIONS" | base64 --decode --output $FIREBASE_OPTIONS_PATH # echo -n "$FIREBASE_OPTIONS" | base64 --decode --output $FIREBASE_OPTIONS_PATH
cp $FIREBASE_OPTIONS_PATH ./lib # cp $FIREBASE_OPTIONS_PATH ./lib
- name: Install Flutter - name: Install Flutter
uses: subosito/flutter-action@v2 uses: subosito/flutter-action@v2

View file

@ -14,12 +14,12 @@ jobs:
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- uses: shaunco/ssh-agent@git-repo-mapping # - uses: shaunco/ssh-agent@git-repo-mapping
with: # with:
ssh-private-key: | # ssh-private-key: |
${{ secrets.M3_LIGHTMETER_IAP_KEY }} # ${{ secrets.M3_LIGHTMETER_IAP_KEY }}
repo-mappings: | # repo-mappings: |
github.com/vodemn/m3_lightmeter_iap # github.com/vodemn/m3_lightmeter_iap
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
@ -42,21 +42,21 @@ jobs:
echo -n "$KEYSTORE_PROPERTIES" | base64 --decode --output $KEYSTORE_PROPERTIES_PATH echo -n "$KEYSTORE_PROPERTIES" | base64 --decode --output $KEYSTORE_PROPERTIES_PATH
cp $KEYSTORE_PROPERTIES_PATH ./android cp $KEYSTORE_PROPERTIES_PATH ./android
- name: Restore android/app/google-services.json # - name: Restore android/app/google-services.json
env: # env:
KEYSTORE: ${{ secrets.FIREBASE_OPTIONS }} # GOOGLE_SERVICES_JSON_ANDROID: ${{ secrets.GOOGLE_SERVICES_JSON_ANDROID }}
run: | # run: |
GOOGLE_SERVICES_JSON_ANDROID_PATH=$RUNNER_TEMP/google-services.json # GOOGLE_SERVICES_JSON_ANDROID_PATH=$RUNNER_TEMP/google-services.json
echo -n "$GOOGLE_SERVICES_JSON_ANDROID" | base64 --decode --output $GOOGLE_SERVICES_JSON_ANDROID_PATH # echo -n "$GOOGLE_SERVICES_JSON_ANDROID" | base64 --decode --output $GOOGLE_SERVICES_JSON_ANDROID_PATH
cp $GOOGLE_SERVICES_JSON_ANDROID_PATH ./android/app # cp $GOOGLE_SERVICES_JSON_ANDROID_PATH ./android/app
- name: Restore firebase_options.dart # - name: Restore firebase_options.dart
env: # env:
KEYSTORE: ${{ secrets.FIREBASE_OPTIONS }} # FIREBASE_OPTIONS: ${{ secrets.FIREBASE_OPTIONS }}
run: | # run: |
FIREBASE_OPTIONS_PATH=$RUNNER_TEMP/firebase_options.dart # FIREBASE_OPTIONS_PATH=$RUNNER_TEMP/firebase_options.dart
echo -n "$FIREBASE_OPTIONS" | base64 --decode --output $FIREBASE_OPTIONS_PATH # echo -n "$FIREBASE_OPTIONS" | base64 --decode --output $FIREBASE_OPTIONS_PATH
cp $FIREBASE_OPTIONS_PATH ./lib # cp $FIREBASE_OPTIONS_PATH ./lib
- name: Install Flutter - name: Install Flutter
uses: subosito/flutter-action@v2 uses: subosito/flutter-action@v2

View file

@ -1,12 +1,9 @@
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:lightmeter/environment.dart'; import 'package:lightmeter/environment.dart';
import 'application.dart'; import 'application.dart';
import 'firebase_options.dart';
Future<void> main() async { Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized(); WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
runApp(const Application(Environment.prod())); runApp(const Application(Environment.prod()));
} }

View file

@ -11,7 +11,6 @@ dependencies:
camera: 0.10.0+4 camera: 0.10.0+4
exif: 3.1.2 exif: 3.1.2
dynamic_color: 1.5.4 dynamic_color: 1.5.4
firebase_core: 2.7.0
flutter: flutter:
sdk: flutter sdk: flutter
flutter_bloc: 8.1.1 flutter_bloc: 8.1.1