mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-06 04:24:29 +00:00
Rebranded the app for iOS
This commit is contained in:
committed by
Konstantin Pastbin
parent
51b669cfd1
commit
d4e1d53c40
@@ -12,7 +12,7 @@ public:
|
||||
/*!
|
||||
* \warning The order of values below shall not be changed.
|
||||
* \warning The values of Units shall be synchronized with values of Distance.Units enum in
|
||||
* java (see app.organicmaps.util.Distance for details).
|
||||
* java (see app.comaps.util.Distance for details).
|
||||
* \warning The values of Units shall be synchronized with values of unitLength func in
|
||||
* swift (see iphone/Maps/Classes/CarPlay/Templates Data/RouteInfo.swift for details).
|
||||
*/
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
|
||||
Platform::Platform()
|
||||
{
|
||||
// OMaps.app/Content/Resources or omim-build-debug for tests.
|
||||
// CoMaps.app/Content/Resources or omim-build-debug for tests.
|
||||
std::string const resourcesPath = NSBundle.mainBundle.resourcePath.UTF8String;
|
||||
// Omaps.app or omim-build-debug for tests.
|
||||
// CoMaps.app or omim-build-debug for tests.
|
||||
std::string const bundlePath = NSBundle.mainBundle.bundlePath.UTF8String;
|
||||
// Current working directory, can be overrided for Xcode projects in the scheme's settings.
|
||||
std::string const currentDir = [NSFileManager.defaultManager currentDirectoryPath].UTF8String;
|
||||
@@ -109,9 +109,9 @@ Platform::Platform()
|
||||
NSString * supportDir = [dirPaths objectAtIndex:0];
|
||||
m_writableDir = supportDir.UTF8String;
|
||||
#ifdef BUILD_DESIGNER
|
||||
m_writableDir += "/OMapsData.Designer/";
|
||||
m_writableDir += "/CoMapsData.Designer/";
|
||||
#else // BUILD_DESIGNER
|
||||
m_writableDir += "/OMapsData/";
|
||||
m_writableDir += "/CoMapsData/";
|
||||
#endif // BUILD_DESIGNER
|
||||
::mkdir(m_writableDir.c_str(), 0755);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user