@react-native-firebase/ml 25.0.1 → 26.0.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 (53) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/RNFBML.podspec +7 -6
  3. package/android/build.gradle +19 -0
  4. package/{dist/module/modular.js → android/src/reactnative/java/io/invertase/firebase/ml/NativeRNFBTurboML.java} +7 -13
  5. package/android/src/reactnative/java/io/invertase/firebase/ml/ReactNativeFirebaseMLPackage.java +1 -0
  6. package/android/src/reactnative/java/io/invertase/firebase/ml/generated/java/com/facebook/fbreact/specs/NativeRNFBTurboMLSpec.java +35 -0
  7. package/android/src/reactnative/java/io/invertase/firebase/ml/generated/jni/CMakeLists.txt +36 -0
  8. package/android/src/reactnative/java/io/invertase/firebase/ml/generated/jni/RNFBMLTurboModules-generated.cpp +29 -0
  9. package/android/src/reactnative/java/io/invertase/firebase/ml/generated/jni/RNFBMLTurboModules.h +31 -0
  10. package/android/src/reactnative/java/io/invertase/firebase/ml/generated/jni/react/renderer/components/RNFBMLTurboModules/RNFBMLTurboModulesJSI-generated.cpp +22 -0
  11. package/android/src/reactnative/java/io/invertase/firebase/ml/generated/jni/react/renderer/components/RNFBMLTurboModules/RNFBMLTurboModulesJSI.h +64 -0
  12. package/dist/module/index.js +30 -3
  13. package/dist/module/index.js.map +1 -1
  14. package/dist/module/version.js +1 -1
  15. package/dist/typescript/lib/index.d.ts +15 -4
  16. package/dist/typescript/lib/index.d.ts.map +1 -1
  17. package/dist/typescript/lib/types/internal.d.ts +1 -1
  18. package/dist/typescript/lib/types/internal.d.ts.map +1 -1
  19. package/dist/typescript/lib/version.d.ts +1 -1
  20. package/ios/RNFBML/RNFBMLModule.h +23 -0
  21. package/{lib/modular.ts → ios/RNFBML/RNFBMLModule.mm} +15 -14
  22. package/ios/RNFBML.xcodeproj/project.pbxproj +4 -4
  23. package/ios/generated/RCTAppDependencyProvider.h +25 -0
  24. package/ios/generated/RCTAppDependencyProvider.mm +55 -0
  25. package/ios/generated/RCTModulesConformingToProtocolsProvider.h +18 -0
  26. package/ios/generated/RCTModulesConformingToProtocolsProvider.mm +33 -0
  27. package/ios/generated/RCTThirdPartyComponentsProvider.h +16 -0
  28. package/ios/generated/RCTThirdPartyComponentsProvider.mm +23 -0
  29. package/ios/generated/RNFBMLTurboModules/RNFBMLTurboModules-generated.mm +34 -0
  30. package/ios/generated/RNFBMLTurboModules/RNFBMLTurboModules.h +62 -0
  31. package/ios/generated/RNFBMLTurboModulesJSI-generated.cpp +22 -0
  32. package/ios/generated/RNFBMLTurboModulesJSI.h +64 -0
  33. package/ios/generated/ReactAppDependencyProvider.podspec +34 -0
  34. package/lib/index.ts +37 -5
  35. package/lib/types/internal.ts +1 -1
  36. package/lib/version.ts +1 -1
  37. package/package.json +22 -4
  38. package/react-native.config.js +10 -0
  39. package/specs/NativeRNFBTurboML.ts +6 -0
  40. package/typedoc.json +1 -1
  41. package/dist/module/modular.js.map +0 -1
  42. package/dist/module/namespaced.js +0 -47
  43. package/dist/module/namespaced.js.map +0 -1
  44. package/dist/module/types/namespaced.js +0 -62
  45. package/dist/module/types/namespaced.js.map +0 -1
  46. package/dist/typescript/lib/modular.d.ts +0 -9
  47. package/dist/typescript/lib/modular.d.ts.map +0 -1
  48. package/dist/typescript/lib/namespaced.d.ts +0 -12
  49. package/dist/typescript/lib/namespaced.d.ts.map +0 -1
  50. package/dist/typescript/lib/types/namespaced.d.ts +0 -77
  51. package/dist/typescript/lib/types/namespaced.d.ts.map +0 -1
  52. package/lib/namespaced.ts +0 -71
  53. package/lib/types/namespaced.ts +0 -99
