forked from openedx/openedx-app-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: login with Google, Facebook, Microsoft (openedx#89)
* feat: login with Google, Facebook, Microsoft * fix: crash on social login * refactor: moved auth helpers out of singletons * fix: generateMockedRawFile task running from direct task run only * refactor: applied new configuration management * feat: login with Google, Facebook, Microsoft * refactor: changes in colors and variables renaming * refactor: configuration updates * fix: updated SignInViewModelTest
- Loading branch information
Showing
41 changed files
with
1,387 additions
and
557 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,8 @@ jobs: | |
uses: gradle/[email protected] | ||
with: | ||
cache-read-only: ${{ github.ref != 'refs/heads/develop' }} | ||
|
||
- name: Generate mock files | ||
run: ./gradlew generateMockedRawFile | ||
- name: Run unit tests | ||
run: ./gradlew testProdReleaseUnitTest $CI_GRADLE_ARG_PROPERTIES | ||
|
||
|
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
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
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
16 changes: 16 additions & 0 deletions
16
auth/src/main/java/org/openedx/auth/data/model/AuthType.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,16 @@ | ||
package org.openedx.auth.data.model | ||
|
||
import org.openedx.core.ApiConstants | ||
|
||
/** | ||
* Enum class with types of supported auth types | ||
* | ||
* @param postfix postfix to add to the API call | ||
* @param methodName name of the login type | ||
*/ | ||
enum class AuthType(val postfix: String, val methodName: String) { | ||
PASSWORD("", "Password"), | ||
GOOGLE(ApiConstants.AUTH_TYPE_GOOGLE, "Google"), | ||
FACEBOOK(ApiConstants.AUTH_TYPE_FB, "Facebook"), | ||
MICROSOFT(ApiConstants.AUTH_TYPE_MICROSOFT, "Microsoft"), | ||
} |
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
Oops, something went wrong.