A minimal project (based on capacitor) to package MapComplete into an Android app https://app.mapcomplete.org
Find a file
2025-04-29 00:56:43 +02:00
app Fix signing config 2025-04-29 00:56:43 +02:00
capacitor-android/capacitor Remove unneeded files 2025-02-17 00:38:14 +01:00
capacitor-cordova-android-plugins Attempt to fix fdroid build 2025-02-13 19:26:18 +01:00
gradle/wrapper First working version 2024-11-11 23:00:13 +01:00
metadata/en-US Add metadata 2025-02-17 01:30:00 +01:00
.gitignore Attempt to fix fdroid build 2025-02-13 19:26:18 +01:00
.gitmodules First somewhat working version 2024-11-11 22:07:49 +01:00
build.gradle Get bridge working, get geolocation working 2024-12-12 00:44:27 +01:00
capacitor.settings.gradle Merge develop 2025-04-17 02:09:56 +02:00
gradle.properties First working version 2024-11-11 23:00:13 +01:00
gradlew First working version 2024-11-11 23:00:13 +01:00
gradlew.bat First working version 2024-11-11 23:00:13 +01:00
LICENSE Initial commit 2024-11-05 12:42:13 +00:00
README.md Attempt to get FDroid build working 2025-02-17 00:33:27 +01:00
settings.gradle First working version 2024-11-11 23:00:13 +01:00
variables.gradle Attempt to get back button working 2025-01-11 02:48:14 +01:00

android-wrapper-capacitator

All the tooling and scripts needed to package the mapcomplete.org webapp into an Android shell.

Please, report bugs in the main MapComplete repository

To update on F-Droid

(These are notes for the maintainer)

  • To update "capacitor-android", copy the 'android'-directory from "(mapcomplete repo)/node_modules/@capacitor/android" into the adroid repo root The path should be linked in capacitor.settings.gradle

  • In the fdroiddata-repostiroy, open metadata/org.mapcomplete.yml

  • Update the version number to match the MC release

  • Bump the CurrentVersionCode with one

Then, test the build (instructions adapted from FDroids quick start guide):

  • Go to the fdroidserver rep in a terminal
  • Start the container with:
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

In the container, run:

. /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
fdroid readmeta
fdroid rewritemeta org.mapcomplete
fdroid checkupdates --allow-dirty org.mapcomplete
fdroid lint org.mapcomplete
fdroid build org.mapcomplete