@@ -0,0 +1,33 @@
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
@@ -0,0 +1,16 @@
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
@@ -0,0 +1,23 @@
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
@@ -0,0 +1,34 @@
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: GenerateModuleObjCpp
8
+ *
9
+ * We create an umbrella header (and corresponding implementation) here since
10
+ * Cxx compilation in BUCK has a limitation: source-code producing genrule()s
11
+ * must have a single output. More files => more genrule()s => slower builds.
12
+ */
13
+
14
+ #import "RNFBMLTurboModules.h"
15
+
16
+
17
+ @implementation NativeRNFBTurboMLSpecBase
18
+
19
+
20
+ - (void)setEventEmitterCallback:(EventEmitterCallbackWrapper *)eventEmitterCallbackWrapper
21
+ {
22
+ _eventEmitterCallback = std::move(eventEmitterCallbackWrapper->_eventEmitterCallback);
23
+ }
24
+ @end
25
+
26
+
27
+ namespace facebook::react {
28
+
29
+
30
+ NativeRNFBTurboMLSpecJSI::NativeRNFBTurboMLSpecJSI(const ObjCTurboModule::InitParams &params)
31
+ : ObjCTurboModule(params) {
32
+
33
+ }
34
+ } // namespace facebook::react
@@ -0,0 +1,62 @@
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: GenerateModuleObjCpp
8
+ *
9
+ * We create an umbrella header (and corresponding implementation) here since
10
+ * Cxx compilation in BUCK has a limitation: source-code producing genrule()s
11
+ * must have a single output. More files => more genrule()s => slower builds.
12
+ */
13
+
14
+ #ifndef __cplusplus
15
+ #error This file must be compiled as Obj-C++. If you are importing it, you must change your file extension to .mm.
16
+ #endif
17
+
18
+ // Avoid multiple includes of RNFBMLTurboModules symbols
19
+ #ifndef RNFBMLTurboModules_H
20
+ #define RNFBMLTurboModules_H
21
+
22
+ #import <Foundation/Foundation.h>
23
+ #import <RCTRequired/RCTRequired.h>
24
+ #import <RCTTypeSafety/RCTConvertHelpers.h>
25
+ #import <RCTTypeSafety/RCTTypedModuleConstants.h>
26
+ #import <React/RCTBridgeModule.h>
27
+ #import <React/RCTCxxConvert.h>
28
+ #import <React/RCTManagedPointer.h>
29
+ #import <ReactCommon/RCTTurboModule.h>
30
+ #import <optional>
31
+ #import <vector>
32
+
33
+
34
+ NS_ASSUME_NONNULL_BEGIN
35
+
36
+ @protocol NativeRNFBTurboMLSpec <RCTBridgeModule, RCTTurboModule>
37
+
38
+
39
+
40
+ @end
41
+
42
+ @interface NativeRNFBTurboMLSpecBase : NSObject {
43
+ @protected
44
+ facebook::react::EventEmitterCallback _eventEmitterCallback;
45
+ }
46
+ - (void)setEventEmitterCallback:(EventEmitterCallbackWrapper *)eventEmitterCallbackWrapper;
47
+
48
+
49
+ @end
50
+
51
+ namespace facebook::react {
52
+ /**
53
+ * ObjC++ class for module 'NativeRNFBTurboML'
54
+ */
55
+ class JSI_EXPORT NativeRNFBTurboMLSpecJSI : public ObjCTurboModule {
56
+ public:
57
+ NativeRNFBTurboMLSpecJSI(const ObjCTurboModule::InitParams &params);
58
+ };
59
+ } // namespace facebook::react
60
+
61
+ NS_ASSUME_NONNULL_END
62
+ #endif // RNFBMLTurboModules_H
@@ -0,0 +1,22 @@
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
@@ -0,0 +1,64 @@
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: GenerateModuleH.js
8
+ */
9
+
10
+ #pragma once
11
+
12
+ #include <ReactCommon/TurboModule.h>
13
+ #include <react/bridging/Bridging.h>
14
+
15
+ namespace facebook::react {
16
+
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
+ template <typename T>
28
+ class JSI_EXPORT NativeRNFBTurboMLCxxSpec : public TurboModule {
29
+ 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
+ static constexpr std::string_view kModuleName = "NativeRNFBTurboML";
39
+
40
+ protected:
41
+ NativeRNFBTurboMLCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
42
+ : TurboModule(std::string{NativeRNFBTurboMLCxxSpec::kModuleName}, jsInvoker),
43
+ delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
44
+
45
+
46
+ 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
+
61
+ Delegate delegate_;
62
+ };
63
+
64
+ } // namespace facebook::react
@@ -0,0 +1,34 @@
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
package/lib/index.ts CHANGED
@@ -15,11 +15,43 @@
15
15
  *
