Commit 729aa1f6 authored by Luboš Horáček's avatar Luboš Horáček

#60 rozdělení aplikace - vytváření obb souboru

parent 6231e522
......@@ -108,6 +108,7 @@ android {
targetSdkVersion 19
versionName getVersionNameFromGit()
versionCode getVersionCodeFromGit()
packageName "cz.nic.tablexia"
}
lintOptions {
......@@ -189,6 +190,18 @@ task unitTest(type:Test, dependsOn: assemble) {
classpath = project.sourceSets.unitTest.runtimeClasspath
}
task createObbDir {
obbDir = new File('build/obb')
obbDir.mkdirs()
}
task createObb(type: Exec, dependsOn: createObbDir) {
executable "sh"
args "-c" , "${System.env.ANDROID_HOME}tools/jobb -d obb/ -o build/obb/tablexia.obb -k secret-key -pn ${project.android.defaultConfig.packageName} -pv ${getVersionCodeFromGit()}"
}
build.dependsOn createObb
check.dependsOn unitTest
def getVersionNameFromGit() {
......