2015-06-23 22:44:24 +02:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
|
|
android {
|
2015-12-18 21:51:00 +01:00
|
|
|
compileSdkVersion 23
|
2016-07-13 22:59:39 +02:00
|
|
|
buildToolsVersion '23.0.3'
|
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-06-08 12:49:02 +02:00
|
|
|
versionCode 494
|
2016-07-13 23:01:00 +02:00
|
|
|
versionName "3.1"
|
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 {
|
2016-01-26 19:42:58 +01:00
|
|
|
//include the Affdex SDK
|
2016-07-21 17:53:46 +02:00
|
|
|
compile('com.affectiva.android:affdexsdk:3.1')
|
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
|
|
|
|
}
|