From d647c33a6a86e39f94b0587c22300606f07bea30 Mon Sep 17 00:00:00 2001 From: player-03 Date: Sat, 28 May 2016 05:10:02 -0400 Subject: [PATCH] Build extensions as Android libraries, not standalone Android apps. --- .../dependencies/android/build.gradle | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/templates/extension/dependencies/android/build.gradle b/templates/extension/dependencies/android/build.gradle index 65250e773..238a01fbd 100644 --- a/templates/extension/dependencies/android/build.gradle +++ b/templates/extension/dependencies/android/build.gradle @@ -1,13 +1,16 @@ -apply plugin: 'com.android.application' +buildscript { + repositories { + mavenCentral() + } -android { - compileSdkVersion ::ANDROID_TARGET_SDK_VERSION:: - - defaultConfig { - applicationId "org.haxe.extension.::extensionLowerCase::" - minSdkVersion ::ANDROID_MINIMUM_SDK_VERSION:: - targetSdkVersion ::ANDROID_TARGET_SDK_VERSION:: - versionCode ::META_BUILD_NUMBER:: - versionName "::META_VERSION::" + dependencies { + classpath 'com.android.tools.build:gradle:2.1.0' } } + +apply plugin: 'android-library' + +android { + compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION) + // buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION +} \ No newline at end of file