Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

Commit eba11f4

Browse files
authored
Updating project to support Android Studio 4.0 (#307)
1 parent 43e63a5 commit eba11f4

File tree

5 files changed

+19
-14
lines changed

5 files changed

+19
-14
lines changed

Diff for: app/build.gradle

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ apply plugin: 'com.android.application'
22

33
android {
44
compileSdkVersion compileSdk
5+
testOptions.unitTests.includeAndroidResources = true
56

67
defaultConfig {
78
applicationId "pub.devrel.easypermissions.sample"
@@ -20,6 +21,7 @@ android {
2021
}
2122

2223
dependencies {
23-
implementation 'androidx.appcompat:appcompat:1.0.2'
24+
implementation 'androidx.appcompat:appcompat:1.1.0'
25+
implementation "androidx.annotation:annotation:1.1.0"
2426
implementation project(':easypermissions')
2527
}

Diff for: build.gradle

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ buildscript {
66
}
77

88
dependencies {
9-
classpath 'com.android.tools.build:gradle:3.3.0'
10-
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
11-
classpath 'com.vanniktech:gradle-android-junit-jacoco-plugin:0.13.0'
9+
classpath 'com.android.tools.build:gradle:4.0.0'
10+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5'
11+
classpath 'com.vanniktech:gradle-android-junit-jacoco-plugin:0.16.0'
1212
}
1313
}
1414

@@ -35,6 +35,6 @@ ext {
3535

3636
bintrayOrg = 'easygoogle'
3737

38-
compileSdk = 28
39-
targetSdk = 28
38+
compileSdk = 30
39+
targetSdk = 30
4040
}

Diff for: easypermissions/build.gradle

+8-6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ apply plugin: "com.vanniktech.android.junit.jacoco"
33

44
android {
55
compileSdkVersion compileSdk
6+
testOptions.unitTests.includeAndroidResources = true
67

78
defaultConfig {
89
minSdkVersion 14
@@ -33,15 +34,16 @@ junitJacoco {
3334
}
3435

3536
dependencies {
36-
api "androidx.appcompat:appcompat:1.0.2"
37-
api "androidx.core:core:1.0.1"
38-
api "androidx.fragment:fragment:1.0.0"
37+
api "androidx.appcompat:appcompat:1.1.0"
38+
api "androidx.annotation:annotation:1.1.0"
39+
api "androidx.core:core:1.3.0"
40+
api "androidx.fragment:fragment:1.2.5"
3941

40-
testImplementation 'junit:junit:4.12'
42+
testImplementation 'junit:junit:4.13'
4143
testImplementation 'com.google.truth:truth:0.42'
4244
testImplementation 'org.robolectric:robolectric:4.1'
43-
testImplementation 'androidx.test:core:1.1.0'
44-
testImplementation 'androidx.fragment:fragment-testing:1.1.0-alpha03'
45+
testImplementation 'androidx.test:core:1.3.0-rc01'
46+
testImplementation 'androidx.fragment:fragment-testing:1.2.5'
4547
testImplementation 'org.mockito:mockito-core:2.23.4'
4648
}
4749

Diff for: gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ org.gradle.jvmargs=-Xmx1536m
2020
org.gradle.configureondemand=true
2121

2222
# Required by Robolectric 4.x
23-
android.enableUnitTestBinaryResources=true
23+
#android.enableUnitTestBinaryResources=true
2424

2525
# Move transitive dependencies to AndroidX
2626
android.useAndroidX=true

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
#Tue Jul 07 16:12:58 CST 2020
12
distributionBase=GRADLE_USER_HOME
23
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip

0 commit comments

Comments
 (0)