Skip to content

Commit dd310f0

Browse files
committed
chore: add remote config support
1 parent b077e34 commit dd310f0

File tree

10 files changed

+253
-82
lines changed

10 files changed

+253
-82
lines changed

firebase.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"flutter":{"platforms":{"android":{"default":{"projectId":"npc-tattoo","appId":"1:838220085712:android:a85cf2541699925c3be1d5","fileOutput":"android/app/google-services.json"}},"dart":{"lib/firebase_options.dart":{"projectId":"npc-tattoo","configurations":{"android":"1:838220085712:android:a85cf2541699925c3be1d5","ios":"1:838220085712:ios:d5b7636cdc72fd603be1d5"}}}}}}
1+
{"flutter":{"platforms":{"android":{"default":{"projectId":"npc-tattoo","appId":"1:838220085712:android:a85cf2541699925c3be1d5","fileOutput":"android/app/google-services.json"}},"dart":{"lib/firebase_options.dart":{"projectId":"npc-tattoo","configurations":{"android":"1:838220085712:android:a85cf2541699925c3be1d5","ios":"1:838220085712:ios:d5b7636cdc72fd603be1d5"}}},"ios":{"default":{"projectId":"npc-tattoo","appId":"1:838220085712:ios:d5b7636cdc72fd603be1d5","uploadDebugSymbols":true,"fileOutput":"ios/Runner/GoogleService-Info.plist"}}}}}

ios/Podfile.lock

