[ios] Allowed to use C++ editor methods directly from Swift

Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
Yannik Bloscheck
2025-07-03 20:41:05 +02:00
committed by Konstantin Pastbin
parent 13ba20aa25
commit ef9618b3d6
6 changed files with 24 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
#import "MWMAlertViewController.h"
#import "MWMOsmAuthAlert.h"
#include <string>
#include "editor/osm_auth.hpp"
static NSString * const kMap2OsmLoginSegue = @"Map2OsmLogin";

View File

@@ -1,3 +1,4 @@
#include <string>
#include "editor/osm_auth.hpp"
namespace osm_auth_ios

View File

@@ -2,6 +2,8 @@
#import <CoreApi/AppInfo.h>
#import "MWMAuthorizationCommon.h"
#include <string>
#include <map>
#include "editor/osm_editor.hpp"
@implementation MWMEditorHelper

View File

@@ -5235,6 +5235,8 @@
OTHER_SWIFT_FLAGS = "$(inherited)";
PRODUCT_BUNDLE_IDENTIFIER = app.comaps.debug;
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_INCLUDE_PATHS = "$(OMIM_ROOT)/editor";
SWIFT_OBJC_INTEROP_MODE = objcxx;
};
name = Debug;
};
@@ -5268,6 +5270,8 @@
OTHER_SWIFT_FLAGS = "$(inherited)";
PRODUCT_BUNDLE_IDENTIFIER = app.comaps;
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_INCLUDE_PATHS = "$(OMIM_ROOT)/editor";
SWIFT_OBJC_INTEROP_MODE = objcxx;
};
name = Release;
};
@@ -5391,12 +5395,13 @@
"$(OTHER_CFLAGS)",
"-fcxx-modules",
);
OTHER_SWIFT_FLAGS = "$(inherited)";
OTHER_SWIFT_FLAGS = "$(inherited) -cxx-interoperability-mode=default";
PRODUCT_BUNDLE_IDENTIFIER = "${BUNDLE_IDENTIFIER}";
PRODUCT_NAME = "CoMaps (Debug)";
SDKROOT = iphoneos;
SKIP_INSTALL = NO;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
SWIFT_INCLUDE_PATHS = "$(OMIM_ROOT)/editor";
SWIFT_OBJC_BRIDGING_HEADER = "Bridging-Header.h";
SWIFT_OBJC_INTERFACE_HEADER_NAME = SwiftBridge.h;
SWIFT_PRECOMPILE_BRIDGING_HEADER = NO;
@@ -5431,12 +5436,13 @@
"$(OTHER_CFLAGS)",
"-fcxx-modules",
);
OTHER_SWIFT_FLAGS = "$(inherited)";
OTHER_SWIFT_FLAGS = "$(inherited) -cxx-interoperability-mode=default";
PRODUCT_BUNDLE_IDENTIFIER = "${BUNDLE_IDENTIFIER}";
PRODUCT_NAME = CoMaps;
SDKROOT = iphoneos;
SKIP_INSTALL = NO;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
SWIFT_INCLUDE_PATHS = "$(OMIM_ROOT)/editor";
SWIFT_OBJC_BRIDGING_HEADER = "Bridging-Header.h";
SWIFT_OBJC_INTERFACE_HEADER_NAME = SwiftBridge.h;
SWIFT_PRECOMPILE_BRIDGING_HEADER = NO;