File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ public final class com/datadog/android/BuildConfig {
33 public static final field DEBUG Z
44 public static final field LIBRARY_PACKAGE_NAME Ljava/lang/String;
55 public static final field LOGCAT_ENABLED Ljava/lang/Boolean;
6+ public static final field SDK_COMMIT_SHA1 Ljava/lang/String;
67 public static final field SDK_VERSION_CODE I
78 public static final field SDK_VERSION_NAME Ljava/lang/String;
89 public fun <init> ()V
Original file line number Diff line number Diff line change @@ -65,6 +65,13 @@ android {
6565 " SDK_VERSION_NAME" ,
6666 " \" ${AndroidConfig .VERSION .name} \" "
6767 )
68+ buildConfigField(
69+ " String" ,
70+ " SDK_COMMIT_SHA1" ,
71+ " \" ${providers.exec {
72+ commandLine(" git" , " rev-parse" , " HEAD" )
73+ }.standardOutput.asText.get().trim()} \" "
74+ )
6875 }
6976
7077 namespace = " com.datadog.android"
You can’t perform that action at this time.
0 commit comments