-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert the LoginClient to kotlin (#5479)
* Convert the result classes to kotlin * Convert response and callback to kotlin * Cleanup code-quality warnings before converting * Converted the LoginClient to kotlin * Updated the UserExtendedInfoClientTest to be kotlin, and live in the correct spot
- Loading branch information
Showing
14 changed files
with
370 additions
and
450 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
app/src/main/java/fr/free/nrw/commons/auth/login/LoginCallback.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package fr.free.nrw.commons.auth.login | ||
|
||
interface LoginCallback { | ||
fun success(loginResult: LoginResult) | ||
fun twoFactorPrompt(caught: Throwable, token: String?) | ||
fun passwordResetPrompt(token: String?) | ||
fun error(caught: Throwable) | ||
} |
259 changes: 0 additions & 259 deletions
259
app/src/main/java/fr/free/nrw/commons/auth/login/LoginClient.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.