This commit is contained in:
2026-04-21 10:30:57 +02:00
parent a594f125e1
commit f96df49b00
22 changed files with 233 additions and 342 deletions

View File

@@ -3,6 +3,7 @@ apply plugin: 'com.android.application'
android {
namespace = "com.knots.mobile"
compileSdk = rootProject.ext.compileSdkVersion
defaultConfig {
applicationId "com.knots.mobile"
minSdkVersion rootProject.ext.minSdkVersion
@@ -10,12 +11,19 @@ android {
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
aaptOptions {
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
// Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#61
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
ignoreAssetsPattern = '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
}
}
// ✅ Forcer Java 17
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
buildTypes {
release {
minifyEnabled false
@@ -25,7 +33,7 @@ android {
}
repositories {
flatDir{
flatDir {
dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs'
}
}
@@ -51,4 +59,4 @@ try {
}
} catch(Exception e) {
logger.info("google-services.json not found, google-services plugin not applied. Push Notifications won't work")
}
}