aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Smith <whydoubt@gmail.com>2013-06-01 21:40:33 -0500
committerJeff Smith <whydoubt@gmail.com>2013-06-13 22:27:28 -0500
commitc831c2ffbde9882c61583e73f2a81530dfab9a7a (patch)
treec760a3213c885919465fa842cacb2f009bb8e239
parentac47eda797d88ec0d59f7eba668b36ba64902169 (diff)
downloadsdk-c831c2ffbde9882c61583e73f2a81530dfab9a7a.tar.gz
sdk-c831c2ffbde9882c61583e73f2a81530dfab9a7a.tar.bz2
sdk-c831c2ffbde9882c61583e73f2a81530dfab9a7a.zip
Add template for build.gradle
Provides the template needed by 'android create project' to create the file build.gradle. Change-Id: I689a76573afd2c4d0454deca3ed694f1fb46065e Signed-off-by: Jeff Smith <whydoubt@gmail.com>
-rw-r--r--build/tools.atree3
-rw-r--r--templates/build_gradle.template21
2 files changed, 23 insertions, 1 deletions
diff --git a/build/tools.atree b/build/tools.atree
index 2bb0afddb..e4134845c 100644
--- a/build/tools.atree
+++ b/build/tools.atree
@@ -81,9 +81,10 @@ lib/lib64GLES_V2_translator${DLL_EXTENSION} strip tools/lib/lib64GLES_V2_trans
lib/lib64EGL_translator${DLL_EXTENSION} strip tools/lib/lib64EGL_translator${DLL_EXTENSION}
-# sdk.git Ant templates for project build files
+# sdk.git Ant and gradle templates for project build files
sdk/templates/build.template tools/lib/build.template
sdk/templates/uibuild.template tools/lib/uibuild.template
+sdk/templates/build_gradle.template tools/lib/build_gradle.template
sdk/files/proguard-project.txt tools/lib/proguard-project.txt
sdk/files/proguard-android.txt tools/proguard/proguard-android.txt
sdk/files/proguard-android-optimize.txt tools/proguard/proguard-android-optimize.txt
diff --git a/templates/build_gradle.template b/templates/build_gradle.template
new file mode 100644
index 000000000..6ec137c9e
--- /dev/null
+++ b/templates/build_gradle.template
@@ -0,0 +1,21 @@
+buildscript {
+ repositories {
+ mavenCentral()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:ARTIFACT_VERSION'
+ }
+}
+apply plugin: 'PLUGIN'
+
+android {
+ compileSdkVersion 'TARGET'
+ buildToolsVersion 'BUILD_TOOL_REV'
+
+ buildTypes {
+ release {
+ runProguard false
+ proguardFile getDefaultProguardFile('proguard-android.txt')
+ }
+ }
+}