lilei 4 months ago
parent
commit
d2f1a5c5e6

+ 0 - 10
harmony-configs/AppScope/app.json5

@@ -1,10 +0,0 @@
-{
-  "app": {
-    "bundleName": "com.iscm.arrow360",
-    "vendor": "example",
-    "versionCode": 1000000,
-    "versionName": "1.4.6",
-    "icon": "$media:app_icon",
-    "label": "$string:app_name"
-  }
-}

+ 27 - 15
harmony-configs/build-profile.json5

@@ -1,37 +1,49 @@
 {
 {
   "app": {
   "app": {
     "signingConfigs": [
     "signingConfigs": [
-		{
-			"name": "default",
-			"type": "HarmonyOS",
-			"material": {
-			  "certpath": "C:\\Users\\Admin\\.ohos\\config\\default_MyApplication_F0YZ2MXifdiB7wHx4_hxYgFmucgwSiA8vVDlDWFxrZI=.cer",
-			  "storePassword": "0000001B3AF388BFA1020A1CE6E7A660F938B0964447D6DED06289CE215A7F1DCD9056EF088DF352A8BF01",
-			  "keyAlias": "debugKey",
-			  "keyPassword": "0000001B7674044E0E89816A6C256437D8CD52F1E92E78E6D24A1C7C6CFFE7C4197C28B6D728402EB67177",
-			  "profile": "C:\\Users\\Admin\\.ohos\\config\\default_MyApplication_F0YZ2MXifdiB7wHx4_hxYgFmucgwSiA8vVDlDWFxrZI=.p7b",
-			  "signAlg": "SHA256withECDSA",
-			  "storeFile": "C:\\Users\\Admin\\.ohos\\config\\default_MyApplication_F0YZ2MXifdiB7wHx4_hxYgFmucgwSiA8vVDlDWFxrZI=.p12"
-			}
-		  }
-	],
+      {
+        "name": "default",
+        "type": "HarmonyOS",
+        "material": {
+          "certpath": "C:\\Users\\Admin\\.ohos\\config\\default_app-harmony-9b825588_TRbkUaTskvvBSBg2tleUXronggr3l295HX_jgC2a6IA=.cer",
+          "storePassword": "00000019249B06AF877D1F8F390AEC7C8C8A184E359CC3E216BD31AE2F864699A623105DF9B9F1F595",
+          "keyAlias": "debugKey",
+          "keyPassword": "0000001940DBC8F121B4F388D9A7BB5D3AC747F77C5C254D5048EF2535F6F4FDB20FD9BB712402781A",
+          "profile": "C:\\Users\\Admin\\.ohos\\config\\default_app-harmony-9b825588_TRbkUaTskvvBSBg2tleUXronggr3l295HX_jgC2a6IA=.p7b",
+          "signAlg": "SHA256withECDSA",
+          "storeFile": "C:\\Users\\Admin\\.ohos\\config\\default_app-harmony-9b825588_TRbkUaTskvvBSBg2tleUXronggr3l295HX_jgC2a6IA=.p12"
+        }
+      }
+    ],
     "products": [
     "products": [
       {
       {
         "name": "default",
         "name": "default",
         "signingConfig": "default",
         "signingConfig": "default",
         "compatibleSdkVersion": "5.0.0(12)",
         "compatibleSdkVersion": "5.0.0(12)",
         "runtimeOS": "HarmonyOS",
         "runtimeOS": "HarmonyOS",
+        "buildOption": {
+          "strictMode": {
+            "caseSensitiveCheck": true,
+            "useNormalizedOHMUrl": true
+          }
+        }
       },
       },
       {
       {
         "name": "release",
         "name": "release",
         "signingConfig": "release",
         "signingConfig": "release",
         "compatibleSdkVersion": "5.0.0(12)",
         "compatibleSdkVersion": "5.0.0(12)",
         "runtimeOS": "HarmonyOS",
         "runtimeOS": "HarmonyOS",
+        "buildOption": {
+          "strictMode": {
+            "caseSensitiveCheck": true,
+            "useNormalizedOHMUrl": true
+          }
+        }
       }
       }
     ],
     ],
     "buildModeSet": [
     "buildModeSet": [
       {
       {
-        "name": "debug",
+        "name": "debug"
       },
       },
       {
       {
         "name": "release"
         "name": "release"

+ 0 - 28
harmony-configs/entry/build-profile.json5

@@ -1,28 +0,0 @@
-{
-  "apiType": "stageMode",
-  "buildOption": {
-  },
-  "buildOptionSet": [
-    {
-      "name": "release",
-      "arkOptions": {
-        "obfuscation": {
-          "ruleOptions": {
-            "enable": true,
-            "files": [
-              "./obfuscation-rules.txt"
-            ]
-          }
-        }
-      }
-    },
-  ],
-  "targets": [
-    {
-      "name": "default"
-    },
-    {
-      "name": "ohosTest",
-    }
-  ]
-}

+ 0 - 18
harmony-configs/entry/obfuscation-rules.txt

@@ -1,18 +0,0 @@
-# Define project specific obfuscation rules here.
-# You can include the obfuscation configuration files in the current module's build-profile.json5.
-#
-# For more details, see
-#   https://gitee.com/openharmony/arkcompiler_ets_frontend/blob/master/arkguard/README.md
-
-# Obfuscation options:
-# -disable-obfuscation: disable all obfuscations
-# -enable-property-obfuscation: obfuscate the property names
-# -enable-toplevel-obfuscation: obfuscate the names in the global scope
-# -compact: remove unnecessary blank spaces and all line feeds
-# -remove-log: remove all console.* statements
-# -print-namecache: print the name cache that contains the mapping from the old names to new names
-# -apply-namecache: reuse the given cache file
-
-# Keep options:
-# -keep-property-name: specifies property names that you want to keep
-# -keep-global-name: specifies names that you want to keep in the global scope

+ 0 - 10
harmony-configs/entry/oh-package.json5

@@ -1,10 +0,0 @@
-{
-  "name": "entry",
-  "version": "1.0.0",
-  "description": "Please describe the basic information.",
-  "main": "",
-  "author": "",
-  "license": "",
-  "dependencies": {}
-}
-

+ 0 - 81
harmony-configs/entry/src/main/module.json5

@@ -1,81 +0,0 @@
-{
-  "module": {
-    "name": "entry",
-    "type": "entry",
-    "description": "$string:module_desc",
-    "mainElement": "EntryAbility",
-    "deviceTypes": [
-      "phone",
-      "tablet",
-      "2in1"
-    ],
-    "deliveryWithInstall": true,
-    "installationFree": false,
-    "pages": "$profile:main_pages",
-    "abilities": [
-      {
-        "name": "EntryAbility",
-        "srcEntry": "./ets/entryability/EntryAbility.ets",
-        "description": "$string:EntryAbility_desc",
-        "icon": "$media:layered_image",
-        "label": "$string:EntryAbility_label",
-        "startWindowIcon": "$media:startIcon",
-        "startWindowBackground": "$color:start_window_background",
-        "exported": true,
-        "skills": [
-          {
-            "entities": [
-              "entity.system.home"
-            ],
-            "actions": [
-              "action.system.home"
-            ]
-          }
-        ]
-      }
-    ],
-    "requestPermissions": [
-      {
-        "name": "ohos.permission.INTERNET"
-      },
-      {
-        "name": "ohos.permission.APPROXIMATELY_LOCATION",
-        "reason": "$string:location_tips",
-        "usedScene": {}
-      },
-      {
-        "name": "ohos.permission.LOCATION",
-        "reason": "$string:location_tips",
-        "usedScene": {}
-      },
-      {
-        "name": "ohos.permission.GET_WIFI_INFO",
-        "reason": "$string:get_networkinfo_tips",
-        "usedScene": {
-          "when": "inuse"
-        }
-      },
-      {
-        "name": "ohos.permission.GET_NETWORK_INFO",
-        "reason": "$string:get_wifiinfo_tips",
-        "usedScene": {
-          "when": "inuse"
-        }
-      },
-      {
-        "name": "ohos.permission.MICROPHONE",
-        "reason": "$string:microphone",
-        "usedScene": {
-          "when": "inuse"
-        }
-      },
-      {
-        "name": "ohos.permission.ACCESS_BIOMETRIC",
-        "reason": "$string:access_biometric",
-        "usedScene": {
-          "when": "inuse"
-        }
-      }
-    ]
-  }
-}

+ 0 - 20
harmony-configs/oh-package.json5

@@ -1,20 +0,0 @@
-{
-  "modelVersion": "5.0.0",
-  "name": "template",
-  "version": "1.0.0",
-  "description": "Please describe the basic information.",
-  "main": "",
-  "author": "",
-  "license": "",
-  "dependencies": {
-    
-  },
-  "devDependencies": {
-    "@ohos/hypium": "1.0.16",
-    "@ohos/hamock": "1.0.0",
-    "@dcloudio/uts-harmony": "./entry/src/main/ets/uts",
-    "@dcloudio/uni-app-harmony": "./entry/src/main/ets/uni-app-harmony",
-    "@dcloudio/uni-app-harmony-framework": "./entry/src/main/resources/rawfile/uni-app"
-  },
-  "dynamicDependencies": {}
-}

+ 0 - 8
harmony-configs/package.json

@@ -1,8 +0,0 @@
-{
-  "name": "template",
-  "version": "1.3.7",
-  "description": "",
-  "scripts": {},
-  "author": "",
-  "license": "ISC"
-}

+ 12 - 1
manifest.json

@@ -348,5 +348,16 @@
     "uniStatistics" : {
     "uniStatistics" : {
         "enable" : false
         "enable" : false
     },
     },
-    "vueVersion" : "3"
+    "vueVersion" : "3",
+    "app-harmony" : {
+        "distribute" : {
+            "bundleName" : "com.iscm.arrow360",
+            "icons" : {
+                "foreground" : "C:/Users/Admin/Desktop/1024x1024.png"
+            },
+            "splashScreens" : {
+                "startWindowIcon" : "C:/Users/Admin/Desktop/1024x1024.png"
+            }
+        }
+    }
 }
 }