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
e2c877f4
Commit
e2c877f4
authored
Mar 15, 2018
by
Chris Scott
Committed by
Mehdi Achour
Mar 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add more gradle properties (#343)
parent
92e776ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
CHANGELOG.md
CHANGELOG.md
+2
-0
build.gradle
android/build.gradle
+9
-4
No files found.
CHANGELOG.md
View file @
e2c877f4
...
...
@@ -2,6 +2,8 @@
### next
*
Add more gradle configuration properties
`compileSdkVersion`
,
`buildToolsVersion`
,
`targetSdkVersion`
### 0.20.0
*
Made the following methods compatible with UWP: (https://github.com/rebeccahughes/react-native-device-info/pull/345)
...
...
android/build.gradle
View file @
e2c877f4
apply
plugin:
'com.android.library'
def
DEFAULT_COMPILE_SDK_VERSION
=
23
def
DEFAULT_BUILD_TOOLS_VERSION
=
"25.0.2"
def
DEFAULT_TARGET_SDK_VERSION
=
22
def
DEFAULT_GOOGLE_PLAY_SERVICES_VERSION
=
"+"
android
{
compileSdkVersion
23
buildToolsVersion
"25.0.2"
compileSdkVersion
project
.
hasProperty
(
'compileSdkVersion'
)
?
project
.
compileSdkVersion
:
DEFAULT_COMPILE_SDK_VERSION
buildToolsVersion
project
.
hasProperty
(
'buildToolsVersion'
)
?
project
.
buildToolsVersion
:
DEFAULT_BUILD_TOOLS_VERSION
defaultConfig
{
minSdkVersion
16
targetSdkVersion
22
targetSdkVersion
project
.
hasProperty
(
'targetSdkVersion'
)
?
project
.
targetSdkVersion
:
DEFAULT_TARGET_SDK_VERSION
versionCode
2
versionName
"1.1"
ndk
{
...
...
@@ -19,7 +24,7 @@ android {
}
dependencies
{
def
googlePlayServicesVersion
=
project
.
hasProperty
(
'googlePlayServicesVersion'
)
?
project
.
googlePlayServicesVersion
:
"+"
def
googlePlayServicesVersion
=
project
.
hasProperty
(
'googlePlayServicesVersion'
)
?
project
.
googlePlayServicesVersion
:
DEFAULT_GOOGLE_PLAY_SERVICES_VERSION
compile
'com.facebook.react:react-native:+'
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