From 5537959b19c01f079a7f96bf092c1f2c614e3048 Mon Sep 17 00:00:00 2001 From: Benau Date: Tue, 16 Jul 2019 13:42:16 +0800 Subject: [PATCH] Update hardware stats for iOS --- src/config/hardware_stats.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/config/hardware_stats.cpp b/src/config/hardware_stats.cpp index d606a3eff..ff62c7590 100644 --- a/src/config/hardware_stats.cpp +++ b/src/config/hardware_stats.cpp @@ -291,11 +291,18 @@ void reportHardwareStats() #else json.add("os_win", 0); #endif -#ifdef __APPLE__ + +#ifdef IOS_STK + json.add("os_ios", 1); + json.add("os_macosx", 0); +#elif defined(__APPLE__) + json.add("os_ios", 0); json.add("os_macosx", 1); #else + json.add("os_ios", 0); json.add("os_macosx", 0); #endif + #ifdef ANDROID json.add("os_android", 1); #else