chore(dev): just one command for ios/android development

This commit is contained in:
charlie
2022-09-01 12:16:45 +08:00
committed by Tienson Qin
parent 442a52f887
commit 9b57580962
4 changed files with 89 additions and 33 deletions

View File

@@ -1,32 +1,38 @@
import { CapacitorConfig } from '@capacitor/cli';
import { CapacitorConfig } from '@capacitor/cli'
const config: CapacitorConfig = {
appId: 'com.logseq.app',
appName: 'Logseq',
bundledWebRuntime: false,
webDir: 'public',
plugins: {
SplashScreen: {
launchShowDuration: 500,
launchAutoHide: false,
androidScaleType: "CENTER_CROP",
splashImmersive: false,
backgroundColor: "#002b36"
},
Keyboard: {
resize: "none"
}
appId: 'com.logseq.app',
appName: 'Logseq',
bundledWebRuntime: false,
webDir: 'public',
plugins: {
SplashScreen: {
launchShowDuration: 500,
launchAutoHide: false,
androidScaleType: 'CENTER_CROP',
splashImmersive: false,
backgroundColor: '#002b36'
},
ios: {
scheme: "Logseq"
Keyboard: {
resize: 'none'
}
// do not commit this into source control
// source: https://capacitorjs.com/docs/guides/live-reload
// , server: {
// url: process.env.LOGSEQ_APP_SERVER_URL,
// cleartext: true
// }
};
},
ios: {
scheme: 'Logseq'
}
}
if (
process.env.PLATFORM &&
process.env.LOGSEQ_APP_SERVER_URL
) {
Object.assign(config, {
server: {
url: process.env.LOGSEQ_APP_SERVER_URL,
cleartext: true
}
})
}
export = config;