diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2017-02-03 15:59:42 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2017-02-08 10:59:59 -0600 |
commit | 150b938b4922ec162bcb593c365e3d3616e0dbd7 (patch) | |
tree | edc3cf391f8971e98752fe1c52f8513afeb71cef /src/mbgl/util/version.hpp | |
parent | d3ca6c67f1b8fbf5d71c307e71ba89a483ec75bc (diff) | |
download | qtlocation-mapboxgl-150b938b4922ec162bcb593c365e3d3616e0dbd7.tar.gz |
[build, ios, macos] Simplify version portion of user agent string
The X.Y.Z version portion was unreliable, as it pulled from the latest tag regardless of platform. Set version to 0.0.0 and retrieve only the hash, which allows us to drop the node/npm dependency.
Diffstat (limited to 'src/mbgl/util/version.hpp')
-rw-r--r-- | src/mbgl/util/version.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mbgl/util/version.hpp b/src/mbgl/util/version.hpp new file mode 100644 index 0000000000..e652016485 --- /dev/null +++ b/src/mbgl/util/version.hpp @@ -0,0 +1,9 @@ +#pragma once + +namespace mbgl { +namespace version { + +extern const char* revision; + +} // namespace version +} // namespace mbgl |