mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
chore(dev): just one command for ios/android development
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user