@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,49 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = buildiTunes;
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 buildiTunes(itunesParams) {
26
+ if (!(0, _common.isObject)(itunesParams)) {
27
+ throw new Error("'dynamicLinksParams.itunes' must be an object.");
28
+ }
29
+ const params = {};
30
+ if (itunesParams.affiliateToken) {
31
+ if (!(0, _common.isString)(itunesParams.affiliateToken)) {
32
+ throw new Error("'dynamicLinksParams.itunes.affiliateToken' must be a string.");
33
+ }
34
+ params.affiliateToken = itunesParams.affiliateToken;
35
+ }
36
+ if (itunesParams.campaignToken) {
37
+ if (!(0, _common.isString)(itunesParams.campaignToken)) {
38
+ throw new Error("'dynamicLinksParams.itunes.campaignToken' must be a string.");
39
+ }
40
+ params.campaignToken = itunesParams.campaignToken;
41
+ }
42
+ if (itunesParams.providerToken) {
43
+ if (!(0, _common.isString)(itunesParams.providerToken)) {
44
+ throw new Error("'dynamicLinksParams.itunes.providerToken' must be a string.");
45
+ }
46
+ params.providerToken = itunesParams.providerToken;
47
+ }
48
+ return params;
49
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = buildNavigation;
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 buildNavigation(navigationParams) {
26
+ if (!(0, _common.isObject)(navigationParams)) {
27
+ throw new Error("'dynamicLinksParams.navigation' must be an object.");
28
+ }
29
+ const params = {};
30
+ if ((0, _common.hasOwnProperty)(navigationParams, 'forcedRedirectEnabled')) {
31
+ if (!(0, _common.isBoolean)(navigationParams.forcedRedirectEnabled)) {
32
+ throw new Error("'dynamicLinksParams.navigation.forcedRedirectEnabled' must be a boolean.");
33
+ }
34
+ params.forcedRedirectEnabled = navigationParams.forcedRedirectEnabled;
35
+ }
36
+ return params;
37
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = buildOtherPlatform;
7
+ var _common = require("@react-native-firebase/app/lib/common");
8
+ function buildOtherPlatform(otherPlatformParameters) {
9
+ if (!(0, _common.isObject)(otherPlatformParameters)) {
10
+ throw new Error("'dynamicLinksParams.otherPlatform' must be an object.");
11
+ }
12
+ const params = {};
13
+ if (otherPlatformParameters.fallbackUrl) {
14
+ if (!(0, _common.isString)(otherPlatformParameters.fallbackUrl)) {
15
+ throw new Error("'dynamicLinksParams.otherPlatform.fallbackUrl' must be a string.");
16
+ }
17
+ params.fallbackUrl = otherPlatformParameters.fallbackUrl;
18
+ }
19
+ return params;
20
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = buildSocial;
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 buildSocial(socialParameters) {
26
+ if (!(0, _common.isObject)(socialParameters)) {
27
+ throw new Error("'dynamicLinksParams.social' must be an object.");
28
+ }
29
+ const params = {};
30
+ if (socialParameters.descriptionText) {
31
+ if (!(0, _common.isString)(socialParameters.descriptionText)) {
32
+ throw new Error("'dynamicLinksParams.social.descriptionText' must be a string.");
33
+ }
34
+ params.descriptionText = socialParameters.descriptionText;
35
+ }
36
+ if (socialParameters.imageUrl) {
37
+ if (!(0, _common.isString)(socialParameters.imageUrl)) {
38
+ throw new Error("'dynamicLinksParams.social.imageUrl' must be a string.");
39
+ }
40
+ params.imageUrl = socialParameters.imageUrl;
41
+ }
42
+ if (socialParameters.title) {
43
+ if (!(0, _common.isString)(socialParameters.title)) {
44
+ throw new Error("'dynamicLinksParams.social.title' must be a string.");
45
+ }
46
+ params.title = socialParameters.title;
47
+ }
48
+ return params;
49
+ }