From 0de9190f496a9186fb9c25564fe162686dd3ba3c Mon Sep 17 00:00:00 2001 From: Maximilian Betz <Maximilian.Betz@awi.de> Date: Fri, 1 Apr 2022 16:00:19 +0200 Subject: [PATCH] updated sources for first release on sandbox version --- lib/datamodel.dart | 3 ++- lib/overview.dart | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/datamodel.dart b/lib/datamodel.dart index 798da3b..29893e0 100644 --- a/lib/datamodel.dart +++ b/lib/datamodel.dart @@ -511,7 +511,8 @@ class EventStoreInstance extends EventStoreBase { String gitVersionHash = ''; Future<void> loadGitInfo() async { - final commitHash = await rootBundle.loadString('.git/refs/heads/main'); + //final commitHash = await rootBundle.loadString('.git/refs/heads/main'); + final commitHash = await rootBundle.loadString('.git/refs/remotes/origin/main'); gitVersionHash = commitHash.substring(0,8); //Use the short version debugPrint("Commit ID: $gitVersionHash"); diff --git a/lib/overview.dart b/lib/overview.dart index 59e7aff..c3926fa 100644 --- a/lib/overview.dart +++ b/lib/overview.dart @@ -91,4 +91,6 @@ class Overview extends StatelessWidget { )), ); } -} \ No newline at end of file +} + +//TODO: displaying commit hash does not work in build APK. \ No newline at end of file -- GitLab