244 lines
10 KiB
Groovy
244 lines
10 KiB
Groovy
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 {
|
||
// VehiclePlayer
|
||
applicationId "net.sysolution.taxiapp"
|
||
// applicationId "net.sysolution.vehicleplayer"
|
||
minSdkVersion 21
|
||
targetSdkVersion 29
|
||
versionCode 259
|
||
versionName "3.3.3-beta26.4.1.8-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-24 修复有视频不下载的情况
|
||
|
||
/*
|
||
333-26 添加计次播放和多时段播放功能
|
||
26.3 解决定点投放广告播放不了问题,播放日志和gps定点日志开关默认改为关闭,心跳由30s改为两分钟发一次,重连时间10s改为30s
|
||
凭证信息可备份至conn,防止跑账号
|
||
26.3.2 解决卸载重装后设备不在原来的分组问题
|
||
26.3.3 解决直接升级后设备不播放广告或者等很久才播放问题
|
||
26.3.7 由于经常掉线,心跳改回30s发一次,重连时间改回10s,日志开关默认关闭
|
||
26.3.8.8debug 更换了播放器默认logo图,修改同步的时候出现logo问题,增加“查询是否设置过logo”功能
|
||
26.3.8.9debug 修复定点广告播放顺序,ledOk重复绑定同一个凭证会被过滤,重连时会主动断开旧连接,3s没gps信息清除定点广告改成30s,
|
||
重启时主动获取一次gps信息,没有gps则判断是否有定点广告,有就清除
|
||
26.3.8 新增清除logo
|
||
26.3.8.2 优化taxiApp刷新列表时,即使播放列表相同,每次还是从数据库查询所有广告,改成播放列表相同时从缓存获取广告
|
||
26.3.8.3 优化taxiApp刷新列表时,播放列表相同时从缓存获取广告,更新定点广告时获取的定点regions也加入缓存机制
|
||
26.3.8.6.9 长时间未收到心跳重连的等待时间改成38s
|
||
26.3.9 更改了webSocket的连接保活代码,gps坐标记录两个点的距离由原来的50米记录一次改为20米记录一次
|
||
3.3.3-beta26.3.9.3.94 新增播放日志开关,gps开关查询,直接清除所有广告功能
|
||
3.3.3-beta26.3.9.3.95 修复日志重复上传问题
|
||
26.3.9.96 播放时长为广告素材的播放时长
|
||
26.3.9.98 记录taxiApp当天的运行时间
|
||
26.3.9.99 优化日志上传,改为一天只传一次昨天的播放记录。
|
||
优化定点广告频z繁切换会出现黑屏问题
|
||
3.3.3-beta26.4.0.6-release 优化GPS,播放日志,运行时长上报功能
|
||
3.3.3-beta26.4.0.7-release 优化GPS上报,每次取250条数据,小于250条时等待8分钟后再次上传
|
||
3.3.3-beta26.4.1.2-release 修复收到的GPS卫星数量为0时频繁刷新问题
|
||
3.3.3-beta26.4.1.4-release 有GPS日志时,每次100条以内的日志进行上报,上报成功继续上报剩余的日志,传完为止,上报失败或无gps日志时,每隔2分钟后重新监测日志进行上报
|
||
3.3.3-beta26.4.1.5-release 修复有计次广告的时候重启后过了好几分钟才播的问题,2分钟存一次静止点
|
||
3.3.3-beta26.4.1.6-release 修复有计次广告的时候重启后过了好几分钟才播的问题,2分钟存一次静止点
|
||
3.3.3-beta26.4.1.7-release 增加分时段+计次功能,修复到次数的广告暂停不及时
|
||
暂没解决实际播放次数和上传次数不一致,因为日志大于10条才上传
|
||
3.3.3-beta26.4.1.8-release 新增ledokAPP发节目
|
||
**/
|
||
|
||
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"
|
||
outputFileName = "TaxiApp_v${defaultConfig.versionName}{${defaultConfig.versionCode}}.apk"
|
||
// outputFileName = "VehiclePlayer_v${defaultConfig.versionName}{${defaultConfig.versionCode}}.apk"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
//每升级一次数据库加一
|
||
greendao {
|
||
schemaVersion 46
|
||
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'
|
||
|
||
implementation 'com.squareup.retrofit2:retrofit:2.6.1'
|
||
|
||
//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'
|
||
implementation 'com.zhouyou:rxeasyhttp:2.1.5'
|
||
|
||
implementation 'com.shuyu:gsyVideoPlayer-java:8.1.2'
|
||
|
||
|
||
//webserver
|
||
implementation 'com.koushikdutta.async:androidasync:3.1.0'
|
||
// implementation 'org.java-websocket:Java-WebSocket:1.5.7'
|
||
|
||
//根据你的需求ijk模式的so
|
||
implementation 'com.shuyu:gsyVideoPlayer-armv5:8.1.2'
|
||
implementation 'com.shuyu:gsyVideoPlayer-armv7a:8.1.2'
|
||
implementation 'com.shuyu:gsyVideoPlayer-arm64:8.1.2'
|
||
implementation 'com.shuyu:gsyVideoPlayer-x64:8.1.2'
|
||
implementation 'com.shuyu:gsyVideoPlayer-x86:8.1.2'
|
||
|
||
// implementation files('libs/jackson.jar')
|
||
// implementation files('libs/ormlite-android-4.45.jar')
|
||
}
|