This repository was archived by the owner on Apr 3, 2025. It is now read-only.
File tree 4 files changed +9
-4
lines changed
4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 25
25
value : ${{ jobs.build-details.outputs.build-version }}
26
26
27
27
secrets :
28
+ FIREBASE_SERVICE_WORKER :
29
+ required : true
28
30
FIREBASE_TOKEN :
29
31
required : true
30
32
SENTRY_DSN :
@@ -142,6 +144,9 @@ jobs:
142
144
- name : Generate Changelog
143
145
run : dart ${{github.workspace }}/scripts/generate_changelog.dart ${{ needs.build-details.outputs.build-flavor }}
144
146
147
+ - name : Generate Firebase Service Worker
148
+ run : echo ${{ secrets.FIREBASE_SERVICE_WORKER }} | base64 --decode > web/firebase-messaging-sw.js
149
+
145
150
- name : Generate Build Runner Files
146
151
run : flutter packages pub run build_runner build
147
152
@@ -154,3 +159,4 @@ jobs:
154
159
${{ github.workspace }}/assets/localization
155
160
${{ github.workspace }}/lib/**/*.g.dart
156
161
${{ github.workspace }}/lib/system/environment.dart
162
+ ${{ github.workspace }}/web/firebase-messaging-sw.js
Original file line number Diff line number Diff line change 24
24
with :
25
25
flavor : ${{ inputs.flavor }}
26
26
secrets :
27
+ FIREBASE_SERVICE_WORKER : ${{ secrets.FIREBASE_SERVICE_WORKER }}
27
28
FIREBASE_TOKEN : ${{ secrets.FIREBASE_TOKEN }}
28
29
SENTRY_DSN : ${{ secrets.SENTRY_DSN }}
29
30
Original file line number Diff line number Diff line change 1
1
import 'package:firebase_core/firebase_core.dart' ;
2
2
import 'package:lunasea/system/platform.dart' ;
3
-
4
- // ignore: always_use_package_imports
5
- import 'options.dart' ;
3
+ import 'package:lunasea/firebase/options.dart' ;
6
4
7
5
class LunaFirebase {
8
6
static bool get isSupported {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import 'package:lunasea/firebase/types.dart';
7
7
class LunaFirebaseFirestore {
8
8
/// Returns an instance of [FirebaseFirestore] .
9
9
///
10
- /// Throws an errof if [LunaFirebase.initialize] has not been called.
10
+ /// Throws an error if [LunaFirebase.initialize] has not been called.
11
11
static FirebaseFirestore get instance => FirebaseFirestore .instance;
12
12
13
13
/// Add a backup entry to Firestore. Returns true if successful, and false on any error.
You can’t perform that action at this time.
0 commit comments