@react-native-firebase/app-check 23.6.0 → 23.8.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 (117) hide show
  1. package/dist/commonjs/ReactNativeFirebaseAppCheckProvider.js +19 -0
  2. package/dist/commonjs/ReactNativeFirebaseAppCheckProvider.js.map +1 -0
  3. package/dist/commonjs/index.js +38 -0
  4. package/dist/commonjs/index.js.map +1 -0
  5. package/dist/commonjs/modular.js +124 -0
  6. package/dist/commonjs/modular.js.map +1 -0
  7. package/dist/commonjs/namespaced.js +212 -0
  8. package/dist/commonjs/namespaced.js.map +1 -0
  9. package/dist/commonjs/package.json +1 -0
  10. package/dist/commonjs/types/appcheck.js +93 -0
  11. package/dist/commonjs/types/appcheck.js.map +1 -0
  12. package/dist/commonjs/version.js +9 -0
  13. package/dist/commonjs/version.js.map +1 -0
  14. package/dist/commonjs/web/RNFBAppCheckModule.android.js +9 -0
  15. package/dist/commonjs/web/RNFBAppCheckModule.android.js.map +2 -0
  16. package/dist/commonjs/web/RNFBAppCheckModule.ios.js +9 -0
  17. package/dist/commonjs/web/RNFBAppCheckModule.ios.js.map +2 -0
  18. package/dist/commonjs/web/RNFBAppCheckModule.js +97 -0
  19. package/dist/commonjs/web/RNFBAppCheckModule.js.map +1 -0
  20. package/dist/module/ReactNativeFirebaseAppCheckProvider.js +14 -0
  21. package/dist/module/ReactNativeFirebaseAppCheckProvider.js.map +1 -0
  22. package/{ios/RNFBAppCheck/RNFBAppCheckModule.h → dist/module/index.js} +10 -12
  23. package/dist/module/index.js.map +1 -0
  24. package/dist/module/modular.js +110 -0
  25. package/dist/module/modular.js.map +1 -0
  26. package/{lib/index.js → dist/module/namespaced.js} +50 -80
  27. package/dist/module/namespaced.js.map +1 -0
  28. package/dist/module/package.json +1 -0
  29. package/dist/module/types/appcheck.js +89 -0
  30. package/dist/module/types/appcheck.js.map +1 -0
  31. package/dist/module/version.js +5 -0
  32. package/dist/module/version.js.map +1 -0
  33. package/dist/module/web/RNFBAppCheckModule.android.js +5 -0
  34. package/dist/module/web/RNFBAppCheckModule.android.js.map +2 -0
  35. package/dist/module/web/RNFBAppCheckModule.ios.js +5 -0
  36. package/dist/module/web/RNFBAppCheckModule.ios.js.map +2 -0
  37. package/dist/module/web/RNFBAppCheckModule.js +88 -0
  38. package/dist/module/web/RNFBAppCheckModule.js.map +1 -0
  39. package/dist/typescript/commonjs/lib/ReactNativeFirebaseAppCheckProvider.d.ts +8 -0
  40. package/dist/typescript/commonjs/lib/ReactNativeFirebaseAppCheckProvider.d.ts.map +1 -0
  41. package/dist/typescript/commonjs/lib/index.d.ts +5 -0
  42. package/dist/typescript/commonjs/lib/index.d.ts.map +1 -0
  43. package/dist/typescript/commonjs/lib/modular.d.ts +57 -0
  44. package/dist/typescript/commonjs/lib/modular.d.ts.map +1 -0
  45. package/dist/typescript/commonjs/lib/namespaced.d.ts +17 -0
  46. package/dist/typescript/commonjs/lib/namespaced.d.ts.map +1 -0
  47. package/{lib/index.d.ts → dist/typescript/commonjs/lib/types/appcheck.d.ts} +162 -221
  48. package/dist/typescript/commonjs/lib/types/appcheck.d.ts.map +1 -0
  49. package/dist/typescript/commonjs/lib/version.d.ts +2 -0
  50. package/dist/typescript/commonjs/lib/version.d.ts.map +1 -0
  51. package/dist/typescript/commonjs/lib/web/RNFBAppCheckModule.android.d.ts +3 -0
  52. package/dist/typescript/commonjs/lib/web/RNFBAppCheckModule.android.d.ts.map +1 -0
  53. package/dist/typescript/commonjs/lib/web/RNFBAppCheckModule.d.ts +18 -0
  54. package/dist/typescript/commonjs/lib/web/RNFBAppCheckModule.d.ts.map +1 -0
  55. package/dist/typescript/commonjs/lib/web/RNFBAppCheckModule.ios.d.ts +3 -0
  56. package/dist/typescript/commonjs/lib/web/RNFBAppCheckModule.ios.d.ts.map +1 -0
  57. package/dist/typescript/commonjs/package.json +1 -0
  58. package/dist/typescript/module/lib/ReactNativeFirebaseAppCheckProvider.d.ts +8 -0
  59. package/dist/typescript/module/lib/ReactNativeFirebaseAppCheckProvider.d.ts.map +1 -0
  60. package/dist/typescript/module/lib/index.d.ts +5 -0
  61. package/dist/typescript/module/lib/index.d.ts.map +1 -0
  62. package/dist/typescript/module/lib/modular.d.ts +57 -0
  63. package/dist/typescript/module/lib/modular.d.ts.map +1 -0
  64. package/dist/typescript/module/lib/namespaced.d.ts +17 -0
  65. package/dist/typescript/module/lib/namespaced.d.ts.map +1 -0
  66. package/dist/typescript/module/lib/types/appcheck.d.ts +299 -0
  67. package/dist/typescript/module/lib/types/appcheck.d.ts.map +1 -0
  68. package/dist/typescript/module/lib/version.d.ts +2 -0
  69. package/dist/typescript/module/lib/version.d.ts.map +1 -0
  70. package/dist/typescript/module/lib/web/RNFBAppCheckModule.android.d.ts +3 -0
  71. package/dist/typescript/module/lib/web/RNFBAppCheckModule.android.d.ts.map +1 -0
  72. package/dist/typescript/module/lib/web/RNFBAppCheckModule.d.ts +18 -0
  73. package/dist/typescript/module/lib/web/RNFBAppCheckModule.d.ts.map +1 -0
  74. package/dist/typescript/module/lib/web/RNFBAppCheckModule.ios.d.ts +3 -0
  75. package/dist/typescript/module/lib/web/RNFBAppCheckModule.ios.d.ts.map +1 -0
  76. package/dist/typescript/module/package.json +1 -0
  77. package/lib/ReactNativeFirebaseAppCheckProvider.ts +21 -0
  78. package/lib/index.ts +46 -0
  79. package/lib/modular.ts +157 -0
  80. package/lib/namespaced.ts +305 -0
  81. package/lib/types/appcheck.ts +386 -0
  82. package/lib/version.ts +2 -0
  83. package/lib/web/RNFBAppCheckModule.android.ts +4 -0
  84. package/lib/web/RNFBAppCheckModule.ios.ts +4 -0
  85. package/lib/web/RNFBAppCheckModule.ts +115 -0
  86. package/package.json +64 -8
  87. package/tsconfig.json +21 -0
  88. package/CHANGELOG.md +0 -769
  89. package/RNFBAppCheck.podspec +0 -50
  90. package/android/.editorconfig +0 -10
  91. package/android/build.gradle +0 -110
  92. package/android/lint.xml +0 -5
  93. package/android/settings.gradle +0 -1
  94. package/android/src/main/AndroidManifest.xml +0 -7
  95. package/android/src/main/java/io/invertase/firebase/appcheck/ReactNativeFirebaseAppCheckModule.java +0 -281
  96. package/android/src/main/java/io/invertase/firebase/appcheck/ReactNativeFirebaseAppCheckPackage.java +0 -41
  97. package/android/src/main/java/io/invertase/firebase/appcheck/ReactNativeFirebaseAppCheckProvider.java +0 -97
  98. package/android/src/main/java/io/invertase/firebase/appcheck/ReactNativeFirebaseAppCheckProviderFactory.java +0 -67
  99. package/app.plugin.js +0 -1
  100. package/ios/RNFBAppCheck/RNFBAppCheckModule.m +0 -171
  101. package/ios/RNFBAppCheck/RNFBAppCheckProvider.h +0 -33
  102. package/ios/RNFBAppCheck/RNFBAppCheckProvider.m +0 -90
  103. package/ios/RNFBAppCheck/RNFBAppCheckProviderFactory.h +0 -28
  104. package/ios/RNFBAppCheck/RNFBAppCheckProviderFactory.m +0 -61
  105. package/ios/RNFBAppCheck.xcodeproj/project.pbxproj +0 -349
  106. package/ios/RNFBAppCheck.xcodeproj/xcshareddata/IDETemplateMacros.plist +0 -24
  107. package/lib/ReactNativeFirebaseAppCheckProvider.js +0 -9
  108. package/lib/modular/index.d.ts +0 -149
  109. package/lib/modular/index.js +0 -102
  110. package/lib/version.js +0 -2
  111. package/plugin/build/index.d.ts +0 -3
  112. package/plugin/build/index.js +0 -15
  113. package/plugin/build/ios/appDelegate.d.ts +0 -6
  114. package/plugin/build/ios/appDelegate.js +0 -137
  115. package/plugin/build/ios/index.d.ts +0 -2
  116. package/plugin/build/ios/index.js +0 -5
  117. package/plugin/tsconfig.tsbuildinfo +0 -1
