From dd0ce04f5a8d0adee6f612be7ead2f2ff1d1749a Mon Sep 17 00:00:00 2001 From: Simone Basso Date: Tue, 26 Sep 2017 17:07:23 +0200 Subject: [PATCH] hotfix(VersionUtility): do not include build number This breaks OONI Backend. See TheTorProject/ooni-backend#111 and TheTorProject/ooni-sysadmin#164. --- ooniprobe/Utility/VersionUtility.mm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ooniprobe/Utility/VersionUtility.mm b/ooniprobe/Utility/VersionUtility.mm index 93917dfce..e7c18ab81 100644 --- a/ooniprobe/Utility/VersionUtility.mm +++ b/ooniprobe/Utility/VersionUtility.mm @@ -11,6 +11,13 @@ @implementation VersionUtility + (NSString*)get_software_version{ + // FIXME: this breaks OONI backend so we don't send the build number + /* return [NSString stringWithFormat:@"%@%@+%@", [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"], release_name, [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]]; + */ + return [NSString stringWithFormat:@"%@%@", + [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"], + release_name]; + } @end