-
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.
* Deeplink Payments * Android Lint fixups
- Loading branch information
Showing
30 changed files
with
344 additions
and
151 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,24 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools"> | ||
|
||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<application> | ||
<activity | ||
android:name=".KomojuPaymentActivity" | ||
android:exported="true" | ||
android:launchMode="singleInstance" | ||
android:theme="@style/Komoju.Transparent.Activity" /> | ||
android:theme="@style/Komoju.Transparent.Activity"> | ||
<intent-filter | ||
android:autoVerify="true" | ||
tools:ignore="AppLinkUrlError"> | ||
<action android:name="android.intent.action.VIEW" /> | ||
|
||
<category android:name="android.intent.category.DEFAULT" /> | ||
<category android:name="android.intent.category.BROWSABLE" /> | ||
|
||
<data android:scheme="@string/komoju_consumer_app_scheme" /> | ||
</intent-filter> | ||
</activity> | ||
</application> | ||
</manifest> |
Empty file.
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: 30 additions & 0 deletions
30
android/src/main/java/com/degica/komoju/android/sdk/KomojuPaymentViewModel.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,30 @@ | ||
package com.degica.komoju.android.sdk | ||
|
||
import android.util.Log | ||
import androidx.lifecycle.ViewModel | ||
import com.degica.komoju.android.sdk.ui.screens.Router | ||
import com.degica.komoju.android.sdk.utils.DeeplinkEntity | ||
import kotlinx.coroutines.flow.MutableStateFlow | ||
import kotlinx.coroutines.flow.asStateFlow | ||
|
||
internal class KomojuPaymentViewModel : ViewModel() { | ||
|
||
private val _isVisible = MutableStateFlow(false) | ||
val isVisible = _isVisible.asStateFlow() | ||
|
||
private val _router = MutableStateFlow<Router?>(null) | ||
val router = _router.asStateFlow() | ||
|
||
fun toggleVisiblity(value: Boolean) { | ||
_isVisible.value = value | ||
} | ||
|
||
fun onRouteConsumed() { | ||
_router.value = null | ||
} | ||
|
||
fun onNewDeeplink(deeplink: String) { | ||
val deeplinkEntity = DeeplinkEntity.from(deeplink) | ||
Log.d("Aman", "handleIntentAction $deeplinkEntity") | ||
} | ||
} |
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
5 changes: 5 additions & 0 deletions
5
...in/java/com/degica/komoju/android/sdk/ui/screens/awating/KonbiniAwaitingPaymentUiState.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,5 @@ | ||
package com.degica.komoju.android.sdk.ui.screens.awating | ||
|
||
import com.degica.komoju.mobile.sdk.entities.Payment | ||
|
||
internal data class KonbiniAwaitingPaymentUiState(val payment: Payment?, val isLoading: Boolean = false) |
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
5 changes: 0 additions & 5 deletions
5
...oid/src/main/java/com/degica/komoju/android/sdk/ui/screens/status/PaymentStatusUiState.kt
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
...id/src/main/java/com/degica/komoju/android/sdk/ui/screens/success/PaymentSuccessScreen.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,10 @@ | ||
package com.degica.komoju.android.sdk.ui.screens.success | ||
|
||
import androidx.compose.runtime.Composable | ||
import cafe.adriel.voyager.core.screen.Screen | ||
|
||
internal class PaymentSuccessScreen : Screen { | ||
@Composable | ||
override fun Content() { | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
android/src/main/java/com/degica/komoju/android/sdk/ui/screens/webview/WebChromeClient.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,5 @@ | ||
package com.degica.komoju.android.sdk.ui.screens.webview | ||
|
||
import com.kevinnzou.web.AccompanistWebChromeClient | ||
|
||
internal class WebChromeClient : AccompanistWebChromeClient() |
Oops, something went wrong.