Skip to content

Commit deccede

Browse files
Merge pull request #4352 from NativeScript/vladimirov/fix-gradle
fix: set correct versions in plugin's build.gradle
2 parents c882b92 + d79e0c1 commit deccede

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

vendor/gradle-plugin/build.gradle

+11-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ allprojects {
2727

2828
apply plugin: 'com.android.library'
2929

30-
def computeCompileSdkVersion = { -> project.hasProperty("compileSdk") ? compileSdk : 24 }
30+
def computeCompileSdkVersion = { -> project.hasProperty("compileSdk") ? compileSdk : 28 }
3131
def computeBuildToolsVersion = { ->
32-
project.hasProperty("buildToolsVersion") ? buildToolsVersion : "27.0.3"
32+
project.hasProperty("buildToolsVersion") ? buildToolsVersion : "28.0.3"
3333
}
3434

3535
android {
@@ -46,12 +46,20 @@ android {
4646
}
4747

4848
dependencies {
49-
def supportVer = "27.0.1"
49+
def supportVer = "28.0.0"
5050
if (project.hasProperty("supportVersion")) {
5151
supportVer = supportVersion
5252
}
5353
compileOnly "com.android.support:support-v4:$supportVer"
5454
compileOnly "com.android.support:appcompat-v7:$supportVer"
55+
56+
configurations.all {
57+
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
58+
if (details.requested.group == "com.android.support" && !details.requested.name.startsWith("multidex")) {
59+
details.useVersion supportVer
60+
}
61+
}
62+
}
5563
}
5664

5765
def getAppResourcesPath() {

0 commit comments

Comments
 (0)