aboutsummaryrefslogtreecommitdiff
path: root/xcode/OLMKit/OLMKit.m
diff options
context:
space:
mode:
Diffstat (limited to 'xcode/OLMKit/OLMKit.m')
-rw-r--r--xcode/OLMKit/OLMKit.m10
1 files changed, 7 insertions, 3 deletions
diff --git a/xcode/OLMKit/OLMKit.m b/xcode/OLMKit/OLMKit.m
index e7bfd25..c383650 100644
--- a/xcode/OLMKit/OLMKit.m
+++ b/xcode/OLMKit/OLMKit.m
@@ -19,11 +19,15 @@
#include "olm/olm.h"
-NSString *OLMKitVersionString()
+@implementation OLMKit
+
++ (NSString*)versionString
{
uint8_t major, minor, patch;
-
+
olm_get_library_version(&major, &minor, &patch);
-
+
return [NSString stringWithFormat:@"%tu.%tu.%tu", major, minor, patch];
}
+
+@end