Commit e2c877f4 authored by Chris Scott's avatar Chris Scott Committed by Mehdi Achour

feat: add more gradle properties (#343)

parent 92e776ea
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
### next ### next
* Add more gradle configuration properties `compileSdkVersion`, `buildToolsVersion`, `targetSdkVersion`
### 0.20.0 ### 0.20.0
* Made the following methods compatible with UWP: (https://github.com/rebeccahughes/react-native-device-info/pull/345) * Made the following methods compatible with UWP: (https://github.com/rebeccahughes/react-native-device-info/pull/345)
......
apply plugin: 'com.android.library' 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 { android {
compileSdkVersion 23 compileSdkVersion project.hasProperty('compileSdkVersion') ? project.compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION
buildToolsVersion "25.0.2" buildToolsVersion project.hasProperty('buildToolsVersion') ? project.buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION
defaultConfig { defaultConfig {
minSdkVersion 16 minSdkVersion 16
targetSdkVersion 22 targetSdkVersion project.hasProperty('targetSdkVersion') ? project.targetSdkVersion : DEFAULT_TARGET_SDK_VERSION
versionCode 2 versionCode 2
versionName "1.1" versionName "1.1"
ndk { ndk {
...@@ -19,7 +24,7 @@ android { ...@@ -19,7 +24,7 @@ android {
} }
dependencies { 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.facebook.react:react-native:+'
compile "com.google.android.gms:play-services-gcm:$googlePlayServicesVersion" compile "com.google.android.gms:play-services-gcm:$googlePlayServicesVersion"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment