mendhak / gpslogger

:satellite: Lightweight GPS Logging Application For Android.
https://gpslogger.app
Other
1.99k stars 609 forks source link

Milestone 132 - update SDK versions #1168

Closed mendhak closed 1 month ago

mendhak commented 1 month ago

Focusing on upgrades for now, lots of SDK and libraries are way behind. target and compile SDK need updating. FDroid and sideloading dialogs warn about this being built for an older version of Android. Jetpack also needs a minSdk of 21 as of April 2024.

Most importantly this means Android 4.x is being dropped. Well, OK, it has been 13+ years.

I am actually considering making the minimum Android 7, because this site apilevels.com indicates it's covering 97%.

Pending Intents now need to say if they're mutable or immutable. Some were mutable. Upgraded logger version, and fix parameter formatting when displayed in the log view fragment.

GpsStatus is deprecated, using GnssStatus. But since I'm still targetting older versions, I need to keep GpsStatus around. That means more if statements and potentially missed paths of testing.

I've removed the 'add to media database' code. It's unnecesary CPU cycles and I think it's meant for audio/video/image files, not text files.

Increased size of the queue for NMEA logger since it's so rapid, and the Rejection Handler should now say which thing it's rejecting.

Exact alarms are denied by default. Adjusted code, if background work (unoptimized battery) is granted, exact alarm used to schedule next point, else inexact alarm used.


1163 Update the compile/target/min SDK versions so that Google Play Protect and F-Droid stop complaining

mendhak commented 1 month ago

On Android 15 the top action bar seems to be offset. There's some new 'edge to edge' layout I need to take into account, I've been trying a lot of things I find on StackOverflow but nothing's working. What a PITA.

image

mendhak commented 1 month ago

Reinstalled the app in the emulator and it's back to normal... I'm confused now.

mendhak commented 3 days ago

v132 is now in FDroid and Releases.