@react-native-firebase/ml 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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
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
+ ### Bug Fixes
9
+
10
+ - **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))
11
+
12
+ ## [26.2.0](https://github.com/invertase/react-native-firebase/compare/v26.1.0...v26.2.0) (2026-08-10)
13
+
14
+ ### Bug Fixes
15
+
16
+ - codegen should be wipe-then-regen ([04bc4e4](https://github.com/invertase/react-native-firebase/commit/04bc4e4cdab9870cb366fd212b2ccb331b0289d6))
17
+
6
18
  ## [26.1.0](https://github.com/invertase/react-native-firebase/compare/v26.0.0...v26.1.0) (2026-08-03)
7
19
 
8
20
  ### Features
package/RNFBML.podspec CHANGED
@@ -34,6 +34,15 @@ Pod::Spec.new do |s|
34
34
  s.private_header_files = "ios/**/*.h"
35
35
  s.exclude_files = 'ios/generated/RCTThirdPartyComponentsProvider.*', 'ios/generated/RCTAppDependencyProvider.*', 'ios/generated/RCTModuleProviders.*', 'ios/generated/RCTModulesConformingToProtocolsProvider.*', 'ios/generated/RCTUnstableModulesRequiringMainQueueSetupProvider.*'
36
36
 
37
+ # Must be set before install_modules_dependencies so RN can append use_frameworks
38
+ # HEADER_SEARCH_PATHS (React-debug etc.). Assigning after overwrites those paths
39
+ # and breaks from-source builds: react/timing/primitives.h → react/debug/flags.h.
40
+ # CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES is required so the
41
+ # framework module validates when consumers build with use_frameworks!.
42
+ s.pod_target_xcconfig = {
43
+ "CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES" => "YES",
44
+ }
45
+
37
46
  s.dependency 'RNFBApp'
38
47
 
39
48
  install_modules_dependencies(s);
@@ -25,12 +25,4 @@ target_link_libraries(
25
25
  reactnative
26
26
  )
27
27
 
28
- target_compile_options(
29
- react_codegen_RNFBMLTurboModules
30
- PRIVATE
31
- -DLOG_TAG=\"ReactNative\"
32
- -fexceptions
33
- -frtti
34
- -std=c++20
35
- -Wall
36
- )
28
+ target_compile_reactnative_options(react_codegen_RNFBMLTurboModules PRIVATE)
@@ -15,50 +15,18 @@
15
15
  namespace facebook::react {
16
16
 
17
17
 
18
- class JSI_EXPORT NativeRNFBTurboMLCxxSpecJSI : public TurboModule {
19
- protected:
20
- NativeRNFBTurboMLCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
21
-
22
- public:
23
-
24
-
25
- };
26
-
27
18
  template <typename T>
28
19
  class JSI_EXPORT NativeRNFBTurboMLCxxSpec : public TurboModule {
29
20
  public:
30
- jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
31
- return delegate_.create(rt, propName);
32
- }
33
-
34
- std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& runtime) override {
35
- return delegate_.getPropertyNames(runtime);
36
- }
37
-
38
21
  static constexpr std::string_view kModuleName = "NativeRNFBTurboML";
39
22
 
40
23
  protected:
41
- NativeRNFBTurboMLCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
42
- : TurboModule(std::string{NativeRNFBTurboMLCxxSpec::kModuleName}, jsInvoker),
43
- delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
44
-
24
+ NativeRNFBTurboMLCxxSpec(std::shared_ptr<CallInvoker> jsInvoker) : TurboModule(std::string{NativeRNFBTurboMLCxxSpec::kModuleName}, jsInvoker) {
45
25
 
26
+ }
27
+
46
28
  private:
47
- class Delegate : public NativeRNFBTurboMLCxxSpecJSI {
48
- public:
49
- Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
50
- NativeRNFBTurboMLCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {
51
-
52
- }
53
-
54
-
55
-
56
- private:
57
- friend class NativeRNFBTurboMLCxxSpec;
58
- T *instance_;
59
- };
60
29
 
61
- Delegate delegate_;
62
30
  };
63
31
 
64
32
  } // namespace facebook::react
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
 
