@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.
Files changed (57) hide show
  1. package/$package.json +3 -3
  2. package/.env +1 -1
  3. package/.env.prod +1 -1
  4. package/android/app/build.gradle +5 -5
  5. package/android/app/src/main/AndroidManifest.xml +0 -8
  6. package/android/app/src/main/assets/xrn-manifest.json +1 -1
  7. package/android/app/src/main/java/com/xrn/template/MainActivity.kt +5 -18
  8. package/android/app/src/main/java/com/xrn/template/MainApplication.kt +1 -1
  9. package/android/app/src/main/res/drawable-xxhdpi/ic_logo_bg.png +0 -0
  10. package/android/app/src/main/res/layout/activity_splash.xml +6 -8
  11. package/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  12. package/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  13. package/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  14. package/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  15. package/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  16. package/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  17. package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  18. package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  19. package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  20. package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  21. package/android/settings.gradle +4 -4
  22. package/harmony/build-profile.json5 +11 -7
  23. package/harmony/entry/oh-package-lock.json5 +28 -28
  24. package/harmony/entry/oh-package.json5 +8 -12
  25. package/harmony/entry/src/main/cpp/generated/RNDeviceInfo.cpp +27 -0
  26. package/harmony/entry/src/main/ets/navDestination/Splash.ets +9 -50
  27. package/harmony/entry/src/main/resources/base/media/foreground.png +0 -0
  28. package/harmony/entry/src/main/resources/base/media/ic_logo_bg.png +0 -0
  29. package/harmony/entry/src/main/resources/base/media/startIcon.png +0 -0
  30. package/harmony/oh-package.json5 +3 -3
  31. package/ios/BundleEventCenter/XTBundleProvider.m +1 -2
  32. package/ios/Podfile +4 -4
  33. package/ios/Podfile.lock +22 -22
  34. package/ios/XRNTemplate/Info.plist +2 -2
  35. package/ios/XRNTemplate.xcodeproj/project.pbxproj +3 -3
  36. package/main-bundle/App.tsx +1 -1
  37. package/main-bundle/app.json +1 -1
  38. package/main-bundle/babel.config.js +0 -1
  39. package/main-bundle/index.ts +1 -1
  40. package/main-bundle/package.json +3 -7
  41. package/main-bundle/router.ts +1 -1
  42. package/main-bundle/xrn.config.ts +1 -1
  43. package/main-bundle/yarn.lock +9651 -13622
  44. package/package.json +5 -4
  45. package/react-native.config.js +13 -2
  46. package/sub-bundle/App.tsx +1 -1
  47. package/sub-bundle/babel.config.js +0 -1
  48. package/sub-bundle/index.ts +1 -1
  49. package/sub-bundle/package.json +3 -8
  50. package/sub-bundle/router.ts +1 -1
  51. package/sub-bundle/xrn.config.ts +1 -1
  52. package/sub-bundle/yarn.lock +9651 -13652
  53. package/xrn.config.json +12 -10
  54. package/android/app/src/main/assets/index.main-bundle.bundle +0 -178940
  55. package/android/app/src/main/assets/index.sub-bundle.bundle +0 -178928
  56. package/android/app/src/main/res/raw/launch_screen.json +0 -1
  57. 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/@xrn/react-native-code-push`)"
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/@xrn/app-utils`)"
643
- - "react-native-xrn-asset-loader (from `../node_modules/@xrn/asset-loader`)"
644
- - "react-native-xrn-bundle (from `../node_modules/@xrn/bundle`)"
645
- - "react-native-xrn-debug-tools (from `../node_modules/@xrn/debug-tools`)"
646
- - "react-native-xrn-image (from `../node_modules/@xrn/image`)"
647
- - "react-native-xrn-loading (from `../node_modules/@xrn/loading`)"
648
- - "react-native-xrn-modules-core (from `../node_modules/@xrn/modules-core`)"
649
- - "react-native-xrn-multi-bundle (from `../node_modules/@xrn/multi-bundle`)"
650
- - "react-native-xrn-native-storage (from `../node_modules/@xrn/native-storage`)"
651
- - "react-native-xrn-navigation (from `../node_modules/@xrn/navigation`)"
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/@xrn/react-native-code-push"
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/@xrn/app-utils"
777
+ :path: "../node_modules/@xrnjs/app-utils"
778
778
  react-native-xrn-asset-loader:
