diff --git a/.bazelignore b/.bazelignore
index bbb6d1890..085c7b7c7 100644
--- a/.bazelignore
+++ b/.bazelignore
@@ -1,10 +1,4 @@
-# ignore .git, but make sure we can get commit hash
-!.git/HEAD
-!.git/refs
-!.git/refs/heads
-!.git/packed-refs
-.git/*
-
+.git
node_modules
bazel-out
bazel-bin
@@ -13,3 +7,5 @@ bazel-testlogs
.idea
.vscode
.cxx
+build-*
+build
diff --git a/BUILD.bazel b/BUILD.bazel
index fb1d580e2..cf9f9e3ae 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -148,16 +148,6 @@ cc_library(
}),
)
-genrule(
- name = "git_hash",
- outs = ["hash"],
- cmd = """
- git rev-parse HEAD > $@
- """,
- local = True,
- visibility = ["//visibility:public"],
-)
-
# Selects the rendering implementation to utilize in the core
string_flag(
diff --git a/platform/ios/bazel/macros.bzl b/platform/ios/bazel/macros.bzl
index 0b1e06171..9e2f9baba 100644
--- a/platform/ios/bazel/macros.bzl
+++ b/platform/ios/bazel/macros.bzl
@@ -5,14 +5,12 @@ def info_plist(name, base_info_plist, out, **kwargs):
name = name,
srcs = [
base_info_plist,
- "//:git_hash",
],
outs = [
out,
],
cmd = ("""
cp $(location {}) $@
- plutil -replace MLNCommitHash -string $$(cat $(location //:git_hash)) $@
token=\"""" + API_KEY + """\"
plutil -replace MLNApiKey -string $$token $@
diff --git a/platform/ios/framework/Info-static.plist b/platform/ios/framework/Info-static.plist
index 7e87396ce..a4d8b7330 100644
--- a/platform/ios/framework/Info-static.plist
+++ b/platform/ios/framework/Info-static.plist
@@ -14,8 +14,6 @@
????
CFBundleVersion
15256
- MLNCommitHash
- $(CURRENT_COMMIT_HASH)
NSPrincipalClass
diff --git a/platform/ios/framework/Info.plist b/platform/ios/framework/Info.plist
index 8c4f24046..323e2211d 100644
--- a/platform/ios/framework/Info.plist
+++ b/platform/ios/framework/Info.plist
@@ -18,8 +18,6 @@
????
CFBundleVersion
15256
- MLNCommitHash
- $(CURRENT_COMMIT_HASH)
NSPrincipalClass
diff --git a/platform/macos/sdk/Info.plist b/platform/macos/sdk/Info.plist
index e75c3db96..cbf9dcfe0 100644
--- a/platform/macos/sdk/Info.plist
+++ b/platform/macos/sdk/Info.plist
@@ -20,8 +20,6 @@
????
CFBundleVersion
15256
- MLNCommitHash
- $(CURRENT_COMMIT_HASH)
MLNSemanticVersionString
$(CURRENT_SEMANTIC_VERSION)