3
3
  // Generated by genversion.
4
- export const version = '26.1.0';
4
+ export const version = '26.3.0';
5
5
  //# sourceMappingURL=version.js.map
@@ -5,7 +5,7 @@ import type { FirebaseApp, FirebaseML } from './types/ml';
5
5
  *
6
6
  * The firebase-js-sdk does not ship a `firebase/ml` modular entry point or `SDK_VERSION` export.
7
7
  */
8
- export declare const SDK_VERSION = "26.1.0";
8
+ export declare const SDK_VERSION = "26.3.0";
9
9
  /**
10
10
  * Returns the {@link FirebaseML} instance for the default or given {@link FirebaseApp}.
11
11
  *
@@ -1,2 +1,2 @@
1
- export declare const version = "26.1.0";
1
+ export declare const version = "26.3.0";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -15,50 +15,18 @@
15
15
  namespace facebook::react {
16
16
 
17
17
 
18
- class JSI_EXPORT NativeRNFBTurboMLCxxSpecJSI : public TurboModule {
19
- protected:
20
- NativeRNFBTurboMLCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
21
-
22
- public:
23
-
24
-
25
- };
26
-
27
18
  template <typename T>
28
19
  class JSI_EXPORT NativeRNFBTurboMLCxxSpec : public TurboModule {
29
20
  public:
30
- jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
31
- return delegate_.create(rt, propName);
32
- }
33
-
34
- std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& runtime) override {
35
- return delegate_.getPropertyNames(runtime);
36
- }
37
-
38
21
  static constexpr std::string_view kModuleName = "NativeRNFBTurboML";
39
22
 
40
23
  protected:
41
- NativeRNFBTurboMLCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
42
- : TurboModule(std::string{NativeRNFBTurboMLCxxSpec::kModuleName}, jsInvoker),
43
- delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
44
-
24
+ NativeRNFBTurboMLCxxSpec(std::shared_ptr<CallInvoker> jsInvoker) : TurboModule(std::string{NativeRNFBTurboMLCxxSpec::kModuleName}, jsInvoker) {
45
25
 
26
+ }
27
+
46
28
  private:
47
- class Delegate : public NativeRNFBTurboMLCxxSpecJSI {
48
- public:
49
- Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
50
- NativeRNFBTurboMLCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {
51
-
52
- }
53
-
54
-
55
-
56
- private:
57
- friend class NativeRNFBTurboMLCxxSpec;
58
- T *instance_;
59
- };
60
29
 
61
- Delegate delegate_;
62
30
  };
63
31
 
64
32
  } // namespace facebook::react
package/lib/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '26.1.0';
2
+ export const version = '26.3.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/ml",
3
- "version": "26.1.0",
3
+ "version": "26.3.0",
4
4
  "author": "Invertase <oss@invertase.io> (http://invertase.io)",
5
5
  "description": "React Native Firebase - Firebase ML brings the power of machine learning vision to your React Native application, supporting both Android & iOS.",
6
6
  "main": "./dist/module/index.js",
@@ -25,8 +25,8 @@
25
25
  "compile": "bob build",
26
26
  "prepare": "yarn run build && yarn compile",
27
27
  "codegen": "yarn android:codegen && yarn ios:codegen",
28
- "android:codegen": "npx @react-native-community/cli codegen --platform android --outputPath=./android/src/reactnative/java/io/invertase/firebase/ml/generated",
29
- "ios:codegen": "npx @react-native-community/cli codegen --platform ios --outputPath=./ios/generated"
28
+ "android:codegen": "node ../../scripts/codegen-package.mjs ml android",
29
+ "ios:codegen": "node ../../scripts/codegen-package.mjs ml ios"
30
30
  },
31
31
  "repository": {
32
32
  "type": "git",
@@ -44,14 +44,14 @@
44
44
  "image labeler"
45
45
  ],
46
46
  "peerDependencies": {
47
- "@react-native-firebase/app": "26.1.0"
47
+ "@react-native-firebase/app": "26.3.0"
48
48
  },
49
49
  "publishConfig": {
50
50
  "access": "public",
51
51
  "provenance": true
52
52
  },
53
53
  "devDependencies": {
54
- "@react-native-firebase/app": "26.1.0",
54
+ "@react-native-firebase/app": "26.3.0",
55
55
  "react-native-builder-bob": "^0.41.0"
56
56
  },
57
57
  "exports": {
@@ -84,5 +84,5 @@
84
84
  "node_modules/",
85
85
  "dist/"
86
86
  ],
87
- "gitHead": "59d053eca14ab8aa80e5ac76887014925c67e52b"
87
+ "gitHead": "12a52d40c0d156d05a16f4b49eb0e507c0f5d8c5"
88
88
  }
@@ -1,22 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateModuleCpp.js
8
- */
9
-
10
- #include "RNFBMLTurboModulesJSI.h"
11
-
12
- namespace facebook::react {
13
-
14
-
15
-
16
- NativeRNFBTurboMLCxxSpecJSI::NativeRNFBTurboMLCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
17
- : TurboModule("NativeRNFBTurboML", jsInvoker) {
18
-
19
- }
20
-
21
-
22
- } // namespace facebook::react
@@ -1,25 +0,0 @@
1
- /*
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
-
9
- #import <Foundation/Foundation.h>
10
-
11
- #if __has_include(<React-RCTAppDelegate/RCTDependencyProvider.h>)
12
- #import <React-RCTAppDelegate/RCTDependencyProvider.h>
13
- #elif __has_include(<React_RCTAppDelegate/RCTDependencyProvider.h>)
14
- #import <React_RCTAppDelegate/RCTDependencyProvider.h>
15
- #else
16
- #import "RCTDependencyProvider.h"
17
- #endif
18
-
19
- NS_ASSUME_NONNULL_BEGIN
20
-
21
- @interface RCTAppDependencyProvider : NSObject <RCTDependencyProvider>
22
-
23
- @end
24
-
25
- NS_ASSUME_NONNULL_END
@@ -1,55 +0,0 @@
1
- /*
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- #import "RCTAppDependencyProvider.h"
9
- #import <ReactCodegen/RCTModulesConformingToProtocolsProvider.h>
10
- #import <ReactCodegen/RCTThirdPartyComponentsProvider.h>
11
-
12
- @implementation RCTAppDependencyProvider {
13
- NSArray<NSString *> * _URLRequestHandlerClassNames;
14
- NSArray<NSString *> * _imageDataDecoderClassNames;
15
- NSArray<NSString *> * _imageURLLoaderClassNames;
16
- NSDictionary<NSString *,Class<RCTComponentViewProtocol>> * _thirdPartyFabricComponents;
17
- }
18
-
19
- - (nonnull NSArray<NSString *> *)URLRequestHandlerClassNames {
20
- static dispatch_once_t requestUrlToken;
21
- dispatch_once(&requestUrlToken, ^{
22
- self->_URLRequestHandlerClassNames = RCTModulesConformingToProtocolsProvider.URLRequestHandlerClassNames;
23
- });
24
-
25
- return _URLRequestHandlerClassNames;
26
- }
27
-
28
- - (nonnull NSArray<NSString *> *)imageDataDecoderClassNames {
29
- static dispatch_once_t dataDecoderToken;
30
- dispatch_once(&dataDecoderToken, ^{
31
- _imageDataDecoderClassNames = RCTModulesConformingToProtocolsProvider.imageDataDecoderClassNames;
32
- });
33
-
34
- return _imageDataDecoderClassNames;
35
- }
36
-
37
- - (nonnull NSArray<NSString *> *)imageURLLoaderClassNames {
38
- static dispatch_once_t urlLoaderToken;
39
- dispatch_once(&urlLoaderToken, ^{
40
- _imageURLLoaderClassNames = RCTModulesConformingToProtocolsProvider.imageURLLoaderClassNames;
41
- });
42
-
43
- return _imageURLLoaderClassNames;
44
- }
45
-
46
- - (nonnull NSDictionary<NSString *,Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents {
47
- static dispatch_once_t nativeComponentsToken;
48
- dispatch_once(&nativeComponentsToken, ^{
49
- _thirdPartyFabricComponents = RCTThirdPartyComponentsProvider.thirdPartyFabricComponents;
50
- });
51
-
52
- return _thirdPartyFabricComponents;
53
- }
54
-
55
- @end
@@ -1,18 +0,0 @@
1
- /*
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- #import <Foundation/Foundation.h>
9
-
10
- @interface RCTModulesConformingToProtocolsProvider: NSObject
11
-
12
- +(NSArray<NSString *> *)imageURLLoaderClassNames;
13
-
14
- +(NSArray<NSString *> *)imageDataDecoderClassNames;
15
-
16
- +(NSArray<NSString *> *)URLRequestHandlerClassNames;
17
-
18
- @end
@@ -1,33 +0,0 @@
1
- /*
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- #import "RCTModulesConformingToProtocolsProvider.h"
9
-
10
- @implementation RCTModulesConformingToProtocolsProvider
11
-
12
- +(NSArray<NSString *> *)imageURLLoaderClassNames
13
- {
14
- return @[
15
-
16
- ];
17
- }
18
-
19
- +(NSArray<NSString *> *)imageDataDecoderClassNames
20
- {
21
- return @[
22
-
23
- ];
24
- }
25
-
26
- +(NSArray<NSString *> *)URLRequestHandlerClassNames
27
- {
28
- return @[
29
-
30
- ];
31
- }
32
-
33
- @end
@@ -1,16 +0,0 @@
1
- /*
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- #import <Foundation/Foundation.h>
9
-
10
- @protocol RCTComponentViewProtocol;
11
-
12
- @interface RCTThirdPartyComponentsProvider: NSObject
13
-
14
- + (NSDictionary<NSString *, Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents;
15
-
16
- @end
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
-
9
- #import <Foundation/Foundation.h>
10
-
11
- #import "RCTThirdPartyComponentsProvider.h"
12
- #import <React/RCTComponentViewProtocol.h>
13
-
14
- @implementation RCTThirdPartyComponentsProvider
15
-
16
- + (NSDictionary<NSString *, Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents
17
- {
18
- return @{
19
-
20
- };
21
- }
22
-
23
- @end
@@ -1,22 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateModuleCpp.js
8
- */
9
-
10
- #include "RNFBMLTurboModulesJSI.h"
11
-
12
- namespace facebook::react {
13
-
14
-
15
-
16
- NativeRNFBTurboMLCxxSpecJSI::NativeRNFBTurboMLCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
17
- : TurboModule("NativeRNFBTurboML", jsInvoker) {
18
-
19
- }
20
-
21
-
22
- } // namespace facebook::react
@@ -1,34 +0,0 @@
1
- # Copyright (c) Meta Platforms, Inc. and affiliates.
2
- #
3
- # This source code is licensed under the MIT license found in the
4
- # LICENSE file in the root directory of this source tree.
5
-
6
- version = "0.78.3"
7
- source = { :git => 'https://github.com/facebook/react-native.git' }
8
- if version == '1000.0.0'
9
- # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
10
- source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
11
- else
12
- source[:tag] = "v#{version}"
13
- end
14
-
15
- Pod::Spec.new do |s|
16
- s.name = "ReactAppDependencyProvider"
17
- s.version = version
18
- s.summary = "The third party dependency provider for the app"
19
- s.homepage = "https://reactnative.dev/"
20
- s.documentation_url = "https://reactnative.dev/"
21
- s.license = "MIT"
22
- s.author = "Meta Platforms, Inc. and its affiliates"
23
- s.platforms = min_supported_versions
24
- s.source = source
25
- s.source_files = "**/RCTAppDependencyProvider.{h,mm}"
26
-
27
- # This guard prevent to install the dependencies when we run `pod install` in the old architecture.
28
- s.pod_target_xcconfig = {
29
- "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
30
- "DEFINES_MODULE" => "YES"
31
- }
32
-
33
- s.dependency "ReactCodegen"
34
- end