Skip to content

Commit

Permalink
add JDK8 notes to the migration guide and README files
Browse files Browse the repository at this point in the history
  • Loading branch information
lbalmaceda committed Jan 19, 2021
1 parent 65db298 commit 9c6ea72
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 7 deletions.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,22 @@ Android Java & Kotlin toolkit for consuming the Auth0 Authentication API

## Requirements

Android API version 21 or newer
Android API version 21 or later and Java 8+.

Here’s what you need in `build.gradle` to target Java 8 byte code for Android and Kotlin plugins respectively.

```groovy
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}
```

## Installation

Expand Down
17 changes: 16 additions & 1 deletion V2_MIGRATION_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,22 @@ v2 of the Auth0 Android SDK includes a number of improvements to integrating Aut

## Requirements changes

v2 requires Android API version 21 or later.
v2 requires Android API version 21 or later and Java 8+.

Here’s what you need in `build.gradle` to target Java 8 byte code for Android and Kotlin plugins respectively.

```groovy
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}
```

## OIDC only

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@
import static android.text.TextUtils.isEmpty;

class IdTokenVerifier {
private static final Integer DEFAULT_CLOCK_SKEW = 60; //1 min = 60 sec

private static final String NONCE_CLAIM = "nonce";
private static final String AZP_CLAIM = "azp";
private static final String AUTH_TIME_CLAIM = "auth_time";
private static final Integer DEFAULT_CLOCK_SKEW = 60; // 1 min = 60 sec

/**
* Verifies a provided ID Token follows the OIDC specification.
Expand Down

0 comments on commit 9c6ea72

Please sign in to comment.