65 lines
2.4 KiB
Plaintext
65 lines
2.4 KiB
Plaintext
import java.util.Properties
|
||
|
||
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 = "../.."
|
||
}
|