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. 2
      vite.config.mjs
  6. 2
      vite.config.utils.js

1
.gitignore

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

2
android/build.gradle

@ -7,7 +7,7 @@ buildscript {
mavenCentral() mavenCentral()
} }
dependencies { 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' classpath 'com.google.gms:google-services:4.4.0'
// NOTE: Do not place your application dependencies here; they belong // 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 distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists 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 networkTimeout=10000
validateDistributionUrl=true validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME

3
capacitor.config.ts

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

2
vite.config.mjs

@ -22,7 +22,7 @@ export default defineConfig(({ mode }) => {
: "dist"; : "dist";
return { return {
base: isElectron ? './' : '/', base: isElectron ? "./" : "/",
server: { server: {
port: process.env.VITE_PORT || 8080, port: process.env.VITE_PORT || 8080,
}, },

2
vite.config.utils.js

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

Loading…
Cancel
Save