Finalising before merging

This commit is contained in:
Alexandros Schillings
2015-07-14 15:04:45 +01:00
parent 459eb1d2d4
commit 8c0c0b4ebe
21 changed files with 61 additions and 106 deletions
+25 -12
View File
@@ -1,12 +1,26 @@
apply plugin: 'com.android.library'
final def versionMajor = 1
final def versionMinor = 0
final def versionPatch = 0
final def androidVersionCode = 100
final int versionMajor = 1
final int versionMinor = 0
final int versionPatch = 0
final int androidVersionCode = 5
final def targetSdk = rootProject.targetSdkVersion;
final def minSdkRed = rootProject.minSdkVersion;
final int targetSdk = rootProject.targetSdkVersion;
final int minSdkRed = rootProject.minSdkVersion;
final String semanticVersion = "${versionMajor}.${versionMinor}.${versionPatch}"
dependencies {
testCompile 'junit:junit:4.12'
testCompile "org.mockito:mockito-core:1.9.5"
compile fileTree(include: ['*.jar'], dir: 'libs')
}
ext {
PUBLISH_GROUP_ID = 'co.uk.alt236'
PUBLISH_ARTIFACT_ID = 'bluetooth-le-library'
PUBLISH_VERSION = "${semanticVersion}"
}
android {
compileSdkVersion rootProject.compileSdkVersion
@@ -21,7 +35,7 @@ android {
minSdkVersion minSdkRed
targetSdkVersion targetSdk
versionCode androidVersionCode
versionName "${versionMajor}.${versionMinor}.${versionPatch}"
versionName semanticVersion
}
buildTypes {
@@ -34,8 +48,7 @@ android {
}
}
dependencies {
testCompile 'junit:junit:4.12'
testCompile "org.mockito:mockito-core:1.9.5"
compile fileTree(include: ['*.jar'], dir: 'libs')
}
// Script from https://github.com/blundell/release-android-library
// execute: ./gradlew clean build generateRelease
apply from: 'https://raw.githubusercontent.com/ArthurHub/release-android-library/master/android-release-aar.gradle'