87 Commits

Author SHA1 Message Date
MM20
8b4c3c10ca
Version 1.34.1 2024-12-24 11:26:45 +01:00
MM20
d565da1492
Version 1.34.0 2024-12-05 18:57:43 +01:00
MM20
a868fe36cf
Version 1.33.1 2024-09-03 17:00:52 +02:00
MM20
f862c109a4
Version 1.33.0 2024-08-17 00:20:11 +02:00
MM20
8bb2184818
Make string translatable 2024-08-17 00:07:52 +02:00
MM20
d2b134bfd2
Version 1.32.2 2024-07-24 20:56:37 +02:00
MM20
8ae5fdfcda
Version 1.32.1 2024-07-22 20:54:09 +02:00
MM20
b1381b9571
Version 1.32.0 2024-07-19 23:24:05 +02:00
MM20
5a28eb584e
React to changing profile availability 2024-07-07 14:29:42 +02:00
MM20
54c38378f1
Version 1.31.2 2024-07-03 23:17:54 +02:00
MM20
9424663dac
Version 1.31.1 2024-07-01 00:15:27 +02:00
MM20
787a17a325
Version 1.31.0 2024-06-30 20:18:52 +02:00
MM20
7ff161308b
More compose view implementations 2024-06-26 19:33:30 +02:00
MM20
f6dfddedb2
Remove unused resources 2024-06-14 15:23:37 +02:00
Christoph
65a9c8c1fe
Add support for location plugins (#772)
* Cherry pick location refactor

* Refactor :data:openstreetmaps to :data:locations

* contract, plugin sdk

* Implement serialization, module tweaks

* Include check for out-of-date departures in SearchableItemVM.requestUpdatedSearchable()

* settings for location plugins

* Try not to be too lazy

* more fiddling with the plugin SDK

* add departures in MapView with mock data for debug builds

* change icons

* add boats

* animate departure lazycolumn

* Add MarqueeText for text overflow handling

* Define height for Departures in case there is no map to display

* Don't inclure railway / highway tags for OSM since there will be location plugins for that

* sort by time

* - Apply pre-merge changes to LocationSettings
- Add banner warning about slowed down location search for large search radii

* ditch `showLocationOnMap`

* LocationItem: make `showOpeningSchedule` toggleable

* LocationItem: make Navigation AssistChip work for people that don't have google maps installed

* LocationItem: resolve TODOs

* MapTiles: ditch unused code, animate userIndicator

* Reintroduce departure list

* Add LineColor

* Add osm tag `stars` as `userRating` https://taginfo.openstreetmap.org/keys/stars#overview

* typealias -> import

* Don't add Navigation Chip when there is no way to resolve navigation intents

* Add settings migration

* Set plugin SDK version to 1.2.0-SNAPSHOT

* Deduplicate shared plugin classes, use kotlinx.serialization

* Fix imports

* Use ZonedDateTime for depature times

* Add more line types

* Rewrite location serialization

* Replace street/houseNumber with address

* Add attribution field

* Add plugin config

* Reject location search requests without lat lon parameters

* Add default values to plugin location class

* Don't crash if column value is null

* Add docs comments to LocationCategory values

* Refactor OpeningSchedule as polymorphic

* remove dead corpse *ahem* code

* Split LocationCategory into category and icon

(Also update to Kotlin 2.0, please don't do this at home)

* Add more location icons

* Fix (?) location deserializer

* Add more location icons

* More icons

* Meh

* Add Pub

* Disable Github Maven repo if credentials are missing

* Add location search specific settings to plugin details screen

* Add language parameter

* Unbreak the build

* Refactor plugin SDK (with breaking changes)

* Set plugin SDK version to 2.0.0-SNAPSHOT

* Document SDK breaking changes

* Implement LocationProvider.getQuery

* Add a typesafe cursor API

* Oops I did it again

next time maybe check if the code is actually compiling before pushing

* Add missing return statement

* Fix list serialization

* Departure time UI adjustment

* Use typesafe cursor for weather plugins

* Add userRatingCount and emailAddress fields

* grrr

* Rename and extend LineTypes

* Add default lineType to Departure to fix serialization errors

* Fix refreshing stored plugin locations

* Adapt line name column width to available departures

* Fix plugin settings screen category overlap

* add LocationItem.GenericTransit

* Fix crash during deserialization of locations

* Update SDK docs

* Replace plugin "official" mark with "verified developer" mark

before anyone gets sued

* show 'now' when departure is in less than one minute

* Add typesafe Bundle API

* Implement plugin API changes

* Plugin SDK: Fix refresh result not being returned

* Update docs

* apply alpha to departures that have departured

* better (maybe): reduce saturation instead of alpha

* Add default values for Attribution

* Display attribution

* Rearrange location result layout

* Reduce searchable update interval to 1 minute

* Pass last update time to refresh function

* Change refresh path and ensure that timestamp is only update when the item was updated

* categorize osm location

* Update docs

* Optimize location search

- run providers in parallel
- flatten code

* add experimental address parsing for OSM

* add poi_category_townhall

* Fix popup closing when favorites items are updated

* Revert "Fix popup closing when favorites items are updated"

This reverts commit fc517fd066c7f8109b6d6df2d4f536af66398207.

* Fork AndroidAddressFormatter to `:libs:address-formatter`

* migrate `:libs:address-formatter` dependencies to version catalog and update them

* also consider addr:{suburb,hamlet} for `Address.city` if city tag is missing

* Move poi strings back to strings.xml

* Update Jetpack Compose

* Move address-formatter back to its original package, add license and readme

* Move address-formatter back to its original package

---------

Co-authored-by: MM20 <15646950+MM2-0@users.noreply.github.com>
2024-06-14 11:57:03 +02:00
MM20
8875f6922b
Search result design adjustments 2024-05-16 23:01:49 +02:00
MM20
9b252cb5e8
Version 1.30.4 2024-05-10 13:55:01 +02:00
MM20
6b31817eeb
Version 1.30.3 2024-05-09 18:16:53 +02:00
MM20
055a08800e
Revert "Disable DEPENDENCY_INFO_BLOCK"
This reverts commit 5a7f7efab8360910f88e39001e73b58966ce4203.
2024-05-09 18:14:36 +02:00
MM20
ff94d9656a
Version 1.30.2 2024-05-08 22:21:58 +02:00
MM20
f50edcf402
Version 1.30.1 2024-05-08 21:58:37 +02:00
MM20
d7b50affc5
It's been so long, I forgot how to prepare releases 😭 2024-05-07 00:41:17 +02:00
MM20
f349dbdfb6
Version 1.30.0 2024-05-07 00:12:38 +02:00
MM20
2cd4097b1d
Make debug builds non debuggable 2024-03-29 16:29:40 +01:00
MM20
5a7f7efab8
Disable DEPENDENCY_INFO_BLOCK 2024-03-26 21:52:43 +01:00
MM20
38ec6a16c6
Remove WRITE_CONTACTS permission 2024-03-26 21:51:57 +01:00
Christoph
cba387c832
Add OSM search provider (#611)
* add openstreetmaps module in data

* fix injection

* retrofit2 implementation

* tokenization

* partial rewrite of OpeningTime.fromOverpassElement

* finish rewrite of OpeningTime.fromOverpassElement

* fix merge x)

* configurable search radius

* add settings section and disable setting explicit timeout values for http-client to alleviate issues during debugging

* settings screen localization

* enable radius slider only when locations are enabled

* fix dayRange parsing, add barebones UI

* add files to git

* add location listener in SearchableItemVM that gets activated by LocationItem

* add heading listener

* Calculations, UI additions

* rename settings to LocationsSettings

* use android location library for bearing calculations

* location fix

* rotation fix, demo UI

* working buttons for launching map and website (if available)

* finish botched UI

* improve overpass query by utilizing regex for fuzzy search results

* add link to documentation for further reference

* localization comments

* remove wikipedia minification setting

* schema version, default radius 1.5km

* move osm-specific opening-time parsing to OsmLocation

* refactor with callbackFlow

* remember flow and set minimum distance update to 1m

* refactor for replacementIcon, add imperial unit option

* 'open until' UI fix

* implement serializers

* catch errors in deserializer

* hacky live sorting by distance

* give max priority to bestmatch determined by SearchVM

* add yards as additional step to metersToLocalizzedString

* move http-client from serializers of osmlocation to companion object for cache updating

* add setting for custom URL

* round yards to int

* add botched map preview

* unbotch map tiles, draw user location in map (proof of concept)

* - create MapTiles Composable
- add border around map
- add indicators for location and userlocation, when on map

* fix default imperial units setting

* fix tint color

* add OSM attribution string

* display loading animation when tiles can't be shown yet

* create compose preview of maptiles

* UI work

* being glad that API's just return null instead of throwing information

* tryStartActivity

* aniimate card row placement

* Text alignment, padding

* Rotation -PI/PI wrap fix

* fix direction arrow rotation when screen is upside down

* more icons

* icons, settings, localization
- consider other tags than "amenity" when determining location category
- add many more location categories with corresponding icons
- add settings to disable map theming and hide search results with
  LocationCategory.OTHER
- add default localizations for settings

* catch errors when deserializing location category

* move location and heading functions to Context.kt in extensions

* fix hideUncategorized criterion

* add pre-sorting by distance for location results in SearchVM by injecting Context into search()

* specify receiver parameters in ktx.Context lambdas

* move pose logic and context dependency to new module devicepose with DevicePoseProvider

* git, add the frickin' module

* search overpass for nodes and ways
include category for parcel_locker
already start searching for queries extending length 2

* make openingTimes immutable

* OsmRepository changes
- include telephone number
- don't try to repeatedly update cache if there is no value to be
  updated to
- deduplicate results with same label by category and distance (100m)
- include fixmeurl to point to openstreetmaps.org/fixthemap

* ask for center in overpass API to compute center coordinates of ways

* search for brand

* add chemist location category

* restaurant / fastfood icon shenanigans

* actually add the icons :|

* add leisure tag for leisure:fitness_centre

* return to 'open until'/'opens in'/'open next'

* adding missing UI features
- bug report dialog
- call button if phone number exists
- grid item popup

* refactor to handle 24/7 locations more comfortably

* hide hours in 'opens_in' when they are zero

* show maptiles such that user is always in view

* drawing adjustments

* cache previous zoom level to speed up tile coordinate calculations

* using remember

* using MutableIntState

* fix logic that determines whether tiles are loading

* fix for numTiles == 9

* one plus one is two plus one makes three quick maths

* animate user location indicator, remember calculations

* fix off by one when determining next opening hour

* second attempt to fix upside down arrow rotation (probably fine now)

* logging

* reconsider declination, inject samplingPeriod

* undoing the merge undo

* move localization string to i18n

* revert reordering by distance

* refactor .distanceTo

* make Location abstract class to override compareTo with cached distance to correct sort order in search results

* when it is if when you could use when

* replace Pair with dataclass

* condition check order

* not creating objects with undefined locations, removing suspend from getCategory()

* inject permissionsmanager as constructor parameter

* Store OSM settings in decentralized datastore

* Update searchable content in database on launch

* Refactor, add mechanism to load updated searchable data lazily

* Cache all OSM data in launcher database

* Add pin to favorites button to location results

* Add sealed class UpdateResult
that is returned by awaiting updatedSelf of DeferredSearchable

- update on success
- set flag on temporarily unavailable (TODO add some UI indication)
- delete and invalidate VM on permanently unavailable (Display some
  message window to user?)

* Move sorting of Locations from OsmRepository
to SearchVM using cached location in DevicePoseProvider, if available

* make use of cached location in code

* make use of DevicePoseProvider in WeatherRepository

* inject via koin

* increase getLocation().timeout() to 10 minutes since we are asking for locations only every hour, so 10 minutes seem reasonable (?)

* poll new location every time

* add icon for cached results where results are temporarily unavailable

* Refactor DeferredSearchable to UpdatableSearchable
that receives a closure to retrieve an updated self.

- moved timestamp (formerly `updatedAt`) to UpdatableSearchable
- moved logic whether to update searchable to `requestUpdatedSearchable`
  in SearchableItemVM, which gets triggered every time the details of
  the item are shown
- keep track in SearchableVM whether we should retry updating, possibly
  bypassing a timestamp value that is not old enough
- show toast upon permanently unavailable
- animate "cached_searchable" icon
- make "cached_searchable" icon clickable to show toast explaining the
  situation

* logging on PermanentlyUnavailable

* refactor OsmRepository.update()

* MapTheming adjustments. There is now darkmode, hooray!

* remove outdated comment

* code tidying

* remove unnecessary LaunchedEffect

* make outdated badge only clickable when actually outdated

* deserialize opening schedule

* set deserialized props to null if strings are blank

* also consider contact:* tagging scheme for website & phone

* tweaks

* git add Result.kt

* don't search for locations if network is not allowed

* merge fixes

* Move location search settings to preferences module

* Change wording and order of location search preferences

* Limit location search results

* Order location search results by distance

* Use a sequence

* Android Studio's suggestion wasn't as fleshed out as one would hope

* Add proguard rules

* Rename TileMapRepository to MapTileLoader

---------

Co-authored-by: MM20 <15646950+MM2-0@users.noreply.github.com>
2024-03-26 19:06:19 +01:00
MM20
cc1a27fc37
Version 1.29.1 2024-02-21 18:34:18 +01:00
MM20
22b1e14c11
Version 1.29.0 2024-02-20 22:17:36 +01:00
MM20
a4aa4120de
Remove plugins permission 2023-12-18 16:59:58 +01:00
MM20
e7ae751340
Add plugin settings screen 2023-11-06 19:30:41 +01:00
MM20
801caf9dd6
Plugins: bringup 2023-11-05 19:02:59 +01:00
MM20
557aa9fc88
Merge branch 'main' of github.com:MM2-0/Kvaesitso 2023-10-28 17:17:06 +02:00
MM20
47cf4e9483
Refactor backup/restore
Close #575
2023-10-28 17:15:04 +02:00
MM20
e3005cf051
Move database module from :core to :data 2023-10-28 14:20:36 +02:00
MM20
957358c79a
Annual refactor 2023-10-28 14:20:16 +02:00
Sir-Photch
9f6f17b9b7 only reset bestMatch when searchquery is empty 2023-10-28 13:56:48 +02:00
MM20
ea031068a7
Version 1.28.0 2023-10-13 16:54:53 +02:00
MM20
2d5a0bf5a7
Modernize gradle scripts, migrate to TOML version catalog 2023-10-05 21:54:19 +02:00
MM20
633cc0214d
Add logging to shortcut pin request handler 2023-10-02 10:54:51 +02:00
U. N. Owen
8eb94ca9c6
Add android:resizeableActivity="true" 2023-09-17 17:13:46 +02:00
MM20
9b2529acb4
Version 1.27.1 2023-09-08 18:24:38 +02:00
MM20
8d900891bc
Version 1.27.0 2023-08-27 16:15:34 +02:00
MM20
d10fd4302f
Don't obfuscate nightly builds 2023-08-27 12:30:46 +02:00
MM20
b0db1707a5
Custom color schemes v2 - Part 1
Add data structures and theme editor
2023-08-21 23:43:45 +02:00
MM20
3a1c5a49ee
Don't forget half the commit 2023-08-09 21:23:20 +02:00
MM20
299dce757f
Enable support for Android 13 per-app language preferences
Close #479
2023-08-09 20:57:57 +02:00
MM20
dc376b9321
Version 1.26.4 2023-07-12 21:06:08 +02:00
MM20
f99c404e7c
Version 1.26.3 2023-07-12 18:51:38 +02:00
MM20
175af58f85
Version 1.26.3 2023-07-12 18:49:37 +02:00