weknowhowyoufeel/app/build.gradle

61 lines
1.7 KiB
Groovy
Raw Normal View History

apply plugin: 'com.android.application'
android {
compileSdkVersion 23
2016-07-13 22:59:39 +02:00
buildToolsVersion '23.0.3'
defaultConfig {
applicationId "com.affectiva.affdexme"
minSdkVersion 16
targetSdkVersion 23
2016-06-08 12:49:02 +02:00
versionCode 494
2016-07-13 23:01:00 +02:00
versionName "3.1"
setProperty("archivesBaseName", "AffdexMe-$versionName-$versionCode")
}
buildTypes {
debug {
resValue 'string', 'app_name', 'AffdexMeDbg'
applicationIdSuffix ".debug"
}
release {
resValue 'string', 'app_name', 'AffdexMe'
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
sourceSets {
main {
jniLibs.srcDirs = ['jniLibs']
jni.srcDirs = [] //disable automatic ndk-build
}
}
}
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')
//include project dependencies
compile 'com.android.support:support-v4:23.1.1'
compile 'com.android.support:appcompat-v7:23.1.1'
}
// 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
}