|
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
|
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
|
|
|
|
|
|
apply plugin: 'kotlin-android-extensions'
|
|
|
|
|
|
|
|
|
|
android {
|
|
|
|
|
compileSdkVersion 28
|
|
|
|
|
defaultConfig {
|
|
|
|
|
applicationId "com.idormy.sms.forwarder"
|
|
|
|
|
minSdkVersion 23
|
|
|
|
|
targetSdkVersion 28
|
|
|
|
|
versionCode 1
|
|
|
|
|
versionName "1.0.0"
|
|
|
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
|
|
|
}
|
|
|
|
|
buildTypes {
|
|
|
|
|
release {
|
|
|
|
|
minifyEnabled false
|
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
buildToolsVersion '28.0.2'
|
|
|
|
|
//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"
|
|
|
|
|
}
|
|
|
|
|
if (variant.buildType.name.equals('release')) {
|
|
|
|
|
outputFileName = "SmsForwarder_release_${date}_${versionName}.apk"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
|
|
|
implementation 'com.android.support:appcompat-v7:28.0.0'
|
|
|
|
|
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
|
|
|
|
|
testImplementation 'junit:junit:4.12'
|
|
|
|
|
androidTestImplementation 'com.android.support.test:runner:1.0.2'
|
|
|
|
|
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
|
|
|
|
|
//okhttp
|
|
|
|
|
implementation 'com.squareup.okhttp3:okhttp:3.6.0'
|
|
|
|
|
implementation 'com.squareup.okio:okio:1.11.0'
|
|
|
|
|
//mail
|
|
|
|
|
implementation 'com.sun.mail:android-mail:1.6.0'
|
|
|
|
|
implementation 'com.sun.mail:android-activation:1.6.0'
|
|
|
|
|
implementation 'com.android.support:design:28.0.0'
|
|
|
|
|
//android8.0以上需要使用到反射获取隐藏的系统api和动态代理隐藏的抽象类回调
|
|
|
|
|
//。其中动态代理抽象类回调需要使用ProxyBuilder类,故依赖一个库
|
|
|
|
|
// implementation 'com.linkedin.dexmaker:dexmaker-mockito:2.12.1'
|
|
|
|
|
//appupdate
|
|
|
|
|
implementation 'com.qianwen:update-app:3.5.2'
|
|
|
|
|
implementation 'com.qianwen:okhttp-utils:3.8.0'
|
|
|
|
|
implementation 'com.lzy.net:okgo:3.0.4'
|
|
|
|
|
// 友盟基础组件库(所有友盟业务SDK都依赖基础组件库)
|
|
|
|
|
implementation "com.umeng.umsdk:common:2.1.0"
|
|
|
|
|
|
|
|
|
|
// 下面各SDK根据宿主App是否使用相关业务按需引入。
|
|
|
|
|
// 友盟统计SDK
|
|
|
|
|
implementation "com.umeng.umsdk:analytics:8.1.3"
|
|
|
|
|
|
|
|
|
|
//fastjson
|
|
|
|
|
implementation "com.alibaba:fastjson:1.2.75"
|
|
|
|
|
|
|
|
|
|
}
|