Skip to content

Commit bc35e34

Browse files
authored
Merge pull request #2993 from DataDog/kikoveiga/RUM-7562/sha1-snapshot
RUM-7562: Provide SDK commit SHA1 to the Shopist App
2 parents 795feec + 3918198 commit bc35e34

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

dd-sdk-android-core/api/dd-sdk-android-core.api

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

dd-sdk-android-core/build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)