Expand description
Fdroid
Create and manipulate an fdroid repository.
If you want to edit the metadata of a specific package, see metadata for the structs. If you want to configure the repository, see Config. If you want to edit an app, see App.
All of these structs can be centrally edited using the methods of Repository.
Quickstart
For an in-depth documentation, go to Repository.
Create a new repository
let repository = Repository::new(repository_path).unwrap();
repository_path
has to be a valid path pointing to an empty directory or an already existing repository.
If the repository does not exists, it will create a new one.
Get all current apps
let apps = repository.apps().unwrap();
Upload a new app
repository.add_app(&app_path).unwrap();
External Dependencies
- fdroidserver
For working with the repository itself - android-sdk-build-tools
Uses aapt for extracting metadata from apks
Logging
This crate uses the log crate to log all write changes.
Modules
Structs
- DTO for a single app.
- Configuration Data for the Repository
- DTO for a specific version of a single app (So mostly an apk).
- The main struct of this crate.