@xrnjs/app-template 0.0.1 → 0.0.3
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 +3 -3
- package/.env +1 -1
- package/.env.prod +1 -1
- package/android/app/build.gradle +5 -5
- package/android/app/src/main/AndroidManifest.xml +0 -8
- package/android/app/src/main/assets/xrn-manifest.json +1 -1
- package/android/app/src/main/java/com/xrn/template/MainActivity.kt +5 -18
- package/android/app/src/main/java/com/xrn/template/MainApplication.kt +1 -1
- package/android/app/src/main/res/drawable-xxhdpi/ic_logo_bg.png +0 -0
- package/android/app/src/main/res/layout/activity_splash.xml +6 -8
- package/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/android/settings.gradle +4 -4
- package/harmony/build-profile.json5 +11 -7
- package/harmony/entry/oh-package-lock.json5 +28 -28
- package/harmony/entry/oh-package.json5 +8 -12
- package/harmony/entry/src/main/cpp/generated/RNDeviceInfo.cpp +27 -0
- package/harmony/entry/src/main/ets/navDestination/Splash.ets +9 -50
- package/harmony/entry/src/main/resources/base/media/foreground.png +0 -0
- package/harmony/entry/src/main/resources/base/media/ic_logo_bg.png +0 -0
- package/harmony/entry/src/main/resources/base/media/startIcon.png +0 -0
- package/harmony/oh-package.json5 +3 -3
- package/ios/BundleEventCenter/XTBundleProvider.m +1 -2
- package/ios/Podfile +4 -4
- package/ios/Podfile.lock +22 -22
- package/ios/XRNTemplate/Info.plist +2 -2
- package/ios/XRNTemplate.xcodeproj/project.pbxproj +3 -3
- package/main-bundle/App.tsx +1 -1
- package/main-bundle/app.json +1 -1
- package/main-bundle/babel.config.js +0 -1
- package/main-bundle/index.ts +1 -1
- package/main-bundle/package.json +3 -7
- package/main-bundle/router.ts +1 -1
- package/main-bundle/xrn.config.ts +1 -1
- package/main-bundle/yarn.lock +9651 -13622
- package/package.json +5 -4
- package/react-native.config.js +13 -2
- package/sub-bundle/App.tsx +1 -1
- package/sub-bundle/babel.config.js +0 -1
- package/sub-bundle/index.ts +1 -1
- package/sub-bundle/package.json +3 -8
- package/sub-bundle/router.ts +1 -1
- package/sub-bundle/xrn.config.ts +1 -1
- package/sub-bundle/yarn.lock +9651 -13652
- package/xrn.config.json +12 -10
- package/android/app/src/main/assets/index.main-bundle.bundle +0 -178940
- package/android/app/src/main/assets/index.sub-bundle.bundle +0 -178928
- package/android/app/src/main/res/raw/launch_screen.json +0 -1
- package/harmony/entry/src/main/ets/lottie/launch_screen.json +0 -1
package/ios/Podfile.lock
CHANGED
|
@@ -588,7 +588,7 @@ PODS:
|
|
|
588
588
|
|
|
589
589
|
DEPENDENCIES:
|
|
590
590
|
- boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`)
|
|
591
|
-
- "CodePush (from `../node_modules/@
|
|
591
|
+
- "CodePush (from `../node_modules/@xrnjs/react-native-code-push`)"
|
|
592
592
|
- DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
|
|
593
593
|
- FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
|
|
594
594
|
- FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`)
|
|
@@ -639,16 +639,16 @@ DEPENDENCIES:
|
|
|
639
639
|
- "react-native-cookies (from `../node_modules/@react-native-oh-tpl/cookies`)"
|
|
640
640
|
- "react-native-netinfo (from `../node_modules/@react-native-community/netinfo`)"
|
|
641
641
|
- react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`)
|
|
642
|
-
- "react-native-xrn-app-utils (from `../node_modules/@
|
|
643
|
-
- "react-native-xrn-asset-loader (from `../node_modules/@
|
|
644
|
-
- "react-native-xrn-bundle (from `../node_modules/@
|
|
645
|
-
- "react-native-xrn-debug-tools (from `../node_modules/@
|
|
646
|
-
- "react-native-xrn-image (from `../node_modules/@
|
|
647
|
-
- "react-native-xrn-loading (from `../node_modules/@
|
|
648
|
-
- "react-native-xrn-modules-core (from `../node_modules/@
|
|
649
|
-
- "react-native-xrn-multi-bundle (from `../node_modules/@
|
|
650
|
-
- "react-native-xrn-native-storage (from `../node_modules/@
|
|
651
|
-
- "react-native-xrn-navigation (from `../node_modules/@
|
|
642
|
+
- "react-native-xrn-app-utils (from `../node_modules/@xrnjs/app-utils`)"
|
|
643
|
+
- "react-native-xrn-asset-loader (from `../node_modules/@xrnjs/asset-loader`)"
|
|
644
|
+
- "react-native-xrn-bundle (from `../node_modules/@xrnjs/bundle`)"
|
|
645
|
+
- "react-native-xrn-debug-tools (from `../node_modules/@xrnjs/debug-tools`)"
|
|
646
|
+
- "react-native-xrn-image (from `../node_modules/@xrnjs/image`)"
|
|
647
|
+
- "react-native-xrn-loading (from `../node_modules/@xrnjs/loading`)"
|
|
648
|
+
- "react-native-xrn-modules-core (from `../node_modules/@xrnjs/modules-core`)"
|
|
649
|
+
- "react-native-xrn-multi-bundle (from `../node_modules/@xrnjs/multi-bundle`)"
|
|
650
|
+
- "react-native-xrn-native-storage (from `../node_modules/@xrnjs/native-storage`)"
|
|
651
|
+
- "react-native-xrn-navigation (from `../node_modules/@xrnjs/navigation`)"
|
|
652
652
|
- React-NativeModulesApple (from `../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios`)
|
|
653
653
|
- React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`)
|
|
654
654
|
- React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`)
|
|
@@ -724,7 +724,7 @@ EXTERNAL SOURCES:
|
|
|
724
724
|
boost:
|
|
725
725
|
:podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec"
|
|
726
726
|
CodePush:
|
|
727
|
-
:path: "../node_modules/@
|
|
727
|
+
:path: "../node_modules/@xrnjs/react-native-code-push"
|
|
728
728
|
DoubleConversion:
|
|
729
729
|
:podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
|
|
730
730
|
FBLazyVector:
|
|
@@ -774,25 +774,25 @@ EXTERNAL SOURCES:
|
|
|
774
774
|
react-native-safe-area-context:
|
|
775
775
|
:path: "../node_modules/react-native-safe-area-context"
|
|
776
776
|
react-native-xrn-app-utils:
|
|
777
|
-
:path: "../node_modules/@
|
|
777
|
+
:path: "../node_modules/@xrnjs/app-utils"
|
|
778
778
|
react-native-xrn-asset-loader:
|
|
779
|
-
:path: "../node_modules/@
|
|
779
|
+
:path: "../node_modules/@xrnjs/asset-loader"
|
|
780
780
|
react-native-xrn-bundle:
|
|
781
|
-
:path: "../node_modules/@
|
|
781
|
+
:path: "../node_modules/@xrnjs/bundle"
|
|
782
782
|
react-native-xrn-debug-tools:
|
|
783
|
-
:path: "../node_modules/@
|
|
783
|
+
:path: "../node_modules/@xrnjs/debug-tools"
|
|
784
784
|
react-native-xrn-image:
|
|
785
|
-
:path: "../node_modules/@
|
|
785
|
+
:path: "../node_modules/@xrnjs/image"
|
|
786
786
|
react-native-xrn-loading:
|
|
787
|
-
:path: "../node_modules/@
|
|
787
|
+
:path: "../node_modules/@xrnjs/loading"
|
|
788
788
|
react-native-xrn-modules-core:
|
|
789
|
-
:path: "../node_modules/@
|
|
789
|
+
:path: "../node_modules/@xrnjs/modules-core"
|
|
790
790
|
react-native-xrn-multi-bundle:
|
|
791
|
-
:path: "../node_modules/@
|
|
791
|
+
:path: "../node_modules/@xrnjs/multi-bundle"
|
|
792
792
|
react-native-xrn-native-storage:
|
|
793
|
-
:path: "../node_modules/@
|
|
793
|
+
:path: "../node_modules/@xrnjs/native-storage"
|
|
794
794
|
react-native-xrn-navigation:
|
|
795
|
-
:path: "../node_modules/@
|
|
795
|
+
:path: "../node_modules/@xrnjs/navigation"
|
|
796
796
|
React-NativeModulesApple:
|
|
797
797
|
:path: "../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios"
|
|
798
798
|
React-perflogger:
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
</dict>
|
|
35
35
|
</array>
|
|
36
36
|
<key>CFBundleVersion</key>
|
|
37
|
-
<string>
|
|
37
|
+
<string>20250813180908</string>
|
|
38
38
|
<key>CodePushDeploymentKey</key>
|
|
39
39
|
<string>$(MAIN_CODEPUSH_KEY)</string>
|
|
40
40
|
<key>CodePushServerURL</key>
|
|
41
|
-
<string>
|
|
41
|
+
<string>codepushurl</string>
|
|
42
42
|
<key>CommonBundleName</key>
|
|
43
43
|
<string>xt-app-common</string>
|
|
44
44
|
<key>LSRequiresIPhoneOS</key>
|
|
@@ -616,7 +616,7 @@
|
|
|
616
616
|
"-ObjC",
|
|
617
617
|
"-lc++",
|
|
618
618
|
);
|
|
619
|
-
PRODUCT_BUNDLE_IDENTIFIER = com.
|
|
619
|
+
PRODUCT_BUNDLE_IDENTIFIER = com.xrn.template;
|
|
620
620
|
PRODUCT_NAME = XRNTemplate;
|
|
621
621
|
SWIFT_OBJC_BRIDGING_HEADER = "XRNTemplate-Bridging-Header.h";
|
|
622
622
|
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
|
@@ -647,7 +647,7 @@
|
|
|
647
647
|
"-ObjC",
|
|
648
648
|
"-lc++",
|
|
649
649
|
);
|
|
650
|
-
PRODUCT_BUNDLE_IDENTIFIER = com.
|
|
650
|
+
PRODUCT_BUNDLE_IDENTIFIER = com.xrn.template;
|
|
651
651
|
PRODUCT_NAME = XRNTemplate;
|
|
652
652
|
SWIFT_OBJC_BRIDGING_HEADER = "XRNTemplate-Bridging-Header.h";
|
|
653
653
|
SWIFT_VERSION = 5.0;
|
|
@@ -767,7 +767,7 @@
|
|
|
767
767
|
"-ObjC",
|
|
768
768
|
"-lc++",
|
|
769
769
|
);
|
|
770
|
-
PRODUCT_BUNDLE_IDENTIFIER = com.
|
|
770
|
+
PRODUCT_BUNDLE_IDENTIFIER = com.xrn.template;
|
|
771
771
|
PRODUCT_NAME = XRNTemplate;
|
|
772
772
|
SWIFT_OBJC_BRIDGING_HEADER = "XRNTemplate-Bridging-Header.h";
|
|
773
773
|
SWIFT_VERSION = 5.0;
|
package/main-bundle/App.tsx
CHANGED
package/main-bundle/app.json
CHANGED
package/main-bundle/index.ts
CHANGED
package/main-bundle/package.json
CHANGED
|
@@ -5,19 +5,15 @@
|
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"start": "xrn start",
|
|
8
|
-
"bind-port:harmony": "xrn bind-port harmony",
|
|
9
|
-
"codepush:harmony": "xrn codepush XRNTemplate harmony 0.0.1 dev --increment false --desc 测试热更新 --mandatory false ",
|
|
10
|
-
"codepush:ios": "xrn codepush XRNTemplate ios 0.0.1 dev --increment false --desc 测试热更新 --mandatory true",
|
|
11
|
-
"build:harmony": "xrn build-bundle harmony",
|
|
12
|
-
"build:ios": "xrn build-bundle ios",
|
|
13
8
|
"postinstall": "xrn-bundle-postinstall"
|
|
14
9
|
},
|
|
15
10
|
"resolutions": {
|
|
11
|
+
"@react-native-community/cli": "9.3.3",
|
|
16
12
|
"metro": "0.72.4",
|
|
17
13
|
"metro-config": "0.72.4"
|
|
18
14
|
},
|
|
19
15
|
"dependencies": {
|
|
20
|
-
"@
|
|
16
|
+
"@xrnjs/core": "0.0.3",
|
|
21
17
|
"react": "18.2.0",
|
|
22
18
|
"react-native": "0.72.5"
|
|
23
19
|
},
|
|
@@ -28,7 +24,7 @@
|
|
|
28
24
|
"@react-native/metro-config": "^0.72.9",
|
|
29
25
|
"@types/react": "18.0.25",
|
|
30
26
|
"@types/react-native": "0.72.8",
|
|
31
|
-
"@
|
|
27
|
+
"@xrnjs/cli": "0.0.3",
|
|
32
28
|
"eslint": "^7.32.0",
|
|
33
29
|
"metro-react-native-babel-preset": "0.72.4"
|
|
34
30
|
}
|
package/main-bundle/router.ts
CHANGED