Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A few updates (bug fixes, up-to-date build, themed icon, dark mode, material UI, etc.) #74

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

fat-tire
Copy link

Here are a few changes I made to get this working well on Android 15.

Notable changes:

  • Now targets sdk 34 (not yet 35) which required setting a minSdk to 21 instead of 16. Didn't update to targeting sdk 35 as that would mean raising the minSdk to 24.
  • Updated gradle, the libraries, java to 17, etc.
  • Fixed some crashing/other bugs due to deprecations and/or new requirements for mocking location
  • Updated UI to material 3, now supports dark mode
  • added themed icon per [Feature] Support Themed Icon #72 request
  • logs to logcat
  • removed unused code and did a little lint-suggested formatting cleanup.
  • Added note that users may need to disable the wifi/bluetooth-based location sources as they may conflict with this app and cause a "bouncing" effect.

Would be nice TODO:

  • Bring fully to SDK 35 if supporting only more recent Android is okay
  • Maybe update the screenshots (?)

Anyway, feel free to use or edit all/any/no part of this PR. Cheers!

Update app version to 11/1.9.3-beta
Move minsdk update from 16 to 21 (required for some libraries)
Add required USE_EXACT_ALARM permission
ApplyMockBroadcastreceiver doesn't need to be exported apparently
I think the onDestroy() check is what's really needed.
Also remove check for older, now unsupported android.
But we still reuse the SCHEDULE_REQUEST_CODE.

This should have the result of canceling/replacing the
current pendingintent.  Using FLAG_CANCEL_CURRENT with FLAG_IMMUTABLE
results in an error.
Extract the version code manually. Dn't think this is actually used
for anything.
Don't use custom colors- just use theme defaults.

(previously added the material library)
@sisuad
Copy link

sisuad commented Dec 17, 2024

nice bro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants