@xrnjs/app-template 0.0.5 → 0.0.6

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.
package/$package.json CHANGED
@@ -38,7 +38,7 @@
38
38
  "@types/lodash": "^4.17.12",
39
39
  "@types/react": "18.0.25",
40
40
  "@types/react-native": "0.72.8",
41
- "@xrnjs/cli": "0.0.5",
41
+ "@xrnjs/cli": "0.0.6",
42
42
  "eslint": "^7.32.0",
43
43
  "metro-react-native-babel-preset": "0.72.4",
44
44
  "patch-package": "^8.0.0"
@@ -12,6 +12,7 @@ import com.xrn.template.R
12
12
  import xrn.modules.multibundle.bundle.BundleInfo
13
13
  import xrn.modules.multibundle.bundle.RNHostManager
14
14
  import xrn.modules.multibundle.bundle.RNHostParams
15
+ import xrn.modules.multibundle.devsupport.XDevInternalSettings
15
16
  import xrn.modules.multibundle.devsupport.XDevSupportManagerFactory
16
17
 
17
18
  class XRNHostParams(val application: Application): RNHostParams() {
@@ -59,7 +60,7 @@ class XRNHostParams(val application: Application): RNHostParams() {
59
60
  }
60
61
 
61
62
  override val getUseDeveloperSupport: ((info: BundleInfo) -> Boolean)? = { info: BundleInfo ->
62
- true
63
+ if (BuildConfig.DEBUG) XDevInternalSettings.instance(info.bundleName)?.isBundleDebugEnabled() == true else false
63
64
  }
64
65
 
65
66
  override var getDevSupportManagerFactory: ((info: BundleInfo) -> XDevSupportManagerFactory?)? = { info: BundleInfo ->
@@ -112,7 +112,7 @@ export function createRNPackages(ctx: RNPackageContext, bundleInfo: BundleInfo):
112
112
  new ReanimatedPackage(ctx),
113
113
  new RNCVideoPackage(ctx),
114
114
  new VisionCameraModulePackage(ctx),
115
- new CodePushPackage(ctx, bundleInfo, "http://cp.xtrfr.cn"),
115
+ new CodePushPackage(ctx, bundleInfo, ""),
116
116
  new XRNLoadingPackage(ctx),
117
117
  new SmartRefreshPackage(ctx),
118
118
  new XRNMultiBundlePackage(ctx),
@@ -34,11 +34,11 @@
34
34
  </dict>
35
35
  </array>
36
36
  <key>CFBundleVersion</key>
37
- <string>20250813180908</string>
37
+ <string>20250818104225</string>
38
38
  <key>CodePushDeploymentKey</key>
39
39
  <string>$(MAIN_CODEPUSH_KEY)</string>
40
40
  <key>CodePushServerURL</key>
41
- <string>codepushurl</string>
41
+ <string>http://xxxcodepush.cn</string>
42
42
  <key>CommonBundleName</key>
43
43
  <string>xt-app-common</string>
44
44
  <key>LSRequiresIPhoneOS</key>
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "main-bundle",
3
3
  "displayName": "main-bundle",
4
- "skipCheckXtRnCoreVersion": true,
5
4
  "port": 8081,
6
5
  "harmony": {
7
6
  "packageName": "com.xrn.template.hw"
@@ -24,7 +24,7 @@
24
24
  "@react-native/metro-config": "^0.72.9",
25
25
  "@types/react": "18.0.25",
26
26
  "@types/react-native": "0.72.8",
27
- "@xrnjs/cli": "0.0.3",
27
+ "@xrnjs/cli": "0.0.6",
28
28
  "eslint": "^7.32.0",
29
29
  "metro-react-native-babel-preset": "0.72.4"
30
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xrnjs/app-template",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "XRN App Template",
5
5
  "keywords": [
6
6
  "react-native",
@@ -13,5 +13,5 @@
13
13
  },
14
14
  "author": "连永胜",
15
15
  "license": "Apache-2.0",
16
- "gitHead": "251aec10e94c73f3aaea451c403c1c24d19aef3b"
16
+ "gitHead": "3952b3a63ea006132bdf3727ab6129327279a97d"
17
17
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "sub-bundle",
3
3
  "displayName": "sub-bundle",
4
- "skipCheckXtRnCoreVersion": true,
5
4
  "port": 6061,
6
5
  "harmony": {
7
6
  "packageName": "com.xrn.template.hw"
@@ -10,6 +9,6 @@
10
9
  "packageName": "com.xrn.template"
11
10
  },
12
11
  "ios": {
13
- "bundleIdentifier": "com.xdeal.ai"
12
+ "bundleIdentifier": "com.xrn.template"
14
13
  }
15
14
  }
@@ -24,7 +24,7 @@
24
24
  "@react-native/metro-config": "^0.72.9",
25
25
  "@types/react": "18.0.25",
26
26
  "@types/react-native": "0.72.8",
27
- "@xrnjs/cli": "0.0.3",
27
+ "@xrnjs/cli": "0.0.6",
28
28
  "eslint": "^7.32.0",
29
29
  "metro-react-native-babel-preset": "0.72.4"
30
30
  }