8b2694efb7
* fix build for openssl 1.1.1b required for sdk (cherry picked from commit aa49e3b2755b97b6331cdbbb89efc954de8d5977) * use js code from master * fix openssl recipe and tweak build (cherry picked from commit 6e94c27021c7bd7b1e880c2fc314850e36a5a38e) * remove unused build recipes (cherry picked from commit f5c0577bdb175bfc0990602936bbc9e2052e1f25)
80 lines
1.6 KiB
Groovy
80 lines
1.6 KiB
Groovy
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
buildscript {
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:3.1.4'
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
flatDir {
|
|
dirs 'libs'
|
|
}
|
|
}
|
|
}
|
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
compileSdkVersion {{ android_api }}
|
|
buildToolsVersion '{{ build_tools_version }}'
|
|
defaultConfig {
|
|
minSdkVersion {{ args.min_sdk_version }}
|
|
targetSdkVersion {{ android_api }}
|
|
versionCode {{ args.numeric_version }}
|
|
versionName '{{ args.version }}'
|
|
}
|
|
|
|
{% if args.sign -%}
|
|
signingConfigs {
|
|
release {
|
|
storeFile file(System.getenv("P4A_RELEASE_KEYSTORE"))
|
|
keyAlias System.getenv("P4A_RELEASE_KEYALIAS")
|
|
storePassword System.getenv("P4A_RELEASE_KEYSTORE_PASSWD")
|
|
keyPassword System.getenv("P4A_RELEASE_KEYALIAS_PASSWD")
|
|
}
|
|
}
|
|
{%- endif %}
|
|
|
|
buildTypes {
|
|
debug {
|
|
}
|
|
release {
|
|
{% if args.sign -%}
|
|
signingConfig signingConfigs.release
|
|
{%- endif %}
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_7
|
|
targetCompatibility JavaVersion.VERSION_1_7
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
jniLibs.srcDir 'libs'
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
|
{%- for aar in aars %}
|
|
compile(name: '{{ aar }}', ext: 'aar')
|
|
{%- endfor -%}
|
|
{%- for jar in jars %}
|
|
compile files('src/main/libs/{{ jar }}')
|
|
{%- endfor -%}
|
|
{%- if args.depends -%}
|
|
{%- for depend in args.depends %}
|
|
compile '{{ depend }}'
|
|
{%- endfor %}
|
|
{%- endif %}
|
|
}
|