@xrnjs/app-template 0.0.6 → 0.1.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 (124) hide show
  1. package/$package.json +30 -36
  2. package/android/app/build.gradle +56 -73
  3. package/android/app/src/debug/java/com/xrn/template/ReactNativeFlipper.java +23 -44
  4. package/android/app/src/main/assets/xrn-manifest.json +1 -1
  5. package/android/app/src/main/java/com/xrn/template/MainApplication.kt +54 -65
  6. package/android/app/src/main/java/com/xrn/template/multibundle/CodePushBundleActivity.kt +65 -0
  7. package/android/app/src/main/java/com/xrn/template/multibundle/CodePushJSBundleLoader.kt +18 -0
  8. package/android/app/src/main/java/com/xrn/template/multibundle/CodePushUtils.kt +263 -0
  9. package/android/app/src/main/java/com/xrn/template/multibundle/XBundleTool.kt +9 -0
  10. package/android/app/src/main/java/com/xrn/template/multibundle/XRNReactHostDelegate.kt +56 -0
  11. package/android/app/src/main/java/com/xrn/template/navigation/XBundleActivity.kt +10 -7
  12. package/android/app/src/main/res/raw/bundle_config.json +2 -6
  13. package/android/build.gradle +40 -39
  14. package/android/buildSrc/build.gradle.kts +15 -0
  15. package/android/gradle/wrapper/gradle-wrapper.properties +3 -1
  16. package/android/gradle.properties +17 -10
  17. package/android/settings.gradle +40 -12
  18. package/harmony/.clang-tidy +1 -1
  19. package/harmony/.clangd +3 -1
  20. package/harmony/AppScope/app.json5 +1 -1
  21. package/harmony/build-profile.json5 +8 -8
  22. package/harmony/entry/oh-package-lock.json5 +283 -262
  23. package/harmony/entry/oh-package.json5 +35 -36
  24. package/harmony/entry/src/main/cpp/CMakeLists.txt +37 -17
  25. package/harmony/entry/src/main/cpp/PackageProvider.cpp +20 -2
  26. package/harmony/entry/src/main/cpp/generated/BundleNavigation.cpp +3 -0
  27. package/harmony/entry/src/main/cpp/generated/RNOHGeneratedPackage.h +31 -87
  28. package/harmony/entry/src/main/cpp/generated/RTNCodePush.cpp +7 -1
  29. package/harmony/entry/src/main/cpp/generated/XRNBundleModule.cpp +9 -0
  30. package/harmony/entry/src/main/cpp/generated/XRNDebugToolsModule.cpp +10 -0
  31. package/harmony/entry/src/main/cpp/generated/{ImageResizer.cpp → XRNImageView.cpp} +6 -3
  32. package/harmony/entry/src/main/cpp/generated/{ImageResizer.h → XRNImageView.h} +2 -2
  33. package/harmony/entry/src/main/cpp/generated/{RNCWebViewComponentDescriptor.h → XRNImageViewComponentDescriptor.h} +11 -10
  34. package/harmony/entry/src/main/cpp/generated/XRNImageViewJSIBinder.h +58 -0
  35. package/harmony/entry/src/main/cpp/generated/XRNKeyboard.cpp +23 -0
  36. package/harmony/entry/src/main/cpp/generated/{RNLocalize.h → XRNKeyboard.h} +2 -2
  37. package/harmony/entry/src/main/cpp/generated/XRNNavigation.cpp +5 -0
  38. package/harmony/entry/src/main/cpp/generated/{RNCWebViewModule.cpp → XRNNetworkModule.cpp} +2 -4
  39. package/harmony/entry/src/main/cpp/generated/{RNCWebViewModule.h → XRNNetworkModule.h} +2 -2
  40. package/harmony/entry/src/main/ets/BundleHelper.ets +41 -45
  41. package/harmony/entry/src/main/ets/MainAbilityStage.ets +9 -4
  42. package/harmony/entry/src/main/ets/entryability/EntryAbility.ets +1 -1
  43. package/harmony/entry/src/main/ets/navDestination/BizModuleContainer.ets +2 -2
  44. package/harmony/entry/src/main/ets/navDestination/MainModuleContainer.ets +2 -2
  45. package/harmony/entry/src/main/ets/navDestination/Splash.ets +1 -2
  46. package/harmony/entry/src/main/ets/pages/Index.ets +4 -4
  47. package/harmony/entry/src/main/resources/rawfile/bundle_config.json5 +2 -6
  48. package/harmony/entry/src/main/resources/rawfile/xrn-manifest.json +1 -0
  49. package/harmony/oh-package-lock.json5 +2 -1
  50. package/harmony/oh-package.json5 +12 -4
  51. package/index.ts +0 -0
  52. package/ios/BundleEventCenter/Hooks/XRNCustomKeyborad+XTHooks.h +16 -0
  53. package/ios/BundleEventCenter/Hooks/XRNCustomKeyborad+XTHooks.mm +40 -0
  54. package/ios/BundleEventCenter/Hooks/XTIQKeyboardManagerBridge.h +15 -0
  55. package/ios/BundleEventCenter/Hooks/XTIQKeyboardManagerBridge.m +22 -0
  56. package/ios/BundleEventCenter/XTBundleProvider.m +98 -72
  57. package/ios/BundleEventCenter/XTBundleViewControllerFactory.m +4 -15
  58. package/ios/BundleEventCenter/bundleController/XTBundleViewController.mm +43 -0
  59. package/ios/BundleEventCenter/bundleController/XTMainBundleViewController.mm +48 -0
  60. package/ios/BundleEventCenter/bundleController/xtBundles.plist +1 -1
  61. package/ios/Podfile +234 -151
  62. package/ios/Podfile.lock +2810 -594
  63. package/ios/RNDebug/DebugPlugin/XTPluginManage.m +5 -5
  64. package/ios/RNDebug/MotroTools/XTMetroAutoConnector.h +21 -0
  65. package/ios/RNDebug/MotroTools/XTMetroAutoConnector.m +124 -0
  66. package/ios/RNDebug/MotroTools/XTReloadCommandHelper.h +30 -0
  67. package/ios/RNDebug/MotroTools/XTReloadCommandHelper.mm +128 -0
  68. package/ios/RNDebug/Views/XTScanQRPlugin.swift +9 -4
  69. package/ios/XRNTemplate/AppDelegate.h +3 -3
  70. package/ios/XRNTemplate/AppDelegate.mm +40 -102
  71. package/ios/XRNTemplate/Info.plist +4 -4
  72. package/ios/XRNTemplate/PrivacyInfo.xcprivacy +48 -0
  73. package/ios/XRNTemplate-Bridging-Header.h +2 -1
  74. package/ios/XRNTemplate.xcodeproj/project.pbxproj +68 -77
  75. package/ios/ios_patches/fixed_glog_config.h +195 -0
  76. package/ios/ios_patches/xt_IQKeyboardManager+Position.swift +1341 -0
  77. package/ios/ios_patches/xt_IQKeyboardManager.swift +454 -0
  78. package/ios/subBundles/.gitkeep +0 -0
  79. package/main-bundle/babel.config.js +2 -2
  80. package/main-bundle/package.json +11 -20
  81. package/main-bundle/yarn.lock +14655 -9651
  82. package/metro.config.js +21 -0
  83. package/package.json +2 -2
  84. package/react-native.config.js +3 -45
  85. package/src/.gitkeep +0 -0
  86. package/sub-bundle/babel.config.js +2 -2
  87. package/sub-bundle/package.json +11 -20
  88. package/sub-bundle/react-native.config.js +4 -0
  89. package/sub-bundle/yarn.lock +14655 -9651
  90. package/xrn.config.json +12 -12
  91. package/android/app/src/main/java/com/xrn/template/multibundle/XDevSupportParams.kt +0 -6
  92. package/android/app/src/main/java/com/xrn/template/multibundle/XRNHostParams.kt +0 -82
  93. package/harmony/entry/src/main/cpp/generated/ConfigNativeModule.cpp +0 -21
  94. package/harmony/entry/src/main/cpp/generated/ConfigNativeModule.h +0 -21
  95. package/harmony/entry/src/main/cpp/generated/GetRandomValuesNativeModule.cpp +0 -21
  96. package/harmony/entry/src/main/cpp/generated/GetRandomValuesNativeModule.h +0 -21
  97. package/harmony/entry/src/main/cpp/generated/NativeHarmonyTouchId.cpp +0 -22
  98. package/harmony/entry/src/main/cpp/generated/NativeHarmonyTouchId.h +0 -21
  99. package/harmony/entry/src/main/cpp/generated/OreitationLockerNativeModule.cpp +0 -31
  100. package/harmony/entry/src/main/cpp/generated/OreitationLockerNativeModule.h +0 -21
  101. package/harmony/entry/src/main/cpp/generated/RNCCameraRoll.cpp +0 -28
  102. package/harmony/entry/src/main/cpp/generated/RNCCameraRoll.h +0 -21
  103. package/harmony/entry/src/main/cpp/generated/RNCCameraRollPermission.cpp +0 -26
  104. package/harmony/entry/src/main/cpp/generated/RNCCameraRollPermission.h +0 -21
  105. package/harmony/entry/src/main/cpp/generated/RNCWebViewJSIBinder.h +0 -120
  106. package/harmony/entry/src/main/cpp/generated/RNDeviceInfo.cpp +0 -164
  107. package/harmony/entry/src/main/cpp/generated/RNDeviceInfo.h +0 -21
  108. package/harmony/entry/src/main/cpp/generated/RNDocumentPicker.cpp +0 -24
  109. package/harmony/entry/src/main/cpp/generated/RNDocumentPicker.h +0 -21
  110. package/harmony/entry/src/main/cpp/generated/RNGestureHandlerButtonComponentDescriptor.h +0 -43
  111. package/harmony/entry/src/main/cpp/generated/RNGestureHandlerButtonJSIBinder.h +0 -38
  112. package/harmony/entry/src/main/cpp/generated/RNGestureHandlerModule.cpp +0 -28
  113. package/harmony/entry/src/main/cpp/generated/RNGestureHandlerModule.h +0 -21
  114. package/harmony/entry/src/main/cpp/generated/RNGestureHandlerRootViewComponentDescriptor.h +0 -43
  115. package/harmony/entry/src/main/cpp/generated/RNGestureHandlerRootViewJSIBinder.h +0 -31
  116. package/harmony/entry/src/main/cpp/generated/RNLocalize.cpp +0 -31
  117. package/harmony/entry/src/main/cpp/generated/ReactNativeBlobUtil.cpp +0 -51
  118. package/harmony/entry/src/main/cpp/generated/ReactNativeBlobUtil.h +0 -21
  119. package/harmony/entry/src/main/cpp/generated/XRNAssetLoaderModule.cpp +0 -21
  120. package/harmony/entry/src/main/cpp/generated/XRNAssetLoaderModule.h +0 -21
  121. package/harmony/entry/src/main/cpp/generated/XRNFileModule.cpp +0 -22
  122. package/harmony/entry/src/main/cpp/generated/XRNFileModule.h +0 -21
  123. package/ios/BundleEventCenter/bundleController/XTBundleViewController.m +0 -35
  124. package/ios/BundleEventCenter/bundleController/XTMainBundleViewController.m +0 -41
