Welcome to mirror list, hosted at ThFree Co, Russian Federation.

http_user_agent_ios.mm « platform - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: db166c714708a177c4b9190ca30c3696b7c09afd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "platform/http_user_agent.hpp"

#import <Foundation/Foundation.h>

namespace platform
{
std::string HttpUserAgent::ExtractAppVersion() const
{
  NSString * str = NSBundle.mainBundle.infoDictionary[@"CFBundleShortVersionString"];
  return str ? std::string(str.UTF8String) : std::string("Unknown");
}
}  // platform