Resetting the app after deletion and cleanup settings (#372)

* Fixes #361 - Reset everything if the app has been deleted since the last run

* Cleaned up and renamed the ElementSettings to ApplicationSettings. Removed its singleton and moved it to the service locator.

* Moved the ApplicationSettings to the Application folder

* Merged together the BuildSettings and ApplicationSettings

* Reset the UserDefaults too when resetting the application state

* Rename ServiceLocator.applicationSettings to just settings

* Fix indentation

* Rename ApplicationSettings to AppSettings

* Various tweaks following code review

* Fix unit tests
This commit is contained in:
Stefan Ceriu
2022-12-16 10:02:22 +02:00
committed by GitHub
parent 5b90f37f2e
commit 6f974a4422
39 changed files with 259 additions and 272 deletions
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:27d058762e6eafc940c71b8e4edeef26f6ccad34e086ad6a0f0a30252848485f
size 93290
oid sha256:0ab7f75524ce702d1d0344884aad7bafa821b7cdd8215c28aff7ddcf0f5d184e
size 90671
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:97980472cdf36a0d07109fc066bd8184013b0a99cbbd164e82dbfb0a20cbc09f
size 115670
oid sha256:79163533dc0069a51c0309ad4cc5291a324457949d69155954fa2c8529de9478
size 109653
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cbbb771047c24948ad5b38308273fc1262667bdaafcf0bac61704b3186f66f1d
size 93992
oid sha256:32ddcc37817a668eb87e0670e6b0fc35de66df19e0e12904c10532f0bc4172c5
size 91443
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:063feeb819831472533b47c11eb8a69924843fea616ef3f56651274fd8f970c9
size 115397
oid sha256:5e30413bbd9e9268085b4564ab646f25a69a262285d68ec2477eba7dd68c3653
size 111343
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:df1a88376fa6e083729329fcf221093c4704d900de8acc40600a61b7fd812a2c
size 94430
oid sha256:9cbc095e0d4f194b01ac4b560315b8914100302ad33e8d7a2d2c81ea6280ecb7
size 91866
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d4b3f25e56c50b01e3ce87c4bd0537e752664e23b7b761a5bdb1e2b88ed4dc35
size 117371
oid sha256:a44a61f155c7d0559982a70fa1ffd1a84828e8a8a9f9998ea6cb05210f4e8798
size 113408