package/xrn.config.json CHANGED
@@ -14,35 +14,35 @@
14
14
  "name": "main-bundle",
15
15
  "bundlePackageRelativePath": "./main-bundle",
16
16
  "bundleType": "main",
17
- "codePushKey": "0NzkdHaOp6RhCDWjD1G3KogLieV54ksvOXqog",
18
17
  "checkNativeDep": false,
18
+ "codePushKey": "0NzkdHaOp6RhCDWjD1G3KogLieV54ksvOXqog",
19
19
  "port": 8081
20
20
  },
21
21
  {
22
22
  "name": "sub-bundle",
23
23
  "bundlePackageRelativePath": "./sub-bundle",
24
- "codePushKey": "KpWDtkf7lssWGGhFVlubzRq9gAg74ksvOXqog",
25
24
  "checkNativeDep": false,
25
+ "codePushKey": "KpWDtkf7lssWGGhFVlubzRq9gAg74ksvOXqog",
26
26
  "port": 6061
27
27
  }
28
28
  ]
29
29
  },
30
30
  "androidUpdateAppKey": {
31
- "debug": {
32
- "china": "android-debug-china-key",
33
- "default": "android-debug-default-key"
31
+ "debug": {
32
+ "china": "android-debug-china-key",
33
+ "default": "android-debug-default-key"
34
+ },
35
+ "release": {
36
+ "china": "android-release-china-key",
37
+ "default": "android-release-default-key"
38
+ }
34
39
  },
35
- "release": {
36
- "china": "android-release-china-key",
37
- "default": "android-release-default-key"
38
- }
39
- },
40
40
  "harmonyUpdateAppKey": {
41
41
  "debug": "harmony-debug-key",
42
42
  "release": "harmony-release-key"
43
43
  },
