taxiapp/app/build.gradle

195 lines
6.5 KiB
Groovy
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'org.greenrobot.greendao' // 添加应用依赖插件
android {
signingConfigs {
releaseSoft {
storeFile file("../taxiApp.jks")
storePassword '123456'
keyAlias 'taxi'
keyPassword '123456'
}
}
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "net.sysolution.taxiapp"
minSdkVersion 21
targetSdkVersion 29
versionCode 176
versionName "3.3.3-beta26.3-release"
//alphaxx - 预览版本,不会对外发布由测试人员测试会有很多bug
//Betaxx - 公开测试版本,会发给其他工作人员,会有较多版本
//rcxx - 最终测试版本基本稳定如果没发现其他bug就转正式
//3.1.0第一次启动会删除之前的广告
//3.1.1关闭第一次启动会删除之前的广告
//3.1.10 发送异常并写入日志
//3.2.0开机直接播放广告
//333-10 去掉crashHandler
//333-11 去掉KuroLog日志
//333-20 转凭证conn没被改到问题
//333-21 下载素材时去掉isdownloading的判断
/*
333-26 添加计次播放和多时段播放功能
26.3 解决定点投放广告播放不了问题播放日志和gps定点日志开关默认改为关闭心跳由30s改为两分钟发一次重连时间10s改为30s
凭证信息可备份至conn,防止跑账号
* */
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
// Enabling multidex support.
multiDexEnabled true
signingConfig signingConfigs.releaseSoft
ndk {
abiFilters "armeabi", "armeabi-v7a", "x86", "mips"
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.releaseSoft
}
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.releaseSoft
// resValue("string", "DB_PASSWORD_APP_SHARED_PREFERENCES", "66399266")
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
android.applicationVariants.all { variant ->
variant.outputs.all { output ->
def outputFile = output.outputFile
if (outputFile != null && outputFile.name.endsWith('.apk')) {
outputFileName = "TaxiApp_v${defaultConfig.versionName}{${defaultConfig.versionCode}}.apk"
}
}
}
}
//每升级一次数据库加一
greendao {
schemaVersion 42
daoPackage 'cn.trans88.taxiappkotlin.logic.dao'
targetGenDir 'src/main/java'
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar','*.aar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation "androidx.core:core-ktx:$core_ktx"
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation project(path: ':kurolibrary')
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
//xixun
implementation files('libs/xixun_card_settings_1.2.4.jar')
//
// implementation 'com.trs.kuroTool:kuroTool:1.0.4'
implementation project(':kurotool')
//kotlin协程
// implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.3'
// implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.3'
//stetho调试
implementation 'com.facebook.stetho:stetho:1.5.1'
//网络调试数据库
implementation 'com.amitshekhar.android:debug-db:1.0.6'
//logger
implementation 'com.orhanobut:logger:2.2.0'
//json解析
implementation 'com.squareup.retrofit2:converter-gson:2.7.1'
implementation 'com.alibaba:fastjson:1.2.46'
implementation 'com.alibaba:fastjson:1.2.46.android'
//Glide
implementation 'com.github.bumptech.glide:glide:4.10.0'
kapt 'com.github.bumptech.glide:compiler:4.10.0'
// annotationProcessor 'com.github.bumptech.glide:compiler:4.10.0'
//xy
implementation 'com.github.xy02:ARxLib:0.1.5'
//Greendao数据库
//implementation 'org.greenrobot:greendao:3.2.2'
implementation 'org.greenrobot:greendao:3.3.0'
implementation 'com.github.yuweiguocn:GreenDaoUpgradeHelper:v2.2.1'
//下载
implementation 'com.liulishuo.filedownloader:library:1.7.5'
//jetpack
// implementation 'androidx.lifecycle:lifecycle-viewmodel:2.2.0'
//room
// implementation 'androidx.room:room-runtime:2.2.5'//room
// kapt "androidx.room:room-compiler:2.2.5"
//lifecycle协程
implementation "androidx.lifecycle:lifecycle-livedata-core-ktx:$livedata"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$livedata"
implementation "androidx.lifecycle:lifecycle-reactivestreams-ktx:$livedata"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$livedata"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$livedata"
//权限申请
implementation 'com.permissionx.guolindev:permissionx:1.1.1'
//timber
// implementation 'com.jakewharton.timber:timber:4.7.1'
//他人库
implementation 'com.github.joeyupdo:YJTools:v1.0.5'
//jwt解析
// implementation 'io.jsonwebtoken:jjwt:0.9.1'
implementation 'net.zetetic:android-database-sqlcipher:3.5.7@aar'
//ljkPlayer
// implementation 'tv.danmaku.ijk.media:ijkplayer-java:0.8.8'
// implementation 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.8'
// implementation 'tv.danmaku.ijk.media:ijkplayer-exo:0.8.8'
// //exo
// implementation 'com.google.android.exoplayer:exoplayer:2.8.1'
// implementation 'com.google.android.exoplayer:exoplayer:2.14.2'
// implementation 'com.google.android.exoplayer:exoplayer-core:2.14.2'
// implementation 'com.google.android.exoplayer:exoplayer-ui:2.14.2'
// implementation 'com.github.Trans88:KuroLibrary:0.1.3'
}