60 lines
1.8 KiB
Groovy
60 lines
1.8 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'kotlin-android'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 33
|
|
buildToolsVersion "30.0.0"
|
|
|
|
defaultConfig {
|
|
applicationId "com.bonus.wrjtest"
|
|
minSdkVersion 27
|
|
targetSdkVersion 33
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
// kotlinOptions {
|
|
// jvmTarget = '1.6'
|
|
// }
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
|
|
viewBinding {
|
|
enabled = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation files("libs/rcsdk-v1.6.3.aar")
|
|
implementation files('libs/h16_airlink.aar')
|
|
implementation files('libs/fpvplayer-v3.1.6.aar')
|
|
implementation files('libs/sky-ijkplayer-v1.1.aar')
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
implementation 'androidx.core:core-ktx:1.2.0'
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
implementation 'com.google.android.material:material:1.1.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
|
implementation 'androidx.navigation:navigation-fragment-ktx:2.2.2'
|
|
implementation 'androidx.navigation:navigation-ui-ktx:2.2.2'
|
|
testImplementation 'junit:junit:4.+'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
|
// 确保你使用的是最新版本
|
|
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.5.1"
|
|
} |