Skip to content

Instantly share code, notes, and snippets.

@restorer
Created May 27, 2016 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save restorer/a7fd4c1fc933951fb442028d714814e0 to your computer and use it in GitHub Desktop.
Save restorer/a7fd4c1fc933951fb442028d714814e0 to your computer and use it in GitHub Desktop.
OpenFL and Gradle
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
}
/*
* It is possible to store signing config in separate file.
*
* Properties props = new Properties()
* props.load(new FileInputStream(file('signing.properties')))
*
* and use props['CERTIFICATE_xxx'] instead of project.CERTIFICATE_xxx
*
signingConfigs {
release {
storeFile file(project.CERTIFICATE_PATH)
keyAlias project.CERTIFICATE_ALIAS
storePassword project.CERTIFICATE_PASSWORD
keyPassword project.CERTIFICATE_PASSWORD
}
}
*/
buildTypes {
release {
minifyEnabled false
signingConfig signingConfigs.release
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
}
# Project-wide Gradle settings.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
VERSION_NAME=::META_VERSION::
VERSION_CODE=::META_BUILD_NUMBER::
ANDROID_BUILD_TARGET_SDK_VERSION=::ANDROID_TARGET_SDK_VERSION::
ANDROID_BUILD_MIN_SDK_VERSION=::ANDROID_MINIMUM_SDK_VERSION::
ANDROID_BUILD_SDK_VERSION=::ANDROID_TARGET_SDK_VERSION::
# ANDROID_BUILD_TOOLS_VERSION=19.1.0
# CERTIFICATE_PATH=...
# CERTIFICATE_ALIAS=...
# CERTIFICATE_PASSWORD=...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment