]> git.ktnx.net Git - mobile-ledger.git/commit
major rework of parsed transaction/descriptions/accounts storage
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 16 Sep 2020 13:30:50 +0000 (16:30 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 16 Sep 2020 13:30:50 +0000 (16:30 +0300)
commit5bba2c06a81c87327fdcf3f2a85c3206d932c2f9
treef15996a6580fcf214b321bbd97b58c0099065bce
parentd080698efeba76aab6ef6b5b9d182990749509a7
major rework of parsed transaction/descriptions/accounts storage

new approach avoids mass deletion followed by mass inserts and allows
activation of foreign key constraints in SQLite

the list of accounts and transactions are managed by an
asynchronous differ

members of Data that are relevant only to the MainActivity and its
fragments are moved to a new MainModel ViewModel class
25 files changed:
app/src/main/java/net/ktnx/mobileledger/async/RefreshDescriptionsTask.java [deleted file]
app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java
app/src/main/java/net/ktnx/mobileledger/async/TransactionAccumulator.java [new file with mode: 0644]
app/src/main/java/net/ktnx/mobileledger/async/TransactionDateFinder.java
app/src/main/java/net/ktnx/mobileledger/async/UpdateTransactionsTask.java
app/src/main/java/net/ktnx/mobileledger/json/v1_15/ParsedLedgerTransaction.java
app/src/main/java/net/ktnx/mobileledger/model/Data.java
app/src/main/java/net/ktnx/mobileledger/model/LedgerTransaction.java
app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java
app/src/main/java/net/ktnx/mobileledger/model/TransactionListItem.java
app/src/main/java/net/ktnx/mobileledger/ui/MainModel.java [new file with mode: 0644]
app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryAdapter.java
app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryFragment.java
app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java
app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemsAdapter.java
app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfilesRecyclerViewAdapter.java
app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListAdapter.java
app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListFragment.java
app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListViewModel.java [deleted file]
app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionLoaderStep.java
app/src/main/java/net/ktnx/mobileledger/utils/MobileLedgerDatabase.java
app/src/main/java/net/ktnx/mobileledger/utils/SimpleDate.java
app/src/main/res/raw/create_db.sql
app/src/main/res/raw/sql_38.sql [new file with mode: 0644]
app/src/main/res/raw/sql_39.sql [new file with mode: 0644]