64 lines
1.4 KiB
Groovy
64 lines
1.4 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
}
|
|
|
|
android {
|
|
namespace 'com.wails.app'
|
|
compileSdk 34
|
|
|
|
buildFeatures {
|
|
buildConfig = true
|
|
}
|
|
|
|
defaultConfig {
|
|
applicationId "com.wails.app"
|
|
minSdk 21
|
|
targetSdk 34
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
// Configure supported ABIs
|
|
ndk {
|
|
abiFilters 'arm64-v8a', 'x86_64'
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
debug {
|
|
debuggable true
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_11
|
|
targetCompatibility JavaVersion.VERSION_11
|
|
}
|
|
|
|
// Source sets configuration
|
|
sourceSets {
|
|
main {
|
|
// JNI libraries are in jniLibs folder
|
|
jniLibs.srcDirs = ['src/main/jniLibs']
|
|
// Assets for the WebView
|
|
assets.srcDirs = ['src/main/assets']
|
|
}
|
|
}
|
|
|
|
// Packaging options
|
|
packagingOptions {
|
|
// Don't strip Go symbols in debug builds
|
|
doNotStrip '*/arm64-v8a/libwails.so'
|
|
doNotStrip '*/x86_64/libwails.so'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
|
implementation 'androidx.webkit:webkit:1.9.0'
|
|
implementation 'com.google.android.material:material:1.11.0'
|
|
}
|