Skip to content

Commit

Permalink
1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
adrielcafe committed Jul 15, 2016
1 parent 0f51931 commit ff4893e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ repositories {
}
dependencies {
compile 'com.github.adrielcafe:AndroidOAuth:1.1.0'
compile 'com.github.adrielcafe:AndroidOAuth:1.1.1'
}
```

Expand Down
4 changes: 2 additions & 2 deletions lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ android {
}

dependencies {
compile 'com.github.scribejava:scribejava-apis:2.8.0'
compile 'com.studioidan.httpagent:httpagent:1.0.3'
compile 'com.github.scribejava:scribejava-apis:2.8.1'
compile 'com.studioidan.httpagent:httpagent:1.0.3@aar'
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ public Dialog onCreateDialog(Bundle savedInstanceState) {
@Override
public void onPageFinished(WebView view, String url) {
super.onPageFinished(view, url);
if (url.contains("code=") && url.contains("state=")) {
if (url.contains("code=")) {
getCode(url);
} else if(view.getTitle().contains("code=")){
// Creating a valid URI to extract parameters easily
getCode(view.getTitle().replace("Success ", "http://oauth?"));
}
}
});
Expand Down

0 comments on commit ff4893e

Please sign in to comment.