From: jk.pu Date: Mon, 19 Dec 2016 03:42:40 +0000 (+0900) Subject: [systeminfo] change static core api version to get native api version X-Git-Tag: submit/tizen/20161220.080626^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=acac0d8d95b472a4a3a896807990483e4f2b8faf;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [systeminfo] change static core api version to get native api version [verification] systeminfo web tct 100% passed. Change-Id: I55d0dd6b8da2598bd55e08ae2861f9abb92a0939 Signed-off-by: jk.pu --- diff --git a/src/systeminfo/systeminfo_device_capability.cc b/src/systeminfo/systeminfo_device_capability.cc index 2032ca88..736469bf 100644 --- a/src/systeminfo/systeminfo_device_capability.cc +++ b/src/systeminfo/systeminfo_device_capability.cc @@ -152,7 +152,10 @@ static PlatformResult CheckStringCapability(const std::string& key, std::string* return ret; } } else if (kTizenFeatureCoreApiVersion == key) { - *value = "2.3"; + PlatformResult ret = SystemInfoDeviceCapability::GetNativeAPIVersion(value); + if (ret.IsError()) { + return ret; + } } else if (key == kTizenFeaturePlatfromCoreCpuArch) { PlatformResult ret = SystemInfoDeviceCapability::GetPlatfomCoreCpuArch(value); if (ret.IsError()) { @@ -591,22 +594,12 @@ PlatformResult SystemInfoDeviceCapability::GetPlatformCoreCpuFrequency(int* retu PlatformResult SystemInfoDeviceCapability::IsNativeOspCompatible(bool* result) { LoggerD("Enter"); -#ifdef PROFILE_WEARABLE - *result = false; - return PlatformResult(ErrorCode::NO_ERROR); -#else return GetValueBool(kTizenFeaturePlatformNativeOspCompatible, result); -#endif } PlatformResult SystemInfoDeviceCapability::GetNativeAPIVersion(std::string* return_value) { LoggerD("Enter"); -#ifdef PROFILE_WEARABLE - *return_value = ""; - return PlatformResult(ErrorCode::NO_ERROR); -#else return GetValueString(kTizenFeaturePlatformNativeApiVersion, return_value); -#endif } PlatformResult SystemInfoDeviceCapability::GetPlatformVersionName(std::string* result) {