Merge pull request #3225 from mauriciocolli/improve-build-branch
Change share title to differentiate multiple builds
This commit is contained in:
commit
a4babc10c0
|
@ -3,24 +3,6 @@ apply plugin: 'kotlin-android'
|
|||
apply plugin: 'kotlin-android-extensions'
|
||||
apply plugin: 'kotlin-kapt'
|
||||
|
||||
|
||||
static String getGitWorkingBranch() {
|
||||
try {
|
||||
def gitProcess = "git rev-parse --abbrev-ref HEAD".execute()
|
||||
gitProcess.waitFor()
|
||||
if (gitProcess.exitValue() == 0) {
|
||||
return gitProcess.text.trim()
|
||||
} else {
|
||||
// not a git repository
|
||||
return ""
|
||||
}
|
||||
} catch (IOException ignored) {
|
||||
// git was not found
|
||||
return ""
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
android {
|
||||
compileSdkVersion 28
|
||||
buildToolsVersion '28.0.3'
|
||||
|
@ -143,3 +125,19 @@ dependencies {
|
|||
implementation "io.noties.markwon:core:${markwonVersion}"
|
||||
implementation "io.noties.markwon:linkify:${markwonVersion}"
|
||||
}
|
||||
|
||||
static String getGitWorkingBranch() {
|
||||
try {
|
||||
def gitProcess = "git rev-parse --abbrev-ref HEAD".execute()
|
||||
gitProcess.waitFor()
|
||||
if (gitProcess.exitValue() == 0) {
|
||||
return gitProcess.text.trim()
|
||||
} else {
|
||||
// not a git repository
|
||||
return ""
|
||||
}
|
||||
} catch (IOException ignored) {
|
||||
// git was not found
|
||||
return ""
|
||||
}
|
||||
}
|
|
@ -432,7 +432,7 @@
|
|||
<string name="soundcloud" translatable="false">SoundCloud</string>
|
||||
<string name="drawer_header_action_paceholder_text">Something will appear here soon ;D</string>
|
||||
<!-- Preferred player -->
|
||||
<string name="preferred_open_action_share_menu_title" translatable="false">NewPipe</string>
|
||||
<string name="preferred_open_action_share_menu_title" translatable="false">@string/app_name</string>
|
||||
<string name="preferred_open_action_settings_title">Preferred \'open\' action</string>
|
||||
<string name="preferred_open_action_settings_summary">Default action when opening content — %s</string>
|
||||
<string name="video_player">Video player</string>
|
||||
|
|
Loading…
Reference in New Issue