44
44
  "iosUpdateAppKey": {
45
- "debug": "5b9ca124-6b4f-40c9-be51-5ad67f1b4a31",
46
- "release": "2d0ba534-a197-11ef-ab67-bd6ef06736d5"
45
+ "debug": "5b9ca124-6b4f-40c9-be51-5ad67f1b4a31",
46
+ "release": "2d0ba534-a197-11ef-ab67-bd6ef06736d5"
47
47
  }
48
48
  }
@@ -1,6 +0,0 @@
1
- package com.xrn.template.multibundle
2
-
3
- import xrn.modules.multibundle.bundle.DevSupportParams
4
-
5
- class XDevSupportParams: DevSupportParams() {
6
- }
@@ -1,82 +0,0 @@
1
- package com.xrn.template.multibundle
2
-
3
- import android.app.Application
4
- import com.blankj.utilcode.util.LogUtils
5
- import com.facebook.hermes.reactexecutor.HermesExecutorFactory
6
- import com.facebook.react.PackageList
7
- import com.facebook.react.ReactPackage
8
- import com.facebook.react.bridge.JavaScriptExecutorFactory
9
- import com.microsoft.codepush.react.CodePush
10
- import com.xrn.template.BuildConfig
11
- import com.xrn.template.R
12
- import xrn.modules.multibundle.bundle.BundleInfo
13
- import xrn.modules.multibundle.bundle.RNHostManager
14
- import xrn.modules.multibundle.bundle.RNHostParams
15
- import xrn.modules.multibundle.devsupport.XDevInternalSettings
16
- import xrn.modules.multibundle.devsupport.XDevSupportManagerFactory
17
-
18
- class XRNHostParams(val application: Application): RNHostParams() {
19
-
20
- companion object {
21
- const val COMMON_BUNDLE_NAME = "xt-app-common"
22
- val codePushMap = mutableMapOf<String, CodePush>()
23
- }
24
-
25
- override val isSplitMode: ((bundleName: String) -> Boolean)? = { bundleName ->
26
- false
27
- }
28
-
29
- override val getJSMainModuleName: ((info: BundleInfo, isSplitMode: Boolean) -> String)? = { info, isSplitMode ->
30
- "index"
31
- }
32
-
33
- override val getJSBundleFile: ((info: BundleInfo, isSplitMode: Boolean) -> String?)? = {info, isSplitMode ->
34
- if (isSplitMode) {
35
- "assets://index.${COMMON_BUNDLE_NAME}.bundle"
36
- } else {
37
- codePushMap[info.bundleName]?.getJSBundleFile("index.${info.bundleName}.bundle")
38
- }
39
- }
40
-
41
- override val getBizJSBundleFile: ((info: BundleInfo, isSplitMode: Boolean) -> String?)? = {info, isSplitMode ->
42
- codePushMap[info.bundleName]?.getJSBundleFile("index.${info.bundleName}.bundle")
43
- }
44
-
45
- override val getPackage: ((info: BundleInfo) -> List<ReactPackage>?)? = { info ->
46
- val codePush = CodePush(
47
- info.getCodePushKey(),
48
- application,
49
- BuildConfig.DEBUG,
50
- BuildConfig.CODEPUSH_URL,
51
- R.string.codepush_public_key
52
- )
53
- codePush.setReactInstanceHolder {
54
- RNHostManager.getRNHostByBundle(info.bundleName)?.reactInstanceManager
55
- }
56
- codePushMap[info.bundleName] = codePush
57
- val packages: MutableList<ReactPackage> = PackageList(application).packages
58
- packages.add(codePush)
59
- packages
60
- }
61
-
62
- override val getUseDeveloperSupport: ((info: BundleInfo) -> Boolean)? = { info: BundleInfo ->
63
- if (BuildConfig.DEBUG) XDevInternalSettings.instance(info.bundleName)?.isBundleDebugEnabled() == true else false
64
- }
65
-
66
- override var getDevSupportManagerFactory: ((info: BundleInfo) -> XDevSupportManagerFactory?)? = { info: BundleInfo ->
67
- if (getUseDeveloperSupport?.invoke(info) == true) {
68
- XDevSupportManagerFactory(info.bundleName)
69
- } else {
70
- null
71
- }
72
- }
73
-
74
- /**
75
- * 用于创建 JavaScriptExecutor
76
- */
77
- override var getJavaScriptExecutorFactory: ((info: BundleInfo) -> JavaScriptExecutorFactory?)? = { info: BundleInfo ->
78
- LogUtils.d("enableHermes", BuildConfig.IS_HERMES_ENABLED)
79
-
80
- if(BuildConfig.IS_HERMES_ENABLED) HermesExecutorFactory() else null
81
- }
82
- }
@@ -1,21 +0,0 @@
1
- /**
2
- * This code was generated by "react-native codegen-harmony"
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be
5
- * lost once the code is regenerated.
6
- *
7
- * @generatorVersion: 1
8
- */
9
-
10
- #include "ConfigNativeModule.h"
11
-
12
- namespace rnoh {
13
- using namespace facebook;
14
-
15
- ConfigNativeModule::ConfigNativeModule(const ArkTSTurboModule::Context ctx, const std::string name) : ArkTSTurboModule(ctx, name) {
16
- methodMap_ = {
17
- ARK_METHOD_METADATA(getConstants, 0),
18
- };
19
- }
20
-
21
- } // namespace rnoh
@@ -1,21 +0,0 @@
1
- /**
2
- * This code was generated by "react-native codegen-harmony"
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be
5
- * lost once the code is regenerated.
6
- *
7
- * @generatorVersion: 1
8
- */
9
-
10
- #pragma once
11
-
12
- #include "RNOH/ArkTSTurboModule.h"
13
-
14
- namespace rnoh {
15
-
16
- class JSI_EXPORT ConfigNativeModule : public ArkTSTurboModule {
17
- public:
18
- ConfigNativeModule(const ArkTSTurboModule::Context ctx, const std::string name);
19
- };
20
-
21
- } // namespace rnoh
@@ -1,21 +0,0 @@
1
- /**
2
- * This code was generated by "react-native codegen-harmony"
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be
5
- * lost once the code is regenerated.
6
- *
7
- * @generatorVersion: 1
8
- */
9
-
10
- #include "GetRandomValuesNativeModule.h"
11
-
12
- namespace rnoh {
13
- using namespace facebook;
14
-
15
- GetRandomValuesNativeModule::GetRandomValuesNativeModule(const ArkTSTurboModule::Context ctx, const std::string name) : ArkTSTurboModule(ctx, name) {
16
- methodMap_ = {
17
- ARK_METHOD_METADATA(getRandomBase64, 1),
18
- };
19
- }
20
-
21
- } // namespace rnoh
@@ -1,21 +0,0 @@
1
- /**
2
- * This code was generated by "react-native codegen-harmony"
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be
5
- * lost once the code is regenerated.
6
- *
7
- * @generatorVersion: 1
8
- */
9
-
10
- #pragma once
11
-
12
- #include "RNOH/ArkTSTurboModule.h"
13
-
14
- namespace rnoh {
15
-
16
- class JSI_EXPORT GetRandomValuesNativeModule : public ArkTSTurboModule {
17
- public:
18
- GetRandomValuesNativeModule(const ArkTSTurboModule::Context ctx, const std::string name);
19
- };
20
-
21
- } // namespace rnoh
@@ -1,22 +0,0 @@
1
- /**
2
- * This code was generated by "react-native codegen-harmony"
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be
5
- * lost once the code is regenerated.
6
- *
7
- * @generatorVersion: 1
8
- */
9
-
10
- #include "NativeHarmonyTouchId.h"
11
-
12
- namespace rnoh {
13
- using namespace facebook;
14
-
15
- NativeHarmonyTouchId::NativeHarmonyTouchId(const ArkTSTurboModule::Context ctx, const std::string name) : ArkTSTurboModule(ctx, name) {
16
- methodMap_ = {
17
- ARK_METHOD_METADATA(authenticate, 3),
18
- ARK_METHOD_METADATA(isSupported, 2),
19
- };
20
- }
21
-
22
- } // namespace rnoh
@@ -1,21 +0,0 @@
1
- /**
2
- * This code was generated by "react-native codegen-harmony"
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be
5
- * lost once the code is regenerated.
6
- *
7
- * @generatorVersion: 1
8
- */
9
-
10
- #pragma once
11
-
12
- #include "RNOH/ArkTSTurboModule.h"
13
-
14
- namespace rnoh {
15
-
16
- class JSI_EXPORT NativeHarmonyTouchId : public ArkTSTurboModule {
17
- public:
18
- NativeHarmonyTouchId(const ArkTSTurboModule::Context ctx, const std::string name);
19
- };
20
-
21
- } // namespace rnoh
@@ -1,31 +0,0 @@
1
- /**
2
- * This code was generated by "react-native codegen-harmony"
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be
5
- * lost once the code is regenerated.
6
- *
7
- * @generatorVersion: 1
8
- */
9
-
10
- #include "OreitationLockerNativeModule.h"
11
-
12
- namespace rnoh {
13
- using namespace facebook;
14
-
15
- OreitationLockerNativeModule::OreitationLockerNativeModule(const ArkTSTurboModule::Context ctx, const std::string name) : ArkTSTurboModule(ctx, name) {
16
- methodMap_ = {
17
- ARK_METHOD_METADATA(getInitialOrientation, 0),
18
- ARK_METHOD_METADATA(lockToPortrait, 0),
19
- ARK_METHOD_METADATA(lockToLandscape, 0),
20
- ARK_METHOD_METADATA(lockToLandscapeLeft, 0),
21
- ARK_METHOD_METADATA(lockToAllOrientationsButUpsideDown, 0),
22
- ARK_METHOD_METADATA(lockToLandscapeRight, 0),
23
- ARK_METHOD_METADATA(lockToPortraitUpsideDown, 0),
24
- ARK_METHOD_METADATA(unlockAllOrientations, 0),
25
- ARK_METHOD_METADATA(getOrientation, 1),
26
- ARK_METHOD_METADATA(getDeviceOrientation, 1),
27
- ARK_METHOD_METADATA(getAutoRotateState, 1),
28
- };
29
- }
30
-
31
- } // namespace rnoh
@@ -1,21 +0,0 @@
1
- /**
2
- * This code was generated by "react-native codegen-harmony"
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be
5
- * lost once the code is regenerated.
6
- *
7
- * @generatorVersion: 1
8
- */
9
-
10
- #pragma once
11
-
12
- #include "RNOH/ArkTSTurboModule.h"
13
-
14
- namespace rnoh {
15
-
16
- class JSI_EXPORT OreitationLockerNativeModule : public ArkTSTurboModule {
17
- public:
18
- OreitationLockerNativeModule(const ArkTSTurboModule::Context ctx, const std::string name);
19
- };
20
-
21
- } // namespace rnoh
@@ -1,28 +0,0 @@
1
- /**
2
- * This code was generated by "react-native codegen-harmony"
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be
5
- * lost once the code is regenerated.
6
- *
7
- * @generatorVersion: 1
8
- */
9
-
10
- #include "RNCCameraRoll.h"
11
-
12
- namespace rnoh {
13
- using namespace facebook;
14
-
15
- RNCCameraRoll::RNCCameraRoll(const ArkTSTurboModule::Context ctx, const std::string name) : ArkTSTurboModule(ctx, name) {
16
- methodMap_ = {
17
- ARK_ASYNC_METHOD_METADATA(saveToCameraRoll, 2),
18
- ARK_ASYNC_METHOD_METADATA(getPhotos, 1),
19
- ARK_ASYNC_METHOD_METADATA(getAlbums, 1),
20
- ARK_ASYNC_METHOD_METADATA(deletePhotos, 1),
21
- ARK_ASYNC_METHOD_METADATA(getPhotoByInternalID, 2),
22
- ARK_ASYNC_METHOD_METADATA(getPhotoThumbnail, 2),
23
- ARK_METHOD_METADATA(addListener, 1),
24
- ARK_METHOD_METADATA(removeListeners, 1),
25
- };
26
- }
27
-
28
- } // namespace rnoh
@@ -1,21 +0,0 @@
1
- /**
2
- * This code was generated by "react-native codegen-harmony"
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be
5
- * lost once the code is regenerated.
6
- *
7
- * @generatorVersion: 1
8
- */
9
-
10
- #pragma once
11
-
12
- #include "RNOH/ArkTSTurboModule.h"
13
-
14
- namespace rnoh {
15
-
16
- class JSI_EXPORT RNCCameraRoll : public ArkTSTurboModule {
17
- public:
18
- RNCCameraRoll(const ArkTSTurboModule::Context ctx, const std::string name);
19
- };
20
-
21
- } // namespace rnoh
@@ -1,26 +0,0 @@
1
- /**
2
- * This code was generated by "react-native codegen-harmony"
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be
5
- * lost once the code is regenerated.
6
- *
7
- * @generatorVersion: 1
8
- */
9
-
10
- #include "RNCCameraRollPermission.h"
11
-
12
- namespace rnoh {
13
- using namespace facebook;
14
-
15
- RNCCameraRollPermission::RNCCameraRollPermission(const ArkTSTurboModule::Context ctx, const std::string name) : ArkTSTurboModule(ctx, name) {
16
- methodMap_ = {
17
- ARK_ASYNC_METHOD_METADATA(checkPermission, 1),
18
- ARK_ASYNC_METHOD_METADATA(requestReadWritePermission, 0),
19
- ARK_ASYNC_METHOD_METADATA(requestAddOnlyPermission, 0),
20
- ARK_ASYNC_METHOD_METADATA(refreshPhotoSelection, 0),
21
- ARK_METHOD_METADATA(addListener, 1),
22
- ARK_METHOD_METADATA(removeListeners, 1),
23
- };
24
- }
25
-
26
- } // namespace rnoh
@@ -1,21 +0,0 @@
1
- /**
2
- * This code was generated by "react-native codegen-harmony"
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be
5
- * lost once the code is regenerated.
6
- *
7
- * @generatorVersion: 1
8
- */
9
-
10
- #pragma once
11
-
12
- #include "RNOH/ArkTSTurboModule.h"
13
-
14
- namespace rnoh {
15
-
16
- class JSI_EXPORT RNCCameraRollPermission : public ArkTSTurboModule {
17
- public:
18
- RNCCameraRollPermission(const ArkTSTurboModule::Context ctx, const std::string name);
19
- };
20
-
21
- } // namespace rnoh
@@ -1,120 +0,0 @@
1
- /**
2
- * This code was generated by "react-native codegen-harmony"
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be
5
- * lost once the code is regenerated.
6
- *
7
- * @generatorVersion: 1
8
- */
9
-
10
- #pragma once
11
- #include "RNOHCorePackage/ComponentBinders/ViewComponentJSIBinder.h"
12
-
13
- namespace rnoh {
14
- class RNCWebViewJSIBinder : public ViewComponentJSIBinder {
15
- protected:
16
- facebook::jsi::Object createNativeProps(facebook::jsi::Runtime &rt) override {
17
- auto object = ViewComponentJSIBinder::createNativeProps(rt);
18
- object.setProperty(rt, "allowFileAccess", true);
19
- object.setProperty(rt, "allowsProtectedMedia", true);
20
- object.setProperty(rt, "allowsFullscreenVideo", true);
21
- object.setProperty(rt, "androidLayerType", true);
22
- object.setProperty(rt, "cacheMode", true);
23
- object.setProperty(rt, "domStorageEnabled", true);
24
- object.setProperty(rt, "downloadingMessage", true);
25
- object.setProperty(rt, "forceDarkOn", true);
26
- object.setProperty(rt, "geolocationEnabled", true);
27
- object.setProperty(rt, "lackPermissionToDownloadMessage", true);
28
- object.setProperty(rt, "messagingModuleName", true);
29
- object.setProperty(rt, "minimumFontSize", true);
30
- object.setProperty(rt, "mixedContentMode", true);
31
- object.setProperty(rt, "nestedScrollEnabled", true);
32
- object.setProperty(rt, "overScrollMode", true);
33
- object.setProperty(rt, "saveFormDataDisabled", true);
34
- object.setProperty(rt, "scalesPageToFit", true);
35
- object.setProperty(rt, "setBuiltInZoomControls", true);
36
- object.setProperty(rt, "setDisplayZoomControls", true);
37
- object.setProperty(rt, "setSupportMultipleWindows", true);
38
- object.setProperty(rt, "textZoom", true);
39
- object.setProperty(rt, "thirdPartyCookiesEnabled", true);
40
- object.setProperty(rt, "hasOnScroll", true);
41
- object.setProperty(rt, "injectedJavaScriptObject", true);
42
- object.setProperty(rt, "allowingReadAccessToURL", true);
43
- object.setProperty(rt, "allowsBackForwardNavigationGestures", true);
44
- object.setProperty(rt, "allowsInlineMediaPlayback", true);
45
- object.setProperty(rt, "allowsAirPlayForMediaPlayback", true);
46
- object.setProperty(rt, "allowsLinkPreview", true);
47
- object.setProperty(rt, "automaticallyAdjustContentInsets", true);
48
- object.setProperty(rt, "ignoreSilentHardwareSwitch", true);
49
- object.setProperty(rt, "autoManageStatusBarEnabled", true);
50
- object.setProperty(rt, "bounces", true);
51
- object.setProperty(rt, "contentInset", "Object");
52
- object.setProperty(rt, "contentInsetAdjustmentBehavior", true);
53
- object.setProperty(rt, "contentMode", true);
54
- object.setProperty(rt, "dataDetectorTypes", true);
55
- object.setProperty(rt, "decelerationRate", true);
56
- object.setProperty(rt, "directionalLockEnabled", true);
57
- object.setProperty(rt, "enableApplePay", true);
58
- object.setProperty(rt, "hideKeyboardAccessoryView", true);
59
- object.setProperty(rt, "keyboardDisplayRequiresUserAction", true);
60
- object.setProperty(rt, "limitsNavigationsToAppBoundDomains", true);
61
- object.setProperty(rt, "mediaCapturePermissionGrantType", true);
62
- object.setProperty(rt, "pagingEnabled", true);
63
- object.setProperty(rt, "pullToRefreshEnabled", true);
64
- object.setProperty(rt, "scrollEnabled", true);
65
- object.setProperty(rt, "sharedCookiesEnabled", true);
66
- object.setProperty(rt, "textInteractionEnabled", true);
67
- object.setProperty(rt, "useSharedProcessPool", true);
68
- object.setProperty(rt, "menuItems", true);
69
- object.setProperty(rt, "suppressMenuItems", true);
70
- object.setProperty(rt, "hasOnFileDownload", true);
71
- object.setProperty(rt, "fraudulentWebsiteWarningEnabled", true);
72
- object.setProperty(rt, "allowFileAccessFromFileURLs", true);
73
- object.setProperty(rt, "allowUniversalAccessFromFileURLs", true);
74
- object.setProperty(rt, "applicationNameForUserAgent", true);
75
- object.setProperty(rt, "basicAuthCredential", "Object");
76
- object.setProperty(rt, "cacheEnabled", true);
77
- object.setProperty(rt, "incognito", true);
78
- object.setProperty(rt, "injectedJavaScript", true);
79
- object.setProperty(rt, "injectedJavaScriptBeforeContentLoaded", true);
80
- object.setProperty(rt, "injectedJavaScriptForMainFrameOnly", true);
81
- object.setProperty(rt, "injectedJavaScriptBeforeContentLoadedForMainFrameOnly", true);
82
- object.setProperty(rt, "javaScriptCanOpenWindowsAutomatically", true);
83
- object.setProperty(rt, "javaScriptEnabled", true);
84
- object.setProperty(rt, "webviewDebuggingEnabled", true);
85
- object.setProperty(rt, "mediaPlaybackRequiresUserAction", true);
86
- object.setProperty(rt, "messagingEnabled", true);
87
- object.setProperty(rt, "shouldStartLoadWithRequestEnabled", true);
88
- object.setProperty(rt, "hasOnOpenWindowEvent", true);
89
- object.setProperty(rt, "showsHorizontalScrollIndicator", true);
90
- object.setProperty(rt, "showsVerticalScrollIndicator", true);
91
- object.setProperty(rt, "newSource", "Object");
92
- object.setProperty(rt, "userAgent", true);
93
- return object;
94
- }
95
-
96
- facebook::jsi::Object createBubblingEventTypes(facebook::jsi::Runtime &rt) override {
97
- facebook::jsi::Object events(rt);
98
- return events;
99
- }
100
-
101
- facebook::jsi::Object createDirectEventTypes(facebook::jsi::Runtime &rt) override {
102
- facebook::jsi::Object events(rt);
103
- events.setProperty(rt, "topContentSizeChange", createDirectEvent(rt, "onContentSizeChange"));
104
- events.setProperty(rt, "topRenderProcessGone", createDirectEvent(rt, "onRenderProcessGone"));
105
- events.setProperty(rt, "topContentProcessDidTerminate", createDirectEvent(rt, "onContentProcessDidTerminate"));
106
- events.setProperty(rt, "topCustomMenuSelection", createDirectEvent(rt, "onCustomMenuSelection"));
107
- events.setProperty(rt, "topFileDownload", createDirectEvent(rt, "onFileDownload"));
108
- events.setProperty(rt, "topLoadingError", createDirectEvent(rt, "onLoadingError"));
109
- events.setProperty(rt, "topLoadingFinish", createDirectEvent(rt, "onLoadingFinish"));
110
- events.setProperty(rt, "topLoadingProgress", createDirectEvent(rt, "onLoadingProgress"));
111
- events.setProperty(rt, "topLoadingStart", createDirectEvent(rt, "onLoadingStart"));
112
- events.setProperty(rt, "topHttpError", createDirectEvent(rt, "onHttpError"));
113
- events.setProperty(rt, "topMessage", createDirectEvent(rt, "onMessage"));
114
- events.setProperty(rt, "topOpenWindow", createDirectEvent(rt, "onOpenWindow"));
115
- events.setProperty(rt, "topScroll", createDirectEvent(rt, "onScroll"));
116
- events.setProperty(rt, "topShouldStartLoadWithRequest", createDirectEvent(rt, "onShouldStartLoadWithRequest"));
117
- return events;
118
- }
119
- };
120
- } // namespace rnoh