|
- apply plugin: 'com.android.application'
- def useLinkKitAarDep = true
-
- android {
-
- compileSdkVersion 30
- defaultConfig {
-
- applicationId "com.telpo.alink"
- minSdkVersion 21
- targetSdkVersion 30
- versionCode 2
- versionName "1.2.37"
- multiDexEnabled true
- testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
- //https://developer.android.com/studio/build/multidex#multidexkeepfile-property
- multiDexKeepFile file('multidex-config.txt')
- archivesBaseName = "TelpoAlink_${versionName}"
-
- ndk {
- abiFilters = []
- abiFilters.addAll(rootProject.ext.abiFilters)
- }
-
- /* 集成组件 TUIOfflinePush 离线推送功能需要配置下厂商 vivo 的应用信息,不需要离线推送功能删除即可。
- *
- * "VIVO_APPKEY" : 厂商推送平台注册应用的 AppKey
- * "VIVO_APPID" : 厂商推送平台注册应用的 AppID
- */
-
- manifestPlaceholders = [
- "VIVO_APPKEY" : " ",
- "VIVO_APPID" : " ",
- "HONOR_APPID" : " "
- ]
-
- }
-
- signingConfigs {
-
- /*
- debug {
- keyAlias 'IoTTestKey'
- keyPassword 'test1234'
- storeFile file('config/test.release.keystore.jks')
- storePassword 'admin1234'
- }
-
- release {
- keyAlias 'IoTTestKey'
- keyPassword 'test1234'
- storeFile file('config/test.release.keystore.jks')
- storePassword 'admin1234'
- }*/
-
- //系统应用调试
- debug {
- keyAlias 'platform'
- keyPassword '123456'
- storeFile file('config/platform.keystore')
- storePassword '123456'
- }
-
- release {
- keyAlias 'platform'
- keyPassword '123456'
- storeFile file('config/platform.keystore')
- storePassword '123456'
- }
- }
- buildTypes {
- /*debug {
- debuggable true
- signingConfig signingConfigs.debug
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }*/
-
- release {
- minifyEnabled false
- signingConfig signingConfigs.release
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
-
- lintOptions{
- abortOnError false
- }
-
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
-
- sourceSets {
- main {
- jniLibs.srcDirs = ['libs']
- }
- }
-
- repositories {
- flatDir {
- dirs 'libs' //this way we can find the .aar file in libs folder
- }
- }
-
- // 主题资源文件夹
- sourceSets {
- main {
- res.srcDirs += "src/main/res-light"
- res.srcDirs += "src/main/res-lively"
- res.srcDirs += "src/main/res-serious"
- res.srcDirs += "src/main/self-res"
- }
- }
- }
-
- repositories {
-
- flatDir {
- dirs 'libs' //this way we can find the .aar file in libs folder
- }
-
- maven {
- url "https://maven.aliyun.com/nexus/content/repositories/releases/"
- }
- }
-
- configurations.all {
- resolutionStrategy {
- cacheChangingModulesFor(0, 'SECONDS')
- }
- resolutionStrategy.force 'com.android.support:support-v4:28.0.0'
- resolutionStrategy.force 'com.android.support:support-v7:28.0.0'
- all*.exclude group: 'com.aliyun.iot.aep.sdk.external', module:'securityguard'
- }
-
- dependencies {
-
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- implementation fileTree(dir: 'libs', include: ['*.aar'])
-
- if (useLinkKitAarDep) {
- implementation ('com.aliyun.alink.linksdk:iot-linkkit:1.7.2') {
- transitive = true
- changing = true
- }
- } else {
- compile project(':IoTLinkKit')
- }
-
- api project(':tuicommunity')
- api project(':tuiconversation')
- api project(':tuicontact')
- api project(':tuichat')
- api project(':tuisearch')
- api project(':tuigroup')
- api project(':tuicallkit')
- api project(':tuiofflinepush')
-
- implementation 'com.aliyun.alink.linksdk:iot-device-manager:1.7.5.4'
- implementation files('libs/pinyin4j-2.5.0.jar')
- implementation files('libs/gesture-imageview.jar')
- implementation files('libs/reactor-core-3.3.17.RELEASE.jar')
- compile('com.aliyun.alink.linksdk:public-channel-core:0.7.7.1')
- implementation 'com.squareup.okhttp3:okhttp:3.12.8'
- implementation 'com.google.code.gson:gson:2.9.1'
- implementation 'androidx.cardview:cardview:1.0.0'
- // bugly sdk
- implementation 'com.tencent.bugly:crashreport:latest.release'
- implementation 'com.tencent.bugly:nativecrashreport:latest.release'
-
- implementation 'androidx.asynclayoutinflater:asynclayoutinflater:1.0.0'
- implementation 'androidx.vectordrawable:vectordrawable-animated:1.1.0'
- implementation 'androidx.multidex:multidex:2.0.1'
- implementation 'androidx.recyclerview:recyclerview:1.2.1'
- implementation 'androidx.appcompat:appcompat:1.3.1'
- implementation 'com.google.android.material:material:1.4.0'
- implementation 'com.github.bumptech.glide:glide:4.12.0'
- implementation 'org.greenrobot:greendao:3.2.0'
-
- implementation 'io.reactivex.rxjava2:rxjava:2.2.17'
- implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
- implementation 'io.github.jeremyliao:live-event-bus-x:1.8.0'
- implementation 'com.blankj:utilcodex:1.31.1'
-
- implementation 'com.squareup.retrofit2:retrofit:2.9.0'
- implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
- implementation "com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4"
- implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.3'
- implementation 'org.greenrobot:eventbus:3.2.0'
-
- def projects = this.rootProject.getAllprojects().stream().map { project -> project.name }.collect()
- if (projects.contains("tuigroupnote")) {
- api project(':tuigroupnote')
- } else {
- api "com.tencent.imsdk.tuiplugin:tuigroupnote:7.1.3925"
- }
-
- if (projects.contains("tuipoll")) {
- api project(':tuipoll')
- } else {
- api "com.tencent.imsdk.tuiplugin:tuipoll:7.1.3925"
- }
-
- }
|