summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/android/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/platforms/android/build.gradle')
-rw-r--r--[-rwxr-xr-x]StoneIsland/platforms/android/build.gradle59
1 files changed, 33 insertions, 26 deletions
diff --git a/StoneIsland/platforms/android/build.gradle b/StoneIsland/platforms/android/build.gradle
index b9c43320..5eef5255 100755..100644
--- a/StoneIsland/platforms/android/build.gradle
+++ b/StoneIsland/platforms/android/build.gradle
@@ -17,41 +17,35 @@
under the License.
*/
-// GENERATED FILE! DO NOT EDIT!
-
-apply plugin: 'android'
+apply plugin: 'com.android.application'
buildscript {
repositories {
mavenCentral()
+ jcenter()
}
// Switch the Android Gradle plugin version requirement depending on the
// installed version of Gradle. This dependency is documented at
// http://tools.android.com/tech-docs/new-build-system/version-compatibility
// and https://issues.apache.org/jira/browse/CB-8143
- if (gradle.gradleVersion >= "2.2") {
- dependencies {
- classpath 'com.android.tools.build:gradle:1.0.0+'
- }
- } else if (gradle.gradleVersion >= "2.1") {
- dependencies {
- classpath 'com.android.tools.build:gradle:0.14.0+'
- }
- } else {
- dependencies {
- classpath 'com.android.tools.build:gradle:0.12.0+'
- }
+ dependencies {
+ classpath "com.google.gms:google-services:3.0.0"
+ classpath "com.google.gms:google-services:3.0.0"
+ classpath 'com.android.tools.build:gradle:2.2.1'
}
}
// Allow plugins to declare Maven dependencies via build-extras.gradle.
-repositories {
- mavenCentral()
+allprojects {
+ repositories {
+ mavenCentral();
+ jcenter()
+ }
}
task wrapper(type: Wrapper) {
- gradleVersion = '2.2.1'
+ gradleVersion = '2.14.1'
}
// Configuration properties. Set these via environment variables, build-extras.gradle, or gradle.properties.
@@ -173,25 +167,31 @@ android {
}
defaultConfig {
- versionCode cdvVersionCode ?: Integer.parseInt("" + privateHelpers.extractIntFromManifest("versionCode") + "0")
+ versionCode cdvVersionCode ?: new BigInteger("" + privateHelpers.extractIntFromManifest("versionCode"))
+ applicationId privateHelpers.extractStringFromManifest("package")
+
if (cdvMinSdkVersion != null) {
minSdkVersion cdvMinSdkVersion
}
}
+ lintOptions {
+ abortOnError false;
+ }
+
compileSdkVersion cdvCompileSdkVersion
buildToolsVersion cdvBuildToolsVersion
if (Boolean.valueOf(cdvBuildMultipleApks)) {
productFlavors {
armv7 {
- versionCode cdvVersionCode ?: defaultConfig.versionCode + 2
+ versionCode defaultConfig.versionCode*10 + 2
ndk {
abiFilters "armeabi-v7a", ""
}
}
x86 {
- versionCode cdvVersionCode ?: defaultConfig.versionCode + 4
+ versionCode defaultConfig.versionCode*10 + 4
ndk {
abiFilters "x86", ""
}
@@ -202,7 +202,12 @@ android {
}
}
}
- } else if (!cdvVersionCode) {
+ }
+ /*
+
+ ELSE NOTHING! DON'T MESS WITH THE VERSION CODE IF YOU DON'T HAVE TO!
+
+ else if (!cdvVersionCode) {
def minSdkVersion = cdvMinSdkVersion ?: privateHelpers.extractIntFromManifest("minSdkVersion")
// Vary versionCode by the two most common API levels:
// 14 is ICS, which is the lowest API level for many apps.
@@ -213,6 +218,7 @@ android {
defaultConfig.versionCode += 8
}
}
+ */
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_6
@@ -244,10 +250,11 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
// SUB-PROJECT DEPENDENCIES START
- debugCompile project(path: "CordovaLib", configuration: "debug")
- releaseCompile project(path: "CordovaLib", configuration: "release")
+ debugCompile(project(path: "CordovaLib", configuration: "debug"))
+ releaseCompile(project(path: "CordovaLib", configuration: "release"))
compile "com.android.support:support-v13:23+"
- compile "com.google.android.gms:play-services-gcm:+"
+ compile "com.google.android.gms:play-services-gcm:9.8+"
+ compile "me.leolin:ShortcutBadger:1.1.11@aar"
// SUB-PROJECT DEPENDENCIES END
}
@@ -265,7 +272,7 @@ def promptForReleaseKeyPassword() {
gradle.taskGraph.whenReady { taskGraph ->
taskGraph.getAllTasks().each() { task ->
- if (task.name == 'validateReleaseSigning') {
+ if (task.name == 'validateReleaseSigning' || task.name == 'validateSigningRelease') {
promptForReleaseKeyPassword()
}
}