@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
@@ -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,14 +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 RCTUnstableModulesRequiringMainQueueSetupProvider: NSObject
11
-
12
- +(NSArray<NSString *> *)modules;
13
-
14
- @end
@@ -1,19 +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 "RCTUnstableModulesRequiringMainQueueSetupProvider.h"
9
-
10
- @implementation RCTUnstableModulesRequiringMainQueueSetupProvider
11
-
12
- +(NSArray<NSString *> *)modules
13
- {
14
- return @[
15
-
16
- ];
17
- }
18
-
19
- @end
@@ -1,187 +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 "RNFBAppTurboModulesJSI.h"
11
-
12
- namespace facebook::react {
13
-
14
- static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
15
- return static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->getConstants(
16
- rt
17
- );
18
- }
19
- static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_initializeApp(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
20
- return static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->initializeApp(
21
- rt,
22
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt),
23
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt)
24
- );
25
- }
26
- static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_setAutomaticDataCollectionEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
27
- static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->setAutomaticDataCollectionEnabled(
28
- rt,
29
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
30
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asBool()
31
- );
32
- return jsi::Value::undefined();
33
- }
34
- static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_deleteApp(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
35
- return static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->deleteApp(
36
- rt,
37
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
38
- );
39
- }
40
- static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_eventsNotifyReady(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
41
- static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->eventsNotifyReady(
42
- rt,
43
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool()
44
- );
45
- return jsi::Value::undefined();
46
- }
47
- static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_eventsGetListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
48
- return static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->eventsGetListeners(
49
- rt
50
- );
51
- }
52
- static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_eventsPing(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
53
- return static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->eventsPing(
54
- rt,
55
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
56
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt)
57
- );
58
- }
59
- static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_eventsAddListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
60
- static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->eventsAddListener(
61
- rt,
62
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
63
- );
64
- return jsi::Value::undefined();
65
- }
66
- static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_eventsRemoveListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
67
- static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->eventsRemoveListener(
68
- rt,
69
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
70
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asBool()
71
- );
72
- return jsi::Value::undefined();
73
- }
74
- static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
75
- static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->addListener(
76
- rt,
77
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
78
- );
79
- return jsi::Value::undefined();
80
- }
81
- static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
82
- static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->removeListeners(
83
- rt,
84
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber()
85
- );
86
- return jsi::Value::undefined();
87
- }
88
- static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_metaGetAll(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
89
- return static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->metaGetAll(
90
- rt
91
- );
92
- }
93
- static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_jsonGetAll(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
94
- return static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->jsonGetAll(
95
- rt
96
- );
97
- }
98
- static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_preferencesSetBool(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
99
- return static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->preferencesSetBool(
100
- rt,
101
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
102
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asBool()
103
- );
104
- }
105
- static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_preferencesSetString(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
106
- return static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->preferencesSetString(
107
- rt,
108
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
109
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt)
110
- );
111
- }
112
- static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_preferencesGetAll(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
113
- return static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->preferencesGetAll(
114
- rt
115
- );
116
- }
117
- static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_preferencesClearAll(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
118
- return static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->preferencesClearAll(
119
- rt
120
- );
121
- }
122
- static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_setLogLevel(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
123
- static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->setLogLevel(
124
- rt,
125
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
126
- );
127
- return jsi::Value::undefined();
128
- }
129
-
130
- NativeRNFBTurboAppCxxSpecJSI::NativeRNFBTurboAppCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
131
- : TurboModule("NativeRNFBTurboApp", jsInvoker) {
132
- methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_getConstants};
133
- methodMap_["initializeApp"] = MethodMetadata {2, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_initializeApp};
134
- methodMap_["setAutomaticDataCollectionEnabled"] = MethodMetadata {2, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_setAutomaticDataCollectionEnabled};
135
- methodMap_["deleteApp"] = MethodMetadata {1, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_deleteApp};
136
- methodMap_["eventsNotifyReady"] = MethodMetadata {1, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_eventsNotifyReady};
137
- methodMap_["eventsGetListeners"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_eventsGetListeners};
138
- methodMap_["eventsPing"] = MethodMetadata {2, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_eventsPing};
139
- methodMap_["eventsAddListener"] = MethodMetadata {1, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_eventsAddListener};
140
- methodMap_["eventsRemoveListener"] = MethodMetadata {2, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_eventsRemoveListener};
141
- methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_addListener};
142
- methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_removeListeners};
143
- methodMap_["metaGetAll"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_metaGetAll};
144
- methodMap_["jsonGetAll"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_jsonGetAll};
145
- methodMap_["preferencesSetBool"] = MethodMetadata {2, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_preferencesSetBool};
146
- methodMap_["preferencesSetString"] = MethodMetadata {2, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_preferencesSetString};
147
- methodMap_["preferencesGetAll"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_preferencesGetAll};
148
- methodMap_["preferencesClearAll"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_preferencesClearAll};
149
- methodMap_["setLogLevel"] = MethodMetadata {1, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_setLogLevel};
150
- }
151
- static jsi::Value __hostFunction_NativeRNFBTurboUtilsCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
152
- return static_cast<NativeRNFBTurboUtilsCxxSpecJSI *>(&turboModule)->getConstants(
153
- rt
154
- );
155
- }
156
- static jsi::Value __hostFunction_NativeRNFBTurboUtilsCxxSpecJSI_androidGetPlayServicesStatus(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
157
- return static_cast<NativeRNFBTurboUtilsCxxSpecJSI *>(&turboModule)->androidGetPlayServicesStatus(
158
- rt
159
- );
160
- }
161
- static jsi::Value __hostFunction_NativeRNFBTurboUtilsCxxSpecJSI_androidPromptForPlayServices(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
162
- return static_cast<NativeRNFBTurboUtilsCxxSpecJSI *>(&turboModule)->androidPromptForPlayServices(
163
- rt
164
- );
165
- }
166
- static jsi::Value __hostFunction_NativeRNFBTurboUtilsCxxSpecJSI_androidResolutionForPlayServices(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
167
- return static_cast<NativeRNFBTurboUtilsCxxSpecJSI *>(&turboModule)->androidResolutionForPlayServices(
168
- rt
169
- );
170
- }
171
- static jsi::Value __hostFunction_NativeRNFBTurboUtilsCxxSpecJSI_androidMakePlayServicesAvailable(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
172
- return static_cast<NativeRNFBTurboUtilsCxxSpecJSI *>(&turboModule)->androidMakePlayServicesAvailable(
173
- rt
174
- );
175
- }
176
-
177
- NativeRNFBTurboUtilsCxxSpecJSI::NativeRNFBTurboUtilsCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
178
- : TurboModule("NativeRNFBTurboUtils", jsInvoker) {
179
- methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboUtilsCxxSpecJSI_getConstants};
180
- methodMap_["androidGetPlayServicesStatus"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboUtilsCxxSpecJSI_androidGetPlayServicesStatus};
181
- methodMap_["androidPromptForPlayServices"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboUtilsCxxSpecJSI_androidPromptForPlayServices};
182
- methodMap_["androidResolutionForPlayServices"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboUtilsCxxSpecJSI_androidResolutionForPlayServices};
183
- methodMap_["androidMakePlayServicesAvailable"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboUtilsCxxSpecJSI_androidMakePlayServicesAvailable};
184
- }
185
-
186
-
187
- } // 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
@@ -1,111 +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.82.1"
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
- use_frameworks = ENV['USE_FRAMEWORKS'] != nil
16
- folly_compiler_flags = Helpers::Constants.folly_config[:compiler_flags]
17
- boost_compiler_flags = Helpers::Constants.boost_config[:compiler_flags]
18
-
19
- header_search_paths = []
20
- framework_search_paths = []
21
-
22
- header_search_paths = [
23
- "\"$(PODS_ROOT)/ReactNativeDependencies\"",
24
- "\"${PODS_ROOT}/Headers/Public/ReactCodegen/react/renderer/components\"",
25
- "\"$(PODS_ROOT)/Headers/Private/React-Fabric\"",
26
- "\"$(PODS_ROOT)/Headers/Private/React-RCTFabric\"",
27
- "\"$(PODS_ROOT)/Headers/Private/Yoga\"",
28
- "\"$(PODS_TARGET_SRCROOT)\"",
29
- ]
30
-
31
- if use_frameworks
32
- ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-Fabric", "React_Fabric", ["react/renderer/components/view/platform/cxx"])
33
- .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-FabricImage", "React_FabricImage", []))
34
- .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-graphics", "React_graphics", ["react/renderer/graphics/platform/ios"]))
35
- .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "ReactCommon", "ReactCommon", ["react/nativemodule/core"]))
36
- .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-runtimeexecutor", "React_runtimeexecutor", ["platform/ios"]))
37
- .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-NativeModulesApple", "React_NativeModulesApple", []))
38
- .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-RCTFabric", "RCTFabric", []))
39
- .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-debug", "React_debug", []))
40
- .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-rendererdebug", "React_rendererdebug", []))
41
- .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-utils", "React_utils", []))
42
- .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-featureflags", "React_featureflags", []))
43
- .each { |search_path|
44
- header_search_paths << "\"#{search_path}\""
45
- }
46
- end
47
-
48
- Pod::Spec.new do |s|
49
- s.name = "ReactCodegen"
50
- s.version = version
51
- s.summary = 'Temp pod for generated files for React Native'
52
- s.homepage = 'https://facebook.com/'
53
- s.license = 'Unlicense'
54
- s.authors = 'Facebook'
55
- s.compiler_flags = "#{folly_compiler_flags} #{boost_compiler_flags} -Wno-nullability-completeness -std=c++20"
56
- s.source = { :git => '' }
57
- s.header_mappings_dir = './'
58
- s.platforms = min_supported_versions
59
- s.source_files = "**/*.{h,mm,cpp}"
60
- s.exclude_files = "RCTAppDependencyProvider.{h,mm}" # these files are generated in the same codegen path but needs to belong to a different pod
61
- s.pod_target_xcconfig = {
62
- "HEADER_SEARCH_PATHS" => header_search_paths.join(' '),
63
- "FRAMEWORK_SEARCH_PATHS" => framework_search_paths,
64
- "OTHER_CPLUSPLUSFLAGS" => "$(inherited) #{folly_compiler_flags} #{boost_compiler_flags}"
65
- }
66
-
67
- s.dependency "React-jsiexecutor"
68
- s.dependency "RCTRequired"
69
- s.dependency "RCTTypeSafety"
70
- s.dependency "React-Core"
71
- s.dependency "React-jsi"
72
- s.dependency "ReactCommon/turbomodule/bridging"
73
- s.dependency "ReactCommon/turbomodule/core"
74
- s.dependency "React-NativeModulesApple"
75
- s.dependency 'React-graphics'
76
- s.dependency 'React-rendererdebug'
77
- s.dependency 'React-Fabric'
78
- s.dependency 'React-FabricImage'
79
- s.dependency 'React-debug'
80
- s.dependency 'React-utils'
81
- s.dependency 'React-featureflags'
82
- s.dependency 'React-RCTAppDelegate'
83
-
84
- depend_on_js_engine(s)
85
- add_rn_third_party_dependencies(s)
86
- add_rncore_dependency(s)
87
-
88
- s.script_phases = {
89
- 'name' => 'Generate Specs',
90
- 'execution_position' => :before_compile,
91
- 'input_files' => ["${PODS_ROOT}/../../specs/NativeRNFBTurboApp.ts",
92
- "${PODS_ROOT}/../../specs/NativeRNFBTurboUtils.ts"],
93
- 'show_env_vars_in_log' => true,
94
- 'output_files' => ["${DERIVED_FILE_DIR}/react-codegen.log"],
95
- 'script': <<-SCRIPT
96
- pushd "$PODS_ROOT/../" > /dev/null
97
- RCT_SCRIPT_POD_INSTALLATION_ROOT=$(pwd)
98
- popd >/dev/null
99
-
100
- export RCT_SCRIPT_RN_DIR="$RCT_SCRIPT_POD_INSTALLATION_ROOT/../../../../node_modules/react-native"
101
- export RCT_SCRIPT_APP_PATH="$RCT_SCRIPT_POD_INSTALLATION_ROOT/../.."
102
- export RCT_SCRIPT_OUTPUT_DIR="$RCT_SCRIPT_POD_INSTALLATION_ROOT"
103
- export RCT_SCRIPT_TYPE="withCodegenDiscovery"
104
-
105
- export SCRIPT_PHASES_SCRIPT="$RCT_SCRIPT_RN_DIR/scripts/react_native_pods_utils/script_phases.sh"
106
- export WITH_ENVIRONMENT="$RCT_SCRIPT_RN_DIR/scripts/xcode/with-environment.sh"
107
- /bin/sh -c '"$WITH_ENVIRONMENT" "$SCRIPT_PHASES_SCRIPT"'
108
- SCRIPT
109
- }
110
-
111
- end