forked from jsnbuchanan/crowd-funder-for-time-pwa
Android Capacitor configurations
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -32,3 +32,4 @@ pnpm-debug.log*
|
|||||||
/blob-report/
|
/blob-report/
|
||||||
/playwright/.cache/
|
/playwright/.cache/
|
||||||
/dist-electron-build/
|
/dist-electron-build/
|
||||||
|
/dist-capacitor/
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -18,11 +18,11 @@ export default defineConfig(({ mode }) => {
|
|||||||
const outDir = isElectron
|
const outDir = isElectron
|
||||||
? "dist-electron"
|
? "dist-electron"
|
||||||
: isCapacitor
|
: isCapacitor
|
||||||
? "dist-capacitor"
|
? "dist-capacitor"
|
||||||
: "dist";
|
: "dist";
|
||||||
|
|
||||||
return {
|
return {
|
||||||
base: isElectron ? './' : '/',
|
base: isElectron ? "./" : "/",
|
||||||
server: {
|
server: {
|
||||||
port: process.env.VITE_PORT || 8080,
|
port: process.env.VITE_PORT || 8080,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user