Widget oppdaterer seg sjølv via WorkManager kvar 15. min i bakgrunnen,
og i sanntid når appen er open og mottek GPS-oppdateringar.
Oppdaterer CLAUDE.md med de-Google-kompatibilitetsprinsipp.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Konfigurerer release-signering med keystore i ~/.android/ slik at
release-APK kan bygges og distribueres direkte.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add scripts/fetch-shelters.sh: downloads Geonorge data, converts
UTM33N→WGS84 via PWA script, copies to both Android assets and
PWA public dirs
- Bundle pre-processed shelters.json (556 shelters) in APK assets
so the app works immediately on first launch with no network
- ShelterRepository.seedFromAsset(): seeds Room DB from bundled
JSON on first launch, marks as stale so network refresh is
attempted in the background
- MainActivity.loadData(): seeds from asset before trying network,
always attempts background refresh when data is stale
- Add version.properties (1.1.0, versionCode=2) as single source
of truth for versioning
- build.gradle.kts reads version from properties file and exposes
via BuildConfig
- Bump PWA version to 1.1.0 to match
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Android app (Kotlin) that locates the nearest public shelter (tilfluktsrom)
in Norway. Designed for offline-first emergency use.
Features:
- Downloads and caches all 556 Norwegian shelter locations from Geonorge
- GPS-based nearest shelter finding with distance and bearing
- OSMDroid map with offline tile caching for surroundings
- Large directional compass arrow pointing to selected shelter
- Compass sensor integration for real-time direction updates
- Shows 3 nearest shelters with distance, capacity, and address
- Toggle between map view and compass/arrow view
- Auto-caches map tiles on first launch for offline use
- Weekly background data refresh with manual force-update
- i18n: Norwegian Bokmål, Nynorsk, and English
Technical:
- EPSG:25833 (UTM33N) → WGS84 coordinate conversion
- Haversine distance and bearing calculations
- Room database for shelter persistence
- Fused Location Provider for precise GPS
- Sensor fusion (rotation vector with accel+mag fallback) for compass
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>