You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2.3 KiB
2.3 KiB
HikeMap APK Generation Instructions
Quick Solution: Use PWA2APK.com (Recommended)
The current APK in the repository won't install because it's not properly compiled. To create a working APK quickly:
Steps:
-
Go to PWA2APK.com
- Visit: https://www.pwa2apk.com
-
Enter Your PWA URL
- URL:
https://maps.bibbit.duckdns.org - Click "Start"
- URL:
-
Configure Settings
- App Name: HikeMap Trail Navigator
- Short Name: HikeMap
- Package ID: org.duckdns.bibbit.hikemap
- Leave other settings as default
-
Generate APK
- Click "Generate APK"
- Wait for processing (usually 1-2 minutes)
-
Download APK
- Download the generated APK file
- This APK will be properly signed and ready to install
Why the Current APK Doesn't Work
The APK currently in the repository (output/hikemap.apk) was generated using a simple Python script that creates a basic ZIP structure. However, Android APKs require:
- Compiled DEX bytecode (
classes.dex) - The Python script didn't compile any Java code - Digital signature - The APK isn't properly signed with a certificate
- Compiled resources (
resources.arsc) - Android resources must be compiled - Binary XML - Android requires compiled XML, not plain text XML
Alternative: Local Build (Advanced)
If you want to build locally, you need:
- Android SDK installed
- Java JDK 17 or higher
- Bubblewrap CLI or Android Studio
The Docker build process is set up in build-tools/ but requires significant download time for dependencies.
Temporary Solution
Until a proper APK is built, users can:
- Use the PWA directly - Visit https://maps.bibbit.duckdns.org on Android
- Add to Home Screen - Chrome/Firefox will create an app-like shortcut
- Wait for PWA2APK - Use the service above to generate a proper APK
Next Steps
- Generate a proper APK using PWA2APK.com
- Replace the invalid APK in the repository
- Update the release with the working APK
- Test on multiple Android devices
Testing the APK
Once you have a proper APK:
- Enable "Install from unknown sources" in Android settings
- Download the APK to your phone
- Open the APK file
- Follow installation prompts
- Grant location permissions when requested
The app should then work as a native Android application with full PWA capabilities.