2015-06-23 20:44:24 +00:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
|
|
android {
|
2015-12-18 20:51:00 +00:00
|
|
|
compileSdkVersion 23
|
|
|
|
buildToolsVersion '23.0.2'
|
2015-06-23 20:44:24 +00:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "com.affectiva.affdexme"
|
2015-12-19 03:17:20 +00:00
|
|
|
minSdkVersion 16
|
2015-12-18 20:51:00 +00:00
|
|
|
targetSdkVersion 23
|
|
|
|
versionCode 15
|
|
|
|
versionName "2.1.0"
|
2016-01-06 23:21:27 +00:00
|
|
|
setProperty("archivesBaseName", "AffdexMe-$versionName-$versionCode")
|
2015-06-23 20:44:24 +00:00
|
|
|
}
|
|
|
|
buildTypes {
|
2016-01-06 23:21:27 +00:00
|
|
|
debug {
|
|
|
|
resValue 'string', 'app_name', 'AffdexMeDbg'
|
|
|
|
applicationIdSuffix ".debug"
|
|
|
|
}
|
2015-06-23 20:44:24 +00:00
|
|
|
release {
|
2016-01-06 23:21:27 +00:00
|
|
|
resValue 'string', 'app_name', 'AffdexMe'
|
2015-07-13 18:17:57 +00:00
|
|
|
minifyEnabled true
|
2015-06-23 20:44:24 +00:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
2015-12-18 20:51:00 +00:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_7
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_7
|
|
|
|
}
|
2015-11-17 01:58:48 +00:00
|
|
|
sourceSets {
|
|
|
|
main {
|
2015-12-18 20:51:00 +00:00
|
|
|
jniLibs.srcDirs = ['jniLibs']
|
2015-11-17 01:58:48 +00:00
|
|
|
jni.srcDirs = [] //disable automatic ndk-build
|
|
|
|
}
|
|
|
|
}
|
2015-06-23 20:44:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2015-12-18 20:51:00 +00:00
|
|
|
//include the Affdex SDK jars
|
2015-09-10 17:30:10 +00:00
|
|
|
compile files('libs/Affdex-sdk.jar')
|
|
|
|
compile files('libs/Affdex-sdk-javadoc.jar')
|
2015-12-18 20:51:00 +00:00
|
|
|
|
|
|
|
//include dependencies
|
2015-12-19 03:17:20 +00:00
|
|
|
compile 'com.android.support:support-v4:23.1.1'
|
|
|
|
compile 'com.android.support:appcompat-v7:23.1.1'
|
2015-12-18 20:51:00 +00:00
|
|
|
compile 'com.squareup.dagger:dagger:1.2.2'
|
|
|
|
compile 'javax.inject:javax.inject:1'
|
|
|
|
|
|
|
|
//although the use of the CameraDetector class in this project does not require it, you may have to include
|
|
|
|
//the following dependencies if you use other features of the Affdex SDK
|
|
|
|
// compile 'com.google.code.gson:gson:2.4'
|
|
|
|
// compile 'com.android.support:support-v13:23.1.1'
|
|
|
|
// compile 'com.google.android.gms:play-services:8.4.0'
|
|
|
|
// compile 'com.google.android.gms:play-services-ads:8.4.0'
|
|
|
|
// compile 'com.google.android.gms:play-services-identity:8.4.0'
|
|
|
|
// compile 'com.google.android.gms:play-services-gcm:8.4.0'
|
|
|
|
// compile files('libs/flurry-analytics-5.0.0.jar')
|
2015-06-23 20:44:24 +00:00
|
|
|
}
|
2016-01-06 23:21:27 +00: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
|
|
|
|
}
|