mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-28 21:03:51 +00:00
Update build.gradle
read android gradle plugin version from root project
This commit is contained in:
@@ -2,6 +2,8 @@ def safeExtGet(prop, fallback) {
|
||||
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
||||
}
|
||||
|
||||
def gradlePluginVersion = safeExtGet('gradlePluginVersion', '3.4.0')
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
google()
|
||||
@@ -10,7 +12,7 @@ buildscript {
|
||||
|
||||
dependencies {
|
||||
//noinspection GradleDependency
|
||||
classpath rootProject.ext.has('gradleBuildTools') ? rootProject.ext.get('gradleBuildTools') : 'com.android.tools.build:gradle:3.4.0'
|
||||
classpath("com.android.tools.build:gradle:$gradlePluginVersion")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user