Browse Source

Android Capacitor configurations

split_build_process
Matthew Raymer 1 week ago
parent
commit
54dd6910a7
  1. 1
      .gitignore
  2. 2
      android/build.gradle
  3. 2
      android/gradle/wrapper/gradle-wrapper.properties
  4. 3
      capacitor.config.ts
  5. 6
      vite.config.mjs
  6. 2
      vite.config.utils.js

1
.gitignore

@ -32,3 +32,4 @@ pnpm-debug.log*
/blob-report/
/playwright/.cache/
/dist-electron-build/
/dist-capacitor/

2
android/build.gradle

@ -7,7 +7,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.2.1'
classpath 'com.android.tools.build:gradle:8.7.3'
classpath 'com.google.gms:google-services:4.4.0'
// NOTE: Do not place your application dependencies here; they belong

2
android/gradle/wrapper/gradle-wrapper.properties

@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME

3
capacitor.config.ts

@ -5,6 +5,9 @@ const config: CapacitorConfig = {
appName: 'TimeSafari',
webDir: 'dist',
bundledWebRuntime: false,
server: {
cleartext: true,
},
};
export default config;

6
vite.config.mjs

@ -18,11 +18,11 @@ export default defineConfig(({ mode }) => {
const outDir = isElectron
? "dist-electron"
: isCapacitor
? "dist-capacitor"
: "dist";
? "dist-capacitor"
: "dist";
return {
base: isElectron ? './' : '/',
base: isElectron ? "./" : "/",
server: {
port: process.env.VITE_PORT || 8080,
},

2
vite.config.utils.js

@ -54,7 +54,7 @@ export async function loadAppConfig() {
},
},
aliasConfig: {
"@": path.resolve(__dirname, "src"),
"@": path.resolve(__dirname, ".."),
buffer: path.resolve(__dirname, "node_modules", "buffer"),
"dexie-export-import/dist/import":
"dexie-export-import/dist/import/index.js",

Loading…
Cancel
Save