Skip to content

Commit

Permalink
- Update version number
Browse files Browse the repository at this point in the history
- Update bintray configuration & gradle.properties names
  • Loading branch information
eliaslecomte committed Dec 30, 2016
1 parent 7edded9 commit b132793
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 24 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ android {
buildToolsVersion "25.0.1"

defaultConfig {
applicationId "mobi.inthepocket.android.beacons.app"
applicationId appApplicationId
minSdkVersion 11
targetSdkVersion 25
versionCode 1
versionName "1"
testInstrumentationRunner "mobi.inthepocket.android.beacons.app.TestRunner"
testInstrumentationRunner appTestRunner
}

buildTypes {
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ allprojects {

sonarqube {
properties {
property "sonar.projectVersion", projectVersion
property "sonar.projectVersion", projectVersionName
}
}
15 changes: 9 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# Project-wide Gradle settings.

projectVersion=1.2.0
projectVersionCode=3
projectApplicationId=mobi.inthepocket.android.beacons.ibeaconscanner
projectDescription=Android library to scan for iBeacons.
projectUrl=https://github.com/inthepocket/ibeacon-scanner-android
projectGit=https://github.com/inthepocket/ibeacon-scanner-android.git
projectVersionName=1.3.0
projectVersionCode=5

appApplicationId=mobi.inthepocket.android.beacons.app
appTestRunner=mobi.inthepocket.android.beacons.app.TestRunner

libDescription=Android library to scan for iBeacons.
libUrl=https://github.com/inthepocket/ibeacon-scanner-android
libGit=https://github.com/inthepocket/ibeacon-scanner-android.git
libLicenseUrl=https://github.com/inthepocket/ibeacon-scanner-android/blob/master/LICENSE.md
libGroupId=mobi.inthepocket.android
libArtifactId=ibeaconscanner
32 changes: 17 additions & 15 deletions ibeaconscanner/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@ apply plugin: 'com.jfrog.bintray'
apply plugin: 'com.github.dcendents.android-maven'
apply from: '../jacoco.gradle'

// for Bintray
def projectVersionCodeNr = Integer.parseInt(projectVersionCode);
def projectGit = projectGit;
def projectUrl = projectUrl;
def projectDescription = projectDescription
def libGit = libGit;
def libUrl = libUrl;
def libDescription = libDescription
def libGroupId = libGroupId;
def libArtifactId = libArtifactId;

// for Maven
group = libGroupId
version = projectVersion
version = projectVersionName

if (System.env.TRAVIS == 'true') {
allprojects {
Expand All @@ -34,7 +36,7 @@ android {
minSdkVersion 11
targetSdkVersion 25
versionCode projectVersionCodeNr
versionName projectVersion
versionName projectVersionName
consumerProguardFiles 'proguard-rules.pro'

buildConfigField 'long', 'BEACON_EXIT_TIME_IN_MILLIS', '20L * 1000L'
Expand Down Expand Up @@ -77,39 +79,39 @@ install {
repositories.mavenInstaller {
pom.project {
name libArtifactId
description projectDescription
url projectUrl
description libDescription
url libUrl
inceptionYear '2016'

packaging 'aar'
groupId libGroupId
artifactId libArtifactId
version projectVersion
version projectVersionName

licenses {
license {
name 'MIT'
url 'https://github.com/inthepocket/ibeacon-scanner-android/blob/master/LICENSE.md'
url libLicenseUrl
}
}
}
}
}

bintray {
user = hasProperty('bintray_user') ? bintray_user : System.getenv('bintray_user')
key = hasProperty('bintray_apikey') ? bintray_apikey : System.getenv('bintray_apikey')
user = bintray_user
key = bintray_apikey
pkg {
repo = libGroupId
name = libArtifactId
userOrg = hasProperty('bintray_user') ? bintray_user : System.getenv('bintray_user')
userOrg = bintray_user_org
licenses = ['MIT']
vcsUrl = projectGit
vcsUrl = libGit
version {
name = projectVersion
name = projectVersionName
gpg {
sign = true
passphrase = hasProperty('bintray_gpg_phrase') ? bintray_gpg_phrase : System.getenv('bintray_gpg_phrase')
passphrase = bintray_gpg_phrase
}
}
}
Expand Down

0 comments on commit b132793

Please sign in to comment.