-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update mobile connect request buffering and requests verification logic
- Loading branch information
Showing
15 changed files
with
114 additions
and
123 deletions.
There are no files selected for viewing
25 changes: 0 additions & 25 deletions
25
app/src/main/java/com/babylon/wallet/android/data/repository/BufferedDeepLinkRepository.kt
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
...java/com/babylon/wallet/android/data/repository/BufferedMobileConnectRequestRepository.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,19 @@ | ||
package com.babylon.wallet.android.data.repository | ||
|
||
import com.babylon.wallet.android.domain.model.IncomingMessage | ||
import javax.inject.Inject | ||
import javax.inject.Singleton | ||
|
||
@Singleton | ||
class BufferedMobileConnectRequestRepository @Inject constructor() { | ||
|
||
private var bufferedRequest: IncomingMessage.IncomingRequest? = null | ||
|
||
fun setBufferedRequest(request: IncomingMessage.IncomingRequest) { | ||
bufferedRequest = request | ||
} | ||
|
||
fun getBufferedRequest(): IncomingMessage.IncomingRequest? { | ||
return bufferedRequest?.also { bufferedRequest = null } | ||
} | ||
} |
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
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
Oops, something went wrong.