Skip to content
This repository was archived by the owner on Feb 14, 2020. It is now read-only.

Commit b01acc4

Browse files
committed
Use external signpost core
1 parent 06aff45 commit b01acc4

32 files changed

+12
-2875
lines changed

library/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ android {
77
minSdkVersion 14
88
targetSdkVersion 27
99
versionCode 1
10-
versionName project.version
10+
versionName "1.0"
1111
}
1212
}
1313

1414
dependencies {
15+
api 'oauth.signpost:signpost-core:1.2.1.2'
1516
api 'com.parse:parse-android:1.17.3'
1617

1718
testImplementation 'junit:junit:4.12'
@@ -26,7 +27,7 @@ jacoco {
2627
toolVersion "0.7.1.201405082137"
2728
}
2829

29-
task jacocoTestReport(type:JacocoReport, dependsOn: "testDebugUnitTest") {
30+
task jacocoTestReport(type: JacocoReport, dependsOn: "testDebugUnitTest") {
3031
group = "Reporting"
3132
description = "Generate Jacoco coverage reports"
3233

library/src/main/java/com/parse/ParseTwitterUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public static Task<Void> linkInBackground(Context context, final ParseUser user)
132132
checkInitialization();
133133
return getTwitterController().authenticateAsync(context).onSuccessTask(new Continuation<Map<String, String>, Task<Void>>() {
134134
@Override
135-
public Task<Void> then(Task<Map<String, String>> task) throws Exception {
135+
public Task<Void> then(Task<Map<String, String>> task) {
136136
return user.linkWithInBackground(AUTH_TYPE, task.getResult());
137137
}
138138
});
@@ -300,7 +300,7 @@ public static Task<ParseUser> logInInBackground(Context context) {
300300
checkInitialization();
301301
return getTwitterController().authenticateAsync(context).onSuccessTask(new Continuation<Map<String, String>, Task<ParseUser>>() {
302302
@Override
303-
public Task<ParseUser> then(Task<Map<String, String>> task) throws Exception {
303+
public Task<ParseUser> then(Task<Map<String, String>> task) {
304304
return userDelegate.logInWithInBackground(AUTH_TYPE, task.getResult());
305305
}
306306
});

library/src/main/java/com/parse/internal/signpost/AbstractOAuthConsumer.java

Lines changed: 0 additions & 263 deletions
This file was deleted.

0 commit comments

Comments
 (0)