lmw
2024-09-04 f4a6d4f0996238f9c85e4986deffe69a1c8256e6
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
apply plugin: 'com.android.application'
 
android {
    compileSdkVersion 30
   /* buildToolsVersion "33.0.0"*/
    defaultConfig {
        applicationId "com.lotaai.canguiayw"
        minSdkVersion 22
        targetSdkVersion 30
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
 
    //签名
    signingConfigs {
        release {
            storeFile file("cangui.jks")
            storePassword "sinata"
            keyAlias "cangui"
            keyPassword "sinata"
        }
    }
 
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
 
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
 
            applicationVariants.all { variant ->
                // 更新至Android Studio 3.3 gradle 4.10.1
                variant.outputs.all {
                    outputFileName = "cangui-${defaultConfig.versionName}-${new Date().format("yyyy-MM-dd" , TimeZone.getTimeZone("GMT+08")) }.apk"
                }
            }
//            ndk {
//                abiFilters "armeabi-v7a","arm64-v8a" // 保留这种架构的CPU
//            }
        }
 
        debug {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.release
//            ndk {
//                abiFilters "armeabi-v7a" ,"arm64-v8a" // 保留这种架构的CPU
//            }
        }
    }
 
}
 
android {
    sourceSets {
        main {
            jniLibs.srcDirs = ['libs']
        }
    }
}
 
apply plugin: 'com.android.application'
apply plugin: 'org.greenrobot.greendao'
greendao {
    schemaVersion 11//数据库版本号
    daoPackage 'com.lotaai.canguiayw.sqllitedb'// 设置DaoMaster、DaoSession、Dao 包名
    targetGenDir 'src/main/java'//设置DaoMaster、DaoSession、Dao目录,请注意,这里路径用/不要用.
    generateTests false //设置为true以自动生成单元测试。
    targetGenDirTests 'src/main/java' //应存储生成的单元测试的基本目录。默认为 src / androidTest / java。
}
 
dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test.ext:junit:1.1.0'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
 
    //轮播图
    implementation 'com.youth.banner:banner:2.0.11'
    implementation 'com.github.bumptech.glide:glide:4.11.0'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
 
    //引入greendao
    implementation 'org.greenrobot:greendao:3.3.0'
    //android工具框架
    implementation 'com.blankj:utilcode:1.30.7'
    //消息框架
    implementation("org.greenrobot:eventbus:3.0.0")
    //LSwitch开关空间
    implementation 'com.github.liys666666:LSwitch:V1.0.4'
 
    //悬浮按钮
    implementation 'com.google.android.material:material:1.4.0'
    //table控件
    implementation 'com.github.huangyanbin:SmartTable:2.2.0'
    //下拉选择框控件
    implementation 'com.github.arcadefire:nice-spinner:1.3.4'
    //支持MQTT协议
    implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.1.0'
    implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1'
 
    //toasts 弹出样式
    implementation 'com.pranavpandey.android:dynamic-toasts:1.3.0'
    implementation 'com.alibaba:fastjson:1.2.59'
 
    implementation 'com.squareup.okhttp3:okhttp:3.12.1'
    implementation 'com.squareup.okhttp3:logging-interceptor:3.12.0'
 
 
}