forked from organicmaps/organicmaps-tmp
Added platform interface for GDPR features
This commit is contained in:
parent
f5529809dd
commit
e87c3dbd1e
8 changed files with 37 additions and 1 deletions
|
@ -28,7 +28,13 @@ std::string Platform::UniqueClientId() const
|
|||
return result;
|
||||
}
|
||||
|
||||
string Platform::MacAddress(bool md5Decoded) const
|
||||
std::string Platform::AdvertisingId() const
|
||||
{
|
||||
//TODO(@alexzatsepin): Implement me.
|
||||
return {};
|
||||
}
|
||||
|
||||
std::string Platform::MacAddress(bool md5Decoded) const
|
||||
{
|
||||
JNIEnv * env = jni::GetEnv();
|
||||
static jmethodID const getMacAddressMethod = jni::GetStaticMethodID(env, g_utilsClazz, "getMacAddress",
|
||||
|
|
|
@ -23,6 +23,7 @@ public:
|
|||
void SetHeaders(std::map<std::string, std::string> const & headers) { m_headers = headers; }
|
||||
void SetFileKey(std::string const & fileKey) { m_fileKey = fileKey; }
|
||||
void SetFilePath(std::string const & filePath) { m_filePath = filePath; }
|
||||
void SetNeedClientAuth(bool needClientAuth) { m_needClientAuth = needClientAuth; }
|
||||
|
||||
Result Upload() const;
|
||||
|
||||
|
@ -33,5 +34,6 @@ private:
|
|||
std::map<std::string, std::string> m_headers;
|
||||
std::string m_fileKey = "file";
|
||||
std::string m_filePath;
|
||||
bool m_needClientAuth = false;
|
||||
};
|
||||
} // namespace platform
|
||||
|
|
|
@ -256,6 +256,8 @@ public:
|
|||
|
||||
std::string UniqueClientId() const;
|
||||
|
||||
std::string AdvertisingId() const;
|
||||
|
||||
std::string MacAddress(bool md5Decoded) const;
|
||||
|
||||
/// @return url for clients to download maps
|
||||
|
|
|
@ -128,6 +128,12 @@ int Platform::PreCachingDepth() const { return 2; }
|
|||
|
||||
std::string Platform::UniqueClientId() const { return [Alohalytics installationId].UTF8String; }
|
||||
|
||||
std::string Platform::AdvertisingId() const
|
||||
{
|
||||
//TODO(@beloal): Implement me.
|
||||
return {};
|
||||
}
|
||||
|
||||
std::string Platform::MacAddress(bool md5Decoded) const
|
||||
{
|
||||
// Not implemented.
|
||||
|
|
|
@ -214,6 +214,11 @@ string Platform::UniqueClientId() const
|
|||
return "n0dbus0n0lsb00000000000000000000";
|
||||
}
|
||||
|
||||
string Platform::AdvertisingId() const
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
||||
string Platform::MacAddress(bool md5Decoded) const
|
||||
{
|
||||
// Not implemented.
|
||||
|
|
|
@ -114,6 +114,11 @@ Platform::Platform()
|
|||
|
||||
string Platform::UniqueClientId() const { return [Alohalytics installationId].UTF8String; }
|
||||
|
||||
string Platform::AdvertisingId() const
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
||||
string Platform::MacAddress(bool md5Decoded) const
|
||||
{
|
||||
// Not implemented.
|
||||
|
|
|
@ -55,6 +55,11 @@ string Platform::UniqueClientId() const
|
|||
return FromTizenString(pApp->GetAppId());
|
||||
}
|
||||
|
||||
string Platform::AdvertisingId() const
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
||||
string Platform::DeviceName() const
|
||||
{
|
||||
return OMIM_OS_NAME;
|
||||
|
|
|
@ -136,6 +136,11 @@ string Platform::UniqueClientId() const
|
|||
return "@TODO";
|
||||
}
|
||||
|
||||
string Platform::AdvertisingId() const
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
||||
string Platform::MacAddress(bool md5Decoded) const
|
||||
{
|
||||
// Not implemented.
|
||||
|
|
Loading…
Add table
Reference in a new issue