16
16
  */
17
17
 
18
- export * from './modular';
18
+ import {
19
+ FirebaseModule,
20
+ getOrCreateModularInstance,
21
+ } from '@react-native-firebase/app/dist/module/internal';
22
+ import type { ModuleConfig } from '@react-native-firebase/app/dist/module/internal';
23
+ import './types/internal';
24
+ import type { FirebaseApp, FirebaseML } from './types/ml';
25
+ import { version } from './version';
19
26
 
20
- export type { FirebaseApp, FirebaseML } from './types/ml';
27
+ const nativeModuleName = 'NativeRNFBTurboML';
28
+
29
+ class FirebaseMLModule extends FirebaseModule<typeof nativeModuleName> {}
30
+
31
+ const config: ModuleConfig = {
32
+ namespace: 'ml',
33
+ nativeModuleName,
34
+ nativeEvents: false,
35
+ hasMultiAppSupport: true,
36
+ hasCustomUrlOrRegionSupport: false,
37
+ turboModule: true,
38
+ };
21
39
 
22
- export type { FirebaseMLTypes } from './types/namespaced';
40
+ /**
41
+ * RN Firebase package version string exported from the modular entry point.
42
+ *
43
+ * The firebase-js-sdk does not ship a `firebase/ml` modular entry point or `SDK_VERSION` export.
44
+ */
45
+ export const SDK_VERSION = version;
23
46
 
24
- export * from './namespaced';
25
- export { default } from './namespaced';
47
+ /**
48
+ * Returns the {@link FirebaseML} instance for the default or given {@link FirebaseApp}.
49
+ *
50
+ * @param app - The Firebase `FirebaseApp` to use. When omitted, the default app is used.
51
+ * @returns The ML service instance for that app.
52
+ */
53
+ export function getML(app?: FirebaseApp): FirebaseML {
54
+ return getOrCreateModularInstance(FirebaseMLModule, config, app) as unknown as FirebaseML;
55
+ }
56
+
57
+ export type { FirebaseApp, FirebaseML } from './types/ml';
@@ -24,6 +24,6 @@ export interface RNFBMLModule {}
24
24
 
25
25
  declare module '@react-native-firebase/app/dist/module/internal/NativeModules' {
26
26
  interface ReactNativeFirebaseNativeModules {
27
- RNFBMLModule: RNFBMLModule;
27
+ NativeRNFBTurboML: RNFBMLModule;
28
28
  }
29
29
  }
package/lib/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '25.0.1';
2
+ export const version = '26.0.0';
package/package.json CHANGED
@@ -1,15 +1,32 @@
1
1
  {
2
2
  "name": "@react-native-firebase/ml",
3
- "version": "25.0.1",
3
+ "version": "26.0.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",
7
7
  "types": "./dist/typescript/lib/index.d.ts",
8
+ "codegenConfig": {
9
+ "name": "RNFBMLTurboModules",
10
+ "type": "modules",
11
+ "jsSrcsDir": "specs",
12
+ "includesGeneratedCode": true,
13
+ "android": {
14
+ "javaPackageName": "io.invertase.firebase.ml"
15
+ },
16
+ "ios": {
17
+ "modulesProvider": {
18
+ "NativeRNFBTurboML": "RNFBMLModule"
19
+ }
20
+ }
21
+ },
8
22
  "scripts": {
9
23
  "build": "genversion --esm --semi lib/version.ts",
10
24
  "build:clean": "rimraf android/build && rimraf ios/build",
11
25
  "compile": "bob build",
12
- "prepare": "yarn run build && yarn compile"
26
+ "prepare": "yarn run build && yarn compile",
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"
13
30
  },
14
31
  "repository": {
15
32
  "type": "git",
@@ -27,13 +44,14 @@
27
44
  "image labeler"
28
45
  ],
29
46
  "peerDependencies": {
30
- "@react-native-firebase/app": "25.0.1"
47
+ "@react-native-firebase/app": "26.0.0"
31
48
  },
32
49
  "publishConfig": {
33
50
  "access": "public",
34
51
  "provenance": true
35
52
  },
36
53
  "devDependencies": {
54
+ "@react-native-firebase/app": "26.0.0",
37
55
  "react-native-builder-bob": "^0.41.0"
38
56
  },
39
57
  "exports": {
@@ -66,5 +84,5 @@
66
84
  "node_modules/",
67
85
  "dist/"
68
86
  ],
69
- "gitHead": "8c1c22f54a052ea8151b66ce079caf06e7703d4a"
87
+ "gitHead": "2a360acb2aebdd39dd40e31be386b30697270626"
70
88
  }
