This repository was archived by the owner on Oct 31, 2022. It is now read-only.
File tree 8 files changed +24
-18
lines changed
src/main/java/com/mukesh/permissionsexample
src/main/java/com/mukesh/permissions
8 files changed +24
-18
lines changed Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.application'
2
2
3
3
android {
4
- compileSdkVersion 28
4
+ compileSdkVersion 29
5
5
6
6
defaultConfig {
7
7
applicationId " com.mukesh.permissionsexample"
8
8
minSdkVersion 23
9
- targetSdkVersion 28
9
+ targetSdkVersion 29
10
10
versionCode 1
11
11
versionName " 1.0"
12
12
}
@@ -20,6 +20,6 @@ android {
20
20
21
21
dependencies {
22
22
implementation fileTree(include : [' *.jar' ], dir : ' libs' )
23
- implementation ' com.android.support :appcompat-v7:28.0 .0'
23
+ implementation ' androidx.appcompat :appcompat:1.2 .0'
24
24
implementation project(' :library' )
25
25
}
Original file line number Diff line number Diff line change 2
2
3
3
import android .Manifest ;
4
4
import android .os .Bundle ;
5
- import android .support .annotation .NonNull ;
6
- import android .support .v7 .app .AppCompatActivity ;
7
5
import android .view .View ;
8
6
import android .widget .Button ;
9
7
import android .widget .Toast ;
8
+
9
+ import androidx .annotation .NonNull ;
10
+ import androidx .appcompat .app .AppCompatActivity ;
11
+
10
12
import com .mukesh .permissions .EasyPermissions ;
11
13
import com .mukesh .permissions .OnPermissionListener ;
12
14
import java .util .List ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ buildscript {
4
4
google()
5
5
}
6
6
dependencies {
7
- classpath ' com.android.tools.build:gradle:3.2 .1'
7
+ classpath ' com.android.tools.build:gradle:4.0 .1'
8
8
}
9
9
}
10
10
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
Original file line number Diff line number Diff line change 1
- # Thu Sep 06 19:17:21 IST 2018
1
+ # Wed Aug 12 11:47:56 EDT 2020
2
2
distributionBase =GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
6
- distributionUrl =https\://services.gradle.org/distributions/gradle-4.9 -all.zip
6
+ distributionUrl =https\://services.gradle.org/distributions/gradle-6.1.1 -all.zip
Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ apply plugin: 'com.android.library'
3
3
group= ' com.github.mukeshsolanki'
4
4
5
5
android {
6
- compileSdkVersion 28
6
+ compileSdkVersion 29
7
7
8
8
defaultConfig {
9
9
minSdkVersion 14
10
- targetSdkVersion 28
11
- versionCode 7
12
- versionName " 2.0.1 "
10
+ targetSdkVersion 29
11
+ versionCode 8
12
+ versionName " 2.0.2 "
13
13
}
14
14
buildTypes {
15
15
release {
@@ -21,6 +21,6 @@ android {
21
21
22
22
dependencies {
23
23
implementation fileTree(dir : ' libs' , include : [' *.jar' ])
24
- implementation ' com.android.support :appcompat-v7:28.0 .0'
25
- implementation ' com.android.support:support-annotations:28.0 .0'
24
+ implementation ' androidx.appcompat :appcompat:1.2 .0'
25
+ implementation ' androidx.annotation:annotation:1.1 .0'
26
26
}
Original file line number Diff line number Diff line change 2
2
3
3
import android .app .Activity ;
4
4
import android .content .pm .PackageManager ;
5
- import android .support .annotation .NonNull ;
6
- import android .support .v4 .app .ActivityCompat ;
5
+
6
+ import androidx .annotation .NonNull ;
7
+ import androidx .core .app .ActivityCompat ;
8
+
7
9
import java .util .ArrayList ;
8
10
import java .util .Arrays ;
9
11
import java .util .List ;
Original file line number Diff line number Diff line change 1
1
package com .mukesh .permissions ;
2
2
3
- import android .support .annotation .NonNull ;
3
+ import androidx .annotation .NonNull ;
4
+
4
5
import java .util .List ;
5
6
6
7
public interface OnPermissionListener {
You can’t perform that action at this time.
0 commit comments