779
- :path: "../node_modules/@xrn/asset-loader"
779
+ :path: "../node_modules/@xrnjs/asset-loader"
780
780
  react-native-xrn-bundle:
781
- :path: "../node_modules/@xrn/bundle"
781
+ :path: "../node_modules/@xrnjs/bundle"
782
782
  react-native-xrn-debug-tools:
783
- :path: "../node_modules/@xrn/debug-tools"
783
+ :path: "../node_modules/@xrnjs/debug-tools"
784
784
  react-native-xrn-image:
785
- :path: "../node_modules/@xrn/image"
785
+ :path: "../node_modules/@xrnjs/image"
786
786
  react-native-xrn-loading:
787
- :path: "../node_modules/@xrn/loading"
787
+ :path: "../node_modules/@xrnjs/loading"
788
788
  react-native-xrn-modules-core:
789
- :path: "../node_modules/@xrn/modules-core"
789
+ :path: "../node_modules/@xrnjs/modules-core"
790
790
  react-native-xrn-multi-bundle:
791
- :path: "../node_modules/@xrn/multi-bundle"
791
+ :path: "../node_modules/@xrnjs/multi-bundle"
792
792
  react-native-xrn-native-storage:
793
- :path: "../node_modules/@xrn/native-storage"
793
+ :path: "../node_modules/@xrnjs/native-storage"
794
794
  react-native-xrn-navigation:
795
- :path: "../node_modules/@xrn/navigation"
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>20250813152915</string>
37
+ <string>20250813180908</string>
38
38
  <key>CodePushDeploymentKey</key>
39
39
  <string>$(MAIN_CODEPUSH_KEY)</string>
40
40
  <key>CodePushServerURL</key>
41
- <string>http://cp.example.cn</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.xdeal.ai;
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.xdeal.ai;
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.xdeal.ai;
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;
@@ -2,7 +2,7 @@ import React from "react";
2
2
 
3
3
  import { StyleSheet, Text, View, Button } from "react-native";
4
4
 
5
- import { useNavigation } from "@xrn/core";
5
+ import { useNavigation } from "@xrnjs/core";
6
6
 
7
7
  const styles = StyleSheet.create({
8
8
  container: {
@@ -10,6 +10,6 @@
10
10
  "packageName": "com.xrn.template"
11
11
  },
12
12
  "ios": {
13
- "bundleIdentifier": "com.xdeal.ai"
13
+ "bundleIdentifier": "com.xrn.template"
14
14
  }
15
15
  }
@@ -1,4 +1,3 @@
1
1
  module.exports = {
2
- extends: "@xrn/bundle-config/babel.config.js",
3
2
  presets: ["module:metro-react-native-babel-preset"],
4
3
  };
@@ -1,3 +1,3 @@
1
- import { initBundle } from "@xrn/core";
1
+ import { initBundle } from "@xrnjs/core";
2
2
 
3
3
  initBundle(require("./xrn.config").default)();
@@ -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
- "@xrn/core": "0.0.2-beta.57",
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
- "@xrn/cli": "0.0.2-beta.30",
27
+ "@xrnjs/cli": "0.0.3",
32
28
  "eslint": "^7.32.0",
33
29
  "metro-react-native-babel-preset": "0.72.4"
34
30
  }
@@ -1,5 +1,5 @@
1
1
  import App from './App';
2
- import { initModule, Navigation } from '@xrn/core';
2
+ import { initModule, Navigation } from '@xrnjs/core';
3
3
 
4
4
  export enum ROUTES {
5
5
  Demo = 'demo',
@@ -1,4 +1,4 @@
1
- import type {InitBundleConfigProps} from '@xrn/core';
1
+ import type {InitBundleConfigProps} from '@xrnjs/core';
2
2
  import {name as appName} from './app.json';
3
3
 
4
4
  export default {