Merge pull request #582 from react-native-community/gradle3

Fix linting and gradle 3.0.1 compatibility
This commit is contained in:
Mikael Sand
2018-01-19 18:37:37 +02:00
committed by GitHub
2 changed files with 8 additions and 7 deletions
+7 -6
View File
@@ -1,22 +1,22 @@
buildscript { buildscript {
repositories { repositories {
jcenter() jcenter()
google()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:2.3.3' classpath 'com.android.tools.build:gradle:3.0.1'
} }
} }
apply plugin: 'com.android.library' apply plugin: 'com.android.library'
android { android {
compileSdkVersion 25 compileSdkVersion 27
buildToolsVersion "26.0.2"
defaultConfig { defaultConfig {
minSdkVersion 16 minSdkVersion 16
targetSdkVersion 25 targetSdkVersion 27
versionCode 1 versionCode 1
versionName "1.0" versionName "1.0"
} }
@@ -32,10 +32,11 @@ repositories {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$projectDir/../../../node_modules/react-native/android" url "$projectDir/../../../node_modules/react-native/android"
} }
google()
} }
dependencies { dependencies {
compile "com.android.support:appcompat-v7:25.3.1" api "com.android.support:appcompat-v7:27.0.2"
//noinspection GradleDynamicVersion //noinspection GradleDynamicVersion
compile 'com.facebook.react:react-native:+' api 'com.facebook.react:react-native:+'
} }
+1 -1
View File
@@ -1,5 +1,5 @@
{ {
"version": "6.0.1-rc.2", "version": "6.0.1-rc.3",
"name": "react-native-svg", "name": "react-native-svg",
"description": "SVG library for react-native", "description": "SVG library for react-native",
"repository": { "repository": {