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

Allow Specifying a different version for base and maps on android #2587

Merged
merged 11 commits into from
Jan 8, 2019

Conversation

Titozzz
Copy link
Contributor

@Titozzz Titozzz commented Nov 15, 2018

Does any other open PR do the same thing?

No

What issue is this PR fixing?

#2584

How did you test this PR?

This allows android to specify a custom version for
com.google.android.gms : play-services-maps
and
com.google.android.gms : play-services-base
by specifying

	googlePlayServicesVersion = "16.0.1"
    googlePlayServicesAuthVersion = "16.0.1"// this is how react-native-google-signin does 
    googlePlayServicesMapsVersion = "16.0.0"

for example I had to use 16.0.1 for base but maps does not exist for that version
https://mvnrepository.com/artifact/com.google.android.gms/play-services-maps

It should automatically fallback to googlePlayServicesVersion value if googlePlayServicesMapsVersion is not specified

def googlePlayServicesVersion = rootProject.hasProperty('googlePlayServicesVersion') ? rootProject.googlePlayServicesVersion : DEFAULT_GOOGLE_PLAY_SERVICES_VERSION
def androidMapsUtilsVersion = rootProject.hasProperty('androidMapsUtilsVersion') ? rootProject.androidMapsUtilsVersion : DEFAULT_ANDROID_MAPS_UTILS_VERSION
def googlePlayServicesVersion = rootProject.hasProperty('googlePlayServicesVersion') ? rootProject.googlePlayServicesVersion : DEFAULT_GOOGLE_PLAY_SERVICES_VERSION
// googlePlayServicesMapsVersion > googlePlayServicesVersion > DEFAULT_GOOGLE_PLAY_SERVICES_MAPS_VERSION (16.0.0)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need this commented code?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not code, it was a comment so that people understand the line below. It can remove it completely

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you could make then more clear (more descriptive) or delete it, your call 😄

@rborn
Copy link
Collaborator

rborn commented Nov 20, 2018

@Titozzz could you check with @yeomann maybe use safeExtGet like in #2398

Thnx

@Titozzz
Copy link
Contributor Author

Titozzz commented Nov 21, 2018

Well I could import his pr inside of mine if you want me to, or wait for his to be merged

@rborn
Copy link
Collaborator

rborn commented Nov 21, 2018

@Titozzz let's wait for @yeomann to reply, and if not maybe you can import the PR in yours and push again. 🤗

@Titozzz
Copy link
Contributor Author

Titozzz commented Nov 22, 2018

Sure thing 😄

@yeomann
Copy link

yeomann commented Nov 26, 2018

hey guys, sorry for delay. sure thing mate @Titozzz go ahead 😃

@Titozzz
Copy link
Contributor Author

Titozzz commented Nov 26, 2018

Will do :)

@Titozzz
Copy link
Contributor Author

Titozzz commented Nov 30, 2018

@rborn Done ✅

@Titozzz
Copy link
Contributor Author

Titozzz commented Jan 8, 2019

Still nothing ? 😢

@rborn rborn merged commit 2e785e9 into react-native-maps:master Jan 8, 2019
@rborn
Copy link
Collaborator

rborn commented Jan 8, 2019

@Titozzz sorry man, vacations + very busy, done now ❤️

@Titozzz
Copy link
Contributor Author

Titozzz commented Jan 8, 2019

Don't worry ❤️ This was part of emptying my github gigantic pile of notifications after vacations :D !

Thanks ! you can close #2584

asdolo pushed a commit to amalgamaco/react-native-maps that referenced this pull request Sep 7, 2019
…act-native-maps#2587)

* Fix Google map podspec

For use in cocoapods only projects

* Update react-native-google-maps.podspec

* Update build.gradle

* Update build.gradle

* Update build.gradle

* Update build.gradle
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.

4 participants