tilfluktsrom/pwa
Ole-Morten Duesund d0460cd686 Bundle shelter data in APK and add shared versioning
- 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>
2026-03-08 18:33:38 +01:00
..
public Add progressive web app companion for cross-platform access 2026-03-08 17:41:38 +01:00
scripts Add progressive web app companion for cross-platform access 2026-03-08 17:41:38 +01:00
src Add progressive web app companion for cross-platform access 2026-03-08 17:41:38 +01:00
tests Add progressive web app companion for cross-platform access 2026-03-08 17:41:38 +01:00
.gitignore Remove build artifacts and add .gitignore for PWA 2026-03-08 17:41:55 +01:00
bun.lock Add progressive web app companion for cross-platform access 2026-03-08 17:41:38 +01:00
index.html Add progressive web app companion for cross-platform access 2026-03-08 17:41:38 +01:00
package.json Bundle shelter data in APK and add shared versioning 2026-03-08 18:33:38 +01:00
tsconfig.json Add progressive web app companion for cross-platform access 2026-03-08 17:41:38 +01:00
vite.config.ts Add progressive web app companion for cross-platform access 2026-03-08 17:41:38 +01:00