Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Use variables to change the GoogleSignIn and the GoogleUtilities library version #748

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Expand Up @@ -126,6 +126,20 @@ $ cordova plugin add https://github.com/EddyVerbruggen/cordova-plugin-googleplus
$ cordova prepare
```

EXTRA VARIABLES:

If you need to install a specific version of `GoogleSignIn` library using pod you can pass it as a variable.
This is optional, if this variable is not set the default version will be used.
```
--variable GOOGLE_SIGN_IN_VERSION="~> 5.0.0"
```

If you need to install a specific version of `GoogleUtilities` library using pod you can pass it as a variable.
This is optional, if this variable is not set the default version will be used.
```
--variable GoogleUtilities="~> 6.7.0"
```

IMPORTANT:

* _Please note that `myreversedclientid` is a place holder for the reversed clientId you find in your iOS configuration file. Do not surround this value with quotes. **(iOS only Applications)**_
Expand Down
10 changes: 6 additions & 4 deletions plugin.xml
Expand Up @@ -30,7 +30,7 @@
<!-- android -->
<platform name="android">

<preference name="PLAY_SERVICES_VERSION" default="15.0.1"/>
<preference name="PLAY_SERVICES_VERSION" default="15.0.1"/>
<framework src="com.google.android.gms:play-services-auth:$PLAY_SERVICES_VERSION" />
<framework src="com.google.android.gms:play-services-identity:$PLAY_SERVICES_VERSION" />

Expand Down Expand Up @@ -102,17 +102,19 @@
<framework src="libz.dylib" weak="true" />

<!-- Google frameworks -->
<preference name="GOOGLE_SIGN_IN_VERSION" default="~> 5.0.2"/>
<preference name="GOOGLE_UTILITIES_VERSION" default="~> 7.2.2"/>
<podspec>
<config>
<source url="https://cdn.cocoapods.org/"/>
</config>
<pods use-frameworks="true">
<pod name="GoogleSignIn" spec="~> 5.0.2"/>
<pod name="GoogleUtilities" spec="~> 7.2.2"/>
<pod name="GoogleSignIn" spec="$GOOGLE_SIGN_IN_VERSION"/>
<pod name="GoogleUtilities" spec="$GOOGLE_UTILITIES_VERSION"/>
</pods>
</podspec>

<hook type="after_plugin_install" src="hooks/ios/prerequisites.js"/>
<hook type="after_plugin_install" src="hooks/ios/prerequisites.js"/>
</platform>

<!-- browser -->
Expand Down