- 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>
27 lines
640 B
JSON
27 lines
640 B
JSON
{
|
|
"name": "tilfluktsrom-pwa",
|
|
"version": "1.1.0",
|
|
"description": "Norwegian Emergency Shelter Finder - PWA",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc && vite build",
|
|
"preview": "vite preview",
|
|
"fetch-shelters": "tsx scripts/fetch-shelters.ts",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest"
|
|
},
|
|
"devDependencies": {
|
|
"@types/leaflet": "^1.9.8",
|
|
"typescript": "^5.4.0",
|
|
"vite": "^5.4.0",
|
|
"vite-plugin-pwa": "^0.20.0",
|
|
"vitest": "^2.0.0",
|
|
"tsx": "^4.16.0"
|
|
},
|
|
"dependencies": {
|
|
"idb": "^8.0.0",
|
|
"leaflet": "^1.9.4",
|
|
"leaflet.offline": "^3.2.0"
|
|
}
|
|
}
|