-
-
Save restorer/a7fd4c1fc933951fb442028d714814e0 to your computer and use it in GitHub Desktop.
OpenFL and Gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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']) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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