Browse Source

enhance: remove source map from mobile apps

Tienson Qin 3 years ago
parent
commit
00a39ceda3
2 changed files with 2 additions and 7 deletions
  1. 0 5
      android/app/src/main/assets/capacitor.config.json
  2. 2 2
      package.json

+ 0 - 5
android/app/src/main/assets/capacitor.config.json

@@ -9,15 +9,10 @@
 			"launchAutoHide": false,
 			"androidScaleType": "CENTER_CROP",
 			"splashImmersive": false,
-			"showSpinner": true,
 			"backgroundColor": "#002b36"
 		}
 	},
 	"ios": {
 		"scheme": "Logseq"
-	},
-	"server": {
-		"url": "http://192.168.1.59:3001",
-		"cleartext": true
 	}
 }

+ 2 - 2
package.json

@@ -38,8 +38,8 @@
         "release-electron": "run-s gulp:build && gulp electronMaker",
         "debug-electron": "cd static/ && yarn electron:debug",
         "e2e-test": "npx playwright test --reporter github",
-        "run-android-release": "yarn clean && yarn release-app && rm -rf ./public/static && mv static ./public && npx cap sync android && npx cap run android",
-        "run-ios-release": "yarn clean && yarn release-app && rm -rf ./public/static && mv static ./public && npx cap sync ios && npx cap run ios",
+        "run-android-release": "yarn clean && yarn release-app && rm -rf ./public/static && rm -rf ./static/js/*.map && mv static ./public && npx cap sync android && npx cap run android",
+        "run-ios-release": "yarn clean && yarn release-app && rm -rf ./public/static && rm -rf ./static/js/*.map && mv static ./public && npx cap sync ios && npx cap run ios",
         "clean": "gulp clean",
         "test": "run-s cljs:test cljs:run-test",
         "report": "run-s cljs:report",