فهرست منبع

harmony 配置

wuhb 4 ماه پیش
والد
کامیت
addea9232f

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

@@ -0,0 +1,10 @@
+{
+  "app": {
+    "bundleName": "uni.app.UNI1050C07",
+    "vendor": "example",
+    "versionCode": 123,
+    "versionName": "1.2.3",
+    "icon": "$media:layered_image",
+    "label": "$string:app_name"
+  }
+}

+ 8 - 0
harmony-configs/AppScope/resources/base/element/color.json

@@ -0,0 +1,8 @@
+{
+  "color": [
+    {
+      "name": "start_window_background",
+      "value": "#FFFFFF"
+    }
+  ]
+}

+ 12 - 0
harmony-configs/AppScope/resources/base/element/string.json

@@ -0,0 +1,12 @@
+{
+  "string": [
+    {
+      "name": "app_name",
+      "value": "工效通APP"
+    },
+	{
+	  "name": "tracking_consent",
+	  "value": "未找到该权限的使用的地方,仅为审核"
+	}
+  ]
+}

BIN
harmony-configs/AppScope/resources/base/media/background.png


BIN
harmony-configs/AppScope/resources/base/media/foreground.png


+ 7 - 0
harmony-configs/AppScope/resources/base/media/layered_image.json

@@ -0,0 +1,7 @@
+{
+  "layered-image":
+  {
+    "background" : "$media:background",
+    "foreground" : "$media:foreground"
+  }
+}

BIN
harmony-configs/AppScope/resources/base/media/startIcon.png


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

@@ -0,0 +1,37 @@
+{
+  "apiType": "stageMode",
+  "buildOption": {
+    "arkOptions": {
+      "runtimeOnly": {
+        "sources": [
+          "./src/main/resources/resfile/uni-app-x/apps/__UNI__1050C07/www/import/app-config.ets",
+          "./src/main/resources/resfile/uni-app-x/apps/__UNI__1050C07/www/import/app-service.ets",
+          "./src/main/resources/resfile/uni-app-x/apps/__UNI__1050C07/www/import/dynamic.ets"
+        ]
+      }
+    }
+  },
+  "buildOptionSet": [
+    {
+      "name": "release",
+      "arkOptions": {
+        "obfuscation": {
+          "ruleOptions": {
+            "enable": false,
+            "files": [
+              "./obfuscation-rules.txt"
+            ]
+          }
+        }
+      }
+    },
+  ],
+  "targets": [
+    {
+      "name": "default"
+    },
+    {
+      "name": "ohosTest",
+    }
+  ]
+}

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

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

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

@@ -0,0 +1,56 @@
+{
+  "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.APP_TRACKING_CONSENT",
+        "reason": "$string:tracking_consent",
+        "usedScene": {
+			"when": "inuse"
+		}
+      }
+    ],
+    "metadata": [
+      {
+        "name": "GETUI_APPID",
+        "value": "MXiwNfEPez7dO9u5ZcSnR8"
+      }
+    ]
+  }
+}

+ 2 - 2
utils/request.uts

@@ -14,8 +14,8 @@ export type RequestConfig = {
 
 // 基础 URL
 // const BASE_URL = "http://192.168.110.105:8080";
-const BASE_URL = "http://222.243.138.146:5095";
-// const BASE_URL = "http://10.170.129.135:8089";
+// const BASE_URL = "http://222.243.138.146:5095";
+const BASE_URL = "http://10.170.129.135:8089";
 
 /**
  * 获取基础 URL