plugins {
|
id 'com.android.library'
|
}
|
apply plugin: 'com.kezong.fat-aar'
|
|
android {
|
compileSdkVersion 28
|
buildToolsVersion "28.0.0"
|
|
defaultConfig {
|
minSdkVersion 23
|
targetSdkVersion 28
|
versionCode 1
|
versionName "1.0.1"
|
|
// consumerProguardFiles "consumer-rules.pro"
|
}
|
|
buildTypes {
|
release {
|
minifyEnabled false
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
}
|
}
|
compileOptions {
|
sourceCompatibility JavaVersion.VERSION_1_8
|
targetCompatibility JavaVersion.VERSION_1_8
|
}
|
repositories {
|
flatDir {
|
dirs 'libs' //this way we can find the .aar file in libs folder
|
}
|
}
|
/**
|
* 打包自动命名
|
*/
|
android.libraryVariants.all { variant ->
|
variant.outputs.all {
|
outputFileName = "HDLLinphoneSDK-V" + defaultConfig.versionName + ".aar"
|
}
|
}
|
}
|
|
repositories {
|
google()
|
jcenter()
|
maven {
|
// Replace snapshots by releases for releases !
|
url "https://linphone.org/maven_repository"
|
}
|
}
|
|
dependencies {
|
// implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
|
implementation 'com.android.support:appcompat-v7:28.0.0'
|
implementation 'com.android.support.constraint:constraint-layout:2.0.4'
|
// implementation "org.linphone:linphone-sdk-android:4.5.0"
|
embed "org.linphone:linphone-sdk-android:4.5.0"
|
// implementation 'com.android.support.constraint:constraint-layout:2.0.4'
|
|
// embed(name:'liblinphone-android-sdk', ext: 'aar')
|
}
|