mirror of
https://github.com/fankes/TSBattery.git
synced 2025-09-04 01:35:25 +08:00
70 lines
2.3 KiB
Groovy
70 lines
2.3 KiB
Groovy
plugins {
|
||
id 'com.android.application'
|
||
id 'kotlin-android'
|
||
}
|
||
|
||
android {
|
||
signingConfigs {
|
||
debug {
|
||
storeFile file('/Users/fankes/ProjectPath/AndroidStudioProjects/TSBattery/keystore/public')
|
||
storePassword '123456'
|
||
keyAlias 'public'
|
||
keyPassword '123456'
|
||
v1SigningEnabled true
|
||
v2SigningEnabled true
|
||
}
|
||
}
|
||
compileSdkVersion 30
|
||
buildToolsVersion "30.0.3"
|
||
|
||
defaultConfig {
|
||
applicationId "com.fankes.tsbattery"
|
||
minSdkVersion 22
|
||
//noinspection ExpiredTargetSdkVersion,OldTargetApi
|
||
targetSdkVersion 26
|
||
versionCode 5
|
||
versionName "2.2"
|
||
|
||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||
}
|
||
|
||
buildTypes {
|
||
release {
|
||
minifyEnabled true
|
||
signingConfig signingConfigs.debug
|
||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||
}
|
||
}
|
||
compileOptions {
|
||
sourceCompatibility JavaVersion.VERSION_1_8
|
||
targetCompatibility JavaVersion.VERSION_1_8
|
||
}
|
||
kotlinOptions {
|
||
jvmTarget = '1.8'
|
||
}
|
||
}
|
||
|
||
dependencies {
|
||
compileOnly 'de.robv.android.xposed:api:82'
|
||
// 基础依赖包,必须要依赖
|
||
implementation 'com.gyf.immersionbar:immersionbar:3.0.0'
|
||
// fragment快速实现(可选)
|
||
implementation 'com.gyf.immersionbar:immersionbar-components:3.0.0'
|
||
// kotlin扩展(可选)
|
||
implementation 'com.gyf.immersionbar:immersionbar-ktx:3.0.0'
|
||
//noinspection GradleDependency,DifferentStdlibGradleVersion
|
||
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
||
//noinspection GradleDependency
|
||
implementation 'androidx.core:core-ktx:1.5.0'
|
||
//noinspection GradleDependency
|
||
implementation 'androidx.appcompat:appcompat:1.3.0'
|
||
//noinspection GradleDependency
|
||
implementation 'com.google.android.material:material:1.3.0'
|
||
//noinspection GradleDependency
|
||
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
|
||
testImplementation 'junit:junit:4.13.2'
|
||
//noinspection GradleDependency
|
||
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
||
//noinspection GradleDependency
|
||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
||
} |