Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
R
react-native-device-info
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
放牛的园子
react-native-device-info
Commits
c9b2a471
Commit
c9b2a471
authored
Feb 22, 2018
by
Chris Blazek
Committed by
Mehdi Achour
Feb 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: Google play services versioning (#333)
parent
d238de6f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
1 deletion
+16
-1
CHANGELOG.md
CHANGELOG.md
+2
-0
README.md
README.md
+11
-0
build.gradle
android/build.gradle
+3
-1
No files found.
CHANGELOG.md
View file @
c9b2a471
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
### next
### next
*
Add Gradle build config that allows a consumer to set Play Services Version from a root-project ext variable.
### 0.15.3
### 0.15.3
*
Fix crash on iOS: prevent insertion of nil values in the dictionary (https://github.com/rebeccahughes/react-native-device-info/pull/328)
*
Fix crash on iOS: prevent insertion of nil values in the dictionary (https://github.com/rebeccahughes/react-native-device-info/pull/328)
...
...
README.md
View file @
c9b2a471
...
@@ -81,6 +81,17 @@ Run your project (Cmd+R)
...
@@ -81,6 +81,17 @@ Run your project (Cmd+R)
<details>
<details>
<summary>
Android
</summary>
<summary>
Android
</summary>
*
**_optional_**
in
`android/build.gradle`
:
```
gradle
...
ext
{
// dependency versions
googlePlayServicesVersion
=
"<Your Services Version>"
}
...
```
*
in
`android/app/build.gradle`
:
*
in
`android/app/build.gradle`
:
```
diff
```
diff
...
...
android/build.gradle
View file @
c9b2a471
...
@@ -19,6 +19,8 @@ android {
...
@@ -19,6 +19,8 @@ android {
}
}
dependencies
{
dependencies
{
def
googlePlayServicesVersion
=
project
.
hasProperty
(
'googlePlayServicesVersion'
)
?
project
.
googlePlayServicesVersion
:
"+"
compile
'com.facebook.react:react-native:+'
compile
'com.facebook.react:react-native:+'
compile
'com.google.android.gms:play-services-gcm:+'
compile
"com.google.android.gms:play-services-gcm:$googlePlayServicesVersion"
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment