@react-native-firebase/app 26.4.0 → 26.4.1

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 CHANGED
@@ -3,6 +3,13 @@
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.4.1](https://github.com/invertase/react-native-firebase/compare/v26.4.0...v26.4.1) (2026-10-23)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **app, ios:** use compatible Firebase pod requirement on CocoaPods ([1c5e5af](https://github.com/invertase/react-native-firebase/commit/1c5e5af0c81c8373c08ec50c82db1d9f29267e98))
11
+ - **app, sdk:** bump Firebase iOS SDK to 12.19.3 ([ea21e82](https://github.com/invertase/react-native-firebase/commit/ea21e82393328100eb3f662a44245db27cc87b51))
12
+
6
13
  ## [26.4.0](https://github.com/invertase/react-native-firebase/compare/v26.3.3...v26.4.0) (2026-09-05)
7
14
 
8
15
  ### Features
@@ -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.4.0";
21
+ public static String VERSION = "26.4.1";
22
22
  }
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
 
3
3
  // Generated by genversion.
4
- export const version = '26.4.0';
4
+ export const version = '26.4.1';
5
5
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- export declare const version = "26.4.0";
1
+ export declare const version = "26.4.1";
2
2
  //# sourceMappingURL=version.d.ts.map
package/firebase_spm.rb CHANGED
@@ -76,6 +76,18 @@ module RNFirebaseSPM
76
76
  end
77
77
  end
78
78
 
79
+ # Default Firebase iOS SDK version (`sdkVersions.ios.firebase`) from the
80
+ # app's own package.json, cached like `url`. Used by
81
+ # `rnfirebase_cocoapods_requirement` to tell the shipped default apart
82
+ # from a version the user pinned themselves.
83
+ def default_version
84
+ @default_version ||= begin
85
+ app_package_path = File.join(__dir__, 'package.json')
86
+ app_package = JSON.parse(File.read(app_package_path))
87
+ app_package['sdkVersions']['ios']['firebase']
88
+ end
89
+ end
90
+
79
91
  # Records that `firebase_dependency` (below) took the SPM path for at
80
92
  # least one podspec in this install, and which Firebase SDK `version` it
81
93
  # resolved with. Called once, from `firebase_dependency` itself, the
@@ -133,6 +145,7 @@ module RNFirebaseSPM
133
145
  @active = nil
134
146
  @version = nil
135
147
  @url = nil
148
+ @default_version = nil
136
149
  end
137
150
  end
138
151
  end
@@ -1200,6 +1213,30 @@ end
1200
1213
 
1201
1214
  rnfirebase_hook_cocoapods_post_install!
1202
1215
 
1216
+ # CocoaPods requirement for a Firebase iOS SDK pod dependency.
1217
+ #
1218
+ # SPM resolves from the firebase-ios-sdk git repo, where every release tags all
1219
+ # products, so an exact version always exists. CocoaPods publishes per pod, and
1220
+ # a patch release only republishes the pods that changed (12.19.3 exists for
1221
+ # `Firebase`, `FirebaseCore` and `FirebaseFirestore` only). An exact
1222
+ # `s.dependency 'FirebaseAnalytics/Core', '12.19.3'` therefore cannot resolve.
1223
+ #
1224
+ # When `version` is the shipped default (`sdkVersions.ios.firebase`), return a
1225
+ # compatible-release requirement for its minor line (`~> 12.19.0`) so each pod
1226
+ # resolves to its newest patch. Any other value is a version the user pinned via
1227
+ # `$FirebaseSDKVersion` / `FIREBASE_SDK_VERSION` and stays an exact pin.
1228
+ #
1229
+ # @param version [String] Firebase SDK version (e.g., '12.19.3')
1230
+ # @return [String] CocoaPods requirement (e.g., '~> 12.19.0') or `version` unchanged
1231
+ def rnfirebase_cocoapods_requirement(version)
1232
+ return version unless version == RNFirebaseSPM.default_version
1233
+
1234
+ match = /\A(\d+)\.(\d+)\.\d+\z/.match(version)
1235
+ return version unless match
1236
+
1237
+ "~> #{match[1]}.#{match[2]}.0"
1238
+ end
1239
+
1203
1240
  # @param spec [Pod::Specification] The podspec object (the `s` in podspec DSL)
1204
1241
  # @param version [String] Firebase SDK version (e.g., '12.10.0')
1205
1242
  # @param spm_products [Array<String>] SPM product names (e.g., ['FirebaseAuth'])
@@ -1228,8 +1265,9 @@ def firebase_dependency(spec, version, spm_products, pods)
1228
1265
  end
1229
1266
  end
1230
1267
  pods = [pods] unless pods.is_a?(Array)
1268
+ requirement = rnfirebase_cocoapods_requirement(version)
1231
1269
  pods.each do |pod|
1232
- spec.dependency pod, version
1270
+ spec.dependency pod, requirement
1233
1271
  end
1234
1272
  end
1235
1273
  end
@@ -18,4 +18,4 @@
18
18
  #import <React/RCTVersion.h>
19
19
 
20
20
  // generated file - do not modify or commit
21
- NSString* const RNFBVersionString = @"26.4.0";
21
+ NSString* const RNFBVersionString = @"26.4.1";
package/lib/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '26.4.0';
2
+ export const version = '26.4.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/app",
3
- "version": "26.4.0",
3
+ "version": "26.4.1",
4
4
  "author": "Invertase <oss@invertase.io> (http://invertase.io)",
5
5
  "description": "A well tested, feature rich Firebase implementation for React Native, supporting iOS & Android. Individual module support for Admob, Analytics, Auth, Crash Reporting, Cloud Firestore, Database, Dynamic Links, Functions, Messaging (FCM), Remote Config, Storage and more.",
6
6
  "main": "./dist/module/index.js",
@@ -131,7 +131,7 @@
131
131
  },
132
132
  "sdkVersions": {
133
133
  "ios": {
134
- "firebase": "12.18.0",
134
+ "firebase": "12.19.3",
135
135
  "firebaseSpmUrl": "https://github.com/firebase/firebase-ios-sdk.git",
136
136
  "iosTarget": "15.0",
137
137
  "macosTarget": "10.15",
@@ -185,5 +185,5 @@
185
185
  }
186
186
  }
187
187
  },
188
- "gitHead": "06701af5fdc19bae9f379567eadb29dfe81953c0"
188
+ "gitHead": "a3efad5f425135a5d2e66857ffae84ebaa02a7ba"
189
189
  }