weknowhowyoufeel/app/build.gradle
Andy Dennie 5daeff53ba update versionCode to 683
this is one higher than the most recently published APK on Google Play.  No need
for this to be bumped by Jenkins on every build; it only needs to increase by one
(manually) for each release.
2016-08-16 20:22:32 -04:00

60 lines
1.8 KiB
Groovy

apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '23.0.3'
defaultConfig {
applicationId "com.affectiva.affdexme"
minSdkVersion 16
targetSdkVersion 23
versionCode 683
versionName "3.1.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 {
//include the Affdex SDK
compile('com.affectiva.android:affdexsdk:3.1.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
}