Ver Fonte

feat: 注释 数据库可视化 插件相关代码

YuJing há 2 meses atrás
pai
commit
70a9a3e376

+ 1 - 1
oh-package.json5

@@ -4,7 +4,7 @@
   "buildOption": {
   },
   "dependencies": {
-    "@hadss/debug-db": "^1.0.0-rc.10"
+//    "@hadss/debug-db": "^1.0.0-rc.10"
   },
   "devDependencies": {
     "@ohos/hypium": "1.0.21",

+ 5 - 5
products/entry/build-profile.json5

@@ -3,11 +3,11 @@
   "buildOption": {
     "arkOptions": {
       "branchElimination": true,
-      "runtimeOnly": {
-        "packages": [
-          '@hadss/debug-db'
-        ],
-      },
+//      "runtimeOnly": {
+//        "packages": [
+//          '@hadss/debug-db'
+//        ],
+//      },
     }
   },
   "buildOptionSet": [

+ 6 - 6
products/entry/src/main/ets/entryability/EntryAbility.ets

@@ -33,12 +33,12 @@ export default class EntryAbility extends UIAbility {
 
 
       // 动态引入: 仅在 DEBUG 模式下引入该模块
-      if (BuildProfile.DEBUG) {
-        const pkg = '@hadss/debug-db';
-        import(pkg).then(async (ns: ESObject) => {
-          ns.DebugDB.initialize(this.context, { port: 8080, defaultStart: true });
-        });
-      }
+      // if (BuildProfile.DEBUG) {
+      //   const pkg = '@hadss/debug-db';
+      //   import(pkg).then(async (ns: ESObject) => {
+      //     ns.DebugDB.initialize(this.context, { port: 8080, defaultStart: true });
+      //   });
+      // }
       RelationalStoreUtils.initReplayCloudStore(this.context, null, BuildProfile.DEBUG)