You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SmsForwarder/app/build.gradle

76 lines
2.6 KiB
Groovy

4 years ago
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 28
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
4 years ago
defaultConfig {
applicationId "com.idormy.sms.forwarder"
minSdkVersion 23
targetSdkVersion 28
versionCode 8
versionName "1.2.2"
4 years ago
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
4 years ago
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
buildToolsVersion '29.0.2'
4 years ago
//apk file name
android.applicationVariants.all { variant ->
variant.outputs.all {
//def date = new Date().format("yyyyMMdd" , TimeZone.getTimeZone("Asia/Shanghai"))
def date = new Date().format("yyyyMMdd", TimeZone.getTimeZone("GMT+08"))
if (variant.buildType.name.equals('debug')) {
outputFileName = "SmsForwarder_debug_${date}_${versionName}.apk"
4 years ago
}
if (variant.buildType.name.equals('release')) {
outputFileName = "SmsForwarder_release_${date}_${versionName}.apk"
4 years ago
}
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
4 years ago
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
4 years ago
testImplementation 'junit:junit:4.12'
4 years ago
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
4 years ago
//okhttp
implementation 'com.squareup.okhttp3:okhttp:4.9.0'
implementation 'com.squareup.okio:okio:2.10.0'
//fastjson
implementation "com.alibaba:fastjson:1.2.75"
4 years ago
//android8.0以上需要使用到反射获取隐藏的系统api和动态代理隐藏的抽象类回调
//其中动态代理抽象类回调需要使用ProxyBuilder类故依赖一个库
//implementation 'com.linkedin.dexmaker:dexmaker-mockito:2.12.1'
//友盟基础组件库所有友盟业务SDK都依赖基础组件库
implementation "com.umeng.umsdk:common:9.3.6"
implementation "com.umeng.umsdk:asms:1.2.0"
4 years ago
//XUpdate
implementation 'com.github.xuexiangjys:XUpdate:2.0.7'
implementation 'com.github.xuexiangjys.XUpdateAPI:xupdate-easy:1.0.0'
implementation 'com.github.xuexiangjys.XUpdateAPI:xupdate-downloader-aria:1.0.0'
//EmailKit
implementation 'com.github.mailhu:emailkit:4.2.2'
4 years ago
}