@@ -0,0 +1,10 @@
1
+ module.exports = {
2
+ dependency: {
3
+ platforms: {
4
+ android: {
5
+ cmakeListsPath:
6
+ './src/reactnative/java/io/invertase/firebase/ml/generated/jni/CMakeLists.txt',
7
+ },
8
+ },
9
+ },
10
+ };
@@ -0,0 +1,6 @@
1
+ import type { TurboModule } from 'react-native';
2
+ import { TurboModuleRegistry } from 'react-native';
3
+
4
+ export interface Spec extends TurboModule {}
5
+
6
+ export default TurboModuleRegistry.getEnforcing<Spec>('NativeRNFBTurboML');
package/typedoc.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "$schema": "https://typedoc.org/schema.json",
3
- "entryPoints": ["lib/modular.ts", "lib/types/ml.ts"]
3
+ "entryPoints": ["lib/index.ts", "lib/types/ml.ts"]
4
4
  }
@@ -1 +0,0 @@
1
- {"version":3,"names":["getApp","getML","app","name","ml"],"sourceRoot":"../../lib","sources":["modular.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,MAAM,QAAQ,4BAA4B;AAGnD;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,KAAKA,CAACC,GAAiB,EAAc;EACnD,IAAIA,GAAG,EAAE;IACP,OAAOF,MAAM,CAACE,GAAG,CAACC,IAAI,CAAC,CAACC,EAAE,CAAC,CAAC;EAC9B;EACA,OAAOJ,MAAM,CAAC,CAAC,CAACI,EAAE,CAAC,CAAC;AACtB","ignoreList":[]}
@@ -1,47 +0,0 @@
1
- "use strict";
2
-
3
- /*
4
- * Copyright (c) 2016-present Invertase Limited & Contributors
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License");
7
- * you may not use this library except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- *
18
- */
19
-
20
- import { createModuleNamespace, FirebaseModule, getFirebaseRoot } from '@react-native-firebase/app/dist/module/internal';
21
- import "./types/internal.js";
22
- import { version } from "./version.js";
23
- const statics = {
24
- SDK_VERSION: version
25
- };
26
- const namespace = 'ml';
27
- const nativeModuleName = 'RNFBMLModule';
28
- class FirebaseMLModule extends FirebaseModule {}
29
- // import { SDK_VERSION } from '@react-native-firebase/ml';
30
- export const SDK_VERSION = version;
31
- const defaultExport = createModuleNamespace({
32
- statics,
33
- version,
34
- namespace,
35
- nativeModuleName,
36
- nativeEvents: false,
37
- hasMultiAppSupport: true,
38
- hasCustomUrlOrRegionSupport: false,
39
- ModuleClass: FirebaseMLModule
40
- });
41
- export default defaultExport;
42
-
43
- // import ml, { firebase } from '@react-native-firebase/ml';
44
- // ml().X(...);
45
- // firebase.ml().X(...);
46
- export const firebase = getFirebaseRoot();
47
- //# sourceMappingURL=namespaced.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["createModuleNamespace","FirebaseModule","getFirebaseRoot","version","statics","SDK_VERSION","namespace","nativeModuleName","FirebaseMLModule","defaultExport","nativeEvents","hasMultiAppSupport","hasCustomUrlOrRegionSupport","ModuleClass","firebase"],"sourceRoot":"../../lib","sources":["namespaced.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,SACEA,qBAAqB,EACrBC,cAAc,EACdC,eAAe,QACV,iDAAiD;AACxD,OAAO,qBAAkB;AAEzB,SAASC,OAAO,QAAQ,cAAW;AAEnC,MAAMC,OAAO,GAAG;EACdC,WAAW,EAAEF;AACf,CAAC;AAED,MAAMG,SAAS,GAAG,IAAI;AAEtB,MAAMC,gBAAgB,GAAG,cAAc;AAEvC,MAAMC,gBAAgB,SAASP,cAAc,CAA0B;AAUvE;AACA,OAAO,MAAMI,WAAW,GAAGF,OAAO;AAElC,MAAMM,aAAa,GAAGT,qBAAqB,CAAC;EAC1CI,OAAO;EACPD,OAAO;EACPG,SAAS;EACTC,gBAAgB;EAChBG,YAAY,EAAE,KAAK;EACnBC,kBAAkB,EAAE,IAAI;EACxBC,2BAA2B,EAAE,KAAK;EAClCC,WAAW,EAAEL;AACf,CAAC,CAA2B;AAE5B,eAAeC,aAAa;;AAE5B;AACA;AACA;AACA,OAAO,MAAMK,QAAQ,GACnBZ,eAAe,CAAC,CAKf","ignoreList":[]}
@@ -1,62 +0,0 @@
1
- "use strict";
2
-
3
- /*
4
- * Copyright (c) 2016-present Invertase Limited & Contributors
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License");
7
- * you may not use this library except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- *
18
- */
19
- /**
20
- * Firebase ML package for React Native.
21
- *
22
- * #### Example 1
23
- *
24
- * Access the firebase export from the `ml` package:
25
- *
26
- * ```js
27
- * import { firebase } from '@react-native-firebase/ml';
28
- *
29
- * // firebase.ml().X
30
- * ```
31
- *
32
- * #### Example 2
33
- *
34
- * Using the default export from the `ml` package:
35
- *
36
- * ```js
37
- * import ml from '@react-native-firebase/ml';
38
- *
39
- * // ml().X
40
- * ```
41
- *
42
- * #### Example 3
43
- *
44
- * Using the default export from the `app` package:
45
- *
46
- * ```js
47
- * import firebase from '@react-native-firebase/app';
48
- * import '@react-native-firebase/ml';
49
- *
50
- * // firebase.ml().X
51
- * ```
52
- *
53
- * @firebase ml
54
- */
55
- /**
56
- * @deprecated Use the exported types directly instead.
57
- * FirebaseMLTypes namespace is kept for backwards compatibility.
58
- */
59
- /* eslint-disable @typescript-eslint/no-namespace */
60
- export let FirebaseMLTypes;
61
- /* eslint-enable @typescript-eslint/no-namespace */
62
- //# sourceMappingURL=namespaced.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["FirebaseMLTypes"],"sourceRoot":"../../../lib","sources":["types/namespaced.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA,WACiBA,eAAe;AAsChC","ignoreList":[]}
@@ -1,9 +0,0 @@
1
- import type { FirebaseApp, FirebaseML } from './types/ml';
2
- /**
3
- * Returns the {@link FirebaseML} instance for the default or given {@link FirebaseApp}.
4
- *
5
- * @param app - The Firebase `FirebaseApp` to use. When omitted, the default app is used.
6
- * @returns The ML service instance for that app.
7
- */
8
- export declare function getML(app?: FirebaseApp): FirebaseML;
9
- //# sourceMappingURL=modular.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modular.d.ts","sourceRoot":"","sources":["../../../lib/modular.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE1D;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,GAAG,CAAC,EAAE,WAAW,GAAG,UAAU,CAKnD"}
@@ -1,12 +0,0 @@
1
- import type { ReactNativeFirebase } from '@react-native-firebase/app';
2
- import './types/internal';
3
- import type { FirebaseMLTypes } from './types/namespaced';
4
- type MLNamespace = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp<FirebaseMLTypes.Module, FirebaseMLTypes.Statics> & {
5
- firebase: ReactNativeFirebase.Module;
6
- app(name?: string): ReactNativeFirebase.FirebaseApp;
7
- };
8
- export declare const SDK_VERSION = "25.0.1";
9
- declare const defaultExport: MLNamespace;
10
- export default defaultExport;
11
- export declare const firebase: ReactNativeFirebase.FirebaseNamespacedExport<"ml", FirebaseMLTypes.Module, FirebaseMLTypes.Statics, true>;
12
- //# sourceMappingURL=namespaced.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"namespaced.d.ts","sourceRoot":"","sources":["../../../lib/namespaced.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAMtE,OAAO,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAa1D,KAAK,WAAW,GAAG,mBAAmB,CAAC,+BAA+B,CACpE,eAAe,CAAC,MAAM,EACtB,eAAe,CAAC,OAAO,CACxB,GAAG;IACF,QAAQ,EAAE,mBAAmB,CAAC,MAAM,CAAC;IACrC,GAAG,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,mBAAmB,CAAC,WAAW,CAAC;CACrD,CAAC;AAGF,eAAO,MAAM,WAAW,WAAU,CAAC;AAEnC,QAAA,MAAM,aAAa,EASF,WAAW,CAAC;AAE7B,eAAe,aAAa,CAAC;AAK7B,eAAO,MAAM,QAAQ,EACa,mBAAmB,CAAC,wBAAwB,CAC1E,IAAI,EACJ,eAAe,CAAC,MAAM,EACtB,eAAe,CAAC,OAAO,EACvB,IAAI,CACL,CAAC"}