2015-06-23 22:44:24 +02:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
|
|
android {
|
2015-12-18 21:51:00 +01:00
|
|
|
compileSdkVersion 23
|
|
|
|
buildToolsVersion '23.0.2'
|
2015-06-23 22:44:24 +02:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "com.affectiva.affdexme"
|
2015-12-19 04:17:20 +01:00
|
|
|
minSdkVersion 16
|
2015-12-18 21:51:00 +01:00
|
|
|
targetSdkVersion 23
|
2016-01-08 17:03:13 +01:00
|
|
|
versionCode 492
|
|
|
|
versionName "3.0.0"
|
2016-01-07 00:21:27 +01:00
|
|
|
setProperty("archivesBaseName", "AffdexMe-$versionName-$versionCode")
|
2015-06-23 22:44:24 +02:00
|
|
|
}
|
|
|
|
buildTypes {
|
2016-01-07 00:21:27 +01:00
|
|
|
debug {
|
|
|
|
resValue 'string', 'app_name', 'AffdexMeDbg'
|
|
|
|
applicationIdSuffix ".debug"
|
|
|
|
}
|
2015-06-23 22:44:24 +02:00
|
|
|
release {
|
2016-01-07 00:21:27 +01:00
|
|
|
resValue 'string', 'app_name', 'AffdexMe'
|
2015-07-13 20:17:57 +02:00
|
|
|
minifyEnabled true
|
2015-06-23 22:44:24 +02:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
2015-12-18 21:51:00 +01:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_7
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_7
|
|
|
|
}
|
2015-11-17 02:58:48 +01:00
|
|
|
sourceSets {
|
|
|
|
main {
|
2015-12-18 21:51:00 +01:00
|
|
|
jniLibs.srcDirs = ['jniLibs']
|
2015-11-17 02:58:48 +01:00
|
|
|
jni.srcDirs = [] //disable automatic ndk-build
|
|
|
|
}
|
|
|
|
}
|
2015-06-23 22:44:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2015-12-23 07:10:49 +01:00
|
|
|
//include the Affdex SDK jars and its dependencies
|
|
|
|
compile fileTree(dir: 'libs', include: '*.jar')
|
2015-12-18 21:51:00 +01:00
|
|
|
|
2015-12-23 07:10:49 +01:00
|
|
|
//include project dependencies
|
2015-12-19 04:17:20 +01:00
|
|
|
compile 'com.android.support:support-v4:23.1.1'
|
|
|
|
compile 'com.android.support:appcompat-v7:23.1.1'
|
2015-06-23 22:44:24 +02:00
|
|
|
}
|
2016-01-07 00:21:27 +01:00
|
|
|
|
|
|
|
// build a signed release apk only if the environment is configured
|
|
|
|
// with the properties that let us access the keystore. you can put
|
|
|
|
// them into ~/.gradle/gradle.properties
|
|
|
|
if (project.hasProperty('releaseKeystoreFile')) {
|
|
|
|
android.signingConfigs {
|
|
|
|
release {
|
|
|
|
storeFile file(releaseKeystoreFile)
|
|
|
|
storePassword releaseKeystorePassword
|
|
|
|
keyAlias releaseKeyAlias
|
|
|
|
keyPassword releaseKeyPassword
|
|
|
|
}
|
|
|
|
}
|
|
|
|
android.buildTypes.release.signingConfig = android.signingConfigs.release
|
|
|
|
}
|