From 60f74c3ba24822f401c55c01a4b53be39b4dd2f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 27 Mar 2017 16:58:08 +0200 Subject: [PATCH] Gradle: Output the computed version name and code to text files for further processing. --- .gitignore | 2 ++ android/build.gradle | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index b087dcc29d..6ae9e0cdab 100644 --- a/.gitignore +++ b/.gitignore @@ -53,6 +53,8 @@ PPSSPPControls.dat *.iml build build.ios +versionname.txt +versioncode.txt build*/ diff --git a/android/build.gradle b/android/build.gradle index 90d8776e38..11cbf125fd 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -46,6 +46,9 @@ android { println "(not using these:) Android Version Name, Code: " + androidGitVersion.name() + " " + androidGitVersion.code(); } + new File("versionname.txt").write(androidGitVersion.name()) + new File("versioncode.txt").write(androidGitVersion.code().toString()) + minSdkVersion 9 targetSdkVersion 25 if (project.hasProperty("ANDROID_VERSION_CODE") && project.hasProperty("ANDROID_VERSION_NAME")) {