Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MobileEventLog
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Data-Logistics-Support
MobileEventLog
Commits
0de9190f
Commit
0de9190f
authored
2 years ago
by
Maximilian Betz
Browse files
Options
Downloads
Patches
Plain Diff
updated sources for first release on sandbox version
parent
96f5fb33
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/datamodel.dart
+2
-1
2 additions, 1 deletion
lib/datamodel.dart
lib/overview.dart
+3
-1
3 additions, 1 deletion
lib/overview.dart
with
5 additions
and
2 deletions
lib/datamodel.dart
+
2
−
1
View file @
0de9190f
...
...
@@ -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
"
);
...
...
This diff is collapsed.
Click to expand it.
lib/overview.dart
+
3
−
1
View file @
0de9190f
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment