Skip to content

Commit 0a5f2d4

Browse files
author
dujinyang
committed
- 编译3.3.2通过
- jdk 1.8 - 编译apk
1 parent 8d855c6 commit 0a5f2d4

File tree

6 files changed

+84
-48
lines changed

6 files changed

+84
-48
lines changed

Diff for: build.gradle

+18-5
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@
22

33
buildscript {
44
repositories {
5-
jcenter()
6-
mavenCentral()
5+
// maven{url 'http://maven.aliyun.com/nexus/content/groups/public/'}
6+
7+
jcenter()
8+
mavenCentral()
9+
// maven{url 'http://maven.aliyun.com/nexus/content/groups/public/'}
10+
google()
711
}
812
dependencies {
9-
classpath 'com.android.tools.build:gradle:2.1.3'
10-
classpath 'me.tatarka:gradle-retrolambda:3.2.5'
11-
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.5.0'
13+
classpath 'com.android.tools.build:gradle:3.3.2'
14+
// classpath 'com.android.tools.build:gradle:2.1.3'
15+
classpath 'me.tatarka:gradle-retrolambda:3.2.5'
16+
//classpath 'me.tatarka:gradle-retrolambda:3.7'
17+
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.6.2'
1218
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
1319
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7'
1420
}
@@ -18,12 +24,19 @@ buildscript {
1824
configurations.classpath.exclude group: 'com.android.tools.external.lombok'
1925
}
2026

27+
28+
2129
allprojects {
2230
repositories {
31+
google()
32+
// maven{url 'http://maven.aliyun.com/nexus/content/groups/public/'}
2333
jcenter()
2434
}
2535
}
2636

2737
task clean(type: Delete) {
2838
delete rootProject.buildDir
2939
}
40+
41+
/*
42+
android.enableD8 = true*/

Diff for: gradle/wrapper/gradle-wrapper.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#AT
1+
#Tue Mar 26 14:11:59 CST 2019
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip

Diff for: library/build.gradle

+27-23
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,61 @@
11
apply plugin: 'com.android.library'
2-
apply plugin: 'me.tatarka.retrolambda'
2+
//apply plugin: 'me.tatarka.retrolambda'
33
apply plugin: 'com.github.dcendents.android-maven'
44
apply plugin: "com.jfrog.bintray"
55

66
version = "1.1.3"
77

88
android {
9-
compileSdkVersion 25
10-
buildToolsVersion '25.0.3'
9+
compileSdkVersion 28
10+
buildToolsVersion '28.0.3'
1111

1212
// compileSdkVersion 24
1313
// buildToolsVersion '24'
1414

1515
defaultConfig {
1616
minSdkVersion 14
17-
targetSdkVersion 25
17+
targetSdkVersion 26
1818
// targetSdkVersion 24
1919
versionCode 3
2020
versionName version
2121

2222
vectorDrawables.useSupportLibrary = true
23-
}
23+
}/*
2424
compileOptions {
2525
sourceCompatibility JavaVersion.VERSION_1_8
2626
targetCompatibility JavaVersion.VERSION_1_8
27-
}
27+
}*/
2828
lintOptions {
2929
abortOnError false
3030
checkReleaseBuilds false
3131

3232
}
3333
resourcePrefix "gallery_"
34+
compileOptions {
35+
sourceCompatibility JavaVersion.VERSION_1_8
36+
targetCompatibility JavaVersion.VERSION_1_8
37+
}
3438
}
3539

36-
40+
/*Configuration 'provided' is obsolete and has been replaced with 'compileOnly'.*/
3741

3842
dependencies {
39-
compile fileTree(include: ['*.jar'], dir: 'libs')
40-
testCompile 'junit:junit:4.12'
41-
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
42-
compile 'io.reactivex.rxjava2:rxjava:2.1.0'
43-
compile 'com.yalantis:ucrop:2.2.0'
44-
compile 'com.android.support:recyclerview-v7:25.3.1'
45-
compile 'com.android.support:appcompat-v7:25.3.1'
46-
compile "com.android.support:exifinterface:25.3.1"
47-
/* compile 'com.android.support:recyclerview-v7:24.2.0'
48-
compile 'com.android.support:appcompat-v7:24.2.0'
49-
compile "com.android.support:exifinterface:25.1.0"*/
50-
provided 'com.squareup.picasso:picasso:2.5.2'
51-
provided 'com.facebook.fresco:fresco:1.3.0'
52-
provided 'com.facebook.fresco:animated-gif:1.3.0'
53-
provided 'com.github.bumptech.glide:glide:3.7.0'
54-
provided 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
43+
implementation fileTree(include: ['*.jar'], dir: 'libs')
44+
testImplementation 'junit:junit:4.12'
45+
api 'io.reactivex.rxjava2:rxandroid:2.0.1'
46+
api 'io.reactivex.rxjava2:rxjava:2.1.0'
47+
api 'com.yalantis:ucrop:2.2.0'
48+
api 'com.android.support:recyclerview-v7:28.0.0'
49+
api 'com.android.support:appcompat-v7:28.0.0'
50+
api 'com.android.support:exifinterface:28.0.0'
51+
/* implementation 'com.android.support:recyclerview-v7:24.2.0'
52+
implementation 'com.android.support:appcompat-v7:24.2.0'
53+
implementation "com.android.support:exifinterface:25.1.0"*/
54+
api 'com.squareup.picasso:picasso:2.5.2'
55+
api 'com.facebook.fresco:fresco:1.3.0'
56+
api 'com.facebook.fresco:animated-gif:1.3.0'
57+
api 'com.github.bumptech.glide:glide:3.7.0'
58+
api 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
5559
}
5660

5761
//===================================upload jcenter=================================================

Diff for: sample/build.gradle

+23-17
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ apply plugin: 'com.android.application'
22
apply plugin: 'com.getkeepsafe.dexcount'
33

44
android {
5-
compileSdkVersion 24
6-
buildToolsVersion '25.0.3'
7-
// buildToolsVersion '24'
5+
compileSdkVersion 28
6+
//buildToolsVersion '25.0.3'
7+
buildToolsVersion '28.0.3'
88

99
defaultConfig {
1010
applicationId "cn.finalteam.rxgalleryfinal.sample"
1111
minSdkVersion 14
12-
targetSdkVersion 25
12+
targetSdkVersion 26
1313
// targetSdkVersion 24
1414
versionCode 1
1515
versionName "1.0"
@@ -29,18 +29,24 @@ android {
2929
lintOptions {
3030
abortOnError false
3131
}
32+
compileOptions {
33+
sourceCompatibility JavaVersion.VERSION_1_8
34+
targetCompatibility JavaVersion.VERSION_1_8
35+
}
3236
}
33-
37+
/*compile 改成implementation
38+
androidTestCompile改成androidTestImplementation
39+
testCompile 改成testImplementation*/
3440
dependencies {
35-
compile fileTree(include: ['*.jar'], dir: 'libs')
36-
testCompile 'junit:junit:4.12'
37-
compile 'com.squareup.picasso:picasso:2.5.2'
38-
compile 'com.facebook.fresco:fresco:1.3.0'
39-
compile 'com.facebook.fresco:animated-gif:1.3.0'
40-
compile 'com.github.bumptech.glide:glide:3.7.0'
41-
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
42-
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5.1'
43-
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
44-
testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
45-
compile project(':library')
46-
}
41+
implementation fileTree(include: ['*.jar'], dir: 'libs')
42+
testImplementation 'junit:junit:4.12'
43+
implementation 'com.squareup.picasso:picasso:2.5.2'
44+
implementation 'com.facebook.fresco:fresco:1.3.0'
45+
implementation 'com.facebook.fresco:animated-gif:1.3.0'
46+
implementation 'com.github.bumptech.glide:glide:3.7.0'
47+
implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
48+
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.1'
49+
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
50+
testImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
51+
implementation project(':library')
52+
}

Diff for: sample/proguard-rules.pro

+12
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,15 @@
100100

101101
#9.picasso
102102
-dontwarn com.squareup.okhttp.**
103+
-keep class com.squareup.okhttp.**{*;}
104+
# okhttp
105+
-keep class okhttp3.** { *; }
106+
-keep interface okhttp3.** { *; }
107+
-dontwarn okhttp3.**
108+
109+
# okio
110+
-keep class sun.misc.Unsafe { *; }
111+
-dontwarn java.nio.file.*
112+
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
113+
-keep class okio.**{*;}
114+
-dontwarn okio.**

Diff for: settings.gradle

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
include ':library', ':sample'
1+
include ':library'
2+
include ':sample'
23

0 commit comments

Comments
 (0)