Build extensions as Android libraries, not standalone Android apps.

This commit is contained in:
player-03
2016-05-28 05:10:02 -04:00
committed by Joshua Granick
parent 83d561481d
commit d647c33a6a

View File

@@ -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
}