| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- plugins {
- id("com.android.application")
- // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
- id("dev.flutter.flutter-gradle-plugin")
- }
- android {
- namespace = "com.tiku.tiku_client"
- compileSdk = flutter.compileSdkVersion
- ndkVersion = flutter.ndkVersion
- compileOptions {
- sourceCompatibility = JavaVersion.VERSION_17
- targetCompatibility = JavaVersion.VERSION_17
- }
- defaultConfig {
- ndk {
- abiFilters.clear()
- abiFilters.add("arm64-v8a")
- }
- // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
- applicationId = "com.tiku.tiku_client"
- // You can update the following values to match your application needs.
- // For more information, see: https://flutter.dev/to/review-gradle-config.
- minSdk = flutter.minSdkVersion
- targetSdk = flutter.targetSdkVersion
- versionCode = flutter.versionCode
- versionName = flutter.versionName
- }
- signingConfigs {
- create("release") {
- val props = rootProject.file("keystore.properties")
- if (props.exists()) {
- props.reader().use { reader ->
- reader.readLines().forEach { line ->
- val (k, v) = line.split("=", limit = 2)
- when (k.trim()) {
- "storeFile" -> storeFile = file(v.trim())
- "storePassword" -> storePassword = v.trim()
- "keyAlias" -> keyAlias = v.trim()
- "keyPassword" -> keyPassword = v.trim()
- }
- }
- }
- }
- }
- }
- buildTypes {
- release {
- signingConfig = signingConfigs.getByName("release")
- }
- }
- }
- kotlin {
- compilerOptions {
- jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17
- }
- }
- flutter {
- source = "../.."
- }
|