@react-native-firebase/app 26.1.0 → 26.3.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.
Files changed (58) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +14 -0
  3. package/RNFBApp.podspec +5 -1
  4. package/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseVersion.java +1 -1
  5. package/android/src/reactnative/java/io/invertase/firebase/app/generated/java/com/facebook/fbreact/specs/NativeRNFBTurboUtilsSpec.java +2 -1
  6. package/android/src/reactnative/java/io/invertase/firebase/app/generated/jni/CMakeLists.txt +1 -9
  7. package/android/src/reactnative/java/io/invertase/firebase/app/generated/jni/react/renderer/components/RNFBAppTurboModules/RNFBAppTurboModulesJSI.h +205 -292
  8. package/android/src/reactnative/java/io/invertase/firebase/utils/NativeRNFBTurboUtils.java +15 -0
  9. package/android/src/test/java/io/invertase/firebase/utils/NativeRNFBTurboUtilsTest.java +120 -0
  10. package/dist/module/types/app.js.map +1 -1
  11. package/dist/module/utils/index.js +13 -1
  12. package/dist/module/utils/index.js.map +1 -1
  13. package/dist/module/version.js +1 -1
  14. package/dist/typescript/lib/internal/NativeModules.d.ts +2 -0
  15. package/dist/typescript/lib/internal/NativeModules.d.ts.map +1 -1
  16. package/dist/typescript/lib/types/app.d.ts +5 -0
  17. package/dist/typescript/lib/types/app.d.ts.map +1 -1
  18. package/dist/typescript/lib/utils/index.d.ts.map +1 -1
  19. package/dist/typescript/lib/version.d.ts +1 -1
  20. package/firebase_json.rb +11 -10
  21. package/firebase_spm.rb +186 -110
  22. package/ios/RNFBApp/RNFBUtilsModule.mm +10 -2
  23. package/ios/RNFBApp/RNFBVersion.m +1 -1
  24. package/ios/generated/RNFBAppTurboModules/RNFBAppTurboModules.h +7 -4
  25. package/ios/generated/RNFBAppTurboModulesJSI.h +205 -292
  26. package/lib/internal/NativeModules.ts +2 -0
  27. package/lib/types/app.ts +5 -0
  28. package/lib/utils/index.ts +13 -1
  29. package/lib/version.ts +1 -1
  30. package/package.json +8 -9
  31. package/plugin/build/index.d.ts +2 -1
  32. package/plugin/build/index.js +2 -1
  33. package/plugin/build/ios/index.d.ts +2 -1
  34. package/plugin/build/ios/index.js +3 -1
  35. package/plugin/build/ios/podfile.d.ts +4 -0
  36. package/plugin/build/ios/podfile.js +32 -0
  37. package/plugin/build/pluginConfig.d.ts +12 -0
  38. package/plugin/build/pluginConfig.js +2 -0
  39. package/plugin/src/index.ts +4 -2
  40. package/plugin/src/ios/index.ts +2 -1
  41. package/plugin/src/ios/podfile.ts +40 -0
  42. package/plugin/src/pluginConfig.ts +13 -0
  43. package/plugin/tsconfig.tsbuildinfo +1 -1
  44. package/specs/NativeRNFBTurboUtils.ts +2 -0
  45. package/android/src/reactnative/java/io/invertase/firebase/app/generated/jni/react/renderer/components/RNFBAppTurboModules/RNFBAppTurboModulesJSI-generated.cpp +0 -187
  46. package/ios/generated/RCTAppDependencyProvider.h +0 -25
  47. package/ios/generated/RCTAppDependencyProvider.mm +0 -55
  48. package/ios/generated/RCTModuleProviders.h +0 -16
  49. package/ios/generated/RCTModuleProviders.mm +0 -52
  50. package/ios/generated/RCTModulesConformingToProtocolsProvider.h +0 -18
  51. package/ios/generated/RCTModulesConformingToProtocolsProvider.mm +0 -33
  52. package/ios/generated/RCTThirdPartyComponentsProvider.h +0 -16
  53. package/ios/generated/RCTThirdPartyComponentsProvider.mm +0 -23
  54. package/ios/generated/RCTUnstableModulesRequiringMainQueueSetupProvider.h +0 -14
  55. package/ios/generated/RCTUnstableModulesRequiringMainQueueSetupProvider.mm +0 -19
  56. package/ios/generated/RNFBAppTurboModulesJSI-generated.cpp +0 -187
  57. package/ios/generated/ReactAppDependencyProvider.podspec +0 -34
  58. package/ios/generated/ReactCodegen.podspec +0 -111
