@ohos-ports/react-native-firebase-dynamic-links 0.0.0-stage → 22.4.0-beta.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 (43) hide show
  1. package/CHANGELOG.md +971 -0
  2. package/LICENSE +32 -0
  3. package/README.md +53 -2
  4. package/RNFBDynamicLinks.podspec +49 -0
  5. package/android/.editorconfig +10 -0
  6. package/android/build.gradle +98 -0
  7. package/android/lint.xml +5 -0
  8. package/android/settings.gradle +1 -0
  9. package/android/src/main/AndroidManifest.xml +8 -0
  10. package/android/src/main/java/io/invertase/firebase/dynamiclinks/ReactNativeFirebaseDynamicLinksModule.java +507 -0
  11. package/android/src/main/java/io/invertase/firebase/dynamiclinks/ReactNativeFirebaseDynamicLinksPackage.java +44 -0
  12. package/app.plugin.js +1 -0
  13. package/ios/RNFBDynamicLinks/RNFBDynamicLinksAppDelegateInterceptor.h +37 -0
  14. package/ios/RNFBDynamicLinks/RNFBDynamicLinksAppDelegateInterceptor.m +132 -0
  15. package/ios/RNFBDynamicLinks/RNFBDynamicLinksModule.h +28 -0
  16. package/ios/RNFBDynamicLinks/RNFBDynamicLinksModule.m +443 -0
  17. package/ios/RNFBDynamicLinks.xcodeproj/project.pbxproj +354 -0
  18. package/ios/RNFBDynamicLinks.xcodeproj/xcshareddata/IDETemplateMacros.plist +24 -0
  19. package/lib/builder.js +93 -0
  20. package/lib/builders/analytics.js +61 -0
  21. package/lib/builders/android.js +52 -0
  22. package/lib/builders/ios.js +76 -0
  23. package/lib/builders/itunes.js +49 -0
  24. package/lib/builders/navigation.js +37 -0
  25. package/lib/builders/otherPlatform.js +20 -0
  26. package/lib/builders/social.js +49 -0
  27. package/lib/index.d.ts +650 -0
  28. package/lib/index.js +119 -0
  29. package/lib/modular/index.d.ts +148 -0
  30. package/lib/modular/index.js +110 -0
  31. package/lib/version.js +2 -0
  32. package/package.json +42 -4
  33. package/plugin/build/index.d.ts +3 -0
  34. package/plugin/build/index.js +17 -0
  35. package/plugin/build/ios/appDelegate.d.ts +5 -0
  36. package/plugin/build/ios/appDelegate.js +86 -0
  37. package/plugin/build/ios/index.d.ts +2 -0
  38. package/plugin/build/ios/index.js +13 -0
  39. package/plugin/src/index.ts +15 -0
  40. package/plugin/src/ios/appDelegate.ts +92 -0
  41. package/plugin/src/ios/index.ts +3 -0
  42. package/plugin/tsconfig.json +9 -0
  43. package/plugin/tsconfig.tsbuildinfo +1 -0
