2024-09-16 22:09:34 +00:00
|
|
|
plugins {
|
|
|
|
id "com.android.application"
|
|
|
|
id "kotlin-android"
|
|
|
|
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
|
|
|
|
id "dev.flutter.flutter-gradle-plugin"
|
2022-08-26 08:11:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
def keystoreProperties = new Properties()
|
|
|
|
def keystorePropertiesFile = rootProject.file('key.properties')
|
|
|
|
if (keystorePropertiesFile.exists()) {
|
|
|
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2024-09-16 22:09:34 +00:00
|
|
|
namespace "com.place.holder"
|
|
|
|
compileSdk flutter.compileSdkVersion
|
2024-09-16 23:40:05 +00:00
|
|
|
// ndkVersion flutter.ndkVersion
|
|
|
|
ndkVersion = "26.1.10909125"
|
2023-06-05 16:12:16 +00:00
|
|
|
|
2024-04-24 19:37:22 +00:00
|
|
|
packagingOptions {
|
|
|
|
pickFirst 'lib/x86/libc++_shared.so'
|
|
|
|
pickFirst 'lib/x86_64/libc++_shared.so'
|
|
|
|
pickFirst 'lib/armeabi-v7a/libc++_shared.so'
|
|
|
|
pickFirst 'lib/arm64-v8a/libc++_shared.so'
|
|
|
|
}
|
2024-09-16 22:09:34 +00:00
|
|
|
|
2022-08-26 08:11:35 +00:00
|
|
|
defaultConfig {
|
2024-05-22 23:56:51 +00:00
|
|
|
applicationId "com.place.holder"
|
2024-09-16 22:09:34 +00:00
|
|
|
minSdk flutter.minSdkVersion
|
|
|
|
targetSdk flutter.targetSdkVersion
|
|
|
|
versionCode flutter.versionCode
|
|
|
|
versionName flutter.versionName
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
|
|
targetCompatibility JavaVersion.VERSION_17
|
2024-09-17 20:37:05 +00:00
|
|
|
coreLibraryDesugaringEnabled true
|
|
|
|
}
|
|
|
|
|
2024-10-23 16:30:20 +00:00
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = JavaVersion.VERSION_17
|
|
|
|
}
|
|
|
|
|
2024-09-17 20:37:05 +00:00
|
|
|
dependencies {
|
|
|
|
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.4")
|
2024-09-16 22:09:34 +00:00
|
|
|
}
|
|
|
|
|
2022-08-26 08:11:35 +00:00
|
|
|
ndk {
|
|
|
|
abiFilters "x86_64","armeabi-v7a", "arm64-v8a"
|
|
|
|
}
|
2022-08-27 16:06:04 +00:00
|
|
|
|
2024-10-18 22:55:12 +00:00
|
|
|
// externalNativeBuild {
|
|
|
|
// cmake {
|
|
|
|
// arguments "-DANDROID_STL=c++_shared", '-DBUILD_TESTING=OFF', "-DANDROID_TOOLCHAIN=clang -v"
|
|
|
|
// cppFlags "-frtti -fexceptions -v -DANDROID -std=c++17"
|
|
|
|
//// cppFlags "-std=c++11"
|
|
|
|
// version "3.10.2"
|
|
|
|
// }
|
|
|
|
// }
|
2022-08-26 08:11:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
signingConfigs {
|
|
|
|
release {
|
|
|
|
keyAlias keystoreProperties['keyAlias']
|
|
|
|
keyPassword keystoreProperties['keyPassword']
|
|
|
|
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
|
|
|
|
storePassword keystoreProperties['storePassword']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
signingConfig signingConfigs.release
|
|
|
|
ndk {
|
|
|
|
debugSymbolLevel 'FULL'
|
|
|
|
}
|
|
|
|
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'),
|
|
|
|
'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
debug {
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'),
|
|
|
|
'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
2024-09-16 22:09:34 +00:00
|
|
|
|
|
|
|
// not required. Just info
|
|
|
|
tasks.whenTaskAdded { task ->
|
|
|
|
if (task.name == 'assembleDebug') {
|
|
|
|
task.doFirst {
|
|
|
|
println "The compileSdkVersion is $flutter.compileSdkVersion"
|
|
|
|
println "The targetSdkVersion is $flutter.targetSdkVersion"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-08-26 08:11:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
flutter {
|
|
|
|
source '../..'
|
2024-09-16 22:09:34 +00:00
|
|
|
}
|