package/CHANGELOG.md CHANGED
@@ -3,6 +3,31 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [26.3.0](https://github.com/invertase/react-native-firebase/compare/v26.2.0...v26.3.0) (2026-08-20)
7
+
8
+ ### Features
9
+
10
+ - **ai:** send X-Firebase-AppVersion when data collection enabled ([#9173](https://github.com/invertase/react-native-firebase/issues/9173)) ([ad06531](https://github.com/invertase/react-native-firebase/commit/ad065319b1014dcf53168a1a9f2c9daa0fd40eca))
11
+
12
+ ### Bug Fixes
13
+
14
+ - **app, sdks:** adopt native SDK ios 12.18.0, android 34.18.0, js 12.17.1 ([2373421](https://github.com/invertase/react-native-firebase/commit/2373421579cfbfc1c543946e55d0c057e1bc1c6f))
15
+ - **ios:** allow non-modular React includes in RNFB podspecs ([#9200](https://github.com/invertase/react-native-firebase/issues/9200)) ([dd453ff](https://github.com/invertase/react-native-firebase/commit/dd453ff17a8bd645b9d0eb56bef74df53f217f93))
16
+
17
+ ## [26.2.0](https://github.com/invertase/react-native-firebase/compare/v26.1.0...v26.2.0) (2026-08-10)
18
+
19
+ ### Features
20
+
21
+ - **app, ios:** support disabling SPM via Expo config plugin ([9fbf0a0](https://github.com/invertase/react-native-firebase/commit/9fbf0a0f3f9cbdcc8a8f750aef9100775a7fd7e6))
22
+
23
+ ### Bug Fixes
24
+
25
+ - **auth, ios:** match signInWithCustomToken selector to generated TurboModule spec ([#9146](https://github.com/invertase/react-native-firebase/issues/9146)) ([b674be7](https://github.com/invertase/react-native-firebase/commit/b674be7126f3e5a24cfdc1b0f70ab53cafcc8998))
26
+ - codegen should be wipe-then-regen ([04bc4e4](https://github.com/invertase/react-native-firebase/commit/04bc4e4cdab9870cb366fd212b2ccb331b0289d6))
27
+ - **ios:** link FirebaseCore into app target under SPM ([8d937c6](https://github.com/invertase/react-native-firebase/commit/8d937c61235cc51d0646885cb7da704365090ce8)), closes [#9158](https://github.com/invertase/react-native-firebase/issues/9158)
28
+ - **ios:** skip static frameworks in SPM archive embed phase ([#9155](https://github.com/invertase/react-native-firebase/issues/9155)) ([442f9d5](https://github.com/invertase/react-native-firebase/commit/442f9d563d07250a5c7b6e7ac5f305509210a8c7))
29
+ - results of running wipe-then-regen codegen ([1e008d1](https://github.com/invertase/react-native-firebase/commit/1e008d10b84ff2c1c1f1798c79b0bcc135bf620b))
30
+
6
31
  ## [26.1.0](https://github.com/invertase/react-native-firebase/compare/v26.0.0...v26.1.0) (2026-08-03)
7
32
 
8
33
  ### Features
package/README.md CHANGED
@@ -51,6 +51,20 @@ To use CocoaPods instead, add this before any target block in your Podfile:
51
51
  $RNFirebaseDisableSPM = true
52
52
  ```
53
53
 
54
+ Expo projects can set the same flag through the config plugin, which adds it
55
+ to the generated Podfile during prebuild:
56
+
57
+ ```json
58
+ [
59
+ "@react-native-firebase/app",
60
+ {
61
+ "ios": {
62
+ "disableSPM": true
63
+ }
64
+ }
65
+ ]
66
+ ```
67
+
54
68
  CocoaPods mode supports static or dynamic linkage. React Native versions older
55
69
  than 0.75 fall back to CocoaPods automatically.
56
70
 
package/RNFBApp.podspec CHANGED
@@ -33,9 +33,13 @@ Pod::Spec.new do |s|
33
33
  raise "#{s.name} requires New Architecture. Enable New Architecture to use this module"
34
34
  end
35
35
 
36
- # App must define modules for static framework integration of other packages to work
36
+ # App must define modules for static framework integration of other packages to work.
37
+ # CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES is required so RNFB's umbrella,
38
+ # which re-exports <React/...> imports, validates when consumers build with use_frameworks!
39
+ # (the default on Expo, and required for the firebase-ios-sdk).
37
40
  s.pod_target_xcconfig = {
38
41
  "DEFINES_MODULE" => "YES",
42
+ "CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES" => "YES",
39
43
  }
40
44
 
41
45
  # RNFBUtilsModule.mm uses PHAsset (Photos.framework) to resolve local asset paths.
@@ -18,5 +18,5 @@ package io.invertase.firebase.app;
18
18
  */
19
19
  // generated file - do not modify or commit
20
20
  public class ReactNativeFirebaseVersion {
21
- public static String VERSION = "26.1.0";
21
+ public static String VERSION = "26.3.0";
22
22
  }
@@ -59,7 +59,8 @@ public abstract class NativeRNFBTurboUtilsSpec extends ReactContextBaseJavaModul
59
59
  "EXTERNAL_DIRECTORY",
60
60
  "EXTERNAL_STORAGE_DIRECTORY",
61
61
  "FILE_TYPE_DIRECTORY",
62
- "FILE_TYPE_REGULAR"
62
+ "FILE_TYPE_REGULAR",
63
+ "appVersion"
63
64
  ));
64
65
  Set<String> undeclaredConstants = new HashSet<>(constants.keySet());
65
66
  undeclaredConstants.removeAll(obligatoryFlowConstants);
@@ -25,12 +25,4 @@ target_link_libraries(
25
25
  reactnative
26
26
  )
27
27
 
28
- target_compile_options(
29
- react_codegen_RNFBAppTurboModules
30
- PRIVATE
31
- -DLOG_TAG=\"ReactNative\"
32
- -fexceptions
33
- -frtti
34
- -std=c++20
35
- -Wall
36
- )
28
+ target_compile_reactnative_options(react_codegen_RNFBAppTurboModules PRIVATE)