chendeben 1 rok temu
rodzic
commit
654719920b
2 zmienionych plików z 34 dodań i 3 usunięć
  1. 3 3
      .gitignore
  2. 31 0
      lib/build-profile.json5

+ 3 - 3
.gitignore

@@ -2,7 +2,7 @@
 /local.properties
 /.idea
 **/build
-package-lock.json
+/package-lock.json
 /.hvigor
 .clang-format
 .clang-tidy
@@ -10,6 +10,6 @@ package-lock.json
 @ohos
 .vscode
 .vs
-build-profile.json5
+/build-profile.json5
 oh_modules
-oh-package-lock.json5
+/oh-package-lock.json5

+ 31 - 0
lib/build-profile.json5

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