Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Commit

Permalink
Display repo remote url in version
Browse files Browse the repository at this point in the history
  • Loading branch information
divadsn committed Feb 1, 2019
1 parent 764618f commit ab2127b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ android {
buildConfigField "String", "ENCRYPTION_KEY", ext.encryptionKey

// Internal build info values
buildConfigField "String", "HOSTNAME", '"' + System.getenv("DRONE_REMOTE_URL") + '"'
buildConfigField "String", "CI_VERSION", '"' + System.getenv("DRONE_SYSTEM_VERSION") + '"'
buildConfigField "String", "REMOTE_URL", '"' + System.getenv("DRONE_REMOTE_URL") + '"'
buildConfigField "String", "DRONE_VERSION", '"' + System.getenv("DRONE_SYSTEM_VERSION") + '"'

if (System.getenv("TRAVIS") == "true") {
versionCode = Integer.valueOf(System.getenv("TRAVIS_BUILD_NUMBER"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public boolean onPreferenceClick(Preference preference) {
});

Preference version = findPreference("version");
version.setSummary(getString(R.string.pref_version_description, BuildConfig.VERSION_NAME, BuildConfig.BUILD_TYPE, BuildConfig.GIT_VERSION, BuildConfig.HOSTNAME));
version.setSummary(getString(R.string.pref_version_description, BuildConfig.VERSION_NAME, BuildConfig.BUILD_TYPE, BuildConfig.GIT_VERSION, BuildConfig.REMOTE_URL));
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export TRAVIS=true
export TRAVIS_BUILD_NUMBER=$1
export TRAVIS_EVENT_TYPE=push
export MAJOR_MINOR=1.1.0
export DRONE_MACHINE=localhost
export REMOTE_URL=https://github.com/divadsn/mobileKKM.git

bash ./gradlew app:assembleRelease
status=$?
Expand Down

0 comments on commit ab2127b

Please sign in to comment.