@@ -0,0 +1,354 @@
1
+ // !$*UTF8*$!
2
+ {
3
+ archiveVersion = 1;
4
+ classes = {
5
+ };
6
+ objectVersion = 48;
7
+ objects = {
8
+
9
+ /* Begin PBXBuildFile section */
10
+ 2744B98621F45429004F8E3F /* RNFBDynamicLinksModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 2744B98521F45429004F8E3F /* RNFBDynamicLinksModule.m */; };
11
+ DADD678B22A8D02E00BBEC26 /* RNFBDynamicLinksAppDelegateInterceptor.m in Sources */ = {isa = PBXBuildFile; fileRef = DADD678A22A8D02E00BBEC26 /* RNFBDynamicLinksAppDelegateInterceptor.m */; };
12
+ /* End PBXBuildFile section */
13
+
14
+ /* Begin PBXCopyFilesBuildPhase section */
15
+ 2744B98021F45429004F8E3F /* CopyFiles */ = {
16
+ isa = PBXCopyFilesBuildPhase;
17
+ buildActionMask = 2147483647;
18
+ dstPath = "";
19
+ dstSubfolderSpec = 16;
20
+ files = (
21
+ );
22
+ runOnlyForDeploymentPostprocessing = 0;
23
+ };
24
+ /* End PBXCopyFilesBuildPhase section */
25
+
26
+ /* Begin PBXFileReference section */
27
+ 2744B98221F45429004F8E3F /* libRNFBDynamicLinks.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNFBDynamicLinks.a; sourceTree = BUILT_PRODUCTS_DIR; };
28
+ 2744B98421F45429004F8E3F /* RNFBDynamicLinksModule.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = RNFBDynamicLinksModule.h; path = RNFBDynamicLinks/RNFBDynamicLinksModule.h; sourceTree = SOURCE_ROOT; };
29
+ 2744B98521F45429004F8E3F /* RNFBDynamicLinksModule.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = RNFBDynamicLinksModule.m; path = RNFBDynamicLinks/RNFBDynamicLinksModule.m; sourceTree = SOURCE_ROOT; };
30
+ DADD678922A8D01600BBEC26 /* RNFBDynamicLinksAppDelegateInterceptor.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNFBDynamicLinksAppDelegateInterceptor.h; sourceTree = "<group>"; };
31
+ DADD678A22A8D02E00BBEC26 /* RNFBDynamicLinksAppDelegateInterceptor.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNFBDynamicLinksAppDelegateInterceptor.m; sourceTree = "<group>"; };
32
+ /* End PBXFileReference section */
33
+
34
+ /* Begin PBXFrameworksBuildPhase section */
35
+ 2744B97F21F45429004F8E3F /* Frameworks */ = {
36
+ isa = PBXFrameworksBuildPhase;
37
+ buildActionMask = 2147483647;
38
+ files = (
39
+ );
40
+ runOnlyForDeploymentPostprocessing = 0;
41
+ };
42
+ /* End PBXFrameworksBuildPhase section */
43
+
44
+ /* Begin PBXGroup section */
45
+ 2744B97521F452B8004F8E3F /* Products */ = {
46
+ isa = PBXGroup;
47
+ children = (
48
+ 2744B98221F45429004F8E3F /* libRNFBDynamicLinks.a */,
49
+ );
50
+ name = Products;
51
+ sourceTree = "<group>";
52
+ };
53
+ 2744B98321F45429004F8E3F /* RNFBDynamicLinks */ = {
54
+ isa = PBXGroup;
55
+ children = (
56
+ 2744B98421F45429004F8E3F /* RNFBDynamicLinksModule.h */,
57
+ 2744B98521F45429004F8E3F /* RNFBDynamicLinksModule.m */,
58
+ DADD678922A8D01600BBEC26 /* RNFBDynamicLinksAppDelegateInterceptor.h */,
59
+ DADD678A22A8D02E00BBEC26 /* RNFBDynamicLinksAppDelegateInterceptor.m */,
60
+ );
61
+ path = RNFBDynamicLinks;
62
+ sourceTree = "<group>";
63
+ };
64
+ 3323F52AAFE26B7384BE4DE3 = {
65
+ isa = PBXGroup;
66
+ children = (
67
+ 2744B98321F45429004F8E3F /* RNFBDynamicLinks */,
68
+ 2744B97521F452B8004F8E3F /* Products */,
69
+ );
70
+ sourceTree = "<group>";
71
+ };
72
+ /* End PBXGroup section */
73
+
74
+ /* Begin PBXNativeTarget section */
75
+ 2744B98121F45429004F8E3F /* RNFBDynamicLinks */ = {
76
+ isa = PBXNativeTarget;
77
+ buildConfigurationList = 2744B98821F45429004F8E3F /* Build configuration list for PBXNativeTarget "RNFBDynamicLinks" */;
78
+ buildPhases = (
79
+ 2744B97E21F45429004F8E3F /* Sources */,
80
+ 2744B97F21F45429004F8E3F /* Frameworks */,
81
+ 2744B98021F45429004F8E3F /* CopyFiles */,
82
+ );
83
+ buildRules = (
84
+ );
85
+ dependencies = (
86
+ );
87
+ name = RNFBDynamicLinks;
88
+ productName = RNFBDynamicLinks;
89
+ productReference = 2744B98221F45429004F8E3F /* libRNFBDynamicLinks.a */;
90
+ productType = "com.apple.product-type.library.static";
91
+ };
92
+ /* End PBXNativeTarget section */
93
+
94
+ /* Begin PBXProject section */
95
+ 3323F95273A95DB34F55C6D7 /* Project object */ = {
96
+ isa = PBXProject;
97
+ attributes = {
98
+ CLASSPREFIX = RNFBDynamicLinks;
99
+ LastUpgradeCheck = 1010;
100
+ ORGANIZATIONNAME = Invertase;
101
+ TargetAttributes = {
102
+ 2744B98121F45429004F8E3F = {
103
+ CreatedOnToolsVersion = 10.1;
104
+ ProvisioningStyle = Automatic;
105
+ };
106
+ };
107
+ };
108
+ buildConfigurationList = 3323F1C5716BA966BBBB95A4 /* Build configuration list for PBXProject "RNFBDynamicLinks" */;
109
+ compatibilityVersion = "Xcode 8.0";
110
+ developmentRegion = English;
111
+ hasScannedForEncodings = 0;
112
+ knownRegions = (
113
+ English,
114
+ en,
115
+ );
116
+ mainGroup = 3323F52AAFE26B7384BE4DE3;
117
+ productRefGroup = 2744B97521F452B8004F8E3F /* Products */;
118
+ projectDirPath = "";
119
+ projectRoot = "";
120
+ targets = (
121
+ 2744B98121F45429004F8E3F /* RNFBDynamicLinks */,
122
+ );
123
+ };
124
+ /* End PBXProject section */
125
+
126
+ /* Begin PBXSourcesBuildPhase section */
127
+ 2744B97E21F45429004F8E3F /* Sources */ = {
128
+ isa = PBXSourcesBuildPhase;
129
+ buildActionMask = 2147483647;
130
+ files = (
131
+ DADD678B22A8D02E00BBEC26 /* RNFBDynamicLinksAppDelegateInterceptor.m in Sources */,
132
+ 2744B98621F45429004F8E3F /* RNFBDynamicLinksModule.m in Sources */,
133
+ );
134
+ runOnlyForDeploymentPostprocessing = 0;
135
+ };
136
+ /* End PBXSourcesBuildPhase section */
137
+
138
+ /* Begin XCBuildConfiguration section */
139
+ 2744B98921F45429004F8E3F /* Debug */ = {
140
+ isa = XCBuildConfiguration;
141
+ buildSettings = {
142
+ ALWAYS_SEARCH_USER_PATHS = NO;
143
+ CLANG_ANALYZER_NONNULL = YES;
144
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
145
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
146
+ CLANG_CXX_LIBRARY = "libc++";
147
+ CLANG_ENABLE_MODULES = YES;
148
+ CLANG_ENABLE_OBJC_ARC = YES;
149
+ CLANG_ENABLE_OBJC_WEAK = YES;
150
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
151
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
152
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
153
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
154
+ CODE_SIGN_IDENTITY = "iPhone Developer";
155
+ CODE_SIGN_STYLE = Automatic;
156
+ COPY_PHASE_STRIP = NO;
157
+ DEBUG_INFORMATION_FORMAT = dwarf;
158
+ GCC_C_LANGUAGE_STANDARD = gnu11;
159
+ GCC_DYNAMIC_NO_PIC = NO;
160
+ GCC_OPTIMIZATION_LEVEL = 0;
161
+ GCC_PREPROCESSOR_DEFINITIONS = (
162
+ "DEBUG=1",
163
+ "$(inherited)",
164
+ );
165
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
166
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
167
+ IPHONEOS_DEPLOYMENT_TARGET = 10.0;
168
+ MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
169
+ MTL_FAST_MATH = YES;
170
+ OTHER_LDFLAGS = "-ObjC";
171
+ PRODUCT_NAME = "$(TARGET_NAME)";
172
+ SDKROOT = iphoneos;
173
+ SKIP_INSTALL = YES;
174
+ TARGETED_DEVICE_FAMILY = "1,2";
175
+ };
176
+ name = Debug;
177
+ };
178
+ 2744B98A21F45429004F8E3F /* Release */ = {
179
+ isa = XCBuildConfiguration;
180
+ buildSettings = {
181
+ ALWAYS_SEARCH_USER_PATHS = NO;
182
+ CLANG_ANALYZER_NONNULL = YES;
183
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
184
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
185
+ CLANG_CXX_LIBRARY = "libc++";
186
+ CLANG_ENABLE_MODULES = YES;
187
+ CLANG_ENABLE_OBJC_ARC = YES;
188
+ CLANG_ENABLE_OBJC_WEAK = YES;
189
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
190
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
191
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
192
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
193
+ CODE_SIGN_IDENTITY = "iPhone Developer";
194
+ CODE_SIGN_STYLE = Automatic;
195
+ COPY_PHASE_STRIP = NO;
196
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
197
+ ENABLE_NS_ASSERTIONS = NO;
198
+ GCC_C_LANGUAGE_STANDARD = gnu11;
199
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
200
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
201
+ IPHONEOS_DEPLOYMENT_TARGET = 10.0;
202
+ MTL_ENABLE_DEBUG_INFO = NO;
203
+ MTL_FAST_MATH = YES;
204
+ OTHER_LDFLAGS = "-ObjC";
205
+ PRODUCT_NAME = "$(TARGET_NAME)";
206
+ SDKROOT = iphoneos;
207
+ SKIP_INSTALL = YES;
208
+ TARGETED_DEVICE_FAMILY = "1,2";
209
+ VALIDATE_PRODUCT = YES;
210
+ };
211
+ name = Release;
212
+ };
213
+ 3323F77D701E1896E6D239CF /* Release */ = {
214
+ isa = XCBuildConfiguration;
215
+ buildSettings = {
216
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
217
+ CLANG_WARN_BOOL_CONVERSION = YES;
218
+ CLANG_WARN_COMMA = YES;
219
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
220
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
221
+ CLANG_WARN_EMPTY_BODY = YES;
222
+ CLANG_WARN_ENUM_CONVERSION = YES;
223
+ CLANG_WARN_INFINITE_RECURSION = YES;
224
+ CLANG_WARN_INT_CONVERSION = YES;
225
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
226
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
227
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
228
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
229
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
230
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
231
+ CLANG_WARN_UNREACHABLE_CODE = YES;
232
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
233
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
234
+ FRAMEWORK_SEARCH_PATHS = (
235
+ "$(inherited)",
236
+ "${BUILT_PRODUCTS_DIR}/**",
237
+ "${SRCROOT}/../../../ios/Firebase/**",
238
+ "$(FIREBASE_SEARCH_PATH)/Firebase/**",
239
+ "$(SRCROOT)/../../../ios/Pods/FirebaseLinks/Frameworks",
240
+ "$(SRCROOT)/../../../tests/ios/Pods/FirebaseLinks/Frameworks",
241
+ );
242
+ GCC_NO_COMMON_BLOCKS = YES;
243
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
244
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
245
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
246
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
247
+ GCC_WARN_UNUSED_FUNCTION = YES;
248
+ GCC_WARN_UNUSED_VARIABLE = YES;
249
+ HEADER_SEARCH_PATHS = (
250
+ "$(inherited)",
251
+ "$(REACT_SEARCH_PATH)/React/**",
252
+ "$(SRCROOT)/../../react-native/React/**",
253
+ "$(SRCROOT)/../../react-native-firebase/ios/**",
254
+ "$(FIREBASE_SEARCH_PATH)/Firebase/**",
255
+ "${SRCROOT}/../../../ios/Firebase/**",
256
+ "${SRCROOT}/../../../ios/Pods/Headers/Public/**",
257
+ "${SRCROOT}/../../../tests/ios/Pods/Headers/Public/**",
258
+ "$(SRCROOT)/../../../node_modules/react-native/React/**",
259
+ "$(SRCROOT)/../../../node_modules/react-native-firebase/ios/**",
260
+ "$(SRCROOT)/../../../packages/app/ios/**",
261
+ );
262
+ IPHONEOS_DEPLOYMENT_TARGET = 10.0;
263
+ LIBRARY_SEARCH_PATHS = "$(inherited)";
264
+ MACH_O_TYPE = staticlib;
265
+ OTHER_LDFLAGS = "$(inherited)";
266
+ PRODUCT_NAME = "$(TARGET_NAME)";
267
+ SKIP_INSTALL = YES;
268
+ };
269
+ name = Release;
270
+ };
271
+ 3323F7E33E1559A2B9826720 /* Debug */ = {
272
+ isa = XCBuildConfiguration;
273
+ buildSettings = {
274
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
275
+ CLANG_WARN_BOOL_CONVERSION = YES;
276
+ CLANG_WARN_COMMA = YES;
277
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
278
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
279
+ CLANG_WARN_EMPTY_BODY = YES;
280
+ CLANG_WARN_ENUM_CONVERSION = YES;
281
+ CLANG_WARN_INFINITE_RECURSION = YES;
282
+ CLANG_WARN_INT_CONVERSION = YES;
283
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
284
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
285
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
286
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
287
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
288
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
289
+ CLANG_WARN_UNREACHABLE_CODE = YES;
290
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
291
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
292
+ ENABLE_TESTABILITY = YES;
293
+ FRAMEWORK_SEARCH_PATHS = (
294
+ "$(inherited)",
295
+ "${BUILT_PRODUCTS_DIR}/**",
296
+ "${SRCROOT}/../../../ios/Firebase/**",
297
+ "$(FIREBASE_SEARCH_PATH)/Firebase/**",
298
+ "$(SRCROOT)/../../../ios/Pods/FirebaseLinks/Frameworks",
299
+ );
300
+ GCC_NO_COMMON_BLOCKS = YES;
301
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
302
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
303
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
304
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
305
+ GCC_WARN_UNUSED_FUNCTION = YES;
306
+ GCC_WARN_UNUSED_VARIABLE = YES;
307
+ HEADER_SEARCH_PATHS = (
308
+ "$(inherited)",
309
+ "$(REACT_SEARCH_PATH)/React/**",
310
+ "$(SRCROOT)/../../react-native/React/**",
311
+ "$(SRCROOT)/../../react-native-firebase/ios/**",
312
+ "$(FIREBASE_SEARCH_PATH)/Firebase/**",
313
+ "${SRCROOT}/../../../ios/Firebase/**",
314
+ "${SRCROOT}/../../../ios/Pods/Headers/Public/**",
315
+ "${SRCROOT}/../../../tests/ios/Pods/Headers/Public/**",
316
+ "$(SRCROOT)/../../../node_modules/react-native/React/**",
317
+ "$(SRCROOT)/../../../node_modules/react-native-firebase/ios/**",
318
+ "$(SRCROOT)/../../../packages/app/ios/**",
319
+ );
320
+ IPHONEOS_DEPLOYMENT_TARGET = 10.0;
321
+ LIBRARY_SEARCH_PATHS = "$(inherited)";
322
+ MACH_O_TYPE = staticlib;
323
+ ONLY_ACTIVE_ARCH = YES;
324
+ OTHER_LDFLAGS = "$(inherited)";
325
+ PRODUCT_NAME = "$(TARGET_NAME)";
326
+ SKIP_INSTALL = YES;
327
+ };
328
+ name = Debug;
329
+ };
330
+ /* End XCBuildConfiguration section */
331
+
332
+ /* Begin XCConfigurationList section */
333
+ 2744B98821F45429004F8E3F /* Build configuration list for PBXNativeTarget "RNFBDynamicLinks" */ = {
334
+ isa = XCConfigurationList;
335
+ buildConfigurations = (
336
+ 2744B98921F45429004F8E3F /* Debug */,
337
+ 2744B98A21F45429004F8E3F /* Release */,
338
+ );
339
+ defaultConfigurationIsVisible = 0;
340
+ defaultConfigurationName = Release;
341
+ };
342
+ 3323F1C5716BA966BBBB95A4 /* Build configuration list for PBXProject "RNFBDynamicLinks" */ = {
343
+ isa = XCConfigurationList;
344
+ buildConfigurations = (
345
+ 3323F7E33E1559A2B9826720 /* Debug */,
346
+ 3323F77D701E1896E6D239CF /* Release */,
347
+ );
348
+ defaultConfigurationIsVisible = 0;
349
+ defaultConfigurationName = Release;
350
+ };
351
+ /* End XCConfigurationList section */
352
+ };
353
+ rootObject = 3323F95273A95DB34F55C6D7 /* Project object */;
354
+ }
@@ -0,0 +1,24 @@
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>
package/lib/builder.js ADDED
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = build;
7
+ var _common = require("@react-native-firebase/app/lib/common");
8
+ var _analytics = require("./builders/analytics");
9
+ var _android = require("./builders/android");
10
+ var _ios = require("./builders/ios");
11
+ var _itunes = require("./builders/itunes");
12
+ var _navigation = require("./builders/navigation");
13
+ var _social = require("./builders/social");
14
+ var _otherPlatform = require("./builders/otherPlatform");
15
+ /*
16
+ * Copyright (c) 2016-present Invertase Limited & Contributors
17
+ *
18
+ * Licensed under the Apache License, Version 2.0 (the "License");
19
+ * you may not use this library except in compliance with the License.
20
+ * You may obtain a copy of the License at
21
+ *
22
+ * http://www.apache.org/licenses/LICENSE-2.0
23
+ *
24
+ * Unless required by applicable law or agreed to in writing, software
25
+ * distributed under the License is distributed on an "AS IS" BASIS,
26
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
27
+ * See the License for the specific language governing permissions and
28
+ * limitations under the License.
29
+ *
30
+ */
31
+
32
+ function build(dynamicLinksParams) {
33
+ if (!(0, _common.isObject)(dynamicLinksParams)) {
34
+ throw new Error("'dynamicLinksParams' must be an object.");
35
+ }
36
+ const {
37
+ link,
38
+ domainUriPrefix,
39
+ android,
40
+ analytics,
41
+ ios,
42
+ itunes,
43
+ navigation,
44
+ social,
45
+ otherPlatform
46
+ } = dynamicLinksParams;
47
+ if (!link) {
48
+ throw new Error("missing required 'link' property.");
49
+ }
50
+ if (!(0, _common.isString)(link)) {
51
+ throw new Error("'link' expected a string.");
52
+ }
53
+
54
+ // TODO better validation?
55
+ if (!link.startsWith('http://') && !link.startsWith('https://')) {
56
+ throw new Error("'link' expected a well-formatted URL using the HTTP or HTTPS scheme.");
57
+ }
58
+ if (!domainUriPrefix) {
59
+ throw new Error("missing required 'domainUriPrefix' property.");
60
+ }
61
+ if (!(0, _common.isString)(domainUriPrefix)) {
62
+ throw new Error("'domainUriPrefix' expected a string.");
63
+ }
64
+ if (!domainUriPrefix.startsWith('http://') && !domainUriPrefix.startsWith('https://')) {
65
+ throw new Error("'domainUriPrefix' expected a well-formatted URL using the HTTP or HTTPS scheme.");
66
+ }
67
+ const params = {
68
+ link,
69
+ domainUriPrefix
70
+ };
71
+ if (analytics) {
72
+ params.analytics = (0, _analytics.default)(analytics);
73
+ }
74
+ if (android) {
75
+ params.android = (0, _android.default)(android);
76
+ }
77
+ if (ios) {
78
+ params.ios = (0, _ios.default)(ios);
79
+ }
80
+ if (itunes) {
81
+ params.itunes = (0, _itunes.default)(itunes);
82
+ }
83
+ if (navigation) {
84
+ params.navigation = (0, _navigation.default)(navigation);
85
+ }
86
+ if (social) {
87
+ params.social = (0, _social.default)(social);
88
+ }
89
+ if (otherPlatform) {
90
+ params.otherPlatform = (0, _otherPlatform.default)(otherPlatform);
91
+ }
92
+ return params;
93
+ }
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = buildAnalytics;
7
+ var _common = require("@react-native-firebase/app/lib/common");
8
+ /*
9
+ * Copyright (c) 2016-present Invertase Limited & Contributors
10
+ *
11
+ * Licensed under the Apache License, Version 2.0 (the "License");
12
+ * you may not use this library except in compliance with the License.
13
+ * You may obtain a copy of the License at
14
+ *
15
+ * http://www.apache.org/licenses/LICENSE-2.0
16
+ *
17
+ * Unless required by applicable law or agreed to in writing, software
18
+ * distributed under the License is distributed on an "AS IS" BASIS,
19
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
+ * See the License for the specific language governing permissions and
21
+ * limitations under the License.
22
+ *
23
+ */
24
+
25
+ function buildAnalytics(analyticsParams) {
26
+ if (!(0, _common.isObject)(analyticsParams)) {
27
+ throw new Error("'dynamicLinksParams.analytics' must be an object.");
28
+ }
29
+ const params = {};
30
+ if (analyticsParams.campaign) {
31
+ if (!(0, _common.isString)(analyticsParams.campaign)) {
32
+ throw new Error("'dynamicLinksParams.analytics.campaign' must be a string.");
33
+ }
34
+ params.campaign = analyticsParams.campaign;
35
+ }
36
+ if (analyticsParams.content) {
37
+ if (!(0, _common.isString)(analyticsParams.content)) {
38
+ throw new Error("'dynamicLinksParams.analytics.content' must be a string.");
39
+ }
40
+ params.content = analyticsParams.content;
41
+ }
42
+ if (analyticsParams.medium) {
43
+ if (!(0, _common.isString)(analyticsParams.medium)) {
44
+ throw new Error("'dynamicLinksParams.analytics.medium' must be a string.");
45
+ }
46
+ params.medium = analyticsParams.medium;
47
+ }
48
+ if (analyticsParams.source) {
49
+ if (!(0, _common.isString)(analyticsParams.source)) {
50
+ throw new Error("'dynamicLinksParams.analytics.source' must be a string.");
51
+ }
52
+ params.source = analyticsParams.source;
53
+ }
54
+ if (analyticsParams.term) {
55
+ if (!(0, _common.isString)(analyticsParams.term)) {
56
+ throw new Error("'dynamicLinksParams.analytics.term' must be a string.");
57
+ }
58
+ params.term = analyticsParams.term;
59
+ }
60
+ return params;
61
+ }
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = buildAndroid;
7
+ var _common = require("@react-native-firebase/app/lib/common");
8
+ /*
9
+ * Copyright (c) 2016-present Invertase Limited & Contributors
10
+ *
11
+ * Licensed under the Apache License, Version 2.0 (the "License");
12
+ * you may not use this library except in compliance with the License.
13
+ * You may obtain a copy of the License at
14
+ *
15
+ * http://www.apache.org/licenses/LICENSE-2.0
16
+ *
17
+ * Unless required by applicable law or agreed to in writing, software
18
+ * distributed under the License is distributed on an "AS IS" BASIS,
19
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
+ * See the License for the specific language governing permissions and
21
+ * limitations under the License.
22
+ *
23
+ */
24
+
25
+ function buildAndroid(androidParams) {
26
+ if (!(0, _common.isObject)(androidParams)) {
27
+ throw new Error("'dynamicLinksParams.android' must be an object.");
28
+ }
29
+ const params = {};
30
+ if (androidParams.fallbackUrl) {
31
+ if (!(0, _common.isString)(androidParams.fallbackUrl)) {
32
+ throw new Error("'dynamicLinksParams.android.fallbackUrl' must be a string.");
33
+ }
34
+ params.fallbackUrl = androidParams.fallbackUrl;
35
+ }
36
+ if (androidParams.minimumVersion) {
37
+ if (!(0, _common.isString)(androidParams.minimumVersion)) {
38
+ throw new Error("'dynamicLinksParams.android.minimumVersion' must be a string.");
39
+ }
40
+ params.minimumVersion = androidParams.minimumVersion;
41
+ }
42
+ if (androidParams.packageName) {
43
+ if (!(0, _common.isString)(androidParams.packageName)) {
44
+ throw new Error("'dynamicLinksParams.android.packageName' must be a string.");
45
+ }
46
+ params.packageName = androidParams.packageName;
47
+ }
48
+ if (!params.packageName) {
49
+ throw new Error("'dynamicLinksParams.android' missing required 'packageName' property.");
50
+ }
51
+ return params;
52
+ }
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = buildIos;
7
+ var _common = require("@react-native-firebase/app/lib/common");
8
+ /*
9
+ * Copyright (c) 2016-present Invertase Limited & Contributors
10
+ *
11
+ * Licensed under the Apache License, Version 2.0 (the "License");
12
+ * you may not use this library except in compliance with the License.
13
+ * You may obtain a copy of the License at
14
+ *
15
+ * http://www.apache.org/licenses/LICENSE-2.0
16
+ *
17
+ * Unless required by applicable law or agreed to in writing, software
18
+ * distributed under the License is distributed on an "AS IS" BASIS,
19
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
+ * See the License for the specific language governing permissions and
21
+ * limitations under the License.
22
+ *
23
+ */
24
+
25
+ function buildIos(iosParams) {
26
+ if (!(0, _common.isObject)(iosParams)) {
27
+ throw new Error("'dynamicLinksParams.ios' must be an object.");
28
+ }
29
+ const params = {};
30
+ if (iosParams.appStoreId) {
31
+ if (!(0, _common.isString)(iosParams.appStoreId)) {
32
+ throw new Error("'dynamicLinksParams.ios.appStoreId' must be a string.");
33
+ }
34
+ params.appStoreId = iosParams.appStoreId;
35
+ }
36
+ if (iosParams.bundleId) {
37
+ if (!(0, _common.isString)(iosParams.bundleId)) {
38
+ throw new Error("'dynamicLinksParams.ios.bundleId' must be a string.");
39
+ }
40
+ params.bundleId = iosParams.bundleId;
41
+ }
42
+ if (iosParams.customScheme) {
43
+ if (!(0, _common.isString)(iosParams.customScheme)) {
44
+ throw new Error("'dynamicLinksParams.ios.customScheme' must be a string.");
45
+ }
46
+ params.customScheme = iosParams.customScheme;
47
+ }
48
+ if (iosParams.fallbackUrl) {
49
+ if (!(0, _common.isString)(iosParams.fallbackUrl)) {
50
+ throw new Error("'dynamicLinksParams.ios.fallbackUrl' must be a string.");
51
+ }
52
+ params.fallbackUrl = iosParams.fallbackUrl;
53
+ }
54
+ if (iosParams.iPadBundleId) {
55
+ if (!(0, _common.isString)(iosParams.iPadBundleId)) {
56
+ throw new Error("'dynamicLinksParams.ios.iPadBundleId' must be a string.");
57
+ }
58
+ params.iPadBundleId = iosParams.iPadBundleId;
59
+ }
60
+ if (iosParams.iPadFallbackUrl) {
61
+ if (!(0, _common.isString)(iosParams.iPadFallbackUrl)) {
62
+ throw new Error("'dynamicLinksParams.ios.iPadFallbackUrl' must be a string.");
63
+ }
64
+ params.iPadFallbackUrl = iosParams.iPadFallbackUrl;
65
+ }
66
+ if (iosParams.minimumVersion) {
67
+ if (!(0, _common.isString)(iosParams.minimumVersion)) {
68
+ throw new Error("'dynamicLinksParams.ios.minimumVersion' must be a string.");
69
+ }
70
+ params.minimumVersion = iosParams.minimumVersion;
71
+ }
72
+ if (!params.bundleId) {
73
+ throw new Error("'dynamicLinksParams.ios' missing required 'bundleId' property.");
74
+ }
75
+ return params;
76
+ }