doum
5 天以前 dd6a43fdbadaaf6d646b3eb2ca0a63f58ed77ea4
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
apply plugin: 'com.android.application'
apply plugin: 'dagger.hilt.android.plugin'
apply plugin: "androidx.navigation.safeargs"
 
android {
    compileSdkVersion build_versions.compile_sdk
    buildToolsVersion build_versions.build_tools
 
    defaultConfig {
        applicationId "com.doumee.keyCabinet"
        minSdkVersion build_versions.min_sdk
        targetSdkVersion build_versions.target_sdk
        versionCode 1
        versionName "1.0.0"
 
        //支持vectorDrawables矢量图
        vectorDrawables.useSupportLibrary = true
 
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        /*javaCompileOptions {
            annotationProcessorOptions {
                arguments = [ AROUTER_MODULE_NAME : project.getName() ]
                includeCompileClasspath = true
            }
        }*/
        ndk {
            moduleName "facesdk"
            ldLibs "log"
            abiFilters "armeabi-v7a","x86" // "armeabi", "x86", "arm64-v8a"
        }
        multiDexEnabled true
    }
 
    signingConfigs {
        debug {
            keyAlias 'android'
            keyPassword 'android'
            storeFile file('E:\\Android\\workspace\\CourseMachine\\app\\doumee.keystore')
            storePassword 'android'
        }
    }
 
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
            manifestPlaceholders = [
                    network_security_config: "@xml/network_config"
            ]
        }
        debug {
            minifyEnabled false
            signingConfig signingConfigs.debug
            manifestPlaceholders = [
                    network_security_config: "@xml/network_config_debug"
            ]
        }
    }
 
    dataBinding {
        enabled = true
    }
 
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
 
    packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/gradle/incremental.annotation.processors'
        pickFirst 'lib/arm64-v8a/libserial_port.so'
        pickFirst 'lib/armeabi-v7a/libserial_port.so'
        pickFirst 'lib/x86_64/libserial_port.so'
        pickFirst 'lib/x86/libserial_port.so'
    }
 
    //以下是为了找到android.os.SystemProperties这个隐藏的类
    String SDK_DIR = System.getenv("ANDROID_SDK_HOME")
    //("TAG", "SDK_DIR = " + SDK_DIR );
    if(SDK_DIR == null) {
        Properties props = new Properties()
        props.load(new FileInputStream(project.rootProject.file("local.properties")))
        SDK_DIR = props.get('sdk.dir');
    }
    dependencies {
        compileOnly files("${SDK_DIR}/platforms/android-23/data/layoutlib.jar")
    }
}
 
dependencies {
    api fileTree(include: ['*.jar',"*.aar"], dir: 'libs')
    implementation deps.support.appcompat
    implementation deps.support.constraintlayout
    implementation "com.google.android.material:material:1.3.0-alpha03"
    implementation 'androidx.annotation:annotation:1.1.0'
    //debugImplementation ("com.squareup.leakcanary:leakcanary-android:2.5")
    implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.2.0'
    implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
 
    implementation project(path: ':lib_coremodel')
    implementation project(':facelibrary')
    implementation project(path: ':datalibrary')
    implementation project(path: ':settinglibrary')
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation files('libs\\simple-xml-2.7.1.jar')
    implementation files('libs\\API-20250310.jar')
    testImplementation deps.test.junit
    androidTestImplementation deps.test.ext_junit
    androidTestImplementation deps.test.test_espresso
 
    implementation deps.hilt.hilt_android
    annotationProcessor  deps.hilt.hilt_android_compiler
 
    implementation deps.hilt.hilt_viewmodel
    annotationProcessor  deps.hilt.hilt_compiler
 
    implementation deps.room.runtime
    annotationProcessor deps.room.compiler
    implementation deps.room.rxjava2
 
    //implementation 'com.github.Shouheng88:compressor:latest-version'
    //压缩图片
    implementation "id.zelory:compressor:1.0.3"
    //串口
    implementation 'com.licheedev:android-serialport:2.1.3'
 
    //二维码生成
    implementation 'com.journeyapps:zxing-android-embedded:3.4.0'
    api deps.other.dialog
    //gif
    implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.19'
    //轮播图
    implementation 'com.bigkoo:convenientbanner:2.0.5'
}