build.gradle
3.6 KB
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
apply plugin: 'com.android.application'
apply plugin: 'org.greenrobot.greendao' // apply plugin
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.huaheng.taiguangtv"
minSdkVersion 19
targetSdkVersion 28
versionCode 2
versionName "1.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
signingConfigs {
wposConfig {
storeFile file("../wms.jks")
storePassword "18570355163"
keyAlias "phoneNumber"
keyPassword "18570355163"
}
}
dataBinding {
enabled true
buildTypes {
debug {
signingConfig signingConfigs.wposConfig
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
release {
signingConfig signingConfigs.wposConfig
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:3.0.1'
}
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
}
greendao {
schemaVersion 1 //版本
daoPackage 'com.huaheng.taiguangtv.wmsgreendao' // 一般为app包名+生成文件的文件夹名
targetGenDir 'src/main/java' //生成文件路径
}
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
android.applicationVariants.all { variant ->
variant.outputs.all {
outputFileName = rootProject.getName() +".apk"
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.squareup.okhttp3:okhttp:3.8.0'
implementation 'com.squareup.okio:okio:1.13.0'
implementation 'org.xutils:xutils:3.3.36'
// Retrofit
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.squareup.retrofit2:adapter-rxjava:2.0.1'
// 自适配界面
implementation 'com.zhy:autolayout:1.4.5'
// 图片加载
implementation 'com.github.bumptech.glide:glide:3.7.0'
// GreenDao
implementation 'org.greenrobot:greendao:3.2.0'
implementation 'org.greenrobot:greendao-generator:3.2.0'
// RxJava
implementation 'io.reactivex:rxjava:1.1.1'
implementation 'io.reactivex:rxandroid:1.1.0'
// butterknife
implementation 'com.jakewharton:butterknife:8.4.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0'
// 百分比布局
implementation 'com.android.support:percent:28.0.0-alpha3'
implementation 'com.android.support:recyclerview-v7:28.0.0-alpha3'
// 图表控件
// implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3'
debugImplementation 'com.amitshekhar.android:debug-db:1.0.0'
implementation files('libs/SpeechApi.jar')
implementation files('libs/core-3.3.0.jar')
}