Ver Código Fonte

gradle 升级

huyuguo 5 anos atrás
pai
commit
58251b6308

BIN
app/.DS_Store


+ 70 - 71
app/build.gradle

@ -18,24 +18,35 @@ android {
18 18
            storePassword 'd1ev123'
19 19
        }
20 20
    }
21
    compileSdkVersion 26
21
    compileSdkVersion 27
22 22
//    buildToolsVersion '28.0.3'
23 23
    buildToolsVersion '29.0.0'
24 24
25 25
    aaptOptions.cruncherEnabled = false
26 26
    aaptOptions.useNewCruncher = false
27 27
28
//    compileOptions {
29
//        sourceCompatibility JavaVersion.VERSION_1_8
30
//        targetCompatibility JavaVersion.VERSION_1_8
31
//    }
32
28 33
    defaultConfig {
29 34
        applicationId "com.electric.chargingpile"
30 35
        minSdkVersion 19
31
        targetSdkVersion 26
36
        targetSdkVersion 27
32 37
33 38
        multiDexEnabled true
34 39
35 40
        ndk {
36 41
            abiFilters "armeabi"
37 42
        }
43
        flavorDimensions "default"
44
45
//        jackOptions {
46
//            enabled true
47
//        }
38 48
    }
49
39 50
    sourceSets.main {
40 51
        jniLibs.srcDirs 'src/main/libs'
41 52
    }
