//打包的
|
apply plugin: 'com.android.library'
|
apply plugin:'com.kezong.fat-aar'
|
|
android {
|
compileSdkVersion rootProject.compileSdkVersion
|
|
defaultConfig {
|
minSdkVersion rootProject.minSdkVersion
|
targetSdkVersion rootProject.targetSdkVersion
|
versionCode 2
|
versionName "1.0.15"
|
}
|
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.ezviz.sdk:ezviz-sdk:4.16.1'
|
// embed(name: 'hdl-common-release',ext: 'aar')
|
// embed(name: 'hdl-connect-release',ext: 'aar')
|
// embed(name: 'hdl-socket-release',ext: 'aar')
|
|
embed project(path: ':hdl-common', configuration:'default')
|
embed project(path: ':hdl-connect', configuration:'default')
|
embed project(path: ':hdl-socket', 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'}
|
////}
|