riku
2025-10-27 0f58aa8ea118c3bd0b28396febc58fdbd94eef75
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
//apply plugin: 'com.android.application'
apply plugin: 'com.android.library'
apply plugin: 'org.greenrobot.greendao'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions' // apply plugin
apply plugin: 'kotlin-kapt'
apply plugin: 'com.jakewharton.butterknife'
apply plugin: 'com.aliyun.ams.emas-services'
 
android {
    compileSdkVersion 28
    buildToolsVersion '28.0.3'
//    buildToolsVersion = '29.0.2'
 
    defaultConfig {
//        applicationId "cn.flightfeather.thirdapp"
        minSdkVersion 19
        targetSdkVersion 28
        versionCode 33
        versionName "1.1.14.17"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
//        renderscriptTargetApi 25
//        renderscriptSupportModeEnabled true
//        multiDexEnabled true
 
        ndk {
            //x5 兼容64位手机
            abiFilters 'armeabi', 'armeabi-v7a', 'x86', 'mips'
        }
    }
    buildTypes {
        release {
            minifyEnabled true
//            shrinkResources true
//            multiDexEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    productFlavors {
    }
    sourceSets {
        main {
            jniLibs.srcDirs = ['libs']
        }
    }
 
    // Butterknife requires Java 8.
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
 
    packagingOptions {
        doNotStrip "*/armeabi/*.so"
        doNotStrip "*/armeabi-v7a/*.so"
        doNotStrip "*/arm64-v8a/*.so"
        doNotStrip "*/x86/*.so"
        doNotStrip "*/x86_64/*.so"
        doNotStrip "*/mips/*.so"
        doNotStrip "*/mips64/*.so"
        //...
    }
}
 
greendao {
    schemaVersion 14
    daoPackage 'com.ping.greendao.gen'
    targetGenDir 'src/main/java'
}
 
dependencies {
    api fileTree(include: ['*.jar'], dir: 'libs')
    androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
//    implementation files('libs/AMap3DMap_5.6.0_AMapSearch_5.5.0_AMapLocation_3.7.0_20171218.jar')
    // add library
    api 'com.android.support.constraint:constraint-layout:2.0.1'
    //noinspection GradleCompatible
    api 'com.android.support:appcompat-v7:28.0.0'
    api 'com.android.support:design:28.0.0'
//    api 'com.android.support:support-v428.0.0'
    api 'com.android.support:cardview-v7:28.0.0'
    implementation 'org.greenrobot:greendao:3.3.0'
    api 'com.squareup.retrofit2:retrofit:2.3.0'
    api 'com.squareup.retrofit2:converter-gson:2.3.0'
    api 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
    implementation 'de.hdodenhof:circleimageview:2.2.0'
    implementation 'cn.carbswang.android:NumberPickerView:1.1.1'
    implementation 'com.bm.photoview:library:1.4.1'
    implementation 'com.orhanobut:dialogplus:1.11@aar'
    testApi 'junit:junit:4.13.2'
    api 'com.android.support:recyclerview-v7:28.0.0'
 
    implementation 'com.jakewharton:butterknife:9.0.0'
    kapt 'com.jakewharton:butterknife-compiler:9.0.0'
 
    implementation 'am.widget:circleprogressbar:1.0.3'
    implementation 'com.github.PhilJay:MPAndroidChart:v3.0.2'
    api 'com.github.cazaea:sweet-alert-dialog:1.0.0'
    implementation 'com.github.razerdp:BasePopup:2.1.8'
    api 'io.reactivex.rxjava2:rxjava:2.2.6'
    api 'io.reactivex.rxjava2:rxandroid:2.1.1'
    implementation 'com.haibin:calendarview:3.5.8'
 
    //高德地图sdk
    api 'com.amap.api:3dmap:6.8.0'
    api 'com.amap.api:location:4.6.0'
    api 'com.amap.api:search:6.5.0.1'
 
    //recyclerViewAdapter
    implementation "com.github.CymChad:BaseRecyclerViewAdapterHelper:${adaper_version}"
    
    //lifecycle
    implementation "android.arch.lifecycle:extensions:${lifecycle_version}"
 
    // ViewModel and LiveData
    kapt "android.arch.lifecycle:compiler:${lifecycle_version}"
    implementation project(path: ':multi-image-selector')
 
    //eventbus
    api "org.greenrobot:eventbus:${event_bus}"
 
    //imagePicker
    implementation "com.lcw.library:imagepicker:${image_picker_version}"
    //glide
    implementation "com.github.bumptech.glide:glide:${glide_version}"
    kapt "com.github.bumptech.glide:compiler:${glide_version}"
 
    api 'com.otaliastudios:cameraview:1.6.1'
 
    //photoView
    implementation "com.github.chrisbanes:PhotoView:2.1.4"
 
    //kotlin plugin
    api "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
    api "org.jetbrains.anko:anko:$anko_version"
 
    //腾讯TBS文件浏览服务
    implementation 'com.tencent.tbs:tbssdk:44213'
 
    //文件下载
    implementation "com.liulishuo.okdownload:okdownload:${file_download_version}"
    implementation "com.liulishuo.okdownload:sqlite:${file_download_version}"
    implementation "com.liulishuo.okdownload:okhttp:${file_download_version}"
    implementation "com.liulishuo.okdownload:ktx:${file_download_version}"
    implementation "com.liulishuo.okdownload:filedownloader:${file_download_version}"
 
    //圆形进度条
    api "com.mikhaellopez:circularprogressbar:${progressbar_version}"
 
    //选择器的基础窗体
    implementation 'com.github.gzu-liyujiang.AndroidPicker:Common:1.5.6.20181018'
    //单项/数字、二三级联动、日期/时间等滚轮选择器
    implementation 'com.github.gzu-liyujiang.AndroidPicker:WheelPicker:1.5.6.20181018'
}
repositories {
    mavenCentral()
}