@ -55,7 +66,7 @@ android {
55 66
            // 移除无用的resource文件
56 67
//            shrinkResources true
57 68
            //启用代码混淆  debug 模式下需要设置为false,否则无法看到局部变量的值
58
            minifyEnabled true
69
            minifyEnabled false
59 70
            //混淆规则配置文件
60 71
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
61 72
            signingConfig signingConfigs.release
@ -92,11 +103,11 @@ android {
92 103
    }
93 104
94 105
    productFlavors {
95
        yingyongbao {}
96
        c360 {}
97
        xiaomi {}
98
        huawei {}
99
        oppo {}
106
//        yingyongbao {}
107
//        c360 {}
108
//        xiaomi {}
109
//        huawei {}
110
//        oppo {}
100 111
        cdz {}
101 112
102 113
@ -155,76 +166,64 @@ MobSDK {
155 166
}
156 167
157 168
dependencies {
158
    compile files('libs/mframework.jar')
159
    compile files('libs/picasso-2.5.2.jar')
160
    compile project(':autolayout')
161
    compile files('libs/universal-image-loader-1.9.1.jar')
162
    compile files('libs/bugly_1.2.9_release.jar')
163
    //noinspection GradleCompatible
164
    compile files('libs/jg_filter_sdk_1.1.jar')
165
    compile files('libs/wup-1.0.0.E-SNAPSHOT.jar')
166
    compile files('libs/pinyin4j-2.5.0.jar')
167
    compile files('libs/pinyin4android1.0.jar')
168
    compile files('libs/Msc.jar')
169
    compile files('libs/libammsdk.jar')
170
    compile files('libs/alipaySdk-20160427.jar')
169
    implementation fileTree(dir: 'libs', include: ['*.jar'])
170
    implementation project(':autolayout')
171
    implementation project(':library')
172
    implementation project(':zxing')
173
    implementation project(':XRefreshView')
174
    implementation project(':videolibrary:picture_library')
171 175
//    compile 'com.google.zxing:core:+'
172 176
//    compile 'com.google.zxing:android-core:+'
173
    compile project(':library')
174
    compile files('libs/ZBarDecoder.jar')
175
    compile files('libs/jpush-android_v3.0.6.jar')
176
    compile files('libs/jcore-android_v1.1.3.jar')
177
    compile 'com.blankj:utilcode:1.9.8'
178
    //    compile project(':xrichtextt')
179
    compile 'com.android.support:multidex:1.0.1'
180
    compile 'com.umeng.analytics:analytics:latest.integration'
181
    compile 'com.google.code.gson:gson:2.2.4'
177
178
    implementation 'com.blankj:utilcode:1.9.8'
179
    implementation 'com.android.support:multidex:1.0.1'
180
    implementation 'com.umeng.analytics:analytics:latest.integration'
181
    implementation 'com.google.code.gson:gson:2.2.4'
182 182
    //    compile 'com.squareup.okhttp:okhttp:3.14.0'
183
    compile 'com.squareup.okhttp:okhttp:2.0.0'
184
    compile 'com.zhy:okhttputils:2.4.1'
185
    compile 'com.android.support:support-v4:26.1.0'
186
    compile 'com.google.android.gms:play-services-appindexing:9.4.0'
187
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
188
    compile 'com.zhy:flowlayout-lib:1.0.3'
189
    compile 'com.squareup:otto:+'
190
    compile 'org.greenrobot:greendao:3.2.0'
191
    compile 'org.greenrobot:greendao-generator:3.2.0'
192
    compile 'com.github.yuweiguocn:GreenDaoUpgradeHelper:v2.1.0'
193
    compile 'com.github.ksoichiro:android-observablescrollview:+'
194
    compile 'me.codeboy.android:align-text-view:2.3.0'
195
    compile 'me.itangqi.waveloadingview:library:0.3.5'
196
    compile 'com.yinglan.scrolllayout:scrolllayout:1.0.0'
197
    compile 'com.android.support:appcompat-v7:26.1.0'
198
    compile 'com.android.support:design:26.1.0'
183
    implementation 'com.squareup.okhttp:okhttp:2.0.0'
184
    implementation 'com.zhy:okhttputils:2.4.1'
185
    implementation 'com.android.support:support-v4:27.1.1'
186
    implementation 'com.google.android.gms:play-services-appindexing:9.4.0'
187
    implementation 'com.android.support.constraint:constraint-layout:1.1.2'
188
    implementation 'com.zhy:flowlayout-lib:1.0.3'
189
    implementation 'com.squareup:otto:+'
190
    implementation 'org.greenrobot:greendao:3.2.0'
191
    implementation 'org.greenrobot:greendao-generator:3.2.0'
192
    implementation 'com.github.yuweiguocn:GreenDaoUpgradeHelper:v2.1.0'
193
    implementation 'com.github.ksoichiro:android-observablescrollview:+'
194
    implementation 'me.codeboy.android:align-text-view:2.3.0'
195
    implementation 'me.itangqi.waveloadingview:library:0.3.5'
196
    implementation 'com.yinglan.scrolllayout:scrolllayout:1.0.0'
197
    implementation 'com.android.support:appcompat-v7:27.1.1'
198
    implementation 'com.android.support:design:27.1.1'
199 199
    //    compile 'com.nineoldandroids:library:2.4.0'
200 200
//    compile 'com.github.bumptech.glide:glide:4.1.1'
201
    compile 'com.github.bumptech.glide:glide:4.2.0'
202
    compile 'me.iwf.photopicker:PhotoPicker:0.9.12@aar'
203
    compile 'top.zibin:Luban:1.1.2'
204
    compile 'com.ms-square:expandableTextView:0.1.4'
205
206
    compile 'io.reactivex.rxjava2:rxjava:2.0.5'
207
    compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
208
    compile 'com.cjj.materialrefeshlayout:library:1.3.0'
209
    compile project(':zxing')
210
    compile 'com.alibaba:fastjson:1.1.64.android'
211
    compile 'pub.devrel:easypermissions:0.2.0'
212
    compile 'com.github.PhilJay:MPAndroidChart:v3.0.3'
213
    compile 'com.github.promeg:tinypinyin:1.0.0'
214
    compile 'org.greenrobot:eventbus:3.0.0'
215
    compile files('libs/AMap3DMap_6.9.2_AMapNavi_6.9.0_AMapSearch_6.9.2_AMapLocation_4.7.0_20190710.jar')
216
    compile 'com.qmuiteam:qmui:1.2.0'
217
    compile 'org.zackratos:ultimatebar:1.1.1'
218
    compile project(':XRefreshView')
219
    compile 'com.github.Aspsine:IRecyclerView:0.0.7'
220
    compile 'com.upyun:upyun-android-sdk:+'
221
    compile project(':videolibrary:picture_library')
201
    implementation 'com.github.bumptech.glide:glide:4.2.0'
202
    implementation 'me.iwf.photopicker:PhotoPicker:0.9.12@aar'
203
    implementation 'top.zibin:Luban:1.1.2'
204
    implementation 'com.ms-square:expandableTextView:0.1.4'
205
206
    implementation 'io.reactivex.rxjava2:rxjava:2.0.5'
207
    implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
208
    implementation 'com.cjj.materialrefeshlayout:library:1.3.0'
209
210
    implementation 'com.alibaba:fastjson:1.1.64.android'
211
    implementation 'pub.devrel:easypermissions:0.2.0'
212
    implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3'
213
    implementation 'com.github.promeg:tinypinyin:1.0.0'
214
    implementation 'org.greenrobot:eventbus:3.0.0'
215
    implementation 'com.qmuiteam:qmui:1.2.0'
216
    implementation 'org.zackratos:ultimatebar:1.1.1'
217
218
    implementation 'com.github.Aspsine:IRecyclerView:0.0.7'
219
    implementation 'com.upyun:upyun-android-sdk:+'
220
222 221
    // 上下翻页
223
    compile 'com.github.castorflex.verticalviewpager:library:19.0.1'
222
    implementation 'com.github.castorflex.verticalviewpager:library:19.0.1'
224 223
    // sqlite异常结局
225
    compile 'net.zetetic:android-database-sqlcipher:3.5.7@aar'
224
    implementation 'net.zetetic:android-database-sqlcipher:3.5.7@aar'
226 225
227
    compile 'com.shuyu:GSYVideoPlayer:5.0.2'
226
    implementation 'com.shuyu:GSYVideoPlayer:5.0.2'
228 227
    //compile 'com.github.chrisbanes:PhotoView:2.0.0'
229
    compile 'com.wang.avi:library:2.1.3'
228
    implementation 'com.wang.avi:library:2.1.3'
230 229
}

BIN
app/libs/android-support-multidex.jar


BIN
app/libs/armeabi/libiconv.so


BIN
app/libs/armeabi/libijkffmpeg.so


BIN
app/libs/armeabi/libijkplayer.so


BIN
app/libs/armeabi/libijksdl.so


BIN
app/libs/armeabi/libjcore113.so


BIN
app/libs/armeabi/libtpnsSecurity.so


BIN
app/libs/armeabi/libtpnsWatchdog.so


BIN
app/libs/armeabi/libzbarjni.so


BIN
app/libs/umeng-analytics-v5.2.4.jar


+ 1 - 1
app/src/main/java/com/electric/chargingpile/activity/UserCenterMoreActivity.java

@ -357,7 +357,7 @@ public class UserCenterMoreActivity extends Activity implements View.OnClickList
357 357
                builder.setPositiveButton("确定", new DialogInterface.OnClickListener() {
358 358
                    @Override
359 359
                    public void onClick(DialogInterface dialog, int which) {
360
                        MobclickAgent.onProfileSignOff();
360
//                        MobclickAgent.onProfileSignOff();
361 361
                        try {
362 362
                            sendLoginStatus();
363 363
                        } catch (Exception e) {

+ 1 - 1
build.gradle

@ -14,7 +14,7 @@ buildscript {
14 14
    }
15 15
16 16
    dependencies {
17
        classpath 'com.android.tools.build:gradle:2.3.3'
17
        classpath 'com.android.tools.build:gradle:3.2.1'
18 18
        classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2'
19 19
        classpath 'com.tencent.bugly:symtabfileuploader:latest.release'
20 20

+ 1 - 1
gradle/wrapper/gradle-wrapper.properties

@ -4,4 +4,4 @@ distributionPath=wrapper/dists
4 4
zipStoreBase=GRADLE_USER_HOME
5 5
org.gradle.jvmargs=-Xmx5120m -XX\:MaxPermSize\=5120m
6 6
zipStorePath=wrapper/dists
7
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
7
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip

+ 1 - 1
settings.gradle

@ -1,2 +1,2 @@
1 1
include ':app', ':autolayout', ':zxing', ':XRefreshView',':library'
2
include ':videolibrary:picture_library', ':videolibrary:SmallVideoLib2'
2
include ':videolibrary:picture_library', ':videolibrary:SmallVideoLib2'

+ 0 - 2
zxing/src/main/AndroidManifest.xml

@ -13,8 +13,6 @@
13 13
    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
14 14
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
15 15
16
    <uses-sdk android:minSdkVersion="15" android:targetSdkVersion="22"/>
17
18 16
    <!-- Don't require camera, as this requires a rear camera. This allows it to work on the Nexus 7 -->
19 17
    <uses-feature android:name="android.hardware.camera" android:required="false"/>
20 18
    <uses-feature android:name="android.hardware.camera.front" android:required="false"/>