Skip to content

Commit 21a1686

Browse files
authored
[v6] Implement ML-Kit Natural Language (#2117)
- Implement ML-Kit Natural Language (#2117) - Includes additional refactor changes across other modules for internals api reworking
1 parent d05473d commit 21a1686

File tree

199 files changed

+8480
-4152
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+8480
-4152
lines changed

CHANGELOG.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -184,16 +184,20 @@ await analytics().setUserId('12345678');
184184

185185
## Remote Config (config)
186186

187-
- [NEW] Added a new `fetchAndActivate` method - this fetches the config and activate it without the need to call `activateFetch()` separately
188-
- [NEW] Added a new `getConfigSettings` method - this provides the following properties; `lastFetchTime`, `lastFetchStatus` & `isDeveloperModeEnabled`
187+
- [NEW] Added a new `fetchAndActivate` method - this fetches the config and activate it without the need to call `activate()` separately
188+
- [NEW] Added the following properties to `firebase.config()`; `lastFetchTime`, `lastFetchStatus` & `isDeveloperModeEnabled`
189189
- [NEW] Added a new `setConfigSettings` method - this allows setting `isDeveloperModeEnabled`, replaces the `enableDeveloperMode` method
190-
- [NEW] Added a new `getValuesByKeysPrefix` method - this will retrieve all values where the key matches the prefix provided, this saves having to call `getKeysByPrefix` and then `getValues` separately
190+
- [NEW] All previous `get* ` methods have been removed and replaced with 2 synchronous methods:
191+
- `getValue(key: string): ConfigValue` - returns a single configuration value `{ value, source }`
192+
- `getAll(): ConfigValues` - returns all configuration values e.g. `{ some_key: { value, source }, other_key: { value, source } }`
191193
- [BREAKING] `setDefaultsFromResource` now returns a Promise that resolves when completed, this will reject with code `config/resouce_not_found` if the file could not be found
192194
- [BREAKING] `setDefaultsFromResource` now expects a resource file name for Android to match iOS, formerly this required a resource id (something you would not have in RN as this was generated at build time by Android)
193195
- We're writing up a guide for this on the new documentation website, showing how to use the plist/xml defaults files on each platform
194196
- [BREAKING] `enableDeveloperMode` has been removed, you can now use `setConfigSettings({ isDeveloperModeEnabled: boolean })` instead
195197
- [BREAKING] `setDefaults` now returns a Promise that resolves when completed
196198

199+
Multi-apps is not yet supported as the Firebase iOS SDK is missing support for it.
200+
197201
## Storage
198202

199203
<!-- TODO(salakar) change link -->

0 commit comments

Comments
 (0)