mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-31 15:23:00 +00:00 
			
		
		
		
	Move code with lower priority to the bottom of the file
This commit is contained in:
		| @@ -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 "" | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Mauricio Colli
					Mauricio Colli