Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ android {
versionName "9.16.0"

buildConfigField "long", "TIMESTAMP", System.currentTimeMillis() + "L"
// Git commit SHA for identifying builds
def gitSha = 'git rev-parse --short HEAD'.execute().text.trim()
buildConfigField "String", "GIT_COMMIT_SHA", "\"${gitSha}\""
// React Native New Architecture flags
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", project.hasProperty("newArchEnabled") ? project.property("newArchEnabled") : "false"
buildConfigField "boolean", "IS_HERMES_ENABLED", project.hasProperty("hermesEnabled") ? project.property("hermesEnabled") : "true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ class AboutActivity : AppCompatActivity() {

val buildTime = find<TextView?>(R.id.text_view_app_build_time)
buildTime?.text = String.format(resources.getString(R.string.build_time_string_format), getBuildDate())

val commitSha = find<TextView?>(R.id.text_view_app_commit_sha)
commitSha?.text = String.format(resources.getString(R.string.commit_sha_string_format), BuildConfig.GIT_COMMIT_SHA)
}

fun getBuildDate(): String {
Expand Down
10 changes: 10 additions & 0 deletions android/app/src/main/res/layout/content_about.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@
android:layout_gravity="center_horizontal"
tools:ignore="HardcodedText"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/text_view_app_commit_sha"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="@color/primary_text"
android:text="commit"
android:layout_gravity="center_horizontal"
tools:ignore="HardcodedText"
/>

<TextView
android:layout_width="wrap_content"
Expand Down
1 change: 1 addition & 0 deletions android/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@
<string name="use_set_alarm_clock_summary">Marshmallow and above only!\nThis would trigger app to use setAlarmClock API call when scheduling reminders and snoozed events\nThis would increase reminders time accuracy\nAs a side effect, user would see \'alarm\' icon on UI when there are snoozed events or active reminders</string>

<string name="build_time_string_format" formatted="false">Build time: %s</string>
<string name="commit_sha_string_format" formatted="false">Commit: %s</string>
<string name="dismiss_all_events">Dismiss all events</string>
<string name="dismiss_all_events_confirmation">Dismiss all events?\n\nCANNOT BE UNDONE!\n\nSnoozed events would not be removed</string>
<string name="handle_events_with_no_reminders">Handle events with no reminders</string>
Expand Down
Loading