diff --git a/.github/workflows/SPMDummy/SPMDummy.xcodeproj/project.pbxproj b/.github/workflows/SPMDummy/SPMDummy.xcodeproj/project.pbxproj new file mode 100644 index 0000000..aadf94c --- /dev/null +++ b/.github/workflows/SPMDummy/SPMDummy.xcodeproj/project.pbxproj @@ -0,0 +1,399 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + C60771B52A98525600268543 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = C60771B42A98525600268543 /* AppDelegate.swift */; }; + C60771B72A98525600268543 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = C60771B62A98525600268543 /* SceneDelegate.swift */; }; + C60771B92A98525600268543 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C60771B82A98525600268543 /* ViewController.swift */; }; + C60771BC2A98525600268543 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C60771BA2A98525600268543 /* Main.storyboard */; platformFilter = ios; }; + C60771BE2A98525A00268543 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C60771BD2A98525A00268543 /* Assets.xcassets */; }; + C60771C12A98525A00268543 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C60771BF2A98525A00268543 /* LaunchScreen.storyboard */; platformFilter = ios; }; + C6C5417E2A98CDCD00BDA70B /* RxNetworkKit in Frameworks */ = {isa = PBXBuildFile; productRef = C6C5417D2A98CDCD00BDA70B /* RxNetworkKit */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + C60771B12A98525600268543 /* SPMDummy.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SPMDummy.app; sourceTree = BUILT_PRODUCTS_DIR; }; + C60771B42A98525600268543 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + C60771B62A98525600268543 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + C60771B82A98525600268543 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + C60771BB2A98525600268543 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + C60771BD2A98525A00268543 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + C60771C02A98525A00268543 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + C60771C22A98525A00268543 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + C60771CA2A98531500268543 /* RxNetworkKit */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = RxNetworkKit; path = ../../..; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + C60771AE2A98525600268543 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + C6C5417E2A98CDCD00BDA70B /* RxNetworkKit in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + C60771A82A98525600268543 = { + isa = PBXGroup; + children = ( + C60771C82A9852BF00268543 /* Packages */, + C60771B32A98525600268543 /* SPMDummy */, + C60771B22A98525600268543 /* Products */, + C60771CB2A98532100268543 /* Frameworks */, + ); + sourceTree = ""; + }; + C60771B22A98525600268543 /* Products */ = { + isa = PBXGroup; + children = ( + C60771B12A98525600268543 /* SPMDummy.app */, + ); + name = Products; + sourceTree = ""; + }; + C60771B32A98525600268543 /* SPMDummy */ = { + isa = PBXGroup; + children = ( + C60771B42A98525600268543 /* AppDelegate.swift */, + C60771B62A98525600268543 /* SceneDelegate.swift */, + C60771B82A98525600268543 /* ViewController.swift */, + C60771BA2A98525600268543 /* Main.storyboard */, + C60771BD2A98525A00268543 /* Assets.xcassets */, + C60771BF2A98525A00268543 /* LaunchScreen.storyboard */, + C60771C22A98525A00268543 /* Info.plist */, + ); + path = SPMDummy; + sourceTree = ""; + }; + C60771C82A9852BF00268543 /* Packages */ = { + isa = PBXGroup; + children = ( + C60771CA2A98531500268543 /* RxNetworkKit */, + ); + name = Packages; + sourceTree = ""; + }; + C60771CB2A98532100268543 /* Frameworks */ = { + isa = PBXGroup; + children = ( + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + C60771B02A98525600268543 /* SPMDummy */ = { + isa = PBXNativeTarget; + buildConfigurationList = C60771C52A98525A00268543 /* Build configuration list for PBXNativeTarget "SPMDummy" */; + buildPhases = ( + C60771AD2A98525600268543 /* Sources */, + C60771AE2A98525600268543 /* Frameworks */, + C60771AF2A98525600268543 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = SPMDummy; + packageProductDependencies = ( + C6C5417D2A98CDCD00BDA70B /* RxNetworkKit */, + ); + productName = SPMDummy; + productReference = C60771B12A98525600268543 /* SPMDummy.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + C60771A92A98525600268543 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1430; + LastUpgradeCheck = 1430; + TargetAttributes = { + C60771B02A98525600268543 = { + CreatedOnToolsVersion = 14.3.1; + }; + }; + }; + buildConfigurationList = C60771AC2A98525600268543 /* Build configuration list for PBXProject "SPMDummy" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = C60771A82A98525600268543; + productRefGroup = C60771B22A98525600268543 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + C60771B02A98525600268543 /* SPMDummy */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + C60771AF2A98525600268543 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + C60771C12A98525A00268543 /* LaunchScreen.storyboard in Resources */, + C60771BE2A98525A00268543 /* Assets.xcassets in Resources */, + C60771BC2A98525600268543 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + C60771AD2A98525600268543 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + C60771B92A98525600268543 /* ViewController.swift in Sources */, + C60771B52A98525600268543 /* AppDelegate.swift in Sources */, + C60771B72A98525600268543 /* SceneDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + C60771BA2A98525600268543 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + C60771BB2A98525600268543 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + C60771BF2A98525A00268543 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + C60771C02A98525A00268543 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + C60771C32A98525A00268543 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 16.4; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + C60771C42A98525A00268543 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 16.4; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + C60771C62A98525A00268543 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = Z3SPAA69G7; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = SPMDummy/Info.plist; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; + INFOPLIST_KEY_UIMainStoryboardFile = Main; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.las.SPMDummy; + PRODUCT_NAME = "$(TARGET_NAME)"; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; + SUPPORTS_MACCATALYST = NO; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + C60771C72A98525A00268543 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = Z3SPAA69G7; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = SPMDummy/Info.plist; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; + INFOPLIST_KEY_UIMainStoryboardFile = Main; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.las.SPMDummy; + PRODUCT_NAME = "$(TARGET_NAME)"; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; + SUPPORTS_MACCATALYST = NO; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + C60771AC2A98525600268543 /* Build configuration list for PBXProject "SPMDummy" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C60771C32A98525A00268543 /* Debug */, + C60771C42A98525A00268543 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + C60771C52A98525A00268543 /* Build configuration list for PBXNativeTarget "SPMDummy" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C60771C62A98525A00268543 /* Debug */, + C60771C72A98525A00268543 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + +/* Begin XCSwiftPackageProductDependency section */ + C6C5417D2A98CDCD00BDA70B /* RxNetworkKit */ = { + isa = XCSwiftPackageProductDependency; + productName = RxNetworkKit; + }; +/* End XCSwiftPackageProductDependency section */ + }; + rootObject = C60771A92A98525600268543 /* Project object */; +} diff --git a/.github/workflows/SPMDummy/SPMDummy.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/.github/workflows/SPMDummy/SPMDummy.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/.github/workflows/SPMDummy/SPMDummy.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/.github/workflows/SPMDummy/SPMDummy.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/.github/workflows/SPMDummy/SPMDummy.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/.github/workflows/SPMDummy/SPMDummy.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/.github/workflows/SPMDummy/SPMDummy.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/.github/workflows/SPMDummy/SPMDummy.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved new file mode 100644 index 0000000..3d62ac3 --- /dev/null +++ b/.github/workflows/SPMDummy/SPMDummy.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -0,0 +1,25 @@ +{ + "object": { + "pins": [ + { + "package": "RxSwift", + "repositoryURL": "https://github.com/ReactiveX/RxSwift.git", + "state": { + "branch": null, + "revision": "9dcaa4b333db437b0fbfaf453fad29069044a8b4", + "version": "6.6.0" + } + }, + { + "package": "RxSwiftExt", + "repositoryURL": "https://github.com/RxSwiftCommunity/RxSwiftExt", + "state": { + "branch": null, + "revision": "a8065d19acbdee55c6e2b2d9a17a420e34ab8d83", + "version": "6.2.0" + } + } + ] + }, + "version": 1 +} diff --git a/.github/workflows/SPMDummy/SPMDummy/AppDelegate.swift b/.github/workflows/SPMDummy/SPMDummy/AppDelegate.swift new file mode 100644 index 0000000..e6f3cb3 --- /dev/null +++ b/.github/workflows/SPMDummy/SPMDummy/AppDelegate.swift @@ -0,0 +1,63 @@ +// +// AppDelegate.swift +// SPMDummy +// +// Created by Loay Ashraf on 25/08/2023. +// + +#if os(iOS) +import UIKit +import RxNetworkKit + +@main +class AppDelegate: UIResponder, UIApplicationDelegate { + + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + // MARK: UISceneSession Lifecycle + + func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { + // Called when a new scene session is being created. + // Use this method to select a configuration to create the new scene with. + return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) + } + + func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { + // Called when the user discards a scene session. + // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. + // Use this method to release any resources that were specific to the discarded scenes, as they will not return. + } + + +} +#elseif os(macOS) +import Cocoa +import RxNetworkKit + +@main +class AppDelegate: NSObject, NSApplicationDelegate { + + + + + func applicationDidFinishLaunching(_ aNotification: Notification) { + // Insert code here to initialize your application + NetworkReachability.shared.start() + } + + func applicationWillTerminate(_ aNotification: Notification) { + // Insert code here to tear down your application + } + + func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool { + return true + } + + +} +#endif diff --git a/.github/workflows/SPMDummy/SPMDummy/Assets.xcassets/AccentColor.colorset/Contents.json b/.github/workflows/SPMDummy/SPMDummy/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/.github/workflows/SPMDummy/SPMDummy/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/.github/workflows/SPMDummy/SPMDummy/Assets.xcassets/AppIcon.appiconset/Contents.json b/.github/workflows/SPMDummy/SPMDummy/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..13613e3 --- /dev/null +++ b/.github/workflows/SPMDummy/SPMDummy/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,13 @@ +{ + "images" : [ + { + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/.github/workflows/SPMDummy/SPMDummy/Assets.xcassets/Contents.json b/.github/workflows/SPMDummy/SPMDummy/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/.github/workflows/SPMDummy/SPMDummy/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/.github/workflows/SPMDummy/SPMDummy/Base.lproj/LaunchScreen.storyboard b/.github/workflows/SPMDummy/SPMDummy/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..865e932 --- /dev/null +++ b/.github/workflows/SPMDummy/SPMDummy/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.github/workflows/SPMDummy/SPMDummy/Base.lproj/Main.storyboard b/.github/workflows/SPMDummy/SPMDummy/Base.lproj/Main.storyboard new file mode 100644 index 0000000..25a7638 --- /dev/null +++ b/.github/workflows/SPMDummy/SPMDummy/Base.lproj/Main.storyboard @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.github/workflows/SPMDummy/SPMDummy/Info.plist b/.github/workflows/SPMDummy/SPMDummy/Info.plist new file mode 100644 index 0000000..dd3c9af --- /dev/null +++ b/.github/workflows/SPMDummy/SPMDummy/Info.plist @@ -0,0 +1,25 @@ + + + + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + UISceneStoryboardFile + Main + + + + + + diff --git a/.github/workflows/SPMDummy/SPMDummy/SceneDelegate.swift b/.github/workflows/SPMDummy/SPMDummy/SceneDelegate.swift new file mode 100644 index 0000000..9d59122 --- /dev/null +++ b/.github/workflows/SPMDummy/SPMDummy/SceneDelegate.swift @@ -0,0 +1,53 @@ +// +// SceneDelegate.swift +// SPMDummy +// +// Created by Loay Ashraf on 25/08/2023. +// + +#if os(iOS) +import UIKit + +class SceneDelegate: UIResponder, UIWindowSceneDelegate { + + var window: UIWindow? + + + func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { + // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. + // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. + // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). + guard let _ = (scene as? UIWindowScene) else { return } + } + + func sceneDidDisconnect(_ scene: UIScene) { + // Called as the scene is being released by the system. + // This occurs shortly after the scene enters the background, or when its session is discarded. + // Release any resources associated with this scene that can be re-created the next time the scene connects. + // The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead). + } + + func sceneDidBecomeActive(_ scene: UIScene) { + // Called when the scene has moved from an inactive state to an active state. + // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. + } + + func sceneWillResignActive(_ scene: UIScene) { + // Called when the scene will move from an active state to an inactive state. + // This may occur due to temporary interruptions (ex. an incoming phone call). + } + + func sceneWillEnterForeground(_ scene: UIScene) { + // Called as the scene transitions from the background to the foreground. + // Use this method to undo the changes made on entering the background. + } + + func sceneDidEnterBackground(_ scene: UIScene) { + // Called as the scene transitions from the foreground to the background. + // Use this method to save data, release shared resources, and store enough scene-specific state information + // to restore the scene back to its current state. + } + + +} +#endif diff --git a/.github/workflows/SPMDummy/SPMDummy/ViewController.swift b/.github/workflows/SPMDummy/SPMDummy/ViewController.swift new file mode 100644 index 0000000..5dda1ee --- /dev/null +++ b/.github/workflows/SPMDummy/SPMDummy/ViewController.swift @@ -0,0 +1,30 @@ +// +// ViewController.swift +// SPMDummy +// +// Created by Loay Ashraf on 25/08/2023. +// + +#if os(iOS) +import UIKit + +class ViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view. + } + + +} +#elseif os(macOS) +import AppKit +class ViewController: NSViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view. + } + +} +#endif diff --git a/.github/workflows/build-ios.yml b/.github/workflows/build-ios.yml new file mode 100644 index 0000000..29acff7 --- /dev/null +++ b/.github/workflows/build-ios.yml @@ -0,0 +1,83 @@ +name: Build iOS + +on: + workflow_call: + +jobs: + framework-ios-simulator: + name: Build Framework For iOS Simulator + runs-on: macos-13 + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set Xcode Version + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: latest-stable + - name: Build Framework + env: + workspace: RxNetworkKit.xcworkspace + scheme: RxNetworkKit + destination: generic/platform=iOS Simulator + run: | + xcodebuild clean build -workspace "${workspace}" -scheme "${scheme}" -destination "${destination}" | xcpretty && exit ${PIPESTATUS[0]} + + framework-ios: + name: Build Framework For iOS Device + runs-on: macos-13 + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set Xcode Version + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: latest-stable + - name: Build Framework + env: + workspace: RxNetworkKit.xcworkspace + scheme: RxNetworkKit + destination: generic/platform=iOS + run: | + xcodebuild clean build -workspace "${workspace}" -scheme "${scheme}" -destination "${destination}" | xcpretty && exit ${PIPESTATUS[0]} + + example-ios-simulator: + name: Build Example For iOS Simulator + runs-on: macos-13 + needs: framework-ios-simulator + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set Xcode Version + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: latest-stable + - name: Build Example + env: + workspace: RxNetworkKit.xcworkspace + scheme: iOS Example + destination: generic/platform=iOS Simulator + run: | + xcodebuild clean build -workspace "${workspace}" -scheme "${scheme}" -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty && exit ${PIPESTATUS[0]} + + example-ios: + name: Build Example For iOS Device + runs-on: macos-13 + needs: framework-ios + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set Xcode Version + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: latest-stable + - name: Build Example + env: + workspace: RxNetworkKit.xcworkspace + scheme: iOS Example + destination: generic/platform=iOS + run: | + xcodebuild clean build -workspace "${workspace}" -scheme "${scheme}" -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty && exit ${PIPESTATUS[0]} diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml new file mode 100644 index 0000000..a9d7faa --- /dev/null +++ b/.github/workflows/build-macos.yml @@ -0,0 +1,45 @@ +name: Build macOS + +on: + workflow_call: + +jobs: + framework-macos: + name: Build Framework For macOS + runs-on: macos-13 + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set Xcode Version + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: latest-stable + - name: Build Framework + env: + workspace: RxNetworkKit.xcworkspace + scheme: RxNetworkKit + destination: generic/platform=macOS + run: | + xcodebuild clean build -workspace "${workspace}" -scheme "${scheme}" -destination "${destination}" | xcpretty && exit ${PIPESTATUS[0]} + + example-macos: + name: Build Example For macOS + runs-on: macos-13 + needs: framework-macos + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set Xcode Version + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: latest-stable + - name: Build Example + env: + workspace: RxNetworkKit.xcworkspace + scheme: macOS Example + destination: generic/platform=macOS + run: | + xcodebuild clean build -workspace "${workspace}" -scheme "${scheme}" -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty && exit ${PIPESTATUS[0]} + diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..893856b --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,18 @@ +name: Build + +on: + push: + branches: + - '**' + pull_request: + branches: + - '**' + +jobs: + build-ios: + name: Build For iOS + uses: ./.github/workflows/build-ios.yml + + build-macos: + name: Build For macOS + uses: ./.github/workflows/build-macos.yml diff --git a/.github/workflows/pod-lib-lint.yml b/.github/workflows/pod-lib-lint.yml new file mode 100644 index 0000000..b9858eb --- /dev/null +++ b/.github/workflows/pod-lib-lint.yml @@ -0,0 +1,30 @@ +name: Cocoapods Library Lint + +on: + workflow_run: + workflows: + - 'Build' + types: + - completed + branches-ignore: + - 'main' + +jobs: + pod-lib-lint: + name: Lint Library For Cocoapods + runs-on: macos-13 + if: ${{ github.event.workflow_run.conclusion == 'success' }} + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set Xcode Version + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: '14.2' + - name: Install Cocoapods + run: | + sudo gem install cocoapods + - name: Library Lint + run: | + pod lib lint --allow-warnings --verbose diff --git a/.github/workflows/pod-trunk-push.yml b/.github/workflows/pod-trunk-push.yml new file mode 100644 index 0000000..2ea9c7e --- /dev/null +++ b/.github/workflows/pod-trunk-push.yml @@ -0,0 +1,32 @@ +name: Cocoapods Trunk Push + +on: + workflow_run: + workflows: + - 'Build' + types: + - completed + branches: + - 'main' + +jobs: + publish-podspec: + name: Push Podspec File To Trunk + runs-on: macos-13 + if: ${{ github.event.workflow_run.conclusion == 'success' }} + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set Xcode Version + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: '14.2' + - name: Install Cocoapods + run: | + sudo gem install cocoapods + - name: Trunk Push + env: + COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} + run: | + pod trunk push --allow-warnings --verbose diff --git a/.github/workflows/spm-lint.yml b/.github/workflows/spm-lint.yml new file mode 100644 index 0000000..d7b503d --- /dev/null +++ b/.github/workflows/spm-lint.yml @@ -0,0 +1,40 @@ +name: Swift Package Manager Lint + +on: + workflow_run: + workflows: + - 'Build' + types: + - completed + branches: + - '**' + +jobs: + spm-lint: + name: Lint Package For Swift Package Manager + runs-on: macos-13 + strategy: + matrix: + destination: ['generic/platform=iOS Simulator', + 'generic/platform=iOS', + 'generic/platform=macOS'] + if: ${{ github.event.workflow_run.conclusion == 'success' }} + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set Xcode Version + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: latest-stable + - name: Update Packages + run: | + swift package update + - name: Build Project + env: + project: ./.github/workflows/SPMDummy/SPMDummy.xcodeproj + scheme: SPMDummy + destination: ${{ matrix.destination }} + run: | + xcodebuild clean build -project "${project}" -scheme "${scheme}" -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty && exit ${PIPESTATUS[0]} + diff --git a/Package.resolved b/Package.resolved index 68394bf..3e0fda4 100644 --- a/Package.resolved +++ b/Package.resolved @@ -15,8 +15,8 @@ "repositoryURL": "https://github.com/RxSwiftCommunity/RxSwiftExt", "state": { "branch": null, - "revision": "a42af9caeab63f2dbde318f1f3dc424f05871a37", - "version": "6.1.0" + "revision": "827bd11853983383b708feaf7da95c560982b2b8", + "version": "6.0.1" } } ] diff --git a/Package.swift b/Package.swift index dcb97ff..5b5b387 100644 --- a/Package.swift +++ b/Package.swift @@ -17,8 +17,8 @@ let package = Package( .library(name: "RxNetworkKit", targets: ["RxNetworkKit"]), ], dependencies: [ - .package(url: "https://github.com/ReactiveX/RxSwift.git", .upToNextMajor(from: "6.5.0")), - .package(url: "https://github.com/RxSwiftCommunity/RxSwiftExt", .upToNextMajor(from: "6.1.0")), + .package(url: "https://github.com/ReactiveX/RxSwift.git", .exact("6.5.0")), + .package(url: "https://github.com/RxSwiftCommunity/RxSwiftExt", .exact("6.0.1")), ], targets: [ .target(name: "RxNetworkKit", dependencies: ["RxSwift", "RxSwiftExt", .product(name: "RxCocoa", package: "RxSwift")], path: "Source"), diff --git a/RxNetworkKit.xcodeproj/project.pbxproj b/RxNetworkKit.xcodeproj/project.pbxproj index 5c67b7c..d09005c 100644 --- a/RxNetworkKit.xcodeproj/project.pbxproj +++ b/RxNetworkKit.xcodeproj/project.pbxproj @@ -646,7 +646,7 @@ 0B77DFDF29D964D40077FBC0 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - BUILD_LIBRARY_FOR_DISTRIBUTION = YES; + BUILD_LIBRARY_FOR_DISTRIBUTION = NO; CODE_SIGN_IDENTITY = ""; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; @@ -709,16 +709,16 @@ isa = XCRemoteSwiftPackageReference; repositoryURL = "https://github.com/ReactiveX/RxSwift"; requirement = { - kind = upToNextMajorVersion; - minimumVersion = 6.0.0; + kind = exactVersion; + version = 6.5.0; }; }; 0B77E0BE29D969370077FBC0 /* XCRemoteSwiftPackageReference "RxSwiftExt" */ = { isa = XCRemoteSwiftPackageReference; repositoryURL = "https://github.com/RxSwiftCommunity/RxSwiftExt"; requirement = { - kind = upToNextMajorVersion; - minimumVersion = 6.0.0; + kind = exactVersion; + version = 6.0.1; }; }; /* End XCRemoteSwiftPackageReference section */ diff --git a/RxNetworkKit.xcworkspace/xcshareddata/swiftpm/Package.resolved b/RxNetworkKit.xcworkspace/xcshareddata/swiftpm/Package.resolved index 77b3f33..6ffbce0 100644 --- a/RxNetworkKit.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/RxNetworkKit.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -23,8 +23,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/RxSwiftCommunity/RxSwiftExt", "state" : { - "revision" : "a42af9caeab63f2dbde318f1f3dc424f05871a37", - "version" : "6.1.0" + "revision" : "827bd11853983383b708feaf7da95c560982b2b8", + "version" : "6.0.1" } } ],