Lines changed: 87 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,88 @@
11
PODS:
2-
- Firebase/CoreOnly (12.8.0):
3-
- FirebaseCore (~> 12.8.0)
4-
- Firebase/Crashlytics (12.8.0):
2+
- Firebase/CoreOnly (12.9.0):
3+
- FirebaseCore (~> 12.9.0)
4+
- Firebase/Crashlytics (12.9.0):
55
- Firebase/CoreOnly
6-
- FirebaseCrashlytics (~> 12.8.0)
6+
- FirebaseCrashlytics (~> 12.9.0)
7+
- Firebase/RemoteConfig (12.9.0):
8+
- Firebase/CoreOnly
9+
- FirebaseRemoteConfig (~> 12.9.0)
710
- firebase_analytics (12.1.2):
811
- firebase_core
9-
- FirebaseAnalytics (= 12.8.0)
12+
- FirebaseAnalytics (= 12.9.0)
1013
- Flutter
11-
- firebase_core (4.4.0):
12-
- Firebase/CoreOnly (= 12.8.0)
14+
- firebase_core (4.6.0):
15+
- Firebase/CoreOnly (= 12.9.0)
1316
- Flutter
1417
- firebase_crashlytics (5.0.7):
15-
- Firebase/Crashlytics (= 12.8.0)
18+
- Firebase/Crashlytics (= 12.9.0)
19+
- firebase_core
20+
- Flutter
21+
- firebase_remote_config (6.3.0):
22+
- Firebase/RemoteConfig (= 12.9.0)
1623
- firebase_core
1724
- Flutter
18-
- FirebaseAnalytics (12.8.0):
19-
- FirebaseAnalytics/Default (= 12.8.0)
20-
- FirebaseCore (~> 12.8.0)
21-
- FirebaseInstallations (~> 12.8.0)
25+
- FirebaseABTesting (12.9.0):
26+
- FirebaseCore (~> 12.9.0)
27+
- FirebaseAnalytics (12.9.0):
28+
- FirebaseAnalytics/Default (= 12.9.0)
29+
- FirebaseCore (~> 12.9.0)
30+
- FirebaseInstallations (~> 12.9.0)
2231
- GoogleUtilities/AppDelegateSwizzler (~> 8.1)
2332
- GoogleUtilities/MethodSwizzler (~> 8.1)
2433
- GoogleUtilities/Network (~> 8.1)
2534
- "GoogleUtilities/NSData+zlib (~> 8.1)"
2635
- nanopb (~> 3.30910.0)
27-
- FirebaseAnalytics/Default (12.8.0):
28-
- FirebaseCore (~> 12.8.0)
29-
- FirebaseInstallations (~> 12.8.0)
30-
- GoogleAppMeasurement/Default (= 12.8.0)
36+
- FirebaseAnalytics/Default (12.9.0):
37+
- FirebaseCore (~> 12.9.0)
38+
- FirebaseInstallations (~> 12.9.0)
39+
- GoogleAppMeasurement/Default (= 12.9.0)
3140
- GoogleUtilities/AppDelegateSwizzler (~> 8.1)
3241
- GoogleUtilities/MethodSwizzler (~> 8.1)
3342
- GoogleUtilities/Network (~> 8.1)
3443
- "GoogleUtilities/NSData+zlib (~> 8.1)"
3544
- nanopb (~> 3.30910.0)
36-
- FirebaseCore (12.8.0):
37-
- FirebaseCoreInternal (~> 12.8.0)
45+
- FirebaseCore (12.9.0):
46+
- FirebaseCoreInternal (~> 12.9.0)
3847
- GoogleUtilities/Environment (~> 8.1)
3948
- GoogleUtilities/Logger (~> 8.1)
40-
- FirebaseCoreExtension (12.8.0):
41-
- FirebaseCore (~> 12.8.0)
42-
- FirebaseCoreInternal (12.8.0):
49+
- FirebaseCoreExtension (12.9.0):
50+
- FirebaseCore (~> 12.9.0)
51+
- FirebaseCoreInternal (12.9.0):
4352
- "GoogleUtilities/NSData+zlib (~> 8.1)"
44-
- FirebaseCrashlytics (12.8.0):
45-
- FirebaseCore (~> 12.8.0)
46-
- FirebaseInstallations (~> 12.8.0)
47-
- FirebaseRemoteConfigInterop (~> 12.8.0)
48-
- FirebaseSessions (~> 12.8.0)
53+
- FirebaseCrashlytics (12.9.0):
54+
- FirebaseCore (~> 12.9.0)
55+
- FirebaseInstallations (~> 12.9.0)
56+
- FirebaseRemoteConfigInterop (~> 12.9.0)
57+
- FirebaseSessions (~> 12.9.0)
4958
- GoogleDataTransport (~> 10.1)
5059
- GoogleUtilities/Environment (~> 8.1)
5160
- nanopb (~> 3.30910.0)
5261
- PromisesObjC (~> 2.4)
53-
- FirebaseInstallations (12.8.0):
54-
- FirebaseCore (~> 12.8.0)
62+
- FirebaseInstallations (12.9.0):
63+
- FirebaseCore (~> 12.9.0)
5564
- GoogleUtilities/Environment (~> 8.1)
5665
- GoogleUtilities/UserDefaults (~> 8.1)
5766
- PromisesObjC (~> 2.4)
58-
- FirebaseRemoteConfigInterop (12.8.0)
59-
- FirebaseSessions (12.8.0):
60-
- FirebaseCore (~> 12.8.0)
61-
- FirebaseCoreExtension (~> 12.8.0)
62-
- FirebaseInstallations (~> 12.8.0)
67+
- FirebaseRemoteConfig (12.9.0):
68+
- FirebaseABTesting (~> 12.9.0)
69+
- FirebaseCore (~> 12.9.0)
70+
- FirebaseInstallations (~> 12.9.0)
71+
- FirebaseRemoteConfigInterop (~> 12.9.0)
72+
- FirebaseSharedSwift (~> 12.9.0)
73+
- GoogleUtilities/Environment (~> 8.1)
74+
- "GoogleUtilities/NSData+zlib (~> 8.1)"
75+
- FirebaseRemoteConfigInterop (12.9.0)
76+
- FirebaseSessions (12.9.0):
77+
- FirebaseCore (~> 12.9.0)
78+
- FirebaseCoreExtension (~> 12.9.0)
79+
- FirebaseInstallations (~> 12.9.0)
6380
- GoogleDataTransport (~> 10.1)
6481
- GoogleUtilities/Environment (~> 8.1)
6582
- GoogleUtilities/UserDefaults (~> 8.1)
6683
- nanopb (~> 3.30910.0)
6784
- PromisesSwift (~> 2.1)
85+
- FirebaseSharedSwift (12.9.0)
6886
- Flutter (1.0.0)
6987
- flutter_image_compress_common (1.0.0):
7088
- Flutter
@@ -79,23 +97,23 @@ PODS:
7997
- GoogleUtilities/Logger (~> 8.1)
8098
- GoogleUtilities/Network (~> 8.1)
8199
- nanopb (~> 3.30910.0)
82-
- GoogleAppMeasurement/Core (12.8.0):
100+
- GoogleAppMeasurement/Core (12.9.0):
83101
- GoogleUtilities/AppDelegateSwizzler (~> 8.1)
84102
- GoogleUtilities/MethodSwizzler (~> 8.1)
85103
- GoogleUtilities/Network (~> 8.1)
86104
- "GoogleUtilities/NSData+zlib (~> 8.1)"
87105
- nanopb (~> 3.30910.0)
88-
- GoogleAppMeasurement/Default (12.8.0):
106+
- GoogleAppMeasurement/Default (12.9.0):
89107
- GoogleAdsOnDeviceConversion (~> 3.2.0)
90-
- GoogleAppMeasurement/Core (= 12.8.0)
91-
- GoogleAppMeasurement/IdentitySupport (= 12.8.0)
108+
- GoogleAppMeasurement/Core (= 12.9.0)
109+
- GoogleAppMeasurement/IdentitySupport (= 12.9.0)
92110
- GoogleUtilities/AppDelegateSwizzler (~> 8.1)
93111
- GoogleUtilities/MethodSwizzler (~> 8.1)
94112
- GoogleUtilities/Network (~> 8.1)
95113
- "GoogleUtilities/NSData+zlib (~> 8.1)"
96114
- nanopb (~> 3.30910.0)
97-
- GoogleAppMeasurement/IdentitySupport (12.8.0):
98-
- GoogleAppMeasurement/Core (= 12.8.0)
115+
- GoogleAppMeasurement/IdentitySupport (12.9.0):
116+
- GoogleAppMeasurement/Core (= 12.9.0)
99117
- GoogleUtilities/AppDelegateSwizzler (~> 8.1)
100118
- GoogleUtilities/MethodSwizzler (~> 8.1)
101119
- GoogleUtilities/Network (~> 8.1)
@@ -177,6 +195,7 @@ DEPENDENCIES:
177195
- firebase_analytics (from `.symlinks/plugins/firebase_analytics/ios`)
178196
- firebase_core (from `.symlinks/plugins/firebase_core/ios`)
179197
- firebase_crashlytics (from `.symlinks/plugins/firebase_crashlytics/ios`)
198+
- firebase_remote_config (from `.symlinks/plugins/firebase_remote_config/ios`)
180199
- Flutter (from `Flutter`)
181200
- flutter_image_compress_common (from `.symlinks/plugins/flutter_image_compress_common/ios`)
182201
- flutter_secure_storage_darwin (from `.symlinks/plugins/flutter_secure_storage_darwin/darwin`)
@@ -189,14 +208,17 @@ DEPENDENCIES:
189208
SPEC REPOS:
190209
trunk:
191210
- Firebase
211+
- FirebaseABTesting
192212
- FirebaseAnalytics
193213
- FirebaseCore
194214
- FirebaseCoreExtension
195215
- FirebaseCoreInternal
196216
- FirebaseCrashlytics
197217
- FirebaseInstallations
218+
- FirebaseRemoteConfig
198219
- FirebaseRemoteConfigInterop
199220
- FirebaseSessions
221+
- FirebaseSharedSwift
200222
- GoogleAdsOnDeviceConversion
201223
- GoogleAppMeasurement
202224
- GoogleDataTransport
@@ -216,6 +238,8 @@ EXTERNAL SOURCES:
216238
:path: ".symlinks/plugins/firebase_core/ios"
217239
firebase_crashlytics:
218240
:path: ".symlinks/plugins/firebase_crashlytics/ios"
241+
firebase_remote_config:
242+
:path: ".symlinks/plugins/firebase_remote_config/ios"
219243
Flutter:
220244
:path: Flutter
221245
flutter_image_compress_common:
@@ -234,37 +258,41 @@ EXTERNAL SOURCES:
234258
:path: ".symlinks/plugins/url_launcher_ios/ios"
235259

236260
SPEC CHECKSUMS:
237-
Firebase: 9a58fdbc9d8655ed7b79a19cf9690bb007d3d46d
238-
firebase_analytics: a463fef86e489e34a1b58bced6a7f6bb26132498
239-
firebase_core: 8d5e24676350f15dd111aa59a88a1ae26605f9ba
240-
firebase_crashlytics: a14ae83fe2d4738b6b5a7bebdf9dad9ccc747e70
241-
FirebaseAnalytics: f20bbad8cb7f65d8a5eaefeb424ae8800a31bdfc
242-
FirebaseCore: 0dbad74bda10b8fb9ca34ad8f375fb9dd3ebef7c
243-
FirebaseCoreExtension: 6605938d51f765d8b18bfcafd2085276a252bee2
244-
FirebaseCoreInternal: fe5fa466aeb314787093a7dce9f0beeaad5a2a21
245-
FirebaseCrashlytics: fb31c6907e5b52aa252668394d3f1ab326df1511
246-
FirebaseInstallations: 6a14ab3d694ebd9f839c48d330da5547e9ca9dc0
247-
FirebaseRemoteConfigInterop: 869ddca16614f979e5c931ece11fbb0b8729ed41
248-
FirebaseSessions: d614ca154c63dbbc6c10d6c38259c2162c4e7c9b
261+
Firebase: 065f2bb395062046623036d8e6dc857bc2521d56
262+
firebase_analytics: 756f4dfe60543c4703cee7b8e4a599604b1a86d4
263+
firebase_core: 8e6f58412ca227827c366b92e7cee047a2148c60
264+
firebase_crashlytics: d3a550f0132b59d886eca10448df04afd38b18cf
265+
firebase_remote_config: cd42a29a61e8610230e7f74d5646d6392fd7368d
266+
FirebaseABTesting: a399ffe546392a39b19a5c2fb28bd8ea178a6f47
267+
FirebaseAnalytics: cd7d01d352f3c237c9a0e31552c257cd0b0c0352
268+
FirebaseCore: 428912f751178b06bef0a1793effeb4a5e09a9b8
269+
FirebaseCoreExtension: e911052d59cd0da237a45d706fc0f81654f035c1
270+
FirebaseCoreInternal: b321eafae5362113bc182956fafc9922cfc77b72
271+
FirebaseCrashlytics: 43913d587ef07beaf5db703baa61eacf9554658c
272+
FirebaseInstallations: 7b64ffd006032b2b019a59b803858df5112d9eaa
273+
FirebaseRemoteConfig: a2f6545e41551ffb520241d38b5d3d6776c9ebe8
274+
FirebaseRemoteConfigInterop: 765ee19cd2bfa8e54937c8dae901eb634ad6787d
275+
FirebaseSessions: a2d06fd980431fda934c7a543901aca05fc4edcc
276+
FirebaseSharedSwift: 9d2fa84a46676302b89dbd5e6e62bce2fe376909
249277
Flutter: cabc95a1d2626b1b06e7179b784ebcf0c0cde467
250-
flutter_image_compress_common: ec1d45c362c9d30a3f6a0426c297f47c52007e3e
251-
flutter_secure_storage_darwin: 557817588b80e60213cbecb573c45c76b788018d
278+
flutter_image_compress_common: 1697a328fd72bfb335507c6bca1a65fa5ad87df1
279+
flutter_secure_storage_darwin: acdb3f316ed05a3e68f856e0353b133eec373a23
252280
GoogleAdsOnDeviceConversion: d68c69dd9581a0f5da02617b6f377e5be483970f
253-
GoogleAppMeasurement: 72c9a682fec6290327ea5e3c4b829b247fcb2c17
281+
GoogleAppMeasurement: fce7c1c90640d2f9f5c56771f71deacb2ba3f98c
254282
GoogleDataTransport: aae35b7ea0c09004c3797d53c8c41f66f219d6a7
255283
GoogleUtilities: 00c88b9a86066ef77f0da2fab05f65d7768ed8e1
256-
image_picker_ios: 4f2f91b01abdb52842a8e277617df877e40f905b
284+
image_picker_ios: e0ece4aa2a75771a7de3fa735d26d90817041326
257285
libwebp: 02b23773aedb6ff1fd38cec7a77b81414c6842a8
258286
Mantle: c5aa8794a29a022dfbbfc9799af95f477a69b62d
259287
nanopb: fad817b59e0457d11a5dfbde799381cd727c1275
260-
package_info_plus: c0502532a26c7662a62a356cebe2692ec5fe4ec4
261-
path_provider_foundation: 0b743cbb62d8e47eab856f09262bb8c1ddcfe6ba
288+
package_info_plus: af8e2ca6888548050f16fa2f1938db7b5a5df499
289+
path_provider_foundation: bb55f6dbba17d0dccd6737fe6f7f34fbd0376880
262290
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
263291
PromisesSwift: 9d77319bbe72ebf6d872900551f7eeba9bce2851
264292
SDWebImage: e9fc87c1aab89a8ab1bbd74eba378c6f53be8abf
265293
SDWebImageWebPCoder: 0e06e365080397465cc73a7a9b472d8a3bd0f377
266-
shared_preferences_foundation: 5086985c1d43c5ba4d5e69a4e8083a389e2909e6
267-
url_launcher_ios: bb13df5870e8c4234ca12609d04010a21be43dfa
294+
shared_preferences_foundation: 7036424c3d8ec98dfe75ff1667cb0cd531ec82bb
295+
url_launcher_ios: 7a95fa5b60cc718a708b8f2966718e93db0cef1b
268296

269297
PODFILE CHECKSUM: ce2a4dd764e1c7aeed6a7cdc5e61d092b6dc6d32
270298

ios/Runner.xcodeproj/project.pbxproj

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
1818
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
1919
A1B2C3D4E5F6071800000001 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A1B2C3D4E5F6071800000002 /* SceneDelegate.swift */; };
20+
A3B5632240199828818EE021 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 54E445D70355B5A94AD96B6B /* GoogleService-Info.plist */; };
2021
BF7D061D2F5E154B00AFD197 /* AppIcon.icon in Resources */ = {isa = PBXBuildFile; fileRef = BF7D061C2F5E154B00AFD197 /* AppIcon.icon */; };
2122
/* End PBXBuildFile section */
2223

@@ -54,6 +55,7 @@
5455
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
5556
429DDA6007932C8586ABF232 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
5657
474D6B1CFCABB681FB9CF1EC /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = "<group>"; };
58+
54E445D70355B5A94AD96B6B /* GoogleService-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; name = "GoogleService-Info.plist"; path = "Runner/GoogleService-Info.plist"; sourceTree = "<group>"; };
5759
6296B795BFFF46F62DEC2A2B /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
5860
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
5961
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
@@ -128,6 +130,7 @@
128130
331C8082294A63A400263BE5 /* RunnerTests */,
129131
D08FFDA1E835E2A9EE02A777 /* Pods */,
130132
5EA6F1EEA63752B6543D41EA /* Frameworks */,
133+
54E445D70355B5A94AD96B6B /* GoogleService-Info.plist */,
131134
);
132135
sourceTree = "<group>";
133136
};
@@ -204,6 +207,7 @@
204207
9705A1C41CF9048500538489 /* Embed Frameworks */,
205208
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
206209
89C39923DE1A8BA373A126FA /* [CP] Embed Pods Frameworks */,
210+
9F00092A722FD194FBD8A43C /* FlutterFire: "flutterfire upload-crashlytics-symbols" */,
207211
);
208212
buildRules = (
209213
);
@@ -270,6 +274,7 @@
270274
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
271275
BF7D061D2F5E154B00AFD197 /* AppIcon.icon in Resources */,
272276
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
277+
A3B5632240199828818EE021 /* GoogleService-Info.plist in Resources */,
273278
);
274279
runOnlyForDeploymentPostprocessing = 0;
275280
};
@@ -368,6 +373,24 @@
368373
shellPath = /bin/sh;
369374
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
370375
};
376+
9F00092A722FD194FBD8A43C /* FlutterFire: "flutterfire upload-crashlytics-symbols" */ = {
377+
isa = PBXShellScriptBuildPhase;
378+
buildActionMask = 2147483647;
379+
files = (
380+
);
381+
inputFileListPaths = (
382+
);
383+
inputPaths = (
384+
);
385+
name = "FlutterFire: \"flutterfire upload-crashlytics-symbols\"";
386+
outputFileListPaths = (
387+
);
388+
outputPaths = (
389+
);
390+
runOnlyForDeploymentPostprocessing = 0;
391+
shellPath = /bin/sh;
392+
shellScript = "\n#!/bin/bash\nPATH=\"${PATH}:$FLUTTER_ROOT/bin:${PUB_CACHE}/bin:$HOME/.pub-cache/bin\"\n\nif [ -z \"$PODS_ROOT\" ] || [ ! -d \"$PODS_ROOT/FirebaseCrashlytics\" ]; then\n # Cannot use \"BUILD_DIR%/Build/*\" as per Firebase documentation, it points to \"flutter-project/build/ios/*\" path which doesn't have run script\n DERIVED_DATA_PATH=$(echo \"$BUILD_ROOT\" | sed -E 's|(.*DerivedData/[^/]+).*|\\1|')\n PATH_TO_CRASHLYTICS_UPLOAD_SCRIPT=\"${DERIVED_DATA_PATH}/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/run\"\nelse\n PATH_TO_CRASHLYTICS_UPLOAD_SCRIPT=\"$PODS_ROOT/FirebaseCrashlytics/run\"\nfi\n\n# Command to upload symbols script used to upload symbols to Firebase server\nflutterfire upload-crashlytics-symbols --upload-symbols-script-path=\"$PATH_TO_CRASHLYTICS_UPLOAD_SCRIPT\" --platform=ios --apple-project-path=\"${SRCROOT}\" --env-platform-name=\"${PLATFORM_NAME}\" --env-configuration=\"${CONFIGURATION}\" --env-project-dir=\"${PROJECT_DIR}\" --env-built-products-dir=\"${BUILT_PRODUCTS_DIR}\" --env-dwarf-dsym-folder-path=\"${DWARF_DSYM_FOLDER_PATH}\" --env-dwarf-dsym-file-name=\"${DWARF_DSYM_FILE_NAME}\" --env-infoplist-path=\"${INFOPLIST_PATH}\" --default-config=default\n";
393+
};
371394
/* End PBXShellScriptBuildPhase section */
372395

373396
/* Begin PBXSourcesBuildPhase section */

lib/repositories/feature_flag_providers.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ class FeatureFlagsNotifier extends AsyncNotifier<List<FeatureFlag>> {
1313
return ref.watch(featureFlagRepositoryProvider).getAllFlags();
1414
}
1515

16+
Future<void> refreshFlags() async {
17+
state = const AsyncValue.loading();
18+
state = await AsyncValue.guard(() {
19+
return ref.read(featureFlagRepositoryProvider).getAllFlags(forceRefresh: true);
20+
});
21+
}
22+
1623
Future<void> setFlag(String key, dynamic value) async {
1724
await ref.read(featureFlagRepositoryProvider).setFlag(key, value);
1825
ref.invalidateSelf();

0 commit comments

Comments
 (0)