diff --git a/.idea/gradle.xml b/.idea/gradle.xml
index 0091d57..7ac24c7 100644
--- a/.idea/gradle.xml
+++ b/.idea/gradle.xml
@@ -9,16 +9,9 @@
-
-
-
-
+
diff --git a/.idea/misc.xml b/.idea/misc.xml
index c60d22d..7e40dfc 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -37,7 +37,7 @@
-
+
diff --git a/.idea/modules.xml b/.idea/modules.xml
index 9c05e07..4257074 100644
--- a/.idea/modules.xml
+++ b/.idea/modules.xml
@@ -4,7 +4,9 @@
+
+
\ No newline at end of file
diff --git a/app/build.gradle b/app/build.gradle
index ffa78f1..f6e9033 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -1,13 +1,13 @@
apply plugin: 'com.android.application'
android {
- compileSdkVersion 23
- buildToolsVersion "23.0.2"
+ compileSdkVersion 25
+ buildToolsVersion '25.0.3'
defaultConfig {
applicationId "com.pingidentity.developer.android_appauth_sample_application"
minSdkVersion 16
- targetSdkVersion 23
+ targetSdkVersion 25
versionCode 1
versionName "1.0"
}
@@ -19,10 +19,12 @@ android {
}
}
+android.defaultConfig.manifestPlaceholders = ['appAuthRedirectScheme': 'com.pingidentity.developer.appauth']
+
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
- compile 'com.android.support:appcompat-v7:23.2.0'
- compile 'com.android.support:design:23.2.0'
- compile project(':library')
+ compile 'com.android.support:appcompat-v7:25.3.1'
+ compile 'com.android.support:design:25.3.1'
+ compile 'net.openid:appauth:0.7.0'
}
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 3d7c85a..bb0b7c0 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -3,10 +3,11 @@
package="com.pingidentity.developer.android_appauth_sample_application">
diff --git a/app/src/main/java/com/pingidentity/developer/android_appauth_sample_application/MainActivity.java b/app/src/main/java/com/pingidentity/developer/android_appauth_sample_application/MainActivity.java
index 5c2e87f..8f82560 100644
--- a/app/src/main/java/com/pingidentity/developer/android_appauth_sample_application/MainActivity.java
+++ b/app/src/main/java/com/pingidentity/developer/android_appauth_sample_application/MainActivity.java
@@ -24,6 +24,7 @@
import net.openid.appauth.AuthorizationServiceConfiguration;
import net.openid.appauth.AuthorizationServiceDiscovery;
import net.openid.appauth.CodeVerifierUtil;
+import net.openid.appauth.ResponseTypeValues;
import net.openid.appauth.TokenRequest;
import net.openid.appauth.TokenResponse;
@@ -90,7 +91,7 @@ protected void onCreate(Bundle savedInstanceState) {
if (savedInstanceState != null) {
if (savedInstanceState.containsKey(KEY_AUTH_STATE)) {
try {
- mAuthState = AuthState.fromJson(savedInstanceState.getString(KEY_AUTH_STATE));
+ mAuthState = AuthState.jsonDeserialize(savedInstanceState.getString(KEY_AUTH_STATE));
} catch (JSONException ex) {
Log.e(TAG, "Malformed authorization JSON saved", ex);
}
@@ -301,7 +302,7 @@ private void authorize(AuthorizationServiceConfiguration authServiceConfiguratio
AuthorizationRequest authRequest = new AuthorizationRequest.Builder(
authServiceConfiguration,
OIDC_CLIENT_ID,
- AuthorizationRequest.RESPONSE_TYPE_CODE,
+ ResponseTypeValues.CODE,
Uri.parse(OIDC_REDIRECT_URI))
.setScope(OIDC_SCOPE)
.setCodeVerifier(codeVerifier, codeVerifier, "plain")
diff --git a/build.gradle b/build.gradle
index 481a2e2..d0aa704 100644
--- a/build.gradle
+++ b/build.gradle
@@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
- classpath 'com.android.tools.build:gradle:2.0.0-beta5'
+ classpath 'com.android.tools.build:gradle:2.3.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 122a0dc..994a97f 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
-#Mon Dec 28 10:00:20 PST 2015
+#Fri Aug 25 19:35:25 EDT 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
diff --git a/settings.gradle b/settings.gradle
index 3306997..e7b4def 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -1 +1 @@
-include ':app', ':library'
+include ':app'