@@ -1,349 +0,0 @@
1
- // !$*UTF8*$!
2
- {
3
- archiveVersion = 1;
4
- classes = {
5
- };
6
- objectVersion = 48;
7
- objects = {
8
-
9
- /* Begin PBXBuildFile section */
10
- 2744B98621F45429004F8E3F /* RNFBAppCheckModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 2744B98521F45429004F8E3F /* RNFBAppCheckModule.m */; };
11
- /* End PBXBuildFile section */
12
-
13
- /* Begin PBXCopyFilesBuildPhase section */
14
- 2744B98021F45429004F8E3F /* CopyFiles */ = {
15
- isa = PBXCopyFilesBuildPhase;
16
- buildActionMask = 2147483647;
17
- dstPath = "";
18
- dstSubfolderSpec = 16;
19
- files = (
20
- );
21
- runOnlyForDeploymentPostprocessing = 0;
22
- };
23
- /* End PBXCopyFilesBuildPhase section */
24
-
25
- /* Begin PBXFileReference section */
26
- 2744B98221F45429004F8E3F /* libRNFBAppCheck.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNFBAppCheck.a; sourceTree = BUILT_PRODUCTS_DIR; };
27
- 2744B98421F45429004F8E3F /* RNFBAppCheckModule.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = RNFBAppCheckModule.h; path = RNFBAppCheck/RNFBAppCheckModule.h; sourceTree = SOURCE_ROOT; };
28
- 2744B98521F45429004F8E3F /* RNFBAppCheckModule.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = RNFBAppCheckModule.m; path = RNFBAppCheck/RNFBAppCheckModule.m; sourceTree = SOURCE_ROOT; };
29
- /* End PBXFileReference section */
30
-
31
- /* Begin PBXFrameworksBuildPhase section */
32
- 2744B97F21F45429004F8E3F /* Frameworks */ = {
33
- isa = PBXFrameworksBuildPhase;
34
- buildActionMask = 2147483647;
35
- files = (
36
- );
37
- runOnlyForDeploymentPostprocessing = 0;
38
- };
39
- /* End PBXFrameworksBuildPhase section */
40
-
41
- /* Begin PBXGroup section */
42
- 2744B97521F452B8004F8E3F /* Products */ = {
43
- isa = PBXGroup;
44
- children = (
45
- 2744B98221F45429004F8E3F /* libRNFBAppCheck.a */,
46
- );
47
- name = Products;
48
- sourceTree = "<group>";
49
- };
50
- 2744B98321F45429004F8E3F /* RNFBAppCheck */ = {
51
- isa = PBXGroup;
52
- children = (
53
- 2744B9A121F48736004F8E3F /* converters */,
54
- 2744B98C21F45C64004F8E3F /* common */,
55
- 2744B98421F45429004F8E3F /* RNFBAppCheckModule.h */,
56
- 2744B98521F45429004F8E3F /* RNFBAppCheckModule.m */,
57
- );
58
- path = RNFBAppCheck;
59
- sourceTree = "<group>";
60
- };
61
- 3323F52AAFE26B7384BE4DE3 = {
62
- isa = PBXGroup;
63
- children = (
64
- 2744B98321F45429004F8E3F /* RNFBAppCheck */,
65
- 2744B97521F452B8004F8E3F /* Products */,
66
- );
67
- sourceTree = "<group>";
68
- };
69
- /* End PBXGroup section */
70
-
71
- /* Begin PBXNativeTarget section */
72
- 2744B98121F45429004F8E3F /* RNFBAppCheck */ = {
73
- isa = PBXNativeTarget;
74
- buildConfigurationList = 2744B98821F45429004F8E3F /* Build configuration list for PBXNativeTarget "RNFBAppCheck" */;
75
- buildPhases = (
76
- 2744B97E21F45429004F8E3F /* Sources */,
77
- 2744B97F21F45429004F8E3F /* Frameworks */,
78
- 2744B98021F45429004F8E3F /* CopyFiles */,
79
- );
80
- buildRules = (
81
- );
82
- dependencies = (
83
- );
84
- name = RNFBAppCheck;
85
- productName = RNFBAppCheck;
86
- productReference = 2744B98221F45429004F8E3F /* libRNFBAppCheck.a */;
87
- productType = "com.apple.product-type.library.static";
88
- };
89
- /* End PBXNativeTarget section */
90
-
91
- /* Begin PBXProject section */
92
- 3323F95273A95DB34F55C6D7 /* Project object */ = {
93
- isa = PBXProject;
94
- attributes = {
95
- CLASSPREFIX = RNFBAppCheck;
96
- LastUpgradeCheck = 1010;
97
- ORGANIZATIONNAME = Invertase;
98
- TargetAttributes = {
99
- 2744B98121F45429004F8E3F = {
100
- CreatedOnToolsVersion = 10.1;
101
- ProvisioningStyle = Automatic;
102
- };
103
- };
104
- };
105
- buildConfigurationList = 3323F1C5716BA966BBBB95A4 /* Build configuration list for PBXProject "RNFBAppCheck" */;
106
- compatibilityVersion = "Xcode 8.0";
107
- developmentRegion = English;
108
- hasScannedForEncodings = 0;
109
- knownRegions = (
110
- en,
111
- );
112
- mainGroup = 3323F52AAFE26B7384BE4DE3;
113
- productRefGroup = 2744B97521F452B8004F8E3F /* Products */;
114
- projectDirPath = "";
115
- projectRoot = "";
116
- targets = (
117
- 2744B98121F45429004F8E3F /* RNFBAppCheck */,
118
- );
119
- };
120
- /* End PBXProject section */
121
-
122
- /* Begin PBXSourcesBuildPhase section */
123
- 2744B97E21F45429004F8E3F /* Sources */ = {
124
- isa = PBXSourcesBuildPhase;
125
- buildActionMask = 2147483647;
126
- files = (
127
- 2744B98621F45429004F8E3F /* RNFBAppCheckModule.m in Sources */,
128
- );
129
- runOnlyForDeploymentPostprocessing = 0;
130
- };
131
- /* End PBXSourcesBuildPhase section */
132
-
133
- /* Begin XCBuildConfiguration section */
134
- 2744B98921F45429004F8E3F /* Debug */ = {
135
- isa = XCBuildConfiguration;
136
- buildSettings = {
137
- ALWAYS_SEARCH_USER_PATHS = NO;
138
- CLANG_ANALYZER_NONNULL = YES;
139
- CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
140
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
141
- CLANG_CXX_LIBRARY = "libc++";
142
- CLANG_ENABLE_MODULES = YES;
143
- CLANG_ENABLE_OBJC_ARC = YES;
144
- CLANG_ENABLE_OBJC_WEAK = YES;
145
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
146
- CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
147
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
148
- CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
149
- CODE_SIGN_IDENTITY = "iPhone Developer";
150
- CODE_SIGN_STYLE = Automatic;
151
- COPY_PHASE_STRIP = NO;
152
- DEBUG_INFORMATION_FORMAT = dwarf;
153
- GCC_C_LANGUAGE_STANDARD = gnu11;
154
- GCC_DYNAMIC_NO_PIC = NO;
155
- GCC_OPTIMIZATION_LEVEL = 0;
156
- GCC_PREPROCESSOR_DEFINITIONS = (
157
- "DEBUG=1",
158
- "$(inherited)",
159
- );
160
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
161
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
162
- IPHONEOS_DEPLOYMENT_TARGET = 10.0;
163
- MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
164
- MTL_FAST_MATH = YES;
165
- OTHER_LDFLAGS = "-ObjC";
166
- PRODUCT_NAME = "$(TARGET_NAME)";
167
- SDKROOT = iphoneos;
168
- SKIP_INSTALL = YES;
169
- TARGETED_DEVICE_FAMILY = "1,2";
170
- };
171
- name = Debug;
172
- };
173
- 2744B98A21F45429004F8E3F /* Release */ = {
174
- isa = XCBuildConfiguration;
175
- buildSettings = {
176
- ALWAYS_SEARCH_USER_PATHS = NO;
177
- CLANG_ANALYZER_NONNULL = YES;
178
- CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
179
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
180
- CLANG_CXX_LIBRARY = "libc++";
181
- CLANG_ENABLE_MODULES = YES;
182
- CLANG_ENABLE_OBJC_ARC = YES;
183
- CLANG_ENABLE_OBJC_WEAK = YES;
184
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
185
- CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
186
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
187
- CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
188
- CODE_SIGN_IDENTITY = "iPhone Developer";
189
- CODE_SIGN_STYLE = Automatic;
190
- COPY_PHASE_STRIP = NO;
191
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
192
- ENABLE_NS_ASSERTIONS = NO;
193
- GCC_C_LANGUAGE_STANDARD = gnu11;
194
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
195
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
196
- IPHONEOS_DEPLOYMENT_TARGET = 10.0;
197
- MTL_ENABLE_DEBUG_INFO = NO;
198
- MTL_FAST_MATH = YES;
199
- OTHER_LDFLAGS = "-ObjC";
200
- PRODUCT_NAME = "$(TARGET_NAME)";
201
- SDKROOT = iphoneos;
202
- SKIP_INSTALL = YES;
203
- TARGETED_DEVICE_FAMILY = "1,2";
204
- VALIDATE_PRODUCT = YES;
205
- };
206
- name = Release;
207
- };
208
- 3323F77D701E1896E6D239CF /* Release */ = {
209
- isa = XCBuildConfiguration;
210
- buildSettings = {
211
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
212
- CLANG_WARN_BOOL_CONVERSION = YES;
213
- CLANG_WARN_COMMA = YES;
214
- CLANG_WARN_CONSTANT_CONVERSION = YES;
215
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
216
- CLANG_WARN_EMPTY_BODY = YES;
217
- CLANG_WARN_ENUM_CONVERSION = YES;
218
- CLANG_WARN_INFINITE_RECURSION = YES;
219
- CLANG_WARN_INT_CONVERSION = YES;
220
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
221
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
222
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
223
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
224
- CLANG_WARN_STRICT_PROTOTYPES = YES;
225
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
226
- CLANG_WARN_UNREACHABLE_CODE = YES;
227
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
228
- ENABLE_STRICT_OBJC_MSGSEND = YES;
229
- FRAMEWORK_SEARCH_PATHS = (
230
- "$(inherited)",
231
- "${BUILT_PRODUCTS_DIR}/**",
232
- "${SRCROOT}/../../../ios/Firebase/**",
233
- "$(FIREBASE_SEARCH_PATH)/Firebase/**",
234
- "$(SRCROOT)/../../../ios/Pods/FirebaseAppCheck/Frameworks",
235
- "$(SRCROOT)/../../../tests/ios/Pods/FirebaseAppCheck/Frameworks",
236
- );
237
- GCC_NO_COMMON_BLOCKS = YES;
238
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
239
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
240
- GCC_WARN_UNDECLARED_SELECTOR = YES;
241
- GCC_WARN_UNINITIALIZED_AUTOS = YES;
242
- GCC_WARN_UNUSED_FUNCTION = YES;
243
- GCC_WARN_UNUSED_VARIABLE = YES;
244
- HEADER_SEARCH_PATHS = (
245
- "$(inherited)",
246
- "$(REACT_SEARCH_PATH)/React/**",
247
- "$(SRCROOT)/../../react-native/React/**",
248
- "$(SRCROOT)/../../react-native-firebase/ios/**",
249
- "$(FIREBASE_SEARCH_PATH)/Firebase/**",
250
- "${SRCROOT}/../../../ios/Firebase/**",
251
- "${SRCROOT}/../../../ios/Pods/Headers/Public/**",
252
- "${SRCROOT}/../../../tests/ios/Pods/Headers/Public/**",
253
- "$(SRCROOT)/../../../node_modules/react-native/React/**",
254
- "$(SRCROOT)/../../../node_modules/react-native-firebase/ios/**",
255
- "$(SRCROOT)/../../../packages/app/ios/**",
256
- );
257
- IPHONEOS_DEPLOYMENT_TARGET = 10.0;
258
- LIBRARY_SEARCH_PATHS = "$(inherited)";
259
- MACH_O_TYPE = staticlib;
260
- OTHER_LDFLAGS = "$(inherited)";
261
- PRODUCT_NAME = "$(TARGET_NAME)";
262
- SKIP_INSTALL = YES;
263
- };
264
- name = Release;
265
- };
266
- 3323F7E33E1559A2B9826720 /* Debug */ = {
267
- isa = XCBuildConfiguration;
268
- buildSettings = {
269
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
270
- CLANG_WARN_BOOL_CONVERSION = YES;
271
- CLANG_WARN_COMMA = YES;
272
- CLANG_WARN_CONSTANT_CONVERSION = YES;
273
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
274
- CLANG_WARN_EMPTY_BODY = YES;
275
- CLANG_WARN_ENUM_CONVERSION = YES;
276
- CLANG_WARN_INFINITE_RECURSION = YES;
277
- CLANG_WARN_INT_CONVERSION = YES;
278
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
279
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
280
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
281
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
282
- CLANG_WARN_STRICT_PROTOTYPES = YES;
283
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
284
- CLANG_WARN_UNREACHABLE_CODE = YES;
285
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
286
- ENABLE_STRICT_OBJC_MSGSEND = YES;
287
- ENABLE_TESTABILITY = YES;
288
- FRAMEWORK_SEARCH_PATHS = (
289
- "$(inherited)",
290
- "${BUILT_PRODUCTS_DIR}/**",
291
- "${SRCROOT}/../../../ios/Firebase/**",
292
- "$(FIREBASE_SEARCH_PATH)/Firebase/**",
293
- "$(SRCROOT)/../../../ios/Pods/FirebaseAppCheck/Frameworks",
294
- );
295
- GCC_NO_COMMON_BLOCKS = YES;
296
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
297
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
298
- GCC_WARN_UNDECLARED_SELECTOR = YES;
299
- GCC_WARN_UNINITIALIZED_AUTOS = YES;
300
- GCC_WARN_UNUSED_FUNCTION = YES;
301
- GCC_WARN_UNUSED_VARIABLE = YES;
302
- HEADER_SEARCH_PATHS = (
303
- "$(inherited)",
304
- "$(REACT_SEARCH_PATH)/React/**",
305
- "$(SRCROOT)/../../react-native/React/**",
306
- "$(SRCROOT)/../../react-native-firebase/ios/**",
307
- "$(FIREBASE_SEARCH_PATH)/Firebase/**",
308
- "${SRCROOT}/../../../ios/Firebase/**",
309
- "${SRCROOT}/../../../ios/Pods/Headers/Public/**",
310
- "${SRCROOT}/../../../tests/ios/Pods/Headers/Public/**",
311
- "$(SRCROOT)/../../../node_modules/react-native/React/**",
312
- "$(SRCROOT)/../../../node_modules/react-native-firebase/ios/**",
313
- "$(SRCROOT)/../../../packages/app/ios/**",
314
- );
315
- IPHONEOS_DEPLOYMENT_TARGET = 10.0;
316
- LIBRARY_SEARCH_PATHS = "$(inherited)";
317
- MACH_O_TYPE = staticlib;
318
- ONLY_ACTIVE_ARCH = YES;
319
- OTHER_LDFLAGS = "$(inherited)";
320
- PRODUCT_NAME = "$(TARGET_NAME)";
321
- SKIP_INSTALL = YES;
322
- };
323
- name = Debug;
324
- };
325
- /* End XCBuildConfiguration section */
326
-
327
- /* Begin XCConfigurationList section */
328
- 2744B98821F45429004F8E3F /* Build configuration list for PBXNativeTarget "RNFBAppCheck" */ = {
329
- isa = XCConfigurationList;
330
- buildConfigurations = (
331
- 2744B98921F45429004F8E3F /* Debug */,
332
- 2744B98A21F45429004F8E3F /* Release */,
333
- );
334
- defaultConfigurationIsVisible = 0;
335
- defaultConfigurationName = Release;
336
- };
337
- 3323F1C5716BA966BBBB95A4 /* Build configuration list for PBXProject "RNFBAppCheck" */ = {
338
- isa = XCConfigurationList;
339
- buildConfigurations = (
340
- 3323F7E33E1559A2B9826720 /* Debug */,
341
- 3323F77D701E1896E6D239CF /* Release */,
342
- );
343
- defaultConfigurationIsVisible = 0;
344
- defaultConfigurationName = Release;
345
- };
346
- /* End XCConfigurationList section */
347
- };
348
- rootObject = 3323F95273A95DB34F55C6D7 /* Project object */;
349
- }
@@ -1,24 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>FILEHEADER</key>
6
- <string>
7
- /**
8
- * Copyright (c) 2016-present Invertase Limited &amp; Contributors
9
- *
10
- * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
11
- * you may not use this library except in compliance with the License.
12
- * You may obtain a copy of the License at
13
- *
14
- * http://www.apache.org/licenses/LICENSE-2.0
15
- *
16
- * Unless required by applicable law or agreed to in writing, software
17
- * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
18
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- * See the License for the specific language governing permissions and
20
- * limitations under the License.
21
- *
22
- */</string>
23
- </dict>
24
- </plist>
@@ -1,9 +0,0 @@
1
- export default class ReactNativeFirebaseAppCheckProvider {
2
- providerOptions;
3
-
4
- constructor() {}
5
-
6
- configure(options) {
7
- this.providerOptions = options;
8
- }
9
- }
@@ -1,149 +0,0 @@
1
- import { ReactNativeFirebase } from '@react-native-firebase/app';
2
- import { FirebaseAppCheckTypes } from '..';
3
-
4
- import FirebaseApp = ReactNativeFirebase.FirebaseApp;
5
- import AppCheck = FirebaseAppCheckTypes.Module;
6
- import AppCheckOptions = FirebaseAppCheckTypes.AppCheckOptions;
7
- import AppCheckTokenResult = FirebaseAppCheckTypes.AppCheckTokenResult;
8
- import PartialObserver = FirebaseAppCheckTypes.PartialObserver;
9
- import Unsubscribe = FirebaseAppCheckTypes.Unsubscribe;
10
- import AppCheckProvider = FirebaseAppCheckTypes.AppCheckProvider;
11
- import CustomProviderOptions = FirebaseAppCheckTypes.CustomProviderOptions;
12
-
13
- /**
14
- * Activate App Check for the given app. Can be called only once per app.
15
- * @param app - FirebaseApp. Optional.
16
- * @param options - AppCheckOptions
17
- * @returns {Promise<AppCheck>}
18
- */
19
- export function initializeAppCheck(app?: FirebaseApp, options?: AppCheckOptions): Promise<AppCheck>;
20
-
21
- /**
22
- * Get the current App Check token. Attaches to the most recent in-flight request if one is present.
23
- * Returns null if no token is present and no token requests are in-flight.
24
- * @param appCheckInstance - AppCheck
25
- * @param forceRefresh - If true, will always try to fetch a fresh token. If false, will use a cached token if found in storage.
26
- * @returns {Promise<AppCheckTokenResult>}
27
- */
28
- export function getToken(
29
- appCheckInstance: AppCheck,
30
- forceRefresh?: boolean,
31
- ): Promise<AppCheckTokenResult>;
32
-
33
- /**
34
- * Get a limited-use (consumable) App Check token.
35
- * For use with server calls to firebase functions or custom backends using the firebase admin SDK
36
- * @param appCheckInstance - AppCheck
37
- * @returns {Promise<AppCheckTokenResult>}
38
- */
39
- export function getLimitedUseToken(appCheckInstance: AppCheck): Promise<AppCheckTokenResult>;
40
-
41
- /**
42
- * Registers a listener to changes in the token state. There can be more
43
- * than one listener registered at the same time for one or more
44
- * App Check instances. The listeners call back on the UI thread whenever
45
- * the current token associated with this App Check instance changes.
46
- *
47
- * @returns A function that unsubscribes this listener.
48
- */
49
- export function onTokenChanged(
50
- appCheckInstance: AppCheck,
51
- listener: PartialObserver<AppCheckTokenResult>,
52
- ): Unsubscribe;
53
-
54
- /**
55
- * Registers a listener to changes in the token state. There can be more
56
- * than one listener registered at the same time for one or more
57
- * App Check instances. The listeners call back on the UI thread whenever
58
- * the current token associated with this App Check instance changes.
59
- *
60
- * Token listeners do not exist in the native SDK for iOS, no token change events will be emitted on that platform.
61
- * This is not yet implemented on Android, no token change events will be emitted until implemented.
62
- *
63
- * NOTE: Although an `onError` callback can be provided, it will
64
- * never be called, Android sdk code doesn't provide handling for onError function
65
- *
66
- * NOTE: Although an `onCompletion` callback can be provided, it will
67
- * never be called because the token stream is never-ending.
68
- *
69
- * @returns A function that unsubscribes this listener.
70
- */
71
- export function onTokenChanged(
72
- appCheckInstance: AppCheck,
73
- onNext: (tokenResult: AppCheckListenerResult) => void,
74
- onError?: (error: Error) => void,
75
- onCompletion?: () => void,
76
- ): () => void;
77
-
78
- /**
79
- * Set whether App Check will automatically refresh tokens as needed.
80
- * @param appCheckInstance - AppCheck
81
- * @param isAutoRefreshEnabled - boolean
82
- */
83
- export function setTokenAutoRefreshEnabled(
84
- appCheckInstance: AppCheck,
85
- isAutoRefreshEnabled: boolean,
86
- ): void;
87
-
88
- /**
89
- * Custom provider class.
90
- * @public
91
- */
92
- export class CustomProvider implements AppCheckProvider {
93
- constructor(customProviderOptions: CustomProviderOptions);
94
- }
95
-
96
- /**
97
- * React-Native-Firebase AppCheckProvider that allows hot-swapping native AppCheck implementations
98
- */
99
- export interface ReactNativeFirebaseAppCheckProviderOptions {
100
- /**
101
- * debug token to use, if any. Defaults to undefined, pre-configure tokens in firebase web console if needed
102
- */
103
- debugToken?: string;
104
- }
105
-
106
- export interface ReactNativeFirebaseAppCheckProviderWebOptions extends ReactNativeFirebaseAppCheckProviderOptions {
107
- /**
108
- * The web provider to use, either `reCaptchaV3` or `reCaptchaEnterprise`, defaults to `reCaptchaV3`
109
- */
110
- provider?: 'debug' | 'reCaptchaV3' | 'reCaptchaEnterprise';
111
-
112
- /**
113
- * siteKey for use in web queries, defaults to `none`
114
- */
115
- siteKey?: string;
116
- }
117
-
118
- export interface ReactNativeFirebaseAppCheckProviderAppleOptions extends ReactNativeFirebaseAppCheckProviderOptions {
119
- /**
120
- * The apple provider to use, either `deviceCheck` or `appAttest`, or `appAttestWithDeviceCheckFallback`,
121
- * defaults to `DeviceCheck`. `appAttest` requires iOS 14+ or will fail, `appAttestWithDeviceCheckFallback`
122
- * will use `appAttest` for iOS14+ and fallback to `deviceCheck` on devices with ios13 and lower
123
- */
124
- provider?: 'debug' | 'deviceCheck' | 'appAttest' | 'appAttestWithDeviceCheckFallback';
125
- }
126
-
127
- export interface ReactNativeFirebaseAppCheckProviderAndroidOptions extends ReactNativeFirebaseAppCheckProviderOptions {
128
- /**
129
- * The android provider to use, either `debug` or `playIntegrity`. default is `playIntegrity`.
130
- */
131
- provider?: 'debug' | 'playIntegrity';
132
- }
133
-
134
- export class ReactNativeFirebaseAppCheckProvider extends AppCheckProvider {
135
- /**
136
- * Specify how the app check provider should be configured. The new configuration is
137
- * in effect when this call returns. You must call `getToken()`
138
- * after this call to get a token using the new configuration.
139
- * This custom provider allows for delayed configuration and re-configuration on all platforms
140
- * so AppCheck has the same experience across all platforms, with the only difference being the native
141
- * providers you choose to use on each platform.
142
- */
143
- configure(options: {
144
- web?: ReactNativeFirebaseAppCheckProviderWebOptions;
145
- android?: ReactNativeFirebaseAppCheckProviderAndroidOptions;
146
- apple?: ReactNativeFirebaseAppCheckProviderAppleOptions;
147
- isTokenAutoRefreshEnabled?: boolean;
148
- }): void;
149
- }
@@ -1,102 +0,0 @@
1
- /*
2
- * Copyright (c) 2016-present Invertase Limited & Contributors
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this library except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- *
16
- */
17
-
18
- import { getApp } from '@react-native-firebase/app';
19
- import { MODULAR_DEPRECATION_ARG } from '../../../app/lib/common';
20
- import ReactNativeFirebaseAppCheckProvider from '../ReactNativeFirebaseAppCheckProvider';
21
-
22
- /**
23
- * @typedef {import('@firebase/app').FirebaseApp} FirebaseApp
24
- * @typedef {import('..').FirebaseAppCheckTypes.Module} AppCheck
25
- * @typedef {import('..').FirebaseAppCheckTypes.AppCheckTokenResult} AppCheckTokenResult
26
- * @typedef {import('..').FirebaseAppCheckTypes.Unsubscribe} Unsubscribe
27
- * @typedef {import('..').FirebaseAppCheckTypes.PartialObserver} PartialObserver
28
- * @typedef {import('..').FirebaseAppCheckTypes.AppCheckOptions} AppCheckOptions
29
- */
30
-
31
- /**
32
- * Activate App Check for the given app. Can be called only once per app.
33
- * @param {FirebaseApp} [app] - The app to initialize App Check for. Optional.
34
- * @param {AppCheckOptions} options - App Check options.
35
- * @returns {Promise<AppCheck>}
36
- */
37
- export async function initializeAppCheck(app, options) {
38
- if (app) {
39
- const appCheck = getApp(app.name).appCheck();
40
- await appCheck.initializeAppCheck.call(appCheck, options, MODULAR_DEPRECATION_ARG);
41
- return appCheck;
42
- }
43
- const appCheck = getApp().appCheck();
44
- await appCheck.initializeAppCheck.call(appCheck, options, MODULAR_DEPRECATION_ARG);
45
- return appCheck;
46
- }
47
-
48
- /**
49
- * Get the current App Check token. Attaches to the most recent in-flight request if one is present.
50
- * Returns null if no token is present and no token requests are in-flight.
51
- * @param {AppCheck} appCheckInstance - The App Check instance.
52
- * @param {boolean} forceRefresh - Whether to force refresh the token. Optional
53
- * @returns {Promise<AppCheckTokenResult>}
54
- */
55
- export function getToken(appCheckInstance, forceRefresh) {
56
- return appCheckInstance.getToken.call(appCheckInstance, forceRefresh, MODULAR_DEPRECATION_ARG);
57
- }
58
-
59
- /**
60
- * Get a limited-use (consumable) App Check token.
61
- * For use with server calls to firebase functions or custom backends using the firebase admin SDK.
62
- * @param {AppCheck} appCheckInstance - The App Check instance.
63
- * @returns {Promise<AppCheckTokenResult>}
64
- */
65
- export function getLimitedUseToken(appCheckInstance) {
66
- return appCheckInstance.getLimitedUseToken.call(appCheckInstance, MODULAR_DEPRECATION_ARG);
67
- }
68
-
69
- /**
70
- * Set whether App Check will automatically refresh tokens as needed.
71
- * @param {AppCheck} appCheckInstance - The App Check instance.
72
- * @param {boolean} isAutoRefreshEnabled - Whether to enable auto-refresh.
73
- */
74
- export function setTokenAutoRefreshEnabled(appCheckInstance, isAutoRefreshEnabled) {
75
- return appCheckInstance.setTokenAutoRefreshEnabled.call(
76
- appCheckInstance,
77
- isAutoRefreshEnabled,
78
- MODULAR_DEPRECATION_ARG,
79
- );
80
- }
81
-
82
- /**
83
- * Registers a listener to changes in the token state. There can be more
84
- * than one listener registered at the same time for one or more
85
- * App Check instances. The listeners call back on the UI thread whenever
86
- * the current token associated with this App Check instance changes.
87
- *
88
- * @param {AppCheck} appCheckInstance - The App Check instance.
89
- * @param {PartialObserver<AppCheckTokenResult>} listener - The listener to register.
90
- * @returns {Unsubscribe}
91
- */
92
- export function onTokenChanged(appCheckInstance, onNextOrObserver, onError, onCompletion) {
93
- return appCheckInstance.onTokenChanged.call(
94
- appCheckInstance,
95
- onNextOrObserver,
96
- onError,
97
- onCompletion,
98
- MODULAR_DEPRECATION_ARG,
99
- );
100
- }
101
-
102
- export { ReactNativeFirebaseAppCheckProvider };
package/lib/version.js DELETED
@@ -1,2 +0,0 @@
1
- // Generated by genversion.
2
- module.exports = '23.6.0';
@@ -1,3 +0,0 @@
1
- import { ConfigPlugin } from '@expo/config-plugins';
2
- declare const _default: ConfigPlugin<void>;
3
- export default _default;
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const config_plugins_1 = require("@expo/config-plugins");
4
- const ios_1 = require("./ios");
5
- /**
6
- * A config plugin for configuring `@react-native-firebase/app-check`
7
- */
8
- const withRnFirebaseAppCheck = config => {
9
- return (0, config_plugins_1.withPlugins)(config, [
10
- // iOS
11
- ios_1.withFirebaseAppDelegate,
12
- ]);
13
- };
14
- const pak = require('@react-native-firebase/app-check/package.json');
15
- exports.default = (0, config_plugins_1.createRunOncePlugin)(withRnFirebaseAppCheck, pak.name, pak.version);
@@ -1,6 +0,0 @@
1
- import { ConfigPlugin } from '@expo/config-plugins';
2
- import { AppDelegateProjectFile } from '@expo/config-plugins/build/ios/Paths';
3
- export declare function modifyObjcAppDelegate(contents: string): string;
4
- export declare function modifySwiftAppDelegate(contents: string): string;
5
- export declare function modifyAppDelegateAsync(appDelegateFileInfo: AppDelegateProjectFile): Promise<void>;
6
- export declare const withFirebaseAppDelegate: ConfigPlugin;