diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-01-08 13:36:44 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-01-08 13:36:44 -0300 |
commit | 401622cc229317bd218f070dd07a3bd8db582f16 (patch) | |
tree | be10159e88dc35eab1a5bcc10ca561470e47472c /platform/android/build.gradle.template | |
parent | 405cfb6da2d6d4ccbe19a88b133e73967d0769c9 (diff) |
-Removed ANT build system for Android, as it was deprecated by Google
-Added new Gradle build system, as it is the required build system
Diffstat (limited to 'platform/android/build.gradle.template')
-rw-r--r-- | platform/android/build.gradle.template | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/platform/android/build.gradle.template b/platform/android/build.gradle.template new file mode 100644 index 0000000000..fdc0e751e3 --- /dev/null +++ b/platform/android/build.gradle.template @@ -0,0 +1,72 @@ +buildscript { + repositories { + jcenter() + } + dependencies { + classpath 'com.android.tools.build:gradle:1.2.0' + } +} + +apply plugin: 'com.android.application' + +allprojects { + repositories { + mavenCentral() + maven { + $$GRADLE_REPOSITORY_URLS$$ + } + } +} + +dependencies { + + $$GRADLE_DEPENDENCIES$$ +} + +android { + + lintOptions { + abortOnError false + } + + compileSdkVersion 19 + buildToolsVersion "19.1" + + packagingOptions { + exclude 'META-INF/LICENSE' + exclude 'META-INF/NOTICE' + } + defaultConfig { + minSdkVersion 14 + targetSdkVersion 19 + } + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src', + $$GRADLE_JAVA_DIRS$$ + ] + resources.srcDirs = [ + 'res' + $$GRADLE_RES_DIRS$$ + ] + res.srcDirs = ['res'] + // libs.srcDirs = ['libs'] + aidl.srcDirs = [ + 'aidl' + $$GRADLE_AIDL_DIRS$$ + ] + assets.srcDirs = [ + 'assets' + $$GRADLE_ASSET_DIRS$$ + ] + jniLibs.srcDirs = [ + 'libs' + $$GRADLE_JNI_DIRS$$ + ] + } + + } + + +} |