2017-12-21 08:24:31 +01:00
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
buildscript {
|
|
|
|
repositories {
|
2019-03-25 07:45:19 +01:00
|
|
|
google()
|
2018-08-06 12:51:55 +02:00
|
|
|
jcenter()
|
2019-07-09 02:43:30 +02:00
|
|
|
maven { url "https://jitpack.io" }
|
2017-12-21 08:24:31 +01:00
|
|
|
}
|
|
|
|
dependencies {
|
2019-03-25 07:45:19 +01:00
|
|
|
classpath 'com.android.tools.build:gradle:3.0.0'
|
2019-07-09 02:43:30 +02:00
|
|
|
classpath 'com.google.gms:google-services:4.2.0'
|
2017-12-21 08:24:31 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
2018-08-06 12:51:55 +02:00
|
|
|
maven {
|
|
|
|
url 'https://maven.google.com'
|
|
|
|
}
|
2017-12-28 19:06:31 +01:00
|
|
|
maven {
|
|
|
|
// All of React Native (JS, Android binaries) is installed from npm
|
|
|
|
url "$rootDir/react/node_modules/react-native/android"
|
|
|
|
}
|
2019-04-05 10:13:35 +02:00
|
|
|
flatDir {
|
|
|
|
dirs 'libs'
|
|
|
|
}
|
2017-12-21 08:24:31 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
|
|
android {
|
2019-04-05 10:13:35 +02:00
|
|
|
compileSdkVersion {{ android_api }}
|
|
|
|
buildToolsVersion '{{ build_tools_version }}'
|
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion {{ args.min_sdk_version }}
|
|
|
|
targetSdkVersion {{ android_api }}
|
|
|
|
versionCode {{ args.numeric_version }}
|
|
|
|
versionName '{{ args.version }}'
|
2019-07-09 02:43:30 +02:00
|
|
|
missingDimensionStrategy 'react-native-camera', 'general'
|
|
|
|
multiDexEnabled true
|
2018-08-06 12:51:55 +02:00
|
|
|
|
|
|
|
ndk {
|
|
|
|
abiFilters "armeabi-v7a", "x86"
|
2017-12-28 19:06:31 +01:00
|
|
|
}
|
2019-04-05 10:13:35 +02:00
|
|
|
}
|
2017-12-21 08:24:31 +01:00
|
|
|
|
2019-04-29 22:07:58 +02:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility 1.8
|
|
|
|
targetCompatibility 1.8
|
|
|
|
}
|
|
|
|
|
2018-09-01 23:04:50 +02:00
|
|
|
dexOptions {
|
|
|
|
jumboMode true
|
|
|
|
}
|
|
|
|
|
2019-04-05 10:13:35 +02:00
|
|
|
{% 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")
|
|
|
|
}
|
|
|
|
}
|
2017-12-21 08:24:31 +01:00
|
|
|
{%- endif %}
|
|
|
|
|
2019-04-05 10:13:35 +02:00
|
|
|
buildTypes {
|
|
|
|
debug {
|
|
|
|
}
|
|
|
|
release {
|
|
|
|
{% if args.sign -%}
|
|
|
|
signingConfig signingConfigs.release
|
|
|
|
{%- endif %}
|
|
|
|
}
|
|
|
|
}
|
2017-12-21 08:24:31 +01:00
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main {
|
2018-08-06 12:51:55 +02:00
|
|
|
jniLibs.srcDir 'libs'
|
2017-12-21 08:24:31 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-11-01 05:31:38 +01:00
|
|
|
ext {
|
|
|
|
compileSdkVersion = {{ android_api }}
|
|
|
|
buildToolsVersion = '{{ build_tools_version }}'
|
|
|
|
minSdkVersion = {{ args.min_sdk_version }}
|
2019-04-05 10:13:35 +02:00
|
|
|
targetSdkVersion = {{ android_api }}
|
2019-05-02 08:07:26 +02:00
|
|
|
supportLibVersion = '27.1.1'
|
2019-07-09 02:43:30 +02:00
|
|
|
googlePlayServicesVersion = '16.1.0'
|
|
|
|
googlePlayServicesVisionVersion = '17.0.2'
|
2018-11-01 05:31:38 +01:00
|
|
|
}
|
|
|
|
|
2018-08-13 11:00:02 +02:00
|
|
|
subprojects {
|
|
|
|
afterEvaluate {project ->
|
|
|
|
if (project.hasProperty("android")) {
|
|
|
|
android {
|
|
|
|
compileSdkVersion {{ android_api }}
|
|
|
|
buildToolsVersion '{{ build_tools_version }}'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-21 08:24:31 +01:00
|
|
|
dependencies {
|
2019-04-05 10:13:35 +02:00
|
|
|
compile project(':@react-native-community_async-storage')
|
2019-07-09 02:43:30 +02:00
|
|
|
compile project(':react-native-camera')
|
|
|
|
compile project(':react-native-document-picker')
|
2018-11-01 05:31:38 +01:00
|
|
|
compile project(':react-native-exception-handler')
|
2018-09-01 23:04:50 +02:00
|
|
|
compile project(':react-native-fast-image')
|
2019-07-09 02:43:30 +02:00
|
|
|
compile project(':react-native-fs')
|
2019-04-05 10:13:35 +02:00
|
|
|
compile project(':react-native-gesture-handler')
|
|
|
|
compile project(':react-native-video')
|
2019-03-25 07:45:19 +01:00
|
|
|
compile project(':rn-fetch-blob')
|
2018-09-01 23:04:50 +02:00
|
|
|
{%- for aar in aars %}
|
2019-04-05 10:13:35 +02:00
|
|
|
compile(name: '{{ aar }}', ext: 'aar')
|
|
|
|
{%- endfor -%}
|
|
|
|
{%- if args.depends -%}
|
|
|
|
{%- for depend in args.depends %}
|
|
|
|
compile '{{ depend }}'
|
|
|
|
{%- endfor %}
|
|
|
|
{%- endif %}
|
2017-12-21 08:24:31 +01:00
|
|
|
}
|
2019-05-02 08:06:42 +02:00
|
|
|
|
|
|
|
apply plugin: 'com.google.gms.google-services'
|
|
|
|
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
|