Finalising before merging
This commit is contained in:
+25
-12
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user