Skip to content

Commit 9c6ea72

Browse files
committed
add JDK8 notes to the migration guide and README files
1 parent 65db298 commit 9c6ea72

File tree

3 files changed

+33
-7
lines changed

3 files changed

+33
-7
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,22 @@ Android Java & Kotlin toolkit for consuming the Auth0 Authentication API
1212

1313
## Requirements
1414

15-
Android API version 21 or newer
15+
Android API version 21 or later and Java 8+.
16+
17+
Here’s what you need in `build.gradle` to target Java 8 byte code for Android and Kotlin plugins respectively.
18+
19+
```groovy
20+
android {
21+
compileOptions {
22+
sourceCompatibility JavaVersion.VERSION_1_8
23+
targetCompatibility JavaVersion.VERSION_1_8
24+
}
25+
26+
kotlinOptions {
27+
jvmTarget = '1.8'
28+
}
29+
}
30+
```
1631

1732
## Installation
1833

V2_MIGRATION_GUIDE.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,22 @@ v2 of the Auth0 Android SDK includes a number of improvements to integrating Aut
44

55
## Requirements changes
66

7-
v2 requires Android API version 21 or later.
7+
v2 requires Android API version 21 or later and Java 8+.
8+
9+
Here’s what you need in `build.gradle` to target Java 8 byte code for Android and Kotlin plugins respectively.
10+
11+
```groovy
12+
android {
13+
compileOptions {
14+
sourceCompatibility JavaVersion.VERSION_1_8
15+
targetCompatibility JavaVersion.VERSION_1_8
16+
}
17+
18+
kotlinOptions {
19+
jvmTarget = '1.8'
20+
}
21+
}
22+
```
823

924
## OIDC only
1025

auth0/src/main/java/com/auth0/android/provider/IdTokenVerifier.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@
1111
import static android.text.TextUtils.isEmpty;
1212

1313
class IdTokenVerifier {
14-
private static final Integer DEFAULT_CLOCK_SKEW = 60; //1 min = 60 sec
15-
16-
private static final String NONCE_CLAIM = "nonce";
17-
private static final String AZP_CLAIM = "azp";
18-
private static final String AUTH_TIME_CLAIM = "auth_time";
14+
private static final Integer DEFAULT_CLOCK_SKEW = 60; // 1 min = 60 sec
1915

2016
/**
2117
* Verifies a provided ID Token follows the OIDC specification.

0 commit comments

Comments
 (0)