113 Commits

Author SHA1 Message Date
MM20
9c5f1e971f
Improve icon search 2024-05-20 16:16:22 +02:00
MM20
a29475b485
Add hidden item badges (but don't enable them) 2024-05-03 23:50:34 +02:00
MM20
b5aa35ed70
Unblocklist spotify custom actions 2024-05-03 11:13:45 +02:00
MM20
a86c400a30
Fix NPE 2024-05-01 01:02:11 +02:00
MM20
ee83b87f39
Reset search filters when query is cleared 2024-04-21 20:30:55 +02:00
MM20
9b29696757
Add extended filter view 2024-04-21 17:29:28 +02:00
MM20
fcf6578450
Hiding an item no longer removes it from favorites and vice versa 2024-04-21 01:49:09 +02:00
MM20
58ebd5646b
Add search filters 2024-04-21 01:30:33 +02:00
MM20
b323953a75
Merge themed icon and icon pack themed icon preference 2024-04-20 14:05:48 +02: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
7fedb154bf
Allow setting plugin package icon via metadata 2024-02-04 01:23:02 +01:00
MM20
426473e397
Add API to control online search 2024-01-28 21:35:36 +01:00
MM20
6989c90fbe
Use internal cache dir as temporary backup dir 2024-01-19 23:04:54 +01:00
MM20
8d490b3c05
Bump backup format version number 2024-01-19 22:33:45 +01:00
MM20
92ddc75060
Refactor preferences module 2024-01-19 22:29:37 +01:00
MM20
1e8a4e1554
Fix notification badges
Close #657
2024-01-05 22:15:40 +01:00
MM20
35ff1bce1a
Add weather plugin specific settings 2023-12-29 17:50:55 +01:00
MM20
f2cb92dd2b
Remove Microsoft integration for good
Close #583
2023-12-23 17:00:33 +01:00
MM20
a4aa4120de
Remove plugins permission 2023-12-18 16:59:58 +01:00
MM20
cb7f6b6693
Implement custom permission system for plugins 2023-12-18 16:51:48 +01:00
MM20
d13ca6cd6c
Auto refresh plugin list after granting plugin permission 2023-12-11 14:12:16 +01:00
MM20
fced1bc14e
Allow plugins to override their own name using meta data (instead of the app name) 2023-12-10 18:54:15 +01:00
MM20
2070a25c7e
Add plugin error message if a plugin is not working 2023-12-10 17:21:04 +01:00
MM20
2479fdbc03
Move badge settings to decentralized data store, add preference for plugin badges 2023-12-07 22:44:41 +01:00
MM20
0f6d636ca0
Add plugin badges 2023-12-07 20:56:57 +01:00
MM20
a94cc2ae01
Add file plugin settings screens 2023-12-03 19:44:26 +01:00
MM20
4c3b491a08
Remove unused field 2023-11-25 21:09:55 +01:00
MM20
966d43d4d1
Migrate file search settings to decentralized json data store 2023-11-25 18:54:27 +01:00
MM20
25cd9b707e
Group plugins by package 2023-11-25 16:29:20 +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
47cf4e9483
Refactor backup/restore
Close #575
2023-10-28 17:15:04 +02:00
MM20
c9d9b3a4e9
Fix Koin definitions 2023-10-28 15:50:49 +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
MM20
d797263c0a
Don't unpin shortcuts when they are unavailable 2023-10-13 15:03:01 +02:00
MM20
2d5a0bf5a7
Modernize gradle scripts, migrate to TOML version catalog 2023-10-05 21:54:19 +02:00
MM20
9b2529acb4
Version 1.27.1 2023-09-08 18:24:38 +02:00
MM20
c7f8f31d73
Don't log when themed icon compat parsing fails 2023-09-08 18:23:36 +02:00
MM20
a0ee1fbc9f
Include providers and transformations in icon cache hash 2023-08-29 23:08:13 +02:00
MM20
ff7a72f7c4
Add color scheme backup / restore 2023-08-26 18:52:35 +02:00
MM20
cfbb4e786c
Fix crash 2023-08-20 21:15:11 +02:00
MM20
24997b8dcc
Fix custom icons not updated immediately 2023-08-06 14:14:10 +02:00
MM20
1241067357
Optimize icon loading 2023-07-20 19:40:00 +02:00
MM20
fee45590d1
Use compat adaptive icons for themed icon packs 2023-07-15 18:29:52 +02:00
MM20
484ae13025
Adjust themed icon scale
Close #467
2023-07-15 18:10:10 +02:00
Jamal Rothfuchs
f6612c3ed3 Scale Themed icons to original app icon size 2023-06-24 22:11:41 +02:00
MM20
e350e0f640
Remove MS SDK dependency 2023-06-23 16:37:29 +02:00
MM20
2806032b48
Add support for dynamic clock icons in icon packs 2023-05-25 21:17:42 +02:00
MM20
ad3e19ce0d
Remove placeholder icons, use as fallback only 2023-05-16 17:20:26 +02:00