//打包的
|
apply plugin: 'com.android.library'
|
apply plugin: 'com.kezong.fat-aar'
|
|
android {
|
compileSdkVersion rootProject.compileSdkVersion
|
|
defaultConfig {
|
minSdkVersion rootProject.minSdkVersion
|
targetSdkVersion rootProject.targetSdkVersion
|
versionCode 119
|
versionName "1.1.9"
|
}
|
buildTypes {
|
debug {
|
minifyEnabled false
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
}
|
}
|
compileOptions {
|
sourceCompatibility 1.8
|
targetCompatibility 1.8
|
}
|
}
|
|
dependencies {
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
embed 'com.hdl.hdlhttp:hxhttp:1.0.4'
|
|
// api 'androidx.appcompat:appcompat:1.3.1'
|
// api 'com.google.android.material:material:1.4.0'
|
|
embed 'com.squareup.okhttp3:okhttp:4.9.1'
|
embed 'com.squareup.okhttp3:logging-interceptor:4.9.1'
|
embed 'com.squareup.okio:okio:2.8.0'
|
//retrofit
|
embed 'com.squareup.retrofit2:retrofit:2.9.0'
|
embed 'com.squareup.retrofit2:converter-scalars:2.9.0'
|
embed 'com.squareup.retrofit2:adapter-rxjava3:2.9.0'
|
embed 'io.reactivex.rxjava3:rxandroid:3.0.0'
|
embed 'io.reactivex.rxjava3:rxjava:3.1.1'
|
embed 'com.google.code.gson:gson:2.8.8'
|
|
embed 'com.trello.rxlifecycle4:rxlifecycle:4.0.2'
|
embed 'com.trello.rxlifecycle4:rxlifecycle-android:4.0.2'
|
embed 'com.trello.rxlifecycle4:rxlifecycle-android-lifecycle:4.0.2'
|
|
embed 'org.reactivestreams:reactive-streams:1.0.3'
|
|
// embed(name: 'hxhttp_1.0.4_230201',ext: 'aar')
|
|
embed project(path: ':hdl-connect', configuration: 'default')
|
|
}
|
|
//打包的
|
buildscript {
|
|
repositories {
|
google()
|
jcenter()
|
maven { url "https://plugins.gradle.org/m2/" }
|
}
|
|
dependencies {
|
classpath 'com.android.tools.build:gradle:3.6.3'
|
classpath 'com.kezong:fat-aar:1.2.16'
|
}
|
}
|
|
allprojects {
|
repositories {
|
flatDir {
|
dirs 'libs'
|
}
|
google()
|
jcenter()
|
}
|
}
|
|
|
////运行的
|
//
|
//apply plugin: 'com.android.application'
|
//apply from: "../app-common/build_common.gradle"
|
//apply plugin: 'kotlin-android'
|
//apply plugin: 'kotlin-android-extensions'
|
//
|
////如果有用到kapt添加如下配置
|
//kapt {
|
// useBuildCache = true
|
// javacOptions {
|
// option("-Xmaxerrs", 500)
|
// }
|
//}
|
//
|
//android {
|
//
|
// compileSdkVersion 29
|
// buildToolsVersion "29.0.3"
|
//
|
// sourceSets {
|
// main {
|
// jniLibs.srcDirs = ['libs']
|
// }
|
// }
|
// lintOptions {
|
// abortOnError false
|
// }
|
// defaultConfig {
|
// applicationId "com.evoyo.home1111112"
|
// minSdkVersion 21
|
// //noinspection ExpiredTargetSdkVersion
|
// targetSdkVersion 28
|
// versionCode 4160
|
// versionName "v4.16.0.20201230"
|
// ndk {
|
// abiFilters "armeabi-v7a", "arm64-v8a"
|
// }
|
// /*禁止使用java8,如果sdk使用了java8编译,但是应用层使用了java7编译,会导致应用层打包无法通过*/
|
// compileOptions {
|
// sourceCompatibility JavaVersion.VERSION_1_7
|
// targetCompatibility JavaVersion.VERSION_1_7
|
// }
|
// }
|
// //在Android代码块中添加如下配置:(可优化最上图中transformClassDexBuilderForDebug的时间)
|
// dexOptions {
|
// preDexLibraries true
|
// maxProcessCount 8
|
// }
|
// buildTypes {
|
// debug {
|
// minifyEnabled false
|
// proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
// }
|
// }
|
// productFlavors {
|
// }
|
//}
|
//
|
//
|
//dependencies {
|
// /*萤石SDK核心模块,必须*/
|
//// api project(path: ':ezviz-sdk')
|
// api 'com.ezviz.sdk:ezviz-sdk:4.16.1'
|
//
|
// /*视频通话模块,按需使用*/
|
//// api project(path: ':videotalk')
|
// api 'com.ezviz.sdk:videotalk:1.2.0'
|
//
|
// /*视频通话模块,按需使用*/
|
//// api project(path: ':streamctrl')
|
// api 'com.ezviz.sdk:streamctrl:1.2.0'
|
//
|
// /*萤石核心模块的三方依赖*/
|
//// implementation 'javax.jmdns:jmdns:3.4.1'
|
// implementation 'com.google.code.gson:gson:2.8.0'
|
// api 'com.squareup.okhttp3:okhttp:3.12.1'
|
//
|
// /*demo的依赖项*/
|
// api project(path: ':app-common')
|
// implementation fileTree(include: ['*.jar'], dir: 'libs')
|
// implementation 'com.android.support.constraint:constraint-layout:1.1.3'
|
//}
|
//
|
////repositories {
|
//// maven { url 'https://dl.bintray.com/open-ezviz/mobile-sdk'}
|
////}
|