chiark / gitweb /
convert internal dict keys to match fdroidclient's Apk class
authorHans-Christoph Steiner <hans@eds.org>
Tue, 29 Nov 2016 12:40:21 +0000 (13:40 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Fri, 17 Mar 2017 12:55:40 +0000 (13:55 +0100)
commit6c2cf2ccdd7130a034e50f9bea481351d475a272
tree0bcca929b6752f57c8fb4ef86a7790ea7a48a90c
parentfcb7a0feb4fdc36c79cd945774ac9d3abe3184e4
convert internal dict keys to match fdroidclient's Apk class

This syncs up the field names between the fdroiddata .yml files, the keys
used in the implementation in fdroidserver, the index data format, and the
final data structures in fdroidclient.  This makes it easier for devs to
follow, and makes the Jackson parsing library automatically handle
converting the data from the index file to Java instances.

This bumps the metadata version since the apkcache will have to be
discarded.

Here are the name changes:
* apkname --> apkName
* id --> packageName
* sha256 --> hash
* version --> versionName
* versioncode --> versionCode

tests/repo/index.xml was changed only to bump the metadata version
from 17 to 18.
examples/config.py
fdroidserver/build.py
fdroidserver/install.py
fdroidserver/publish.py
fdroidserver/scanner.py
fdroidserver/update.py
fdroidserver/verify.py
tests/update.TestCase