-
Notifications
You must be signed in to change notification settings - Fork 7
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 #56 from nova-wallet/develop
v1.8.0
- Loading branch information
Showing
3 changed files
with
49 additions
and
5 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
buildscript { | ||
ext { | ||
// App version | ||
versionName = '1.7.3' | ||
versionName = '1.8.0' | ||
versionCode = 1 | ||
|
||
// SDK and tools | ||
|
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
...ain/java/jp/co/soramitsu/fearless_utils/wsrpc/interceptor/WebSocketResponseInterceptor.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 jp.co.soramitsu.fearless_utils.wsrpc.interceptor | ||
|
||
import jp.co.soramitsu.fearless_utils.wsrpc.response.RpcResponse | ||
|
||
interface WebSocketResponseInterceptor { | ||
|
||
enum class ResponseDelivery { | ||
DROP, DELIVER_TO_SENDER | ||
} | ||
|
||
fun onRpcResponseReceived(rpcResponse: RpcResponse): ResponseDelivery | ||
} | ||
|
||
fun WebSocketResponseInterceptor.ResponseDelivery.shouldDeliver(): Boolean { | ||
return this == WebSocketResponseInterceptor.ResponseDelivery.DELIVER_TO_SENDER | ||
} |