62 lines
1.8 KiB
Groovy
62 lines
1.8 KiB
Groovy
/*
|
|
* Copyright (c) 2015 Jonas Kalderstam
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
def gitTag = 'git describe --tags'.execute([], project.rootDir).text.trim()
|
|
def gitCommitCount =
|
|
Integer.parseInt('git rev-list --count HEAD'.execute([], project.rootDir).text.trim())
|
|
|
|
android {
|
|
compileSdkVersion 23
|
|
buildToolsVersion "23.0.1"
|
|
|
|
packagingOptions {
|
|
exclude 'META-INF/LICENSE.txt'
|
|
exclude 'META-INF/NOTICE.txt'
|
|
}
|
|
|
|
defaultConfig {
|
|
minSdkVersion 9
|
|
targetSdkVersion 23
|
|
versionCode gitCommitCount
|
|
versionName gitTag
|
|
archivesBaseName = "nononsensefilepicker-sample-${gitTag}".toString()
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
release {
|
|
//minifyEnabled true
|
|
//shrinkResources true
|
|
//proguardFiles getDefaultProguardFile('proguard-android.txt')
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile fileTree(dir: 'libs', include: ['*.jar'])
|
|
compile project(':library')
|
|
|
|
// Image loading sample
|
|
compile 'com.github.bumptech.glide:glide:3.6.1'
|
|
|
|
// FTP browser sample
|
|
compile 'commons-net:commons-net:3.3'
|
|
}
|