[systeminfo] change static core api version to get native api version 41/105541/3
authorjk.pu <jk.pu@samsung.com>
Mon, 19 Dec 2016 03:42:40 +0000 (12:42 +0900)
committerjk.pu <jk.pu@samsung.com>
Mon, 19 Dec 2016 06:37:58 +0000 (15:37 +0900)
[verification] systeminfo web tct 100% passed.

Change-Id: I55d0dd6b8da2598bd55e08ae2861f9abb92a0939
Signed-off-by: jk.pu <jk.pu@samsung.com>
src/systeminfo/systeminfo_device_capability.cc

index 2032ca8889c7ffd46fbe0b8282cd2a91d5bbc1b4..736469bf0a89d7893f158ff15d78832ae6dc472d 100644 (file)
@@ -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) {