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
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

View file

@ -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

View file

@ -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<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
runApp(const Application(Environment.prod()));
}

View file

@ -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