562935844@qq.com
2022-06-28 1cb86d56496996975585f5dff9678b7c6009691d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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')
}