Commit Graph

164 Commits

Author SHA1 Message Date
Olof Hedman
34a2854d69 Delete some files that are no longer used 2025-09-24 16:47:55 +02:00
Olof Hedman
b98a12abe0 DetailDialogsShell (finally!) platform independent and moved to shared 2025-09-24 16:45:12 +02:00
Olof Hedman
ed3cf0e56a Move last usages of Toast to use new UiFeedback.showMessage 2025-09-24 16:32:16 +02:00
Olof Hedman
642e546a09 Location refactor compiles and seemingly works
Location updates now handled in a more compose friendly way via StateFlow
Lots of small changed in MainActivity and DetailDialogShell to make them platform independent
Add new platform apis for openUrl, openMap (AppNavigator)
Add Platform independent OutboxScheduler
Try to clean up event handling of FoundEvents and location updates (need more cleanup)
New wrapper for handling App Context in shared (could be used to clean up integration further)
2025-09-24 16:23:38 +02:00
Olof Hedman
0d1e54fcd8 WIP: Add new location service, disable old.
Note: this commit does not compile
2025-09-24 10:02:50 +02:00
Olof Hedman
7e9973c773 Migrating to using wrapper MapContainer instead of Google Maps directly 2025-09-23 16:48:40 +02:00
Olof Hedman
3bac1638ad Refactored and cleaned up Auth integration 2025-09-23 14:50:47 +02:00
Olof Hedman
4e9b5b34c7 Fix crash in GoogleMaps component due to new maps library version 2025-09-23 14:50:06 +02:00
Olof Hedman
5d8d620811 Fix crash in NearbyDialog due to missing screen height 2025-09-23 14:49:01 +02:00
Olof Hedman
d9eef1338a Fix a crash in old MapDialog introduced due to updated google maps sdk 2025-09-23 12:35:27 +02:00
Olof Hedman
05bab442bf Add a platform independent MapContainer that can be called from shared ui
Wraps Google Maps on both Android and iOS
Also bumps targetSDK to 36 because it was required by the library.
2025-09-23 12:34:49 +02:00
Olof Hedman
b25050dab7 Move CommonDialogsShell.kt to :shared 2025-09-22 19:39:29 +02:00
Olof Hedman
e5e6413699 Move Api.kt to :shared, all net now in :shared
Also introduce platform independent ImageRead in :shared
2025-09-22 19:29:52 +02:00
Olof Hedman
ac1f57a46d Move NoteCache and Geocache to :shared 2025-09-22 18:44:29 +02:00
Olof Hedman
16bc6e61c5 Use AuthShared in Api.kt for future compatibility with commonMain 2025-09-22 18:43:22 +02:00
Olof Hedman
08f12fee24 Move most of net to shared, use AsyncImage for url loaded images
Introduce BuildKonfig to be able to have KMP build config
Preparing DialogShells to be moved to shared (not possible to move yet)
2025-09-22 16:19:23 +02:00
Olof Hedman
61fa43ff2c Move stores using SharedPrefs to :shared and use KvPrefs instead 2025-09-22 16:19:23 +02:00
a73f475957 Initial commit. Tabeller och kolumner som finns, eller bör finnas. 2025-09-21 02:48:30 +02:00
Olof Hedman
dd7af850d2 Merge branch 'ios-google-signin' 2025-09-20 16:41:41 +02:00
Olof Hedman
cf3c8db1e5 UnitFormat android implementation that follows locale on device 2025-09-20 16:39:48 +02:00
Olof Hedman
0d596a6182 Add UnitFormat ios implementation 2025-09-20 16:39:27 +02:00
Olof Hedman
80bb61e60f Add missing KLog ios implementation 2025-09-20 16:38:44 +02:00
Olof Hedman
5696e1f950 Merge branch 'main' into ios-google-signin 2025-09-20 16:02:19 +02:00
e0240f44b5 Move ImageViewerDialog to CommonDialogsShell; use existing UI shells from app.klottr.ui
Remove unused local FornsokDialog/DmDialog/fetchBitmapFromUrl duplicates from MainActivity
2025-09-20 01:34:08 +02:00
21c05cfad4 Use shared NearbyBundle for Nearby results; replace Triple in Android 2025-09-20 01:06:16 +02:00
2bfec2d737 Split dialog shells into ui/; move image fetchers to app.net; use shared LastLocationStore; clean imports
- Move Nearby/Username/About shells to app.klottr.ui.CommonDialogsShell
- Move Wiki/Fornsok/DM shells to app.klottr.ui.DetailDialogsShell
- Extract fetchWikiThumbBitmap to app.klottr.net.WikiThumb
- Add app.klottr.net.HttpImage (fetchBitmapFromUrl) and use it from DM dialog
- Switch detail dialogs to LastLocationStore.lastKnown (GeoPoint) from shared API
- Remove unused imports from MainActivity
2025-09-20 00:18:24 +02:00
8580ff198c Remove unused declarations; fix KMP expect/actual and SettingsStore duplicates
- Safe-delete unused declarations across app/ and shared/
- Optimize imports
- KMP: align expect/actual for formatRelativeOrTime(ms: Long) and update callers
- SettingsStore: remove duplicate wrapper functions causing overloads
2025-09-19 14:40:54 +02:00
f73e11078b Share open models: move OpenKlotter/OpenWiki/OpenFornsok to :shared and update Android imports 2025-09-19 13:27:19 +02:00
8e7d7315b0 Rename Android root composable to KlottrAppShell to reflect shared-driven UI 2025-09-19 13:06:25 +02:00
5b9f18f405 Share Username dialog body; make BasicTextField cursor visible in dark mode
- New: shared/ui/UsernameDialogContent.kt (material-free)
- Android: use UsernameDialogContent for title/message/input; keep platform buttons
- Fix: pass cursorColor (Material color) to shared content so caret is visible in dark theme
2025-09-19 12:57:39 +02:00
cc07e892ec Share Nearby dialog container and fix night-mode text in detail dialogs
- New: shared/ui/NearbyDialogContent.kt (material-free container for dialog body)
- Android: use NearbyDialogContent in NearbyDialog; keep AlertDialog shell only
- Fix: pass MaterialTheme colors to Wiki/Fornsok/DM detail contents (title/body/caption) so text follows light/dark mode
2025-09-19 00:02:53 +02:00
793419893a Share login-required content; use shared composable in Android dialog 2025-09-18 23:29:19 +02:00
9da472fd2d Share About content: add material-free KlottrAboutContent; use it inside Android AlertDialog 2025-09-18 23:18:05 +02:00
32afeb5a31 Simplify Nearby flow: store results as Triple and feed dialog directly; remove unused Android lists 2025-09-18 23:02:03 +02:00
a9b6d18611 Share home UI: add material-free KlottrHomeContent and use it from Android
- New: shared/ui/KlottrHomeContent.kt (material-free; header/footer slots)
- Android: replace Scaffold body Column with KlottrHomeContent(); keep AppBar and dialog shells
- Fix: add dp import in shared; use weight(1f) for center area so Login/Logout footer stays visible
- No behavior change; prepares moving root towards :shared
2025-09-18 22:32:43 +02:00
f0d9f8ef2e Rely on shared FoundContent for empty state; simplify MainActivity 2025-09-18 21:17:51 +02:00
ee440e3ffb Share DM/Wiki/Fornsok detail UI (material-free); Android keeps only dialog shells 2025-09-18 20:00:11 +02:00
eb23694091 Detail access via shared rule: integrate decideDetailAccess in KlotterDialog and fix blockedText nullability 2025-09-18 18:48:13 +02:00
722763fccb Detail formatting to shared: use buildFoundDetailStrings in KlotterDialog (millis→strings via commonMain) 2025-09-18 16:45:59 +02:00
cf049bade1 Shared detail UX: make image clickable in FoundDetailContent (use onImageClick via Modifier.clickable) 2025-09-18 16:17:05 +02:00
061beaaa84 Move detail body to shared CMP: add FoundDetailContent and integrate in MainActivity (preserve image click, keep Android actions) 2025-09-18 16:08:20 +02:00
fbae61eb16 Move unit formatting to :shared: add expect/actual formatRelativeOrTime, port formatCoords/formatDistance to commonMain (JVM-free), remove app UnitFormat + TimeFormat files, update SettingsContent to use shared formatter 2025-09-18 14:48:57 +02:00
fd1afcbb55 Logging cleanup: delete AppLog.kt and enable KLog via BuildConfig in MainActivity 2025-09-18 14:12:15 +02:00
8c9bf5f5f5 Replace AppLog with shared KLog across app module


2025-09-18 13:04:13 +02:00
42c1f6311d Cleanup Nearby: remove legacy states/imports and avoid entries shadowing in NearbyDialog 2025-09-18 12:43:42 +02:00
Olof Hedman
14e94bfc8e Correct initialisation of UIKit scene and fix for forced compatibility mode 2025-09-17 14:22:52 +02:00
Olof Hedman
9e367105bb Renamed Google Auth implementation for iOS 2025-09-17 14:21:17 +02:00
Olof Hedman
ce2c96daa7 Increase java heap for gradle (got oom when compiling xcframework) 2025-09-16 16:44:37 +02:00
Olof Hedman
2eed4d56ac Main UI in Shared (KlottrRoot.kt) that also work on iOS 2025-09-16 16:33:52 +02:00
Olof Hedman
d0046646fc Manual Info.plist with app id:s for google signin 2025-09-16 13:41:02 +02:00