Files
lime/templates/android/template/app/build.gradle
2016-08-08 13:34:24 -07:00

51 lines
1.3 KiB
Groovy

apply plugin: 'com.android.application'
android {
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
// buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION
defaultConfig {
applicationId "::META_PACKAGE_NAME::"
minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION)
targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
versionCode Integer.parseInt(project.VERSION_CODE)
versionName project.VERSION_NAME
}
::if KEY_STORE::
signingConfigs {
release {
storeFile file(project.KEY_STORE)
storePassword project.KEY_STORE_PASSWORD
keyAlias project.KEY_STORE_ALIAS
keyPassword project.KEY_STORE_ALIAS_PASSWORD
}
}
::else::
File signingFile = file('signing.properties');
if(signingFile.exists()) {
Properties signing = new Properties()
signing.load(new FileInputStream(signingFile))
signingConfigs {
release {
storeFile file(signing["KEY_STORE"])
storePassword signing["KEY_STORE_PASSWORD"]
keyAlias signing["KEY_STORE_ALIAS"]
keyPassword signing["KEY_STORE_ALIAS_PASSWORD"]
}
}
}
::end::
buildTypes {
release {
minifyEnabled false
signingConfig signingConfigs.release
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
}