From 50c98badd76a8e7fdff2693356a5a31aa3c233b8 Mon Sep 17 00:00:00 2001 From: Sanju Naik <66404008+sanju-naik@users.noreply.github.com> Date: Wed, 26 Jul 2023 16:27:46 +0530 Subject: [PATCH] Remove unused headerfiles and also remove .h,.m reference from podspecs (#26) Co-authored-by: Sanju Naik --- Courier.xcodeproj/project.pbxproj | 12 +++++------- CourierCore.podspec | 4 ++-- CourierMQTT.podspec | 4 ++-- CourierMQTT/CourierMQTT-Bridging-Header.h | 4 ---- CourierMQTTChuck.podspec | 4 ++-- CourierProtobuf.podspec | 4 ++-- MQTTClientGJ.podspec | 2 +- Podfile.lock | 2 +- 8 files changed, 15 insertions(+), 21 deletions(-) delete mode 100644 CourierMQTT/CourierMQTT-Bridging-Header.h diff --git a/Courier.xcodeproj/project.pbxproj b/Courier.xcodeproj/project.pbxproj index b3541be..a251eea 100644 --- a/Courier.xcodeproj/project.pbxproj +++ b/Courier.xcodeproj/project.pbxproj @@ -509,7 +509,6 @@ 8BC4E3162803D54F0079DADE /* MockIncomingMessagePersistence.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MockIncomingMessagePersistence.swift; sourceTree = ""; }; 8BE0DD41270BE3B000630D60 /* libCourierCore.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libCourierCore.a; sourceTree = BUILT_PRODUCTS_DIR; }; 8BE0DD6D270BE47300630D60 /* libCourierMQTT.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libCourierMQTT.a; sourceTree = BUILT_PRODUCTS_DIR; }; - 8BE0DEAE270BE50500630D60 /* CourierMQTT-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "CourierMQTT-Bridging-Header.h"; sourceTree = ""; }; 8BE0DEB0270BE50600630D60 /* Publisher.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Publisher.swift; sourceTree = ""; }; 8BE0DEB1270BE50600630D60 /* AnyCancellable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AnyCancellable.swift; sourceTree = ""; }; 8BE0DEB4270BE50700630D60 /* IAuthFailureHandler.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IAuthFailureHandler.swift; sourceTree = ""; }; @@ -1118,7 +1117,6 @@ 8BE0DEAF270BE50600630D60 /* Publishers */, 8BE0DEF9270BE50800630D60 /* Reactive */, 8BE0DF57270BE50900630D60 /* Utils */, - 8BE0DEAE270BE50500630D60 /* CourierMQTT-Bridging-Header.h */, ); path = CourierMQTT; sourceTree = ""; @@ -2644,7 +2642,7 @@ OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; - SWIFT_OBJC_BRIDGING_HEADER = "CourierMQTT/CourierMQTT-Bridging-Header.h"; + SWIFT_OBJC_BRIDGING_HEADER = ""; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -2667,7 +2665,7 @@ OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; - SWIFT_OBJC_BRIDGING_HEADER = "CourierMQTT/CourierMQTT-Bridging-Header.h"; + SWIFT_OBJC_BRIDGING_HEADER = ""; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -2690,7 +2688,7 @@ OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; - SWIFT_OBJC_BRIDGING_HEADER = "CourierMQTT/CourierMQTT-Bridging-Header.h"; + SWIFT_OBJC_BRIDGING_HEADER = ""; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -2713,7 +2711,7 @@ OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; - SWIFT_OBJC_BRIDGING_HEADER = "CourierMQTT/CourierMQTT-Bridging-Header.h"; + SWIFT_OBJC_BRIDGING_HEADER = ""; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -2736,7 +2734,7 @@ OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; - SWIFT_OBJC_BRIDGING_HEADER = "CourierMQTT/CourierMQTT-Bridging-Header.h"; + SWIFT_OBJC_BRIDGING_HEADER = ""; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; }; diff --git a/CourierCore.podspec b/CourierCore.podspec index 1df32ad..4666fd6 100644 --- a/CourierCore.podspec +++ b/CourierCore.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |c| c.name = 'CourierCore' - c.version = '0.0.20' + c.version = '0.0.21' c.summary = "Gojek iOS Long Run Connection Open Source SDK" c.description = "Publish and Subscribe data with bidirectional communication between client and server" @@ -14,5 +14,5 @@ Pod::Spec.new do |c| :tag => "#{c.version}" } c.swift_version = '5.3' - c.source_files = 'CourierCore/**/*.{h,m,swift}' + c.source_files = 'CourierCore/**/*.swift' end \ No newline at end of file diff --git a/CourierMQTT.podspec b/CourierMQTT.podspec index e792f66..3e34c23 100644 --- a/CourierMQTT.podspec +++ b/CourierMQTT.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |c| c.name = 'CourierMQTT' - c.version = '0.0.20' + c.version = '0.0.21' c.summary = "Gojek iOS Long Run Connection Open Source SDK" c.description = "Publish and Subscribe data with bidirectional communication between client and server" @@ -14,7 +14,7 @@ Pod::Spec.new do |c| :tag => "#{c.version}" } c.swift_version = '5.3' - c.source_files = "CourierMQTT/**/*.{h,m,swift}" + c.source_files = "CourierMQTT/**/*.swift" c.dependency 'CourierCore', "#{c.version}" # Make sure to use the forked version from private podspec "ios-ca-podspecs" as it contains critical fix on MQTTSession for transportDidClose diff --git a/CourierMQTT/CourierMQTT-Bridging-Header.h b/CourierMQTT/CourierMQTT-Bridging-Header.h deleted file mode 100644 index 5ccd51b..0000000 --- a/CourierMQTT/CourierMQTT-Bridging-Header.h +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/CourierMQTTChuck.podspec b/CourierMQTTChuck.podspec index 48d092c..cc0e54c 100644 --- a/CourierMQTTChuck.podspec +++ b/CourierMQTTChuck.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |c| c.name = 'CourierMQTTChuck' - c.version = '0.0.20' + c.version = '0.0.21' c.summary = "Gojek iOS Long Run Connection Open Source SDK" c.description = "Publish and Subscribe data with bidirectional communication between client and server" @@ -15,7 +15,7 @@ Pod::Spec.new do |c| } c.swift_version = '5.3' - c.source_files = "CourierMQTTChuck/**/*.{h,m,swift}" + c.source_files = "CourierMQTTChuck/**/*.swift" c.dependency 'CourierCore', "#{c.version}" c.dependency 'CourierMQTT', "#{c.version}" diff --git a/CourierProtobuf.podspec b/CourierProtobuf.podspec index 6ffa15e..251d55f 100644 --- a/CourierProtobuf.podspec +++ b/CourierProtobuf.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |c| c.name = 'CourierProtobuf' - c.version = '0.0.20' + c.version = '0.0.21' c.summary = "Gojek iOS Long Run Connection Open Source SDK" c.description = "Publish and Subscribe data with bidirectional communication between client and server" @@ -15,7 +15,7 @@ Pod::Spec.new do |c| } c.swift_version = '5.3' - c.source_files = "CourierProtobuf/**/*.{h,m,swift}" + c.source_files = "CourierProtobuf/**/*.swift" c.dependency 'CourierCore', "#{c.version}" c.dependency 'CourierMQTT', "#{c.version}" diff --git a/MQTTClientGJ.podspec b/MQTTClientGJ.podspec index 5feeabf..36bd144 100644 --- a/MQTTClientGJ.podspec +++ b/MQTTClientGJ.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |mqttc| mqttc.name = "MQTTClientGJ" - mqttc.version = "0.0.20" + mqttc.version = "0.0.21" mqttc.summary = "iOS, macOS and tvOS native ObjectiveC MQTT Client Framework" mqttc.homepage = "https://github.com/gojek/courier-iOS" mqttc.license = "EPLv1" diff --git a/Podfile.lock b/Podfile.lock index 9b9ba7c..0b150c3 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -7,7 +7,7 @@ DEPENDENCIES: - SwiftProtobuf SPEC REPOS: - https://github.com/CocoaPods/Specs.git: + trunk: - ReachabilitySwift - SwiftProtobuf