diff --git a/build.gradle b/build.gradle index 3f464cb..31057c4 100644 --- a/build.gradle +++ b/build.gradle @@ -17,6 +17,32 @@ allprojects { } } +def getVersionName = { -> + try { + def stdout = new ByteArrayOutputStream() + exec { + commandLine 'git', 'describe', '--tags' + standardOutput = stdout + } + return stdout.toString().trim() + } catch (ignored) { + return null + } +} + +def getVersionCode = { -> + try { + def stdout = new ByteArrayOutputStream() + exec { + commandLine 'git', 'rev-list', 'HEAD', '--count' + standardOutput = stdout + } + return Integer.valueOf(stdout.toString().trim()) + } catch (ignored) { + return null + } +} + android { compileOptions { coreLibraryDesugaringEnabled true @@ -41,6 +67,8 @@ android { versionCode 1 versionName "1.0" + buildConfigField "String", "VERSION_NAME_FULL", "\"${getVersionName()}\"" + minSdk 30 targetSdk 34 } diff --git a/fastlane/metadata/android/en-US/icon.png b/fastlane/metadata/android/en-US/icon.png new file mode 100644 index 0000000..29f890a Binary files /dev/null and b/fastlane/metadata/android/en-US/icon.png differ