From 47799bd3e65c076460bbab1f194deead5b42567d Mon Sep 17 00:00:00 2001 From: Andrea Busi Date: Thu, 30 Jul 2020 13:45:23 +0200 Subject: [PATCH] refactor: Add prefix header to expose Swift classes to ObjC --- .../Earthquake Network.xcodeproj/project.pbxproj | 4 ++++ .../Earthquake Network-Prefix.pch | 13 +++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 Sources/Earthquake Network/Earthquake Network-Prefix.pch diff --git a/Sources/Earthquake Network.xcodeproj/project.pbxproj b/Sources/Earthquake Network.xcodeproj/project.pbxproj index 3b61be0..a22351d 100644 --- a/Sources/Earthquake Network.xcodeproj/project.pbxproj +++ b/Sources/Earthquake Network.xcodeproj/project.pbxproj @@ -350,6 +350,7 @@ DCD3E3BF24D15576007C78D4 /* PurchaseProVersionViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PurchaseProVersionViewController.swift; sourceTree = ""; }; DCF10DC524D2B8C7009F34C3 /* EQNPurchaseUtility.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EQNPurchaseUtility.swift; sourceTree = ""; }; DCF10DCC24D2C935009F34C3 /* EQNPurchaseAvailability.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EQNPurchaseAvailability.swift; sourceTree = ""; }; + DCF10DDB24D2E7BE009F34C3 /* Earthquake Network-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Earthquake Network-Prefix.pch"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -672,6 +673,7 @@ DC3ADD2A24CB1E6600737919 /* Supporting Files */ = { isa = PBXGroup; children = ( + DCF10DDB24D2E7BE009F34C3 /* Earthquake Network-Prefix.pch */, 8CBD3DD72149B9AD0070C963 /* main.m */, 8C10B0C42282360900125C9F /* Info.plist */, 8C4DD4FB228237E000AE77ED /* InfoPlist.strings */, @@ -1347,6 +1349,7 @@ CURRENT_PROJECT_VERSION = 6; DEFINES_MODULE = YES; DEVELOPMENT_TEAM = WJA4MR4CPC; + GCC_PREFIX_HEADER = "Earthquake Network/Earthquake Network-Prefix.pch"; INFOPLIST_FILE = "Earthquake Network/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.finazzi.distquake; @@ -1372,6 +1375,7 @@ CURRENT_PROJECT_VERSION = 6; DEFINES_MODULE = YES; DEVELOPMENT_TEAM = WJA4MR4CPC; + GCC_PREFIX_HEADER = "Earthquake Network/Earthquake Network-Prefix.pch"; INFOPLIST_FILE = "Earthquake Network/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.finazzi.distquake; diff --git a/Sources/Earthquake Network/Earthquake Network-Prefix.pch b/Sources/Earthquake Network/Earthquake Network-Prefix.pch new file mode 100644 index 0000000..92030aa --- /dev/null +++ b/Sources/Earthquake Network/Earthquake Network-Prefix.pch @@ -0,0 +1,13 @@ +// +// Earthquake Network-Prefix.pch +// Earthquake Network +// +// Created by Busi Andrea on 30/07/2020. +// Copyright © 2020 Earthquake Network. All rights reserved. +// + +#ifdef __OBJC__ + +#import "Earthquake_Network-Swift.h" + +#endif