flutter_kinetra/android/app/build.gradle.kts
2025-09-12 14:19:13 +08:00

63 lines
2.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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")
}
android {
namespace = "com.kinetra.adehok.app"
compileSdk = flutter.compileSdkVersion
ndkVersion = "27.0.12077973"
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
isCoreLibraryDesugaringEnabled = true
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId = "com.kinetra.adehok.app"
// 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
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.getByName("debug")
}
}
}
dependencies {
//支持 Kotlin 编写的原生代码
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.6.10")
// 支持方法数超过 65536 的项目
implementation("com.android.support:multidex:1.0.3")
implementation("com.google.android.exoplayer:exoplayer:2.19.1")
// // firebase相关推送通知
// implementation("com.google.firebase:firebase-messaging:23.1.2")
// // firebase相关行为统计
// implementation("com.google.firebase:firebase-analytics:21.2.2")
// // firebase相关崩溃日志上报
// implementation("com.google.firebase:firebase-crashlytics:18.3.7")
// // firebase相关用于识别设备实例 ID
// implementation("com.google.firebase:firebase-iid:21.1.0")
// implementation("com.android.installreferrer:installreferrer:2.2")
// // firebase相关添加核心库 coreLibraryDesugaring 依赖
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.4")
}
flutter {
source = "../.."
}