-
Notifications
You must be signed in to change notification settings - Fork 33
fix: resolve lint and signing issues #1247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
6c7935a
fix: resolve lint and signing issues
WRRicht3r c2eebf4
fix: stabilize runtime tests
WRRicht3r 3a244f9
fix: update R8/AGP and stabilize runtime tests
WRRicht3r 06ee301
fix: align AGP/
WRRicht3r 757a8a9
fix: align AGP/R8 and stabilize runtime tests
WRRicht3r b8c7121
fix: stabilize service fragment state
WRRicht3r 0a8fb3c
fix: suppress missing xml service references
WRRicht3r def8423
fix: fail when ci keystore missing
WRRicht3r 33f6699
fix some bugs
takemiyamakoto 926c0bb
fix: tonconnect cleanup and ton pagination
WRRicht3r e1ccd00
fix: ton url validator and ton fee cursor
WRRicht3r c9012e6
fix: tonconnect url normalization
WRRicht3r File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -16,4 +16,5 @@ app/*.apk | |
| *.log | ||
|
|
||
| fearless.jks | ||
| fearless-upload.jks | ||
| /buildSrc/build | ||
This file contains hidden or 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 hidden or 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 hidden or 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
35 changes: 35 additions & 0 deletions
35
common/src/main/java/jp/co/soramitsu/common/data/network/ton/TonIndexerJsonRpcModels.kt
This file contains hidden or 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,35 @@ | ||
| package jp.co.soramitsu.common.data.network.ton | ||
|
|
||
| import com.google.gson.JsonElement | ||
| import com.google.gson.annotations.SerializedName | ||
|
|
||
| data class TonIndexerJsonRpcRequest( | ||
| @SerializedName("id") | ||
| val id: Int = 1, | ||
| @SerializedName("jsonrpc") | ||
| val jsonrpc: String = "2.0", | ||
| @SerializedName("method") | ||
| val method: String, | ||
| @SerializedName("params") | ||
| val params: Map<String, Any?> = emptyMap() | ||
| ) | ||
|
|
||
| data class TonIndexerJsonRpcResponse( | ||
| @SerializedName("id") | ||
| val id: JsonElement? = null, | ||
| @SerializedName("jsonrpc") | ||
| val jsonrpc: String? = null, | ||
| @SerializedName("result") | ||
| val result: JsonElement? = null, | ||
| @SerializedName("error") | ||
| val error: TonIndexerJsonRpcError? = null | ||
| ) | ||
|
|
||
| data class TonIndexerJsonRpcError( | ||
| @SerializedName("code") | ||
| val code: Int? = null, | ||
| @SerializedName("message") | ||
| val message: String? = null, | ||
| @SerializedName("data") | ||
| val data: JsonElement? = null | ||
| ) |
160 changes: 160 additions & 0 deletions
160
common/src/main/java/jp/co/soramitsu/common/data/network/ton/TonIndexerModels.kt
This file contains hidden or 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,160 @@ | ||
| package jp.co.soramitsu.common.data.network.ton | ||
|
|
||
| import com.google.gson.annotations.SerializedName | ||
|
|
||
| data class TonIndexerBalancesResponse( | ||
| @SerializedName("address") | ||
| val address: String, | ||
| @SerializedName("ton_raw") | ||
| val tonRaw: String, | ||
| @SerializedName("ton") | ||
| val ton: String? = null, | ||
| @SerializedName("assets") | ||
| val assets: List<TonIndexerAssetBalance> = emptyList(), | ||
| @SerializedName("confirmed") | ||
| val confirmed: Boolean = true, | ||
| @SerializedName("updated_at") | ||
| val updatedAt: Long = 0, | ||
| @SerializedName("network") | ||
| val network: String? = null | ||
| ) | ||
|
|
||
| data class TonIndexerAssetBalance( | ||
| @SerializedName("kind") | ||
| val kind: String?, | ||
| @SerializedName("symbol") | ||
| val symbol: String? = null, | ||
| @SerializedName("address") | ||
| val address: String? = null, | ||
| @SerializedName("wallet") | ||
| val wallet: String? = null, | ||
| @SerializedName("balance_raw") | ||
| val balanceRaw: String, | ||
| @SerializedName("balance") | ||
| val balance: String, | ||
| @SerializedName("decimals") | ||
| val decimals: Int | ||
| ) | ||
|
|
||
| data class TonIndexerStateResponse( | ||
| @SerializedName("address") | ||
| val address: String, | ||
| @SerializedName("last_tx_lt") | ||
| val lastTxLt: String? = null, | ||
| @SerializedName("last_tx_hash") | ||
| val lastTxHash: String? = null, | ||
| @SerializedName("last_seen_utime") | ||
| val lastSeenUtime: Long? = null, | ||
| @SerializedName("last_confirmed_seqno") | ||
| val lastConfirmedSeqno: Int? = null, | ||
| @SerializedName("account_state") | ||
| val accountState: String? = null, | ||
| @SerializedName("code_boc") | ||
| val codeBoc: String? = null, | ||
| @SerializedName("data_boc") | ||
| val dataBoc: String? = null, | ||
| @SerializedName("network") | ||
| val network: String? = null | ||
| ) | ||
|
|
||
| data class TonIndexerRunGetMethodRequest( | ||
| @SerializedName("address") | ||
| val address: String, | ||
| @SerializedName("method") | ||
| val method: String, | ||
| @SerializedName("stack") | ||
| val stack: List<List<Any?>> = emptyList() | ||
| ) | ||
|
|
||
| data class TonIndexerRunGetMethodResponse( | ||
| @SerializedName("exit_code") | ||
| val exitCode: Int, | ||
| @SerializedName("gas_used") | ||
| val gasUsed: Int, | ||
| @SerializedName("stack") | ||
| val stack: List<List<Any?>> = emptyList() | ||
| ) | ||
|
|
||
| data class TonIndexerTransactionsResponse( | ||
| @SerializedName("page") | ||
| val page: Int = 1, | ||
| @SerializedName("page_size") | ||
| val pageSize: Int = 0, | ||
| @SerializedName("total_txs") | ||
| val totalTxs: Int = 0, | ||
| @SerializedName("total_pages") | ||
| val totalPages: Int? = null, | ||
| @SerializedName("total_pages_min") | ||
| val totalPagesMin: Int = 0, | ||
| @SerializedName("history_complete") | ||
| val historyComplete: Boolean = false, | ||
| @SerializedName("txs") | ||
| val txs: List<TonIndexerTransaction> = emptyList(), | ||
| @SerializedName("network") | ||
| val network: String? = null | ||
| ) | ||
|
|
||
| data class TonIndexerTransaction( | ||
| @SerializedName("txId") | ||
| val txId: String? = null, | ||
| @SerializedName("utime") | ||
| val utime: Long = 0, | ||
| @SerializedName("status") | ||
| val status: String? = null, | ||
| @SerializedName("reason") | ||
| val reason: String? = null, | ||
| @SerializedName("txType") | ||
| val txType: String? = null, | ||
| @SerializedName("inSource") | ||
| val inSource: String? = null, | ||
| @SerializedName("inValue") | ||
| val inValue: String? = null, | ||
| @SerializedName("outCount") | ||
| val outCount: Int = 0, | ||
| @SerializedName("detail") | ||
| val detail: TonIndexerTransactionDetail? = null, | ||
| @SerializedName("actions") | ||
| val actions: List<Any?> = emptyList(), | ||
| @SerializedName("lt") | ||
| val lt: String, | ||
| @SerializedName("hash") | ||
| val hash: String = "", | ||
| @SerializedName("inMessage") | ||
| val inMessage: TonIndexerMessage? = null, | ||
| @SerializedName("outMessages") | ||
| val outMessages: List<TonIndexerMessage>? = null, | ||
| @SerializedName("fee") | ||
| val fee: String? = null, | ||
| @SerializedName("total_fees") | ||
| val totalFees: String? = null | ||
| ) | ||
|
|
||
| data class TonIndexerTransactionDetail( | ||
| @SerializedName("kind") | ||
| val kind: String? = null, | ||
| @SerializedName("asset") | ||
| val asset: String? = null, | ||
| @SerializedName("amount") | ||
| val amount: String? = null, | ||
| @SerializedName("payToken") | ||
| val payToken: String? = null, | ||
| @SerializedName("receiveToken") | ||
| val receiveToken: String? = null, | ||
| @SerializedName("payAmount") | ||
| val payAmount: String? = null, | ||
| @SerializedName("receiveAmount") | ||
| val receiveAmount: String? = null | ||
| ) | ||
|
|
||
| data class TonIndexerMessage( | ||
| @SerializedName("source") | ||
| val source: String? = null, | ||
| @SerializedName("destination") | ||
| val destination: String? = null, | ||
| @SerializedName("value") | ||
| val value: String? = null, | ||
| @SerializedName("op") | ||
| val op: Int? = null, | ||
| @SerializedName("body") | ||
| val body: String? = null | ||
| ) |
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.