File tree 13 files changed +161
-198
lines changed
src/main/java/com/zfdang/demo
java/com/zfdang/multiple_images_selector
13 files changed +161
-198
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ task clean(type: Delete) {
30
30
31
31
ext {
32
32
minSdkVersion = 17
33
- targetSdkVersion = 24
34
- compileSdkVersion = 26
33
+ targetSdkVersion = 29
34
+ compileSdkVersion = 31
35
35
// https://developer.android.com/studio/releases/build-tools
36
36
buildToolsVersion = ' 30.0.3'
37
37
FRESCO_VERSION = ' 1.14.2'
Original file line number Diff line number Diff line change @@ -22,10 +22,8 @@ android {
22
22
dependencies {
23
23
implementation fileTree(include : [' *.jar' ], dir : ' libs' )
24
24
testImplementation ' junit:junit:4.12'
25
- implementation " com.android.support:appcompat-v7:$rootProject . SUPPORT_LIBRARY_VERSION "
26
- implementation " com.android.support:design:$rootProject . SUPPORT_LIBRARY_VERSION "
27
- implementation " com.android.support:support-v4:$rootProject . SUPPORT_LIBRARY_VERSION "
28
- implementation " com.android.support:recyclerview-v7:$rootProject . SUPPORT_LIBRARY_VERSION "
25
+ implementation ' androidx.appcompat:appcompat:1.0.0'
26
+
29
27
implementation project(' :multiple-images-selector' )
30
28
31
29
// Fresco
@@ -35,5 +33,4 @@ dependencies {
35
33
// For WebP support, including animated WebP
36
34
implementation " com.facebook.fresco:webpsupport:$rootProject . FRESCO_VERSION "
37
35
implementation " com.facebook.fresco:animated-webp:$rootProject . FRESCO_VERSION "
38
-
39
36
}
Original file line number Diff line number Diff line change 2
2
3
3
import android .content .Intent ;
4
4
import android .os .Bundle ;
5
- import android .support .v7 .app .AppCompatActivity ;
6
5
import android .view .View ;
7
6
import android .widget .Button ;
8
7
import android .widget .TextView ;
9
8
9
+ import androidx .appcompat .app .AppCompatActivity ;
10
+
10
11
import com .zfdang .multiple_images_selector .ImagesSelectorActivity ;
11
12
import com .zfdang .multiple_images_selector .SelectorSettings ;
12
13
Original file line number Diff line number Diff line change 15
15
# When configured, Gradle will run in incubating parallel mode.
16
16
# This option should only be used with decoupled projects. More details, visit
17
17
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18
- # org.gradle.parallel=true
18
+ # org.gradle.parallel=true
19
+ android.useAndroidX =true
20
+ android.enableJetifier =true
Original file line number Diff line number Diff line change @@ -31,9 +31,8 @@ android {
31
31
dependencies {
32
32
implementation fileTree(include : [' *.jar' ], dir : ' libs' )
33
33
testImplementation ' junit:junit:4.12'
34
- implementation " com.android.support:appcompat-v7:$rootProject . SUPPORT_LIBRARY_VERSION "
35
- implementation " com.android.support:recyclerview-v7:$rootProject . SUPPORT_LIBRARY_VERSION "
36
- implementation " com.android.support:support-v4:$rootProject . SUPPORT_LIBRARY_VERSION "
34
+ implementation ' androidx.appcompat:appcompat:1.0.0'
35
+
37
36
implementation " io.reactivex.rxjava2:rxjava:$rootProject . RXJAVA2_VERSION "
38
37
implementation " io.reactivex.rxjava2:rxandroid:$rootProject . RXANDROID2_VERSION "
39
38
@@ -48,6 +47,9 @@ dependencies {
48
47
49
48
50
49
implementation ' xyz.danoz:recyclerviewfastscroller:0.1.3'
50
+
51
+ // easy permission
52
+ implementation ' pub.devrel:easypermissions:3.0.0'
51
53
}
52
54
53
55
// https://github.com/blundell/release-android-library
Original file line number Diff line number Diff line change 5
5
import android .graphics .Canvas ;
6
6
import android .graphics .Rect ;
7
7
import android .graphics .drawable .Drawable ;
8
- import android .support .v7 .widget .LinearLayoutManager ;
9
- import android .support .v7 .widget .RecyclerView ;
10
8
import android .view .View ;
11
9
10
+ import androidx .recyclerview .widget .LinearLayoutManager ;
11
+ import androidx .recyclerview .widget .RecyclerView ;
12
+
12
13
/**
13
14
* Created by zfdang on 2016-3-16.
14
15
*/
Original file line number Diff line number Diff line change 3
3
import android .app .Activity ;
4
4
import android .content .Context ;
5
5
import android .graphics .Point ;
6
- import android .support .v7 .widget .LinearLayoutManager ;
7
- import android .support .v7 .widget .RecyclerView ;
8
6
import android .util .Log ;
9
7
import android .view .Display ;
10
8
import android .view .LayoutInflater ;
11
9
import android .view .View ;
12
10
import android .widget .PopupWindow ;
13
11
12
+ import androidx .recyclerview .widget .LinearLayoutManager ;
13
+ import androidx .recyclerview .widget .RecyclerView ;
14
+
14
15
import com .zfdang .multiple_images_selector .models .FolderListContent ;
15
16
16
17
/**
Original file line number Diff line number Diff line change 1
1
package com .zfdang .multiple_images_selector ;
2
2
3
3
import android .net .Uri ;
4
- import android .support .v7 .widget .RecyclerView ;
5
4
import android .view .LayoutInflater ;
6
5
import android .view .View ;
7
6
import android .view .ViewGroup ;
8
7
import android .widget .ImageView ;
9
8
import android .widget .TextView ;
10
9
10
+ import androidx .recyclerview .widget .RecyclerView ;
11
+
11
12
import com .facebook .drawee .view .SimpleDraweeView ;
12
13
import com .zfdang .multiple_images_selector .models .FolderItem ;
13
14
import com .zfdang .multiple_images_selector .models .FolderListContent ;
Original file line number Diff line number Diff line change 1
1
package com .zfdang .multiple_images_selector ;
2
2
3
3
import android .net .Uri ;
4
- import android .support .v7 .widget .RecyclerView ;
5
4
import android .view .LayoutInflater ;
6
5
import android .view .View ;
7
6
import android .view .ViewGroup ;
8
7
import android .widget .ImageView ;
9
8
import android .widget .TextView ;
10
9
10
+ import androidx .recyclerview .widget .RecyclerView ;
11
+
11
12
import com .facebook .drawee .view .SimpleDraweeView ;
12
13
import com .zfdang .multiple_images_selector .models .ImageItem ;
13
14
import com .zfdang .multiple_images_selector .models .ImageListContent ;
You can’t perform that action at this time.
0 commit comments