@react-native-firebase/remote-config 25.1.0 → 26.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -0
- package/RNFBRemoteConfig.podspec +9 -7
- package/android/build.gradle +19 -0
- package/android/src/reactnative/java/io/invertase/firebase/config/{ReactNativeFirebaseConfigModule.java → NativeRNFBTurboConfig.java} +53 -40
- package/android/src/reactnative/java/io/invertase/firebase/config/ReactNativeFirebaseConfigPackage.java +1 -1
- package/android/src/reactnative/java/io/invertase/firebase/config/generated/java/com/facebook/fbreact/specs/NativeRNFBTurboConfigSpec.java +115 -0
- package/android/src/reactnative/java/io/invertase/firebase/config/generated/jni/CMakeLists.txt +36 -0
- package/android/src/reactnative/java/io/invertase/firebase/config/generated/jni/RNFBRemoteConfigTurboModules-generated.cpp +98 -0
- package/android/src/reactnative/java/io/invertase/firebase/config/generated/jni/RNFBRemoteConfigTurboModules.h +31 -0
- package/android/src/reactnative/java/io/invertase/firebase/config/generated/jni/react/renderer/components/RNFBRemoteConfigTurboModules/RNFBRemoteConfigTurboModulesJSI-generated.cpp +110 -0
- package/android/src/reactnative/java/io/invertase/firebase/config/generated/jni/react/renderer/components/RNFBRemoteConfigTurboModules/RNFBRemoteConfigTurboModulesJSI.h +471 -0
- package/dist/module/index.js +499 -5
- package/dist/module/index.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/typescript/lib/index.d.ts +83 -5
- package/dist/typescript/lib/index.d.ts.map +1 -1
- package/dist/typescript/lib/types/internal.d.ts +25 -24
- package/dist/typescript/lib/types/internal.d.ts.map +1 -1
- package/dist/typescript/lib/types/remote-config.d.ts +24 -3
- package/dist/typescript/lib/types/remote-config.d.ts.map +1 -1
- package/dist/typescript/lib/version.d.ts +1 -1
- package/ios/RNFBConfig/RNFBConfigHelper.h +89 -0
- package/ios/RNFBConfig/{RNFBConfigModule.m → RNFBConfigHelper.m} +176 -165
- package/ios/RNFBConfig/RNFBConfigModule.h +3 -2
- package/ios/RNFBConfig/RNFBConfigModule.mm +134 -0
- package/ios/RNFBConfig.xcodeproj/project.pbxproj +8 -8
- package/ios/generated/RCTAppDependencyProvider.h +25 -0
- package/ios/generated/RCTAppDependencyProvider.mm +55 -0
- package/ios/generated/RCTModulesConformingToProtocolsProvider.h +18 -0
- package/ios/generated/RCTModulesConformingToProtocolsProvider.mm +33 -0
- package/ios/generated/RCTThirdPartyComponentsProvider.h +16 -0
- package/ios/generated/RCTThirdPartyComponentsProvider.mm +23 -0
- package/ios/generated/RNFBRemoteConfigTurboModules/RNFBRemoteConfigTurboModules-generated.mm +121 -0
- package/ios/generated/RNFBRemoteConfigTurboModules/RNFBRemoteConfigTurboModules.h +172 -0
- package/ios/generated/RNFBRemoteConfigTurboModulesJSI-generated.cpp +110 -0
- package/ios/generated/RNFBRemoteConfigTurboModulesJSI.h +471 -0
- package/ios/generated/ReactAppDependencyProvider.podspec +34 -0
- package/lib/index.ts +683 -8
- package/lib/types/internal.ts +25 -44
- package/lib/types/remote-config.ts +28 -3
- package/lib/version.ts +1 -1
- package/package.json +23 -5
- package/react-native.config.js +10 -0
- package/specs/NativeRNFBTurboConfig.ts +60 -0
- package/typedoc.json +1 -1
- package/dist/module/modular.js +0 -155
- package/dist/module/modular.js.map +0 -1
- package/dist/module/namespaced.js +0 -400
- package/dist/module/namespaced.js.map +0 -1
- package/dist/module/types/namespaced.js +0 -24
- package/dist/module/types/namespaced.js.map +0 -1
- package/dist/typescript/lib/modular.d.ts +0 -76
- package/dist/typescript/lib/modular.d.ts.map +0 -1
- package/dist/typescript/lib/namespaced.d.ts +0 -11
- package/dist/typescript/lib/namespaced.d.ts.map +0 -1
- package/dist/typescript/lib/types/namespaced.d.ts +0 -124
- package/dist/typescript/lib/types/namespaced.d.ts.map +0 -1
- package/lib/modular.ts +0 -197
- package/lib/namespaced.ts +0 -552
- package/lib/types/namespaced.ts +0 -163
package/dist/module/index.js
CHANGED
|
@@ -17,11 +17,505 @@
|
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
import { hasOwnProperty, isFunction, isIOS, isNumber, isObject, isString, isUndefined, parseListenerOrObserver } from '@react-native-firebase/app/dist/module/common';
|
|
21
|
+
import { FirebaseModule, getOrCreateModularInstance } from '@react-native-firebase/app/dist/module/internal';
|
|
22
|
+
import NativeFirebaseError from '@react-native-firebase/app/dist/module/internal/NativeFirebaseError';
|
|
23
|
+
import { setReactNativeModule } from '@react-native-firebase/app/dist/module/internal/nativeModule';
|
|
24
|
+
import RemoteConfigValue from "./RemoteConfigValue.js";
|
|
25
|
+
import { LastFetchStatus, ValueSource } from "./statics.js";
|
|
26
|
+
import { version } from "./version.js";
|
|
27
|
+
import fallBackModule from './web/RNFBConfigModule';
|
|
28
|
+
import "./types/internal.js";
|
|
29
|
+
const namespace = 'remoteConfig';
|
|
30
|
+
const nativeModuleName = 'NativeRNFBTurboConfig';
|
|
31
|
+
function isSuccessEvent(event) {
|
|
32
|
+
return event.resultType === 'success';
|
|
33
|
+
}
|
|
34
|
+
function toConfigUpdate(updatedKeys) {
|
|
35
|
+
return {
|
|
36
|
+
getUpdatedKeys: () => new Set(updatedKeys)
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function toNativeFirebaseError(errorEvent) {
|
|
40
|
+
return NativeFirebaseError.fromEvent(errorEvent, namespace);
|
|
41
|
+
}
|
|
42
|
+
function rc(remoteConfig) {
|
|
43
|
+
return remoteConfig;
|
|
44
|
+
}
|
|
45
|
+
class FirebaseConfigModule extends FirebaseModule {
|
|
46
|
+
constructor(app, config, customUrlOrRegion) {
|
|
47
|
+
super(app, config, customUrlOrRegion);
|
|
48
|
+
this._settings = {
|
|
49
|
+
// defaults to 1 minute.
|
|
50
|
+
fetchTimeoutMillis: 60000,
|
|
51
|
+
// defaults to 12 hours.
|
|
52
|
+
minimumFetchIntervalMillis: 43200000
|
|
53
|
+
};
|
|
54
|
+
this._lastFetchTime = -1;
|
|
55
|
+
this._lastFetchStatus = 'no_fetch_yet';
|
|
56
|
+
this._values = {};
|
|
57
|
+
this._configUpdateListenerCount = 0;
|
|
58
|
+
this._nativeMutationQueue = Promise.resolve();
|
|
59
|
+
}
|
|
60
|
+
get defaultConfig() {
|
|
61
|
+
const updatedDefaultConfig = {};
|
|
62
|
+
Object.keys(this._values).forEach(key => {
|
|
63
|
+
// Need to make it an object with key and literal value. Not `Value` instance.
|
|
64
|
+
const configValue = this._values[key];
|
|
65
|
+
if (configValue) {
|
|
66
|
+
updatedDefaultConfig[key] = configValue.value;
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
return updatedDefaultConfig;
|
|
70
|
+
}
|
|
71
|
+
set defaultConfig(defaults) {
|
|
72
|
+
if (!isObject(defaults)) {
|
|
73
|
+
throw new Error("firebase.remoteConfig().defaultConfig: 'defaults' must be an object.");
|
|
74
|
+
}
|
|
22
75
|
|
|
23
|
-
//
|
|
76
|
+
// To make Firebase web v9 API compatible, we update the config first so it immediately
|
|
77
|
+
// updates defaults on the instance. We then pass to underlying SDK to update. We do this because
|
|
78
|
+
// there is no way to "await" a setter.
|
|
79
|
+
const nonDefaultValues = Object.fromEntries(Object.entries(this._values).filter(([, configValue]) => configValue?.source !== 'default'));
|
|
80
|
+
this._values = Object.freeze({
|
|
81
|
+
...Object.fromEntries(Object.entries(defaults).map(([key, value]) => [key, {
|
|
82
|
+
value,
|
|
83
|
+
source: 'default'
|
|
84
|
+
}])),
|
|
85
|
+
...nonDefaultValues
|
|
86
|
+
});
|
|
87
|
+
void this.setDefaults(defaults, true);
|
|
88
|
+
}
|
|
89
|
+
get settings() {
|
|
90
|
+
return {
|
|
91
|
+
minimumFetchIntervalMillis: this._settings.minimumFetchIntervalMillis,
|
|
92
|
+
fetchTimeoutMillis: this._settings.fetchTimeoutMillis,
|
|
93
|
+
fetchTimeMillis: this._settings.fetchTimeoutMillis
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
set settings(settings) {
|
|
97
|
+
// To make Firebase web v9 API compatible, we update the settings first so it immediately
|
|
98
|
+
// updates settings on the instance. We then pass to underlying SDK to update. We do this because
|
|
99
|
+
// there is no way to "await" a setter. We can't delegate to `setConfigSettings()` as it is setup
|
|
100
|
+
// for native.
|
|
101
|
+
this._settings = {
|
|
102
|
+
minimumFetchIntervalMillis: settings.minimumFetchIntervalMillis ?? this._settings.minimumFetchIntervalMillis,
|
|
103
|
+
fetchTimeoutMillis: ('fetchTimeoutMillis' in settings ? settings.fetchTimeoutMillis : undefined) ?? ('fetchTimeMillis' in settings ? settings.fetchTimeMillis : undefined) ?? this._settings.fetchTimeoutMillis
|
|
104
|
+
};
|
|
105
|
+
void this.setConfigSettings(settings, true);
|
|
106
|
+
}
|
|
107
|
+
getValue(key) {
|
|
108
|
+
if (!isString(key)) {
|
|
109
|
+
throw new Error("firebase.remoteConfig().getValue(): 'key' must be a string value.");
|
|
110
|
+
}
|
|
111
|
+
if (typeof this._values === 'undefined' || !hasOwnProperty(this._values, key)) {
|
|
112
|
+
return new RemoteConfigValue({
|
|
113
|
+
value: '',
|
|
114
|
+
source: 'static'
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
const configValue = this._values[key];
|
|
118
|
+
return new RemoteConfigValue({
|
|
119
|
+
value: `${configValue.value}`,
|
|
120
|
+
source: configValue.source
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
getBoolean(key) {
|
|
124
|
+
return this.getValue(key).asBoolean();
|
|
125
|
+
}
|
|
126
|
+
getNumber(key) {
|
|
127
|
+
return this.getValue(key).asNumber();
|
|
128
|
+
}
|
|
129
|
+
getString(key) {
|
|
130
|
+
return this.getValue(key).asString();
|
|
131
|
+
}
|
|
132
|
+
getAll() {
|
|
133
|
+
const values = {};
|
|
134
|
+
Object.keys(this._values).forEach(key => {
|
|
135
|
+
values[key] = this.getValue(key);
|
|
136
|
+
});
|
|
137
|
+
return values;
|
|
138
|
+
}
|
|
139
|
+
get fetchTimeMillis() {
|
|
140
|
+
// android returns -1 if no fetch yet and iOS returns 0
|
|
141
|
+
return this._lastFetchTime;
|
|
142
|
+
}
|
|
143
|
+
get lastFetchStatus() {
|
|
144
|
+
return this._lastFetchStatus;
|
|
145
|
+
}
|
|
24
146
|
|
|
25
|
-
|
|
26
|
-
|
|
147
|
+
/**
|
|
148
|
+
* Deletes all activated, fetched and defaults configs and resets all Firebase Remote Config settings.
|
|
149
|
+
* @returns {Promise<void>}
|
|
150
|
+
*/
|
|
151
|
+
reset() {
|
|
152
|
+
if (isIOS) {
|
|
153
|
+
return Promise.resolve();
|
|
154
|
+
}
|
|
155
|
+
return this._enqueueNativeMutation(() => this._promiseWithConstants(this.native.reset()));
|
|
156
|
+
}
|
|
157
|
+
setConfigSettings(settings, fromSettingsSetter = false) {
|
|
158
|
+
const updatedSettings = {
|
|
159
|
+
fetchTimeout: this._settings.fetchTimeoutMillis / 1000,
|
|
160
|
+
minimumFetchInterval: this._settings.minimumFetchIntervalMillis / 1000
|
|
161
|
+
};
|
|
162
|
+
const apiCalled = fromSettingsSetter ? 'settings' : 'setConfigSettings';
|
|
163
|
+
if (!isObject(settings)) {
|
|
164
|
+
throw new Error(`firebase.remoteConfig().${apiCalled}(*): settings must set an object.`);
|
|
165
|
+
}
|
|
166
|
+
if (hasOwnProperty(settings, 'minimumFetchIntervalMillis')) {
|
|
167
|
+
if (!isNumber(settings.minimumFetchIntervalMillis)) {
|
|
168
|
+
throw new Error(`firebase.remoteConfig().${apiCalled}(): 'settings.minimumFetchIntervalMillis' must be a number type in milliseconds.`);
|
|
169
|
+
} else {
|
|
170
|
+
updatedSettings.minimumFetchInterval = settings.minimumFetchIntervalMillis / 1000;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
if (hasOwnProperty(settings, 'fetchTimeMillis')) {
|
|
174
|
+
if (!isNumber(settings.fetchTimeMillis)) {
|
|
175
|
+
throw new Error(`firebase.remoteConfig().${apiCalled}(): 'settings.fetchTimeMillis' must be a number type in milliseconds.`);
|
|
176
|
+
}
|
|
177
|
+
updatedSettings.fetchTimeout = settings.fetchTimeMillis / 1000;
|
|
178
|
+
} else if (hasOwnProperty(settings, 'fetchTimeoutMillis')) {
|
|
179
|
+
if (!isNumber(settings.fetchTimeoutMillis)) {
|
|
180
|
+
throw new Error(`firebase.remoteConfig().${apiCalled}(): 'settings.fetchTimeoutMillis' must be a number type in milliseconds.`);
|
|
181
|
+
}
|
|
182
|
+
updatedSettings.fetchTimeout = settings.fetchTimeoutMillis / 1000;
|
|
183
|
+
}
|
|
184
|
+
const nextSettings = {
|
|
185
|
+
fetchTimeoutMillis: updatedSettings.fetchTimeout * 1000,
|
|
186
|
+
minimumFetchIntervalMillis: updatedSettings.minimumFetchInterval * 1000
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
// Keep JS reads in sync immediately. Native can report stale settings constants
|
|
190
|
+
// for this call because native setConfigSettingsAsync completes after the bridge resolves.
|
|
191
|
+
this._settings = nextSettings;
|
|
192
|
+
return this._enqueueNativeMutation(() => this.native.setConfigSettings(updatedSettings).then(({
|
|
193
|
+
result,
|
|
194
|
+
constants
|
|
195
|
+
}) => {
|
|
196
|
+
// Preserve the eagerly computed settings above and only refresh the rest of the cache.
|
|
197
|
+
this._updateFromConstants({
|
|
198
|
+
...constants,
|
|
199
|
+
fetchTimeout: undefined,
|
|
200
|
+
minimumFetchInterval: undefined
|
|
201
|
+
});
|
|
202
|
+
return result;
|
|
203
|
+
}));
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Activates the Fetched RemoteConfig, so that the fetched key-values take effect.
|
|
208
|
+
* @returns {Promise<boolean>}
|
|
209
|
+
*/
|
|
210
|
+
activate() {
|
|
211
|
+
return this._promiseWithConstants(this.native.activate());
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Fetches parameter values for your app.
|
|
216
|
+
*
|
|
217
|
+
* @param expirationDurationSeconds
|
|
218
|
+
* @returns {Promise}
|
|
219
|
+
*/
|
|
220
|
+
fetch(expirationDurationSeconds) {
|
|
221
|
+
if (!isUndefined(expirationDurationSeconds) && !isNumber(expirationDurationSeconds)) {
|
|
222
|
+
throw new Error("firebase.remoteConfig().fetch(): 'expirationDurationSeconds' must be a number value.");
|
|
223
|
+
}
|
|
224
|
+
return this._promiseWithConstants(this.native.fetch(expirationDurationSeconds !== undefined ? expirationDurationSeconds : -1));
|
|
225
|
+
}
|
|
226
|
+
fetchAndActivate() {
|
|
227
|
+
return this._promiseWithConstants(this.native.fetchAndActivate());
|
|
228
|
+
}
|
|
229
|
+
ensureInitialized() {
|
|
230
|
+
return this._promiseWithConstants(this.native.ensureInitialized());
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Sets defaults.
|
|
235
|
+
*
|
|
236
|
+
* @param defaults
|
|
237
|
+
*/
|
|
238
|
+
setDefaults(defaults, fromDefaultConfigSetter = false) {
|
|
239
|
+
const apiCalled = fromDefaultConfigSetter ? 'defaultConfig' : 'setDefaults';
|
|
240
|
+
if (!isObject(defaults)) {
|
|
241
|
+
throw new Error(`firebase.remoteConfig().${apiCalled}(): 'defaults' must be an object.`);
|
|
242
|
+
}
|
|
243
|
+
return this._enqueueNativeMutation(() => this._promiseWithConstants(this.native.setDefaults(defaults)));
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Sets defaults based on resource.
|
|
248
|
+
* @param resourceName
|
|
249
|
+
*/
|
|
250
|
+
setDefaultsFromResource(resourceName) {
|
|
251
|
+
if (!isString(resourceName)) {
|
|
252
|
+
throw new Error("firebase.remoteConfig().setDefaultsFromResource(): 'resourceName' must be a string value.");
|
|
253
|
+
}
|
|
254
|
+
return this._enqueueNativeMutation(() => this._promiseWithConstants(this.native.setDefaultsFromResource(resourceName)));
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Registers an observer to changes in the configuration.
|
|
259
|
+
*
|
|
260
|
+
* @param observer - The observer to be notified of config updates.
|
|
261
|
+
* @returns An unsubscribe function to remove the listener.
|
|
262
|
+
*/
|
|
263
|
+
onConfigUpdate(observer) {
|
|
264
|
+
if (!isObject(observer) || !isFunction(observer.next) || !isFunction(observer.error)) {
|
|
265
|
+
throw new Error("'observer' expected an object with 'next' and 'error' functions.");
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
// We maintaine our pre-web-support native interface but bend it to match
|
|
269
|
+
// the official JS SDK API by assuming the callback is an Observer, and sending it a ConfigUpdate
|
|
270
|
+
// compatible parameter that implements the `getUpdatedKeys` method
|
|
271
|
+
let unsubscribed = false;
|
|
272
|
+
const subscription = this.emitter.addListener(this.eventNameForApp('on_config_updated'), event => {
|
|
273
|
+
if (isSuccessEvent(event)) {
|
|
274
|
+
observer.next(toConfigUpdate(event.updatedKeys));
|
|
275
|
+
return;
|
|
276
|
+
}
|
|
277
|
+
observer.error(toNativeFirebaseError(event));
|
|
278
|
+
});
|
|
279
|
+
if (this._configUpdateListenerCount === 0) {
|
|
280
|
+
this.native.onConfigUpdated();
|
|
281
|
+
}
|
|
282
|
+
this._configUpdateListenerCount++;
|
|
283
|
+
return () => {
|
|
284
|
+
if (unsubscribed) {
|
|
285
|
+
// there is no harm in calling this multiple times to unsubscribe,
|
|
286
|
+
// but anything after the first call is a no-op
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
289
|
+
unsubscribed = true;
|
|
290
|
+
subscription.remove();
|
|
291
|
+
this._configUpdateListenerCount--;
|
|
292
|
+
if (this._configUpdateListenerCount === 0) {
|
|
293
|
+
this.native.removeConfigUpdateRegistration();
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Registers a listener to changes in the configuration.
|
|
300
|
+
*
|
|
301
|
+
* @param listenerOrObserver - function called on config change
|
|
302
|
+
* @returns unsubscribe listener
|
|
303
|
+
* @deprecated use official firebase-js-sdk onConfigUpdate now that web supports realtime
|
|
304
|
+
*/
|
|
305
|
+
onConfigUpdated(listenerOrObserver) {
|
|
306
|
+
const listener = parseListenerOrObserver(listenerOrObserver);
|
|
307
|
+
let unsubscribed = false;
|
|
308
|
+
const subscription = this.emitter.addListener(this.eventNameForApp('on_config_updated'), event => {
|
|
309
|
+
if (isSuccessEvent(event)) {
|
|
310
|
+
listener({
|
|
311
|
+
updatedKeys: event.updatedKeys
|
|
312
|
+
}, undefined);
|
|
313
|
+
return;
|
|
314
|
+
}
|
|
315
|
+
listener(undefined, {
|
|
316
|
+
code: event.code,
|
|
317
|
+
message: event.message,
|
|
318
|
+
nativeErrorMessage: event.nativeErrorMessage
|
|
319
|
+
});
|
|
320
|
+
});
|
|
321
|
+
if (this._configUpdateListenerCount === 0) {
|
|
322
|
+
this.native.onConfigUpdated();
|
|
323
|
+
}
|
|
324
|
+
this._configUpdateListenerCount++;
|
|
325
|
+
return () => {
|
|
326
|
+
if (unsubscribed) {
|
|
327
|
+
// there is no harm in calling this multiple times to unsubscribe,
|
|
328
|
+
// but anything after the first call is a no-op
|
|
329
|
+
return;
|
|
330
|
+
}
|
|
331
|
+
unsubscribed = true;
|
|
332
|
+
subscription.remove();
|
|
333
|
+
this._configUpdateListenerCount--;
|
|
334
|
+
if (this._configUpdateListenerCount === 0) {
|
|
335
|
+
this.native.removeConfigUpdateRegistration();
|
|
336
|
+
}
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
_updateFromConstants(constants) {
|
|
340
|
+
// Wrapped this as we update using sync getters initially for `defaultConfig` & `settings`
|
|
341
|
+
if (constants.lastFetchTime !== undefined) {
|
|
342
|
+
this._lastFetchTime = constants.lastFetchTime;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
// Wrapped this as we update using sync getters initially for `defaultConfig` & `settings`
|
|
346
|
+
if (constants.lastFetchStatus !== undefined) {
|
|
347
|
+
this._lastFetchStatus = constants.lastFetchStatus;
|
|
348
|
+
}
|
|
349
|
+
if (constants.fetchTimeout !== undefined && constants.minimumFetchInterval !== undefined) {
|
|
350
|
+
this._settings = {
|
|
351
|
+
fetchTimeoutMillis: constants.fetchTimeout * 1000,
|
|
352
|
+
minimumFetchIntervalMillis: constants.minimumFetchInterval * 1000
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
if (constants.values !== undefined) {
|
|
356
|
+
this._values = Object.freeze(constants.values);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
_promiseWithConstants(promise) {
|
|
360
|
+
return promise.then(({
|
|
361
|
+
result,
|
|
362
|
+
constants
|
|
363
|
+
}) => {
|
|
364
|
+
this._updateFromConstants(constants);
|
|
365
|
+
return result;
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
_enqueueNativeMutation(task) {
|
|
369
|
+
// Some callers (like property setters) discard the returned promise; serialize all mutations
|
|
370
|
+
// so later writes like reset() cannot be overwritten by an earlier async completion.
|
|
371
|
+
const next = this._nativeMutationQueue.then(task, task);
|
|
372
|
+
this._nativeMutationQueue = next.then(() => undefined, () => undefined);
|
|
373
|
+
return next;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
const config = {
|
|
377
|
+
namespace,
|
|
378
|
+
nativeModuleName,
|
|
379
|
+
nativeEvents: ['on_config_updated'],
|
|
380
|
+
hasMultiAppSupport: true,
|
|
381
|
+
hasCustomUrlOrRegionSupport: false,
|
|
382
|
+
turboModule: true
|
|
383
|
+
};
|
|
384
|
+
export { LastFetchStatus, ValueSource };
|
|
385
|
+
export const SDK_VERSION = version;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Returns a RemoteConfig instance for the given app.
|
|
389
|
+
* @param app - FirebaseApp. Optional.
|
|
390
|
+
*/
|
|
391
|
+
export function getRemoteConfig(app, options) {
|
|
392
|
+
void options;
|
|
393
|
+
return getOrCreateModularInstance(FirebaseConfigModule, config, app);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* Returns a Boolean which resolves to true if the current call
|
|
398
|
+
* activated the fetched configs.
|
|
399
|
+
*/
|
|
400
|
+
export function activate(remoteConfig) {
|
|
401
|
+
return rc(remoteConfig).activate();
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* Ensures the last activated config are available to the getters.
|
|
406
|
+
*/
|
|
407
|
+
export function ensureInitialized(remoteConfig) {
|
|
408
|
+
return rc(remoteConfig).ensureInitialized();
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Performs a fetch and returns a Boolean which resolves to true
|
|
413
|
+
* if the current call activated the fetched configs.
|
|
414
|
+
*/
|
|
415
|
+
export function fetchAndActivate(remoteConfig) {
|
|
416
|
+
return rc(remoteConfig).fetchAndActivate();
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Fetches and caches configuration from the Remote Config service.
|
|
421
|
+
*/
|
|
422
|
+
export function fetchConfig(remoteConfig) {
|
|
423
|
+
return rc(remoteConfig).fetch();
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Gets all config.
|
|
428
|
+
*/
|
|
429
|
+
export function getAll(remoteConfig) {
|
|
430
|
+
return rc(remoteConfig).getAll();
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* Gets the value for the given key as a boolean.
|
|
435
|
+
*/
|
|
436
|
+
export function getBoolean(remoteConfig, key) {
|
|
437
|
+
return rc(remoteConfig).getBoolean(key);
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* Gets the value for the given key as a number.
|
|
442
|
+
*/
|
|
443
|
+
export function getNumber(remoteConfig, key) {
|
|
444
|
+
return rc(remoteConfig).getNumber(key);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Gets the value for the given key as a string.
|
|
449
|
+
*/
|
|
450
|
+
export function getString(remoteConfig, key) {
|
|
451
|
+
return rc(remoteConfig).getString(key);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Gets the value for the given key.
|
|
456
|
+
*/
|
|
457
|
+
export function getValue(remoteConfig, key) {
|
|
458
|
+
return rc(remoteConfig).getValue(key);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* Defines the log level to use.
|
|
463
|
+
*/
|
|
464
|
+
export function setLogLevel(remoteConfig, logLevel) {
|
|
465
|
+
void remoteConfig;
|
|
466
|
+
void logLevel;
|
|
467
|
+
// Intentionally ignored on native. The modular API matches the JS SDK and returns void.
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Checks two different things.
|
|
472
|
+
* 1. Check if IndexedDB exists in the browser environment.
|
|
473
|
+
* 2. Check if the current browser context allows IndexedDB open() calls.
|
|
474
|
+
*/
|
|
475
|
+
export function isSupported() {
|
|
476
|
+
// always return "true" for now. Web only.
|
|
477
|
+
return Promise.resolve(true);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* Deletes all activated, fetched and defaults configs and
|
|
482
|
+
* resets all Firebase Remote Config settings.
|
|
483
|
+
*
|
|
484
|
+
* @remarks **Android only.** iOS does not clear activated, fetched, or default configs.
|
|
485
|
+
*/
|
|
486
|
+
export function reset(remoteConfig) {
|
|
487
|
+
return rc(remoteConfig).reset();
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* Sets defaults based on a native resource file.
|
|
492
|
+
*
|
|
493
|
+
* @remarks Loads defaults from a platform resource — iOS `.plist` or Android XML — identified
|
|
494
|
+
* by `resourceName`. No firebase-js-sdk modular equivalent.
|
|
495
|
+
*/
|
|
496
|
+
export function setDefaultsFromResource(remoteConfig, resourceName) {
|
|
497
|
+
return rc(remoteConfig).setDefaultsFromResource(resourceName);
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* Registers a listener to changes in the configuration.
|
|
502
|
+
*
|
|
503
|
+
*/
|
|
504
|
+
export function onConfigUpdate(remoteConfig, observer) {
|
|
505
|
+
return rc(remoteConfig).onConfigUpdate(observer);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* Sets the custom signals for the app instance.
|
|
510
|
+
*/
|
|
511
|
+
export async function setCustomSignals(remoteConfig, customSignals) {
|
|
512
|
+
for (const [key, value] of Object.entries(customSignals)) {
|
|
513
|
+
if (typeof value !== 'string' && typeof value !== 'number' && value !== null) {
|
|
514
|
+
throw new Error(`firebase.remoteConfig().setCustomSignals(): Invalid type for custom signal '${key}': ${typeof value}. Expected 'string', 'number', or 'null'.`);
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
return rc(remoteConfig)._promiseWithConstants(rc(remoteConfig).native.setCustomSignals(customSignals));
|
|
518
|
+
}
|
|
519
|
+
// Register the interop module for non-native platforms.
|
|
520
|
+
setReactNativeModule(nativeModuleName, fallBackModule);
|
|
27
521
|
//# sourceMappingURL=index.js.map
|
package/dist/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SDK_VERSION","firebase","default"],"sourceRoot":"../../lib","sources":["index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,cAAc,cAAW;;AAGzB;;AAEA,SAASA,WAAW,EAAEC,QAAQ,QAAQ,iBAAc;AACpD,SAASC,OAAO,QAAQ,iBAAc","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["hasOwnProperty","isFunction","isIOS","isNumber","isObject","isString","isUndefined","parseListenerOrObserver","FirebaseModule","getOrCreateModularInstance","NativeFirebaseError","setReactNativeModule","RemoteConfigValue","LastFetchStatus","ValueSource","version","fallBackModule","namespace","nativeModuleName","isSuccessEvent","event","resultType","toConfigUpdate","updatedKeys","getUpdatedKeys","Set","toNativeFirebaseError","errorEvent","fromEvent","rc","remoteConfig","FirebaseConfigModule","constructor","app","config","customUrlOrRegion","_settings","fetchTimeoutMillis","minimumFetchIntervalMillis","_lastFetchTime","_lastFetchStatus","_values","_configUpdateListenerCount","_nativeMutationQueue","Promise","resolve","defaultConfig","updatedDefaultConfig","Object","keys","forEach","key","configValue","value","defaults","Error","nonDefaultValues","fromEntries","entries","filter","source","freeze","map","setDefaults","settings","fetchTimeMillis","undefined","setConfigSettings","getValue","getBoolean","asBoolean","getNumber","asNumber","getString","asString","getAll","values","lastFetchStatus","reset","_enqueueNativeMutation","_promiseWithConstants","native","fromSettingsSetter","updatedSettings","fetchTimeout","minimumFetchInterval","apiCalled","nextSettings","then","result","constants","_updateFromConstants","activate","fetch","expirationDurationSeconds","fetchAndActivate","ensureInitialized","fromDefaultConfigSetter","setDefaultsFromResource","resourceName","onConfigUpdate","observer","next","error","unsubscribed","subscription","emitter","addListener","eventNameForApp","onConfigUpdated","remove","removeConfigUpdateRegistration","listenerOrObserver","listener","code","message","nativeErrorMessage","lastFetchTime","promise","task","nativeEvents","hasMultiAppSupport","hasCustomUrlOrRegionSupport","turboModule","SDK_VERSION","getRemoteConfig","options","fetchConfig","setLogLevel","logLevel","isSupported","setCustomSignals","customSignals"],"sourceRoot":"../../lib","sources":["index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SACEA,cAAc,EACdC,UAAU,EACVC,KAAK,EACLC,QAAQ,EACRC,QAAQ,EACRC,QAAQ,EACRC,WAAW,EACXC,uBAAuB,QAClB,+CAA+C;AAEtD,SACEC,cAAc,EACdC,0BAA0B,QACrB,iDAAiD;AAExD,OAAOC,mBAAmB,MAAM,qEAAqE;AACrG,SAASC,oBAAoB,QAAQ,8DAA8D;AAEnG,OAAOC,iBAAiB,MAAM,wBAAqB;AACnD,SAASC,eAAe,EAAEC,WAAW,QAAQ,cAAW;A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A,CACpCrG,YAA0B,EAC1BsG,aAA4B,EACb;EACf,KAAK,MAAM,CAACjF,GAAG,EAAEE,KAAK,CAAC,IAAIL,MAAM,CAACU,OAAO,CAAC0E,aAAa,CAAC,EAAE;IACxD,IAAI,OAAO/E,KAAK,KAAK,QAAQ,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAIA,KAAK,KAAK,IAAI,EAAE;MAC5E,MAAM,IAAIE,KAAK,CACb,+EAA+EJ,GAAG,MAAM,OAAOE,KAAK,2CACtG,CAAC;IACH;EACF;EAEA,OAAOxB,EAAE,CAACC,YAAY,CAAC,CAACkD,qBAAqB,CAC3CnD,EAAE,CAACC,YAAY,CAAC,CAACmD,MAAM,CAACkD,gBAAgB,CAACC,aAAa,CACxD,CAAC;AACH;AAkBA;AACAzH,oBAAoB,CAACO,gBAAgB,EAAEF,cAAoD,CAAC","ignoreList":[]}
|
package/dist/module/version.js
CHANGED
|
@@ -1,6 +1,84 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export {
|
|
1
|
+
import type { FirebaseApp } from '@react-native-firebase/app';
|
|
2
|
+
import { LastFetchStatus, ValueSource } from './statics';
|
|
3
|
+
import type { ConfigUpdateObserver, CustomSignals, LogLevel, RemoteConfig, RemoteConfigOptions, Unsubscribe, Value } from './types/remote-config';
|
|
4
|
+
import './types/internal';
|
|
5
|
+
export { LastFetchStatus, ValueSource };
|
|
6
|
+
export declare const SDK_VERSION = "26.1.0";
|
|
7
|
+
/**
|
|
8
|
+
* Returns a RemoteConfig instance for the given app.
|
|
9
|
+
* @param app - FirebaseApp. Optional.
|
|
10
|
+
*/
|
|
11
|
+
export declare function getRemoteConfig(app?: FirebaseApp, options?: RemoteConfigOptions): RemoteConfig;
|
|
12
|
+
/**
|
|
13
|
+
* Returns a Boolean which resolves to true if the current call
|
|
14
|
+
* activated the fetched configs.
|
|
15
|
+
*/
|
|
16
|
+
export declare function activate(remoteConfig: RemoteConfig): Promise<boolean>;
|
|
17
|
+
/**
|
|
18
|
+
* Ensures the last activated config are available to the getters.
|
|
19
|
+
*/
|
|
20
|
+
export declare function ensureInitialized(remoteConfig: RemoteConfig): Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Performs a fetch and returns a Boolean which resolves to true
|
|
23
|
+
* if the current call activated the fetched configs.
|
|
24
|
+
*/
|
|
25
|
+
export declare function fetchAndActivate(remoteConfig: RemoteConfig): Promise<boolean>;
|
|
26
|
+
/**
|
|
27
|
+
* Fetches and caches configuration from the Remote Config service.
|
|
28
|
+
*/
|
|
29
|
+
export declare function fetchConfig(remoteConfig: RemoteConfig): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* Gets all config.
|
|
32
|
+
*/
|
|
33
|
+
export declare function getAll(remoteConfig: RemoteConfig): Record<string, Value>;
|
|
34
|
+
/**
|
|
35
|
+
* Gets the value for the given key as a boolean.
|
|
36
|
+
*/
|
|
37
|
+
export declare function getBoolean(remoteConfig: RemoteConfig, key: string): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Gets the value for the given key as a number.
|
|
40
|
+
*/
|
|
41
|
+
export declare function getNumber(remoteConfig: RemoteConfig, key: string): number;
|
|
42
|
+
/**
|
|
43
|
+
* Gets the value for the given key as a string.
|
|
44
|
+
*/
|
|
45
|
+
export declare function getString(remoteConfig: RemoteConfig, key: string): string;
|
|
46
|
+
/**
|
|
47
|
+
* Gets the value for the given key.
|
|
48
|
+
*/
|
|
49
|
+
export declare function getValue(remoteConfig: RemoteConfig, key: string): Value;
|
|
50
|
+
/**
|
|
51
|
+
* Defines the log level to use.
|
|
52
|
+
*/
|
|
53
|
+
export declare function setLogLevel(remoteConfig: RemoteConfig, logLevel: LogLevel): void;
|
|
54
|
+
/**
|
|
55
|
+
* Checks two different things.
|
|
56
|
+
* 1. Check if IndexedDB exists in the browser environment.
|
|
57
|
+
* 2. Check if the current browser context allows IndexedDB open() calls.
|
|
58
|
+
*/
|
|
59
|
+
export declare function isSupported(): Promise<boolean>;
|
|
60
|
+
/**
|
|
61
|
+
* Deletes all activated, fetched and defaults configs and
|
|
62
|
+
* resets all Firebase Remote Config settings.
|
|
63
|
+
*
|
|
64
|
+
* @remarks **Android only.** iOS does not clear activated, fetched, or default configs.
|
|
65
|
+
*/
|
|
66
|
+
export declare function reset(remoteConfig: RemoteConfig): Promise<void>;
|
|
67
|
+
/**
|
|
68
|
+
* Sets defaults based on a native resource file.
|
|
69
|
+
*
|
|
70
|
+
* @remarks Loads defaults from a platform resource — iOS `.plist` or Android XML — identified
|
|
71
|
+
* by `resourceName`. No firebase-js-sdk modular equivalent.
|
|
72
|
+
*/
|
|
73
|
+
export declare function setDefaultsFromResource(remoteConfig: RemoteConfig, resourceName: string): Promise<null>;
|
|
74
|
+
/**
|
|
75
|
+
* Registers a listener to changes in the configuration.
|
|
76
|
+
*
|
|
77
|
+
*/
|
|
78
|
+
export declare function onConfigUpdate(remoteConfig: RemoteConfig, observer: ConfigUpdateObserver): Unsubscribe;
|
|
79
|
+
/**
|
|
80
|
+
* Sets the custom signals for the app instance.
|
|
81
|
+
*/
|
|
82
|
+
export declare function setCustomSignals(remoteConfig: RemoteConfig, customSignals: CustomSignals): Promise<void>;
|
|
83
|
+
export type { ConfigUpdate, ConfigUpdateObserver, CustomSignals, FetchResponse, FetchStatus, FirebaseExperimentDescription, FirebaseRemoteConfigObject, LogLevel, RemoteConfig, RemoteConfigOptions, RemoteConfigSettings, Unsubscribe, Value, } from './types/remote-config';
|
|
6
84
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/index.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAU9D,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE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