-
Notifications
You must be signed in to change notification settings - Fork 804
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
play store/fdroid flavors added #1878
Conversation
app/build.gradle
Outdated
@@ -17,11 +17,13 @@ android { | |||
debug { | |||
versionNameSuffix "Version: " | |||
resValue "string", "version", "${versionNameSuffix}${defaultConfig.versionName}" | |||
resValue "string", "google_maps_key", "AIzaSyBFvrqI8_J108WntI7surDGqCUcd1RbHPQ" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refer this from a resource file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't find proper way to access string resource in gradle file . So as suggested in this article https://medium.com/code-better/hiding-api-keys-from-your-android-repository-b23f5598b906 i am adding key to gradle.properties and then accessing it in build.gradle.
app/build.gradle
Outdated
@@ -70,12 +82,13 @@ dependencies { | |||
implementation 'com.github.Triggertrap:SeekArc:v1.1' | |||
|
|||
implementation "com.jakewharton:butterknife:$rootProject.butterKnifeVersion" | |||
playstoreImplementation 'com.google.android.gms:play-services-maps:16.0.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Set versions like the rest of libraries here
@@ -1,4 +1,4 @@ | |||
package io.pslab.activity; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this activity moved out from activity package and taken out? Revert.
I checked both the APKs. I couldn't open the map view in playstore flavor and it crashes with this log
In fdroid flavor, open street map is not shown, just the brownish grid with no map. @ho-dor @AakashMallik @cweitat can you try the apks and see? |
@CloudyPadmal i uninstalled the app and reinstalled using the playstore apk, and it worked fine with me. About the OSM , i haven't modified the code of the OSM, it was not showing map before as well I think, so I thought something was wrong with OSM itself. I will check once though. |
Doesn't crash on my phone. The only problem is the OSM does not load. |
@CloudyPadmal i think I found the problem with the crash. I think you are using Android P. It is a famous issue with Android P and google has provided a solution. I will send you apk in few minutes. Hopefully it will work |
I will look into OSM. Thanks |
@CloudyPadmal try this apk. |
@cweitat @CloudyPadmal check this Fdroid apk. It's working now. Apparently OSM library has made some changes in their provider and we need to set one config constant manually to get it working like before. Let me know if it works fine. Then i will push this change with rest of the requested changes. Thanks |
@cweitat @CloudyPadmal i have made all the possible of the requested changes, i have also updated the apk in the PR message. Please check. Thanks |
Fixes #1739
Changes: play store/fdroid flavors added
Screenshot/s for the changes:
Google Map Demo
Checklist: [Please tick following check boxes with
[x]
if the respective task is completed]strings.xml
,dimens.xml
andcolors.xml
without hard-coding themstrings.xml
,dimens.xml
orcolors.xml
APK for testing:
app-fdroid-debug2.zip
app-playstore-debug2.zip