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
e44735c0
Commit
e44735c0
authored
2 years ago
by
Maximilian Betz
Browse files
Options
Downloads
Patches
Plain Diff
include .git folder for gradle to access git commit hash info
parent
28b7717b
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
android/settings.gradle
+4
-0
4 additions, 0 deletions
android/settings.gradle
lib/datamodel.dart
+1
-2
1 addition, 2 deletions
lib/datamodel.dart
pubspec.lock
+7
-7
7 additions, 7 deletions
pubspec.lock
pubspec.yaml
+2
-2
2 additions, 2 deletions
pubspec.yaml
with
14 additions
and
11 deletions
android/settings.gradle
+
4
−
0
View file @
e44735c0
...
...
@@ -9,3 +9,7 @@ localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
def
flutterSdkPath
=
properties
.
getProperty
(
"flutter.sdk"
)
assert
flutterSdkPath
!=
null
,
"flutter.sdk not set in local.properties"
apply
from:
"$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
import
org.apache.tools.ant.DirectoryScanner
DirectoryScanner
.
removeDefaultExclude
(
'**/.git'
)
DirectoryScanner
.
removeDefaultExclude
(
'**/.git/**'
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
lib/datamodel.dart
+
1
−
2
View file @
e44735c0
...
...
@@ -511,8 +511,7 @@ 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/remotes/origin/main'
);
final
commitHash
=
await
rootBundle
.
loadString
(
'.git/refs/heads/main'
);
gitVersionHash
=
commitHash
.
substring
(
0
,
8
);
//Use the short version
debugPrint
(
"Commit ID:
$gitVersionHash
"
);
...
...
This diff is collapsed.
Click to expand it.
pubspec.lock
+
7
−
7
View file @
e44735c0
...
...
@@ -117,7 +117,7 @@ packages:
name: flutter_login
url: "https://pub.dartlang.org"
source: hosted
version: "3.
1
.0"
version: "3.
2
.0"
flutter_secure_storage:
dependency: "direct main"
description:
...
...
@@ -190,28 +190,28 @@ packages:
name: geolocator
url: "https://pub.dartlang.org"
source: hosted
version: "8.
1.1
"
version: "8.
2.0
"
geolocator_android:
dependency: transitive
description:
name: geolocator_android
url: "https://pub.dartlang.org"
source: hosted
version: "3.
0.2
"
version: "3.
1.4
"
geolocator_apple:
dependency: transitive
description:
name: geolocator_apple
url: "https://pub.dartlang.org"
source: hosted
version: "2.
0.
1"
version: "2.
1.1+
1"
geolocator_platform_interface:
dependency: transitive
description:
name: geolocator_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "4.0.
2
"
version: "4.0.
4
"
geolocator_web:
dependency: transitive
description:
...
...
@@ -393,7 +393,7 @@ packages:
name: shared_preferences_ios
url: "https://pub.dartlang.org"
source: hosted
version: "2.
0.
10"
version: "2.1
.
0"
shared_preferences_linux:
dependency: transitive
description:
...
...
@@ -573,7 +573,7 @@ packages:
name: win32
url: "https://pub.dartlang.org"
source: hosted
version: "2.
3.1
1"
version: "2.
5.
1"
xdg_directories:
dependency: transitive
description:
...
...
This diff is collapsed.
Click to expand it.
pubspec.yaml
+
2
−
2
View file @
e44735c0
...
...
@@ -69,8 +69,8 @@ flutter:
# To add assets to your application, add an assets section, like this:
assets
:
-
assets/awi_logo.png
-
.git/HEAD
# This file points out the current branch of the project.
-
.git/ORIG_HEAD
# This file points to the commit id at origin (last commit id of the remote repository).
#
- .git/HEAD # This file points out the current branch of the project.
#
- .git/ORIG_HEAD # This file points to the commit id at origin (last commit id of the remote repository).
-
.git/refs/heads/main
...
...
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