Merge pull request #923 from player-03/develop

Allow setting a different Gradle PLUGIN version.
This commit is contained in:
Joshua Granick
2017-02-13 10:12:50 -08:00
committed by GitHub
4 changed files with 5 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ buildscript {
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:::ANDROID_GRADLE_VERSION::' classpath 'com.android.tools.build:gradle:::ANDROID_GRADLE_PLUGIN::'
} }
} }

View File

@@ -313,6 +313,7 @@ class AndroidPlatform extends PlatformTarget {
context.ANDROID_EXTENSIONS = project.config.getArrayString ("android.extension"); context.ANDROID_EXTENSIONS = project.config.getArrayString ("android.extension");
context.ANDROID_PERMISSIONS = project.config.getArrayString ("android.permission", [ "android.permission.WAKE_LOCK", "android.permission.INTERNET", "android.permission.VIBRATE", "android.permission.ACCESS_NETWORK_STATE" ]); context.ANDROID_PERMISSIONS = project.config.getArrayString ("android.permission", [ "android.permission.WAKE_LOCK", "android.permission.INTERNET", "android.permission.VIBRATE", "android.permission.ACCESS_NETWORK_STATE" ]);
context.ANDROID_GRADLE_VERSION = project.config.getString ("android.gradle-version", "2.10"); context.ANDROID_GRADLE_VERSION = project.config.getString ("android.gradle-version", "2.10");
context.ANDROID_GRADLE_PLUGIN = project.config.getString ("android.gradle-plugin", "2.1.0");
context.ANDROID_LIBRARY_PROJECTS = []; context.ANDROID_LIBRARY_PROJECTS = [];
var escaped = ~/([ #!=\\:])/g; var escaped = ~/([ #!=\\:])/g;

View File

@@ -7,7 +7,7 @@ buildscript {
} }
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:::ANDROID_GRADLE_VERSION::' classpath 'com.android.tools.build:gradle:::ANDROID_GRADLE_PLUGIN::'
// NOTE: Do not place your application dependencies here; they belong // NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files // in the individual module build.gradle files
@@ -39,7 +39,7 @@ configure(subprojects.findAll {!it.file('build.gradle').exists() && it.file('bui
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:::ANDROID_GRADLE_VERSION::' classpath 'com.android.tools.build:gradle:::ANDROID_GRADLE_PLUGIN::'
} }
} }

View File

@@ -6,7 +6,7 @@ buildscript {
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:::ANDROID_GRADLE_VERSION::' classpath 'com.android.tools.build:gradle:::ANDROID_GRADLE_PLUGIN::'
} }
} }