panlili2024
2024-11-12 69afac92a320033297d71e901e3c5b65e690f0b2
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
63
64
65
66
67
68
apply plugin: 'com.android.application'
 
android {
    compileSdkVersion 30
    defaultConfig {
        applicationId "com.hdl.sdk.ttl_sdk"
        minSdkVersion 17
        targetSdkVersion 30
        versionCode 3
        versionName "1.0.3"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    buildToolsVersion '30.0.2'
 
    /**
     * 打包自动命名
     */
    android.applicationVariants.all { variant ->
        variant.outputs.all {
            outputFileName = "Android_HDL_SDK_TTL_DEMO_" + buildType.name + "_V" +
                    defaultConfig.versionName + "_B" + defaultConfig.versionCode + "_" + releaseTime() + ".apk"
        }
    }
 
 
//    configurations {
//        compile.exclude module: 'gson'
//    }
 
 
}
 
 
def releaseTime() {
    return new Date().format("yyyy-MM-dd")
}
 
dependencies {
//    implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'androidx.test.ext:junit:1.1.5'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
 
    implementation 'com.android.support:recyclerview-v7:28.0.0'
    implementation project(':HDL_TTLSDK485')
    implementation 'org.greenrobot:eventbus:3.0.0'
    implementation 'pub.devrel:easypermissions:2.0.1'
    implementation 'com.afollestad.material-dialogs:commons:0.9.6.0'
    api 'com.google.code.gson:gson:2.8.8'
 
//    implementation 'com.afollestad.material-dialogs'
//    implementation 'com.afollestad.material-dialogs:core:3.0.2'
//    implementation 'com.jakewharton:butterknife:9.0.0'
//    annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0'
 
 
 
//    implementation project(':gson')
}