-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13686 from woocommerce/issue/13666-jetpack-connec…
…tion-api-magic-link [Jetpack Setup] Update magic link handling to work with the Connection API integration
- Loading branch information
Showing
8 changed files
with
214 additions
and
91 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
WooCommerce/src/main/kotlin/com/woocommerce/android/ui/login/MagicLinkFlow.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,15 @@ | ||
package com.woocommerce.android.ui.login | ||
|
||
import org.wordpress.android.fluxc.store.AccountStore.AuthEmailFlow | ||
|
||
enum class MagicLinkFlow(private val value: String) : AuthEmailFlow { | ||
JetpackConnection("jetpack-connection"); | ||
|
||
override fun getName(): String = value | ||
|
||
companion object { | ||
fun fromString(value: String): MagicLinkFlow? { | ||
return MagicLinkFlow.values().firstOrNull { it.value == value } | ||
} | ||
} | ||
} |
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
30 changes: 0 additions & 30 deletions
30
WooCommerce/src/main/kotlin/com/woocommerce/android/ui/login/MagicLinkProperties.kt
This file was deleted.
Oops, something went wrong.
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.