]> git.ktnx.net Git - mobile-ledger.git/commit
finish support for multiple server APIs when retrieving data
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 27 Dec 2020 21:21:37 +0000 (23:21 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 27 Dec 2020 21:21:37 +0000 (23:21 +0200)
commita87079ed41bdc3ad89fe8bd15dfba10e37b29b76
tree773327e320a8c3f76a7a076eab64a1c42a7a6457
parent052c43e2d1b50e31aa9b1293e929de6dd8ffbc6b
finish support for multiple server APIs when retrieving data

this also adds support for the last JSON API change introduced in
1.19.1 (see gh#1360)

exceptions from the low-level json parser are interpreted as version
incompatibility and a pointer is made to profile details
36 files changed:
app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java
app/src/main/java/net/ktnx/mobileledger/async/SendTransactionTask.java
app/src/main/java/net/ktnx/mobileledger/json/AccountListParser.java
app/src/main/java/net/ktnx/mobileledger/json/ApiNotSupportedException.java [new file with mode: 0644]
app/src/main/java/net/ktnx/mobileledger/json/ParsedLedgerAccount.java
app/src/main/java/net/ktnx/mobileledger/json/ParsedStyle.java [new file with mode: 0644]
app/src/main/java/net/ktnx/mobileledger/json/TransactionListParser.java [new file with mode: 0644]
app/src/main/java/net/ktnx/mobileledger/json/v1_14/AccountListParser.java
app/src/main/java/net/ktnx/mobileledger/json/v1_14/ParsedBalance.java
app/src/main/java/net/ktnx/mobileledger/json/v1_14/ParsedLedgerAccount.java
app/src/main/java/net/ktnx/mobileledger/json/v1_14/ParsedStyle.java
app/src/main/java/net/ktnx/mobileledger/json/v1_14/TransactionListParser.java
app/src/main/java/net/ktnx/mobileledger/json/v1_15/AccountListParser.java
app/src/main/java/net/ktnx/mobileledger/json/v1_15/ParsedLedgerAccount.java
app/src/main/java/net/ktnx/mobileledger/json/v1_15/ParsedStyle.java
app/src/main/java/net/ktnx/mobileledger/json/v1_15/TransactionListParser.java
app/src/main/java/net/ktnx/mobileledger/json/v1_19_1/AccountListParser.java [new file with mode: 0644]
app/src/main/java/net/ktnx/mobileledger/json/v1_19_1/ParsedAmount.java [new file with mode: 0644]
app/src/main/java/net/ktnx/mobileledger/json/v1_19_1/ParsedBalance.java [new file with mode: 0644]
app/src/main/java/net/ktnx/mobileledger/json/v1_19_1/ParsedLedgerAccount.java [new file with mode: 0644]
app/src/main/java/net/ktnx/mobileledger/json/v1_19_1/ParsedLedgerTransaction.java [new file with mode: 0644]
app/src/main/java/net/ktnx/mobileledger/json/v1_19_1/ParsedPosting.java [new file with mode: 0644]
app/src/main/java/net/ktnx/mobileledger/json/v1_19_1/ParsedPrecision.java [new file with mode: 0644]
app/src/main/java/net/ktnx/mobileledger/json/v1_19_1/ParsedPrice.java [new file with mode: 0644]
app/src/main/java/net/ktnx/mobileledger/json/v1_19_1/ParsedQuantity.java [new file with mode: 0644]
app/src/main/java/net/ktnx/mobileledger/json/v1_19_1/ParsedSourcePos.java [new file with mode: 0644]
app/src/main/java/net/ktnx/mobileledger/json/v1_19_1/ParsedStyle.java [new file with mode: 0644]
app/src/main/java/net/ktnx/mobileledger/json/v1_19_1/TransactionListParser.java [new file with mode: 0644]
app/src/main/java/net/ktnx/mobileledger/model/HledgerVersion.java
app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java
app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java
app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java
app/src/main/res/layout/profile_detail.xml
app/src/main/res/menu/api_version.xml
app/src/main/res/values-bg/strings.xml
app/src/main/res/values/strings.xml