Commit Graph

23 Commits

Author SHA1 Message Date
Torsten Grote
702d8f92cc [index] rename packageId to packageName
as this seems to be the more established term
2022-07-20 10:37:25 -03:00
Torsten Grote
d63c09a91e [index] Rename IndexV2Verifier to EntryVerifier at the insistence of Hans 2022-07-17 15:57:15 -03:00
Torsten Grote
59625d446e [index] Add more tests for error cases 2022-07-17 15:57:14 -03:00
Torsten Grote
8b2d96dc1b [index] Add LocaleChooser with getBestLocale() method and test
This is for getting the best matching localized content.
2022-07-17 15:57:14 -03:00
Torsten Grote
bb6238406d [index] fix screenshot sorting for tests 2022-07-17 15:57:14 -03:00
Torsten Grote
a4d378171d [index] make v1.OldIndexException public
and remember if the timestamp was the same, so we can treat this as the repo hasn't changed hen updating.
2022-07-17 15:57:14 -03:00
Torsten Grote
688a5f98b3 [index] allow passing versionCode into test data generation 2022-07-17 15:57:14 -03:00
Torsten Grote
632833a3e7 [index] Add UpdateChecker with tests
Also introduce interfaces for important classes, so they can be implemented by stuff like database classes as well. This makes UpdateChecker and CompatibilityChecker more generic.

Also add tests for CompatibilityChecker.
2022-07-17 15:57:14 -03:00
Torsten Grote
17acd0d56f [index] add methods to walk over all files in the index v2 2022-07-17 15:57:13 -03:00
Torsten Grote
6c3184abd9 [index] Add IndexV1Creator for Android
This also can serve as a base for an IndexV2Creator later.
2022-07-17 15:57:13 -03:00
Torsten Grote
9b947f7052 [index] Add README and LICENSE 2022-07-17 15:57:13 -03:00
Torsten Grote
fcd180dd3b [index] Let proguard keep serializer() methods 2022-07-17 15:57:13 -03:00
Torsten Grote
4cea518bfa [index] Reject old v1 indexes 2022-07-17 15:57:13 -03:00
Torsten Grote
795c579111 [index] Add maven-publish plugin for publishing to maven central 2022-07-17 15:57:13 -03:00
Torsten Grote
d2d8b4ee9f [index] Add dokka for creating HTML library docs 2022-07-17 15:57:12 -03:00
Torsten Grote
f9ea53bbe1 [index] Add an IndexV2Verifier
that shares most code with IndexV1Verifier using a common sub-class. The only difference are the json file name and which digests will be accepted.
2022-07-17 15:57:12 -03:00
Torsten Grote
469e17b613 [index] implement diffing for V2 via IndexV2DiffStreamProcessor
This uses hacky reflection and doesn't properly diff everything it could, but just what we need for the DB

This commit also sneaks in some last minute change requests for the indexV2 structure
2022-07-17 15:57:12 -03:00
Torsten Grote
78bcda2d7d [index] remove grouping of author and donation fields
at the explicit request of Hans who feels strongly about it.
2022-07-17 15:57:12 -03:00
Torsten Grote
d6ce02c922 [index] Add proper test data and clean up some things for tests 2022-07-17 15:57:12 -03:00
Torsten Grote
1195ee0547 [index] Add CompatibilityChecker for determining if app is compatible with current device 2022-07-17 15:57:12 -03:00
Torsten Grote
a64f1a48ef [index] Implement verification for Index V1 2022-07-17 15:57:11 -03:00
Torsten Grote
2b5c913332 [index] Add v1 to v2 conversion 2022-07-17 15:57:11 -03:00
Torsten Grote
802deb43eb [index] First prototype 2022-07-17 15:57:11 -03:00