Hello,
I’m trying to submit an app to F-Droid, but I’m encountering an issue where the Categories
field in my metadata file isn’t being recognized during the fdroid lint
process.
Problem:
I’ve followed this. However, when I run fdroid lint
, it returns errors stating that the categories are not valid. It doesn’t matter what categories I use, it always gives error.
$ sudo docker run --rm -itu vagrant --entrypoint /bin/bash \ ✔
-v ~/fdroiddata:/build:z \
-v ~/fdroidserver:/home/vagrant/fdroidserver:Z \
registry.gitlab.com/fdroid/fdroidserver:buildserver
[sudo] password for mat:
vagrant@89c7c48e2a38:/$ . /etc/profile
export PATH="$fdroidserver:$PATH" PYTHONPATH="$fdroidserver"
export JAVA_HOME=$(java -XshowSettings:properties -version 2>&1 > /dev/null | grep 'java.home' | awk -F'=' '{print $2}' | tr -d ' ')
cd /build
vagrant@89c7c48e2a38:/build$ fdroid readmeta
fdroid rewritemeta com.example.journal
fdroid checkupdates --allow-dirty com.example.journal
fdroid lint com.example.journal
2024-08-19 07:19:04,970 INFO: Rewriting 'com.example.journal'
2024-08-19 07:19:05,266 INFO: Processing com.example.journal
com.example.journal: Categories 'Writing' is not valid
This is the contents of ~/fdroiddata/metadata/com.example.journal.yml:
Categories:
- Writing
License: GPL-3.0-or-later
SourceCode: https://github.com/jan-mate/Journalize
IssueTracker: https://github.com/jan-mate/Journalize/issues
Changelog: https://github.com/jan-mate/Journalize/releases
AutoName: Journalize
Summary: A fast-to-use journaling app
Description: |
Journalize is a simple journaling app. It supports markdown, tagging, and more.
RepoType: git
Repo: https://github.com/jan-mate/Journalize.git
Builds:
- versionName: 1.0.2
versionCode: 3
commit: v1.0.2
subdir: app
gradle:
- yes
AutoUpdateMode: Version
UpdateCheckMode: Tags
CurrentVersion: 1.0.2
CurrentVersionCode: 3```