mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 07:55:11 +08:00
MainActivity中为WebView启用硬件加速、DOM存储、数据库及默认缓存模式,提升性能与兼容性。capacitor.config.ts开启webContentsDebugging,便于调试排查问题。
28 lines
556 B
TypeScript
28 lines
556 B
TypeScript
import type { CapacitorConfig } from '@capacitor/cli'
|
|
|
|
const config: CapacitorConfig = {
|
|
appId: 'games.wenzi.ogame',
|
|
appName: 'OGame Vue Ts',
|
|
webDir: 'docs',
|
|
server: {
|
|
androidScheme: 'https'
|
|
},
|
|
android: {
|
|
buildOptions: {
|
|
keystorePath: undefined,
|
|
keystoreAlias: undefined
|
|
},
|
|
// 启用 WebView 调试,方便排查问题
|
|
webContentsDebuggingEnabled: true,
|
|
allowMixedContent: false
|
|
},
|
|
plugins: {
|
|
// 禁用键盘自动调整视口
|
|
Keyboard: {
|
|
resize: 'none'
|
|
}
|
|
}
|
|
}
|
|
|
|
export default config
|