76 Commits

Author SHA1 Message Date
MM20
80b1c2eb49
Implement missig SDK method 2024-06-30 16:48:11 +02:00
MM20
64bb401bd1
Ah yes, "unused resources" 2024-06-30 15:45:59 +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
Wari
96e3b74848 Translated using Weblate (Thai)
Currently translated at 100.0% (3 of 3 strings)

Translation: Kvaesitso/Plugin SDK
Translate-URL: https://i18n.mm20.de/projects/kvaesitso/plugins/plugin-sdk/th/
2024-06-07 10:49:19 +00:00
Stephan Paternotte
76620c1c9c Translated using Weblate (Dutch)
Currently translated at 100.0% (3 of 3 strings)

Translation: Kvaesitso/Plugin SDK
Translate-URL: https://i18n.mm20.de/projects/kvaesitso/plugins/plugin-sdk/nl/
2024-06-05 11:55:59 +00:00
MM20
9d5cd4a4a5
Plugin SDK: fix weather night icon 2024-05-09 17:03:57 +02:00
MM20
1d6688831c
Add managed location to weather plugin API 2024-05-03 13:02:17 +02:00
orl0pl
cc7abf42f8 Translated using Weblate (Polish)
Currently translated at 100.0% (3 of 3 strings)

Translation: Kvaesitso/Plugin SDK
Translate-URL: https://i18n.mm20.de/projects/kvaesitso/plugins/plugin-sdk/pl/
2024-04-06 01:08:40 +00:00
mvilvi
c6029bc78a Translated using Weblate (Catalan)
Currently translated at 100.0% (3 of 3 strings)

Translation: Kvaesitso/Plugin SDK
Translate-URL: https://i18n.mm20.de/projects/kvaesitso/plugins/plugin-sdk/ca/
2024-03-27 09:15:53 +00:00
Weblate
2a33ec09ff Added translation using Weblate (Bengali) 2024-03-23 08:22:56 +00:00
cat
87af66e481 Translated using Weblate (Danish)
Currently translated at 100.0% (3 of 3 strings)

Translation: Kvaesitso/Plugin SDK
Translate-URL: https://i18n.mm20.de/projects/kvaesitso/plugins/plugin-sdk/da/
2024-03-20 17:59:20 +00:00
Trond Kjetil
a3e0d4bb2c Translated using Weblate (Norwegian Bokmål)
Currently translated at 100.0% (3 of 3 strings)

Translation: Kvaesitso/Plugin SDK
Translate-URL: https://i18n.mm20.de/projects/kvaesitso/plugins/plugin-sdk/nb_NO/
2024-03-13 13:15:39 +00:00
Weblate
14595fef70 Added translation using Weblate (Norwegian Bokmål) 2024-03-12 17:49:20 +00:00
softinterlingua
9875460505 Translated using Weblate (Interlingua)
Currently translated at 33.3% (1 of 3 strings)

Translation: Kvaesitso/Plugin SDK
Translate-URL: https://i18n.mm20.de/projects/kvaesitso/plugins/plugin-sdk/ia/
2024-03-04 00:59:18 +00:00
Sérgio Marques
bd054802d3 Translated using Weblate (Portuguese)
Currently translated at 100.0% (3 of 3 strings)

Translation: Kvaesitso/Plugin SDK
Translate-URL: https://i18n.mm20.de/projects/kvaesitso/plugins/plugin-sdk/pt/
2024-02-25 11:57:20 +00:00
Weblate
a84768daa1 Added translation using Weblate (Portuguese) 2024-02-24 16:10:48 +00:00
Weblate
7f08eb2d8f Added translation using Weblate (Interlingua) 2024-02-22 14:38:48 +00:00
MM20
4577440fb1
Add default get implementation for search plugins 2024-02-10 01:11:47 +01:00
MM20
c3d8d8a632
Plugin SDK: add more comments and examples 2024-02-07 23:58:35 +01:00
MM20
34fcc7d3c0
SDK forecast: add default values 2024-02-07 23:49:38 +01:00
MM20
6c4e068fac
Fix plugin sdk visibility modifiers 2024-02-04 21:49:30 +01:00
MM20
4cb14866af
Fix plugin sdk 2024-02-04 01:10:57 +01:00
MM20
426473e397
Add API to control online search 2024-01-28 21:35:36 +01:00
summoner001
b531885fec Translated using Weblate (Hungarian)
Currently translated at 100.0% (3 of 3 strings)

Translation: Kvaesitso/Plugin SDK
Translate-URL: https://i18n.mm20.de/projects/kvaesitso/plugins/plugin-sdk/hu/
2024-01-18 17:41:15 +00:00
Weblate
d3f04adcf8 Added translation using Weblate (Malay) 2024-01-18 09:30:01 +00:00
v1s7
81b459d736 Translated using Weblate (Russian)
Currently translated at 100.0% (3 of 3 strings)

Translation: Kvaesitso/Plugin SDK
Translate-URL: https://i18n.mm20.de/projects/kvaesitso/plugins/plugin-sdk/ru/
2024-01-12 18:59:17 +00:00
iStuces
e74b67c833 Translated using Weblate (French)
Currently translated at 100.0% (3 of 3 strings)

Translation: Kvaesitso/Plugin SDK
Translate-URL: https://i18n.mm20.de/projects/kvaesitso/plugins/plugin-sdk/fr/
2024-01-12 18:59:17 +00:00
Antonis Tz
56a8978c82 Translated using Weblate (Greek)
Currently translated at 100.0% (3 of 3 strings)

Translation: Kvaesitso/Plugin SDK
Translate-URL: https://i18n.mm20.de/projects/kvaesitso/plugins/plugin-sdk/el/
2024-01-03 13:59:17 +00:00
Guillermo Villafuerte
5a44a0190a Translated using Weblate (Spanish)
Currently translated at 100.0% (3 of 3 strings)

Translation: Kvaesitso/Plugin SDK
Translate-URL: https://i18n.mm20.de/projects/kvaesitso/plugins/plugin-sdk/es/
2023-12-29 01:59:16 +00:00
MM20
25da73745f
Fix infinite recursion 2023-12-22 13:52:32 +01:00
MM20
a62593cad3
Weather provider SDK: make provider URL optional 2023-12-22 13:26:18 +01:00
MM20
211f30170c
Implement plugin weather provider 2023-12-22 01:02:13 +01:00
MM20
d80e4c66a4
Merge branch 'main' of github.com:MM2-0/Kvaesitso 2023-12-22 00:25:56 +01:00
Massimo Pissarello
c881e17c91 Translated using Weblate (Italian)
Currently translated at 100.0% (3 of 3 strings)

Translation: Kvaesitso/Plugin SDK
Translate-URL: https://i18n.mm20.de/projects/kvaesitso/plugins/plugin-sdk/it/
2023-12-21 20:59:16 +00:00
Fjuro
10d8ebeb33 Translated using Weblate (Czech)
Currently translated at 100.0% (3 of 3 strings)

Translation: Kvaesitso/Plugin SDK
Translate-URL: https://i18n.mm20.de/projects/kvaesitso/plugins/plugin-sdk/cs/
2023-12-21 20:59:16 +00:00
MM20
bba805ccd6
SDK: fix storing permission grants 2023-12-20 17:03:24 +01:00
Weblate
7f06d2d773 Added translation using Weblate (Chinese (Traditional)) 2023-12-20 10:47:46 +00:00
Weblate
fd25b8492e Added translation using Weblate (Chinese (Simplified)) 2023-12-20 10:47:39 +00:00
Weblate
507b4d7ff9 Added translation using Weblate (Ukrainian) 2023-12-20 10:47:32 +00:00
Weblate
8a54365975 Added translation using Weblate (Turkish) 2023-12-20 10:47:26 +00:00
Weblate
1258f3c413 Added translation using Weblate (Thai) 2023-12-20 10:47:19 +00:00
Weblate
7dab9a0a70 Added translation using Weblate (Swedish) 2023-12-20 10:47:13 +00:00
Weblate
983bdef4fd Added translation using Weblate (Russian) 2023-12-20 10:47:06 +00:00
Weblate
5229cdf975 Added translation using Weblate (Romanian) 2023-12-20 10:47:00 +00:00
Weblate
a2a17f8451 Added translation using Weblate (Portuguese (Brazil)) 2023-12-20 10:46:55 +00:00
Weblate
fa9022d7c4 Added translation using Weblate (Polish) 2023-12-20 10:46:51 +00:00
Weblate
c9532b2f73 Added translation using Weblate (Dutch) 2023-12-20 10:46:44 +00:00
Weblate
83a8a0a355 Added translation using Weblate (Lithuanian) 2023-12-20 10:46:38 +00:00
Weblate
2a6c9bdefc Added translation using Weblate (Korean) 2023-12-20 10:46:31 +00:00