Fix geo intent handling #110

Merged
Starfish merged 6 commits from maximilianovermeyer/TinyWeatherForecastGermany:master into master 2 years ago

fixes #61
Hi @starfish,

this pull request fixes the handling of geo intents. I added a missing filter in the manifest and changed the detection to regex matching, so it's less likely to fail now.
It now detects the following patterns:
geo:x.xxx,y.yyy
geo:x.xxx,y.yyy?somefurtheroptions
geo:x.xxx,y.yyy;somefurtheroptions

But I did not pay attention to the fact my pull request will contain all changesets, so there are changes in the app/build.gradle to make debugging easier when using Android studio. Furthermore, I changed build.gradle to update the Gradle plugin and replace the deprecated jcenter repository with MavenCentral.

Can you discard the unwanted changes in the gradle files when merging? Otherwise, I can try to make a clean branch. Just tell me if you need so.

Thanks for the app

Max

fixes #61 Hi @starfish, this pull request fixes the handling of geo intents. I added a missing filter in the manifest and changed the detection to regex matching, so it's less likely to fail now. It now detects the following patterns: geo:x.xxx,y.yyy geo:x.xxx,y.yyy?somefurtheroptions geo:x.xxx,y.yyy;somefurtheroptions But I did not pay attention to the fact my pull request will contain all changesets, so there are changes in the *app/build.gradle* to make debugging easier when using Android studio. Furthermore, I changed *build.gradle* to update the Gradle plugin and replace the deprecated jcenter repository with MavenCentral. Can you discard the unwanted changes in the gradle files when merging? Otherwise, I can try to make a clean branch. Just tell me if you need so. Thanks for the app Max
maximilianovermeyer added 5 commits 2 years ago

looks promising to me 👍

@arwagner what are your thoughts on this one?

@maximilianovermeyer a javadoc comment for getLocationForGeoIntent() might be helpful.

Please also see the javadoc here (updated daily).

looks promising to me 👍 @arwagner what are your thoughts on this one? @maximilianovermeyer a javadoc comment for `getLocationForGeoIntent()` might be helpful. Please also see the javadoc [here](https://tinyweatherforecastgermanygroup.gitlab.io/twfg-javadoc/) (updated daily).
maximilianovermeyer added 1 commit 2 years ago
Starfish approved these changes 2 years ago
Starfish closed this pull request 2 years ago
Starfish reopened this pull request 2 years ago
Starfish changed title from WIP: Fix geo intent handling to Fix geo intent handling 2 years ago
Starfish merged commit 13077915cd into master 2 years ago
Owner

Thanks for the improvements!

However, I will put the debug-variants back in, because

a) some debug features (e.g. optional logging to logcat) depend on them,
b) if android studio is too stupid to handle debug variants, this is not my problem :-) Btw. I do not use android studio but intelliJIdea....

Thanks for the improvements! However, I will put the debug-variants back in, because a) some debug features (e.g. optional logging to logcat) depend on them, b) if android studio is too stupid to handle debug variants, this is not my problem :-) Btw. I do *not* use android studio but intelliJIdea....
Owner

Have to revert to gradle 3.5.3, because the new version requires api 30, and the app now still targets api 29.

Have to revert to gradle 3.5.3, because the new version requires api 30, and the app now still targets api 29.

Reviewers

Starfish approved these changes 2 years ago
The pull request has been merged as 13077915cd.
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b maximilianovermeyer-master master
git pull master

Step 2:

Merge the changes and update on Forgejo.
git checkout master
git merge --no-ff maximilianovermeyer-master
git push origin master
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Starfish/TinyWeatherForecastGermany#110
Loading…
There is no content yet.