From 5e2916d98fd8aae9ac42745bbc3905a659b388f0 Mon Sep 17 00:00:00 2001 From: NachoSoto Date: Sat, 24 Jun 2023 12:13:57 -0700 Subject: [PATCH] Add support for `xrOS` See also: - https://github.com/ReactiveCocoa/ReactiveSwift/pull/875 - https://github.com/ReactiveCocoa/ReactiveCocoa/pull/3740 --- AsyncImageView.xcodeproj/project.pbxproj | 158 +++++++++++++++++- .../xcschemes/AsyncImageView-xrOS.xcscheme | 66 ++++++++ Cartfile | 2 +- 3 files changed, 224 insertions(+), 2 deletions(-) create mode 100644 AsyncImageView.xcodeproj/xcshareddata/xcschemes/AsyncImageView-xrOS.xcscheme diff --git a/AsyncImageView.xcodeproj/project.pbxproj b/AsyncImageView.xcodeproj/project.pbxproj index 971f8e5..1ba022f 100644 --- a/AsyncImageView.xcodeproj/project.pbxproj +++ b/AsyncImageView.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 52; + objectVersion = 54; objects = { /* Begin PBXBuildFile section */ @@ -65,6 +65,29 @@ 57BD68D21C0261880077A391 /* Caching.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57BD68CF1C0261880077A391 /* Caching.swift */; }; 57BD68D31C0261880077A391 /* Caching.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57BD68CF1C0261880077A391 /* Caching.swift */; }; 57BD68E31C0268930077A391 /* AsyncImageView.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 57BD68351C02598F0077A391 /* AsyncImageView.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 57C885572A47778800FC133C /* AsyncImageView.h in Headers */ = {isa = PBXBuildFile; fileRef = 57BD68381C02598F0077A391 /* AsyncImageView.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 57C885592A47778800FC133C /* LocalImageRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 570994041C0903BF0010B340 /* LocalImageRenderer.swift */; }; + 57C8855A2A47778800FC133C /* SimpleImageProcessingRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 786FF8BF1DA20260005BB73E /* SimpleImageProcessingRenderer.swift */; }; + 57C8855B2A47778800FC133C /* RemoteImageRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57FC1B001C0293CE00FAD2F3 /* RemoteImageRenderer.swift */; }; + 57C8855C2A47778800FC133C /* AsyncImageView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57BD68CB1C02614B0077A391 /* AsyncImageView.swift */; }; + 57C8855D2A47778800FC133C /* ErrorIgnoringRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57645A731C0AAA1F00EEDCF8 /* ErrorIgnoringRenderer.swift */; }; + 57C8855E2A47778800FC133C /* Caching.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57BD68CF1C0261880077A391 /* Caching.swift */; }; + 57C8855F2A47778800FC133C /* ImageInflaterRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57FC1AFF1C0293CE00FAD2F3 /* ImageInflaterRenderer.swift */; }; + 57C885602A47778800FC133C /* EmptyRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 571FE6A91C0A6A1000E566D2 /* EmptyRenderer.swift */; }; + 57C885612A47778800FC133C /* SynchronousUIScheduler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57E56F23288CA04000A4381B /* SynchronousUIScheduler.swift */; }; + 57C885622A47778800FC133C /* ContextRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5709940D1C0912D30010B340 /* ContextRenderer.swift */; }; + 57C885632A47778800FC133C /* ViewRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5715712E1E60C8D000D0FB1E /* ViewRenderer.swift */; }; + 57C885642A47778800FC133C /* FallbackRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57FC1AFE1C0293CE00FAD2F3 /* FallbackRenderer.swift */; }; + 57C885652A47778800FC133C /* Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57F5C59A1C052A6000753642 /* Extensions.swift */; }; + 57C885662A47778800FC133C /* CacheRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57FC1B0C1C0294D400FAD2F3 /* CacheRenderer.swift */; }; + 57C885672A47778800FC133C /* AsyncImageLoader.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5119EE53245CDD6A003CBEB5 /* AsyncImageLoader.swift */; }; + 57C885682A47778800FC133C /* RemoteOrLocalImageRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 571B6A111E57928000AB82B4 /* RemoteOrLocalImageRenderer.swift */; }; + 57C885692A47778800FC133C /* AnyRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57FC1AFD1C0293CE00FAD2F3 /* AnyRenderer.swift */; }; + 57C8856A2A47778800FC133C /* ImageProcessingRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 570994091C090E050010B340 /* ImageProcessingRenderer.swift */; }; + 57C8856B2A47778800FC133C /* AsyncSwiftUIImageView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5119EE50245CDBB7003CBEB5 /* AsyncSwiftUIImageView.swift */; }; + 57C8856C2A47778800FC133C /* MulticastedRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 570993FD1C08F7C70010B340 /* MulticastedRenderer.swift */; }; + 57C8856D2A47778800FC133C /* Renderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57FC1B011C0293CE00FAD2F3 /* Renderer.swift */; }; + 57C8856F2A47778800FC133C /* ReactiveSwift.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5720ABE726611E18009B2F19 /* ReactiveSwift.xcframework */; }; 57E56F24288CA04000A4381B /* SynchronousUIScheduler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57E56F23288CA04000A4381B /* SynchronousUIScheduler.swift */; }; 57E56F25288CA04000A4381B /* SynchronousUIScheduler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57E56F23288CA04000A4381B /* SynchronousUIScheduler.swift */; }; 57E56F26288CA04000A4381B /* SynchronousUIScheduler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57E56F23288CA04000A4381B /* SynchronousUIScheduler.swift */; }; @@ -159,6 +182,7 @@ 57BD68C51C02607F0077A391 /* tvOS-StaticLibrary.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "tvOS-StaticLibrary.xcconfig"; sourceTree = ""; }; 57BD68CB1C02614B0077A391 /* AsyncImageView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AsyncImageView.swift; sourceTree = ""; }; 57BD68CF1C0261880077A391 /* Caching.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Caching.swift; sourceTree = ""; }; + 57C885742A47778800FC133C /* AsyncImageView.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = AsyncImageView.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 57E56F23288CA04000A4381B /* SynchronousUIScheduler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SynchronousUIScheduler.swift; sourceTree = ""; }; 57F5C5901C051ABB00753642 /* CachingSpec.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CachingSpec.swift; sourceTree = ""; }; 57F5C59A1C052A6000753642 /* Extensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Extensions.swift; sourceTree = ""; }; @@ -207,6 +231,14 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 57C8856E2A47778800FC133C /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 57C8856F2A47778800FC133C /* ReactiveSwift.xcframework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ @@ -249,6 +281,7 @@ 57BD683F1C02598F0077A391 /* AsyncImageViewTests.xctest */, 57BD687D1C025DFD0077A391 /* AsyncImageView.framework */, 5711069028874C32006479D7 /* AsyncImageView.framework */, + 57C885742A47778800FC133C /* AsyncImageView.framework */, ); name = Products; sourceTree = ""; @@ -405,6 +438,14 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 57C885562A47778800FC133C /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 57C885572A47778800FC133C /* AsyncImageView.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXHeadersBuildPhase section */ /* Begin PBXNativeTarget section */ @@ -481,6 +522,24 @@ productReference = 57BD687D1C025DFD0077A391 /* AsyncImageView.framework */; productType = "com.apple.product-type.framework"; }; + 57C885552A47778800FC133C /* AsyncImageView-xrOS */ = { + isa = PBXNativeTarget; + buildConfigurationList = 57C885712A47778800FC133C /* Build configuration list for PBXNativeTarget "AsyncImageView-xrOS" */; + buildPhases = ( + 57C885562A47778800FC133C /* Headers */, + 57C885582A47778800FC133C /* Sources */, + 57C8856E2A47778800FC133C /* Frameworks */, + 57C885702A47778800FC133C /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "AsyncImageView-xrOS"; + productName = AsyncImageView; + productReference = 57C885742A47778800FC133C /* AsyncImageView.framework */; + productType = "com.apple.product-type.framework"; + }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ @@ -517,6 +576,7 @@ 57BD68341C02598F0077A391 /* AsyncImageView-iOS */, 57BD68741C025DFD0077A391 /* AsyncImageView-tvOS */, 5711067228874C32006479D7 /* AsyncImageView-watchOS */, + 57C885552A47778800FC133C /* AsyncImageView-xrOS */, 57BD683E1C02598F0077A391 /* AsyncImageViewTests */, ); }; @@ -551,6 +611,13 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 57C885702A47778800FC133C /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -651,6 +718,34 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 57C885582A47778800FC133C /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 57C885592A47778800FC133C /* LocalImageRenderer.swift in Sources */, + 57C8855A2A47778800FC133C /* SimpleImageProcessingRenderer.swift in Sources */, + 57C8855B2A47778800FC133C /* RemoteImageRenderer.swift in Sources */, + 57C8855C2A47778800FC133C /* AsyncImageView.swift in Sources */, + 57C8855D2A47778800FC133C /* ErrorIgnoringRenderer.swift in Sources */, + 57C8855E2A47778800FC133C /* Caching.swift in Sources */, + 57C8855F2A47778800FC133C /* ImageInflaterRenderer.swift in Sources */, + 57C885602A47778800FC133C /* EmptyRenderer.swift in Sources */, + 57C885612A47778800FC133C /* SynchronousUIScheduler.swift in Sources */, + 57C885622A47778800FC133C /* ContextRenderer.swift in Sources */, + 57C885632A47778800FC133C /* ViewRenderer.swift in Sources */, + 57C885642A47778800FC133C /* FallbackRenderer.swift in Sources */, + 57C885652A47778800FC133C /* Extensions.swift in Sources */, + 57C885662A47778800FC133C /* CacheRenderer.swift in Sources */, + 57C885672A47778800FC133C /* AsyncImageLoader.swift in Sources */, + 57C885682A47778800FC133C /* RemoteOrLocalImageRenderer.swift in Sources */, + 57C885692A47778800FC133C /* AnyRenderer.swift in Sources */, + 57C8856A2A47778800FC133C /* ImageProcessingRenderer.swift in Sources */, + 57C8856B2A47778800FC133C /* AsyncSwiftUIImageView.swift in Sources */, + 57C8856C2A47778800FC133C /* MulticastedRenderer.swift in Sources */, + 57C8856D2A47778800FC133C /* Renderer.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ @@ -935,6 +1030,58 @@ }; name = Release; }; + 57C885722A47778800FC133C /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 57BD68B81C02607F0077A391 /* iOS-Framework.xcconfig */; + buildSettings = { + ALLOW_TARGET_PLATFORM_SPECIALIZATION = YES; + CLANG_ENABLE_MODULES = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = AsyncImageView/Info.plist; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.nachosoto.AsyncImageView; + SDKROOT = xros; + SKIP_INSTALL = YES; + SUPPORTED_PLATFORMS = "xrsimulator xros"; + TARGETED_DEVICE_FAMILY = 7; + }; + name = Debug; + }; + 57C885732A47778800FC133C /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 57BD68B81C02607F0077A391 /* iOS-Framework.xcconfig */; + buildSettings = { + ALLOW_TARGET_PLATFORM_SPECIALIZATION = YES; + CLANG_ENABLE_MODULES = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = AsyncImageView/Info.plist; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.nachosoto.AsyncImageView; + SDKROOT = xros; + SKIP_INSTALL = YES; + SUPPORTED_PLATFORMS = "xrsimulator xros"; + TARGETED_DEVICE_FAMILY = 7; + }; + name = Release; + }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ @@ -983,6 +1130,15 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + 57C885712A47778800FC133C /* Build configuration list for PBXNativeTarget "AsyncImageView-xrOS" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 57C885722A47778800FC133C /* Debug */, + 57C885732A47778800FC133C /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; /* End XCConfigurationList section */ }; rootObject = 57BD682C1C02598F0077A391 /* Project object */; diff --git a/AsyncImageView.xcodeproj/xcshareddata/xcschemes/AsyncImageView-xrOS.xcscheme b/AsyncImageView.xcodeproj/xcshareddata/xcschemes/AsyncImageView-xrOS.xcscheme new file mode 100644 index 0000000..1ea54ef --- /dev/null +++ b/AsyncImageView.xcodeproj/xcshareddata/xcschemes/AsyncImageView-xrOS.xcscheme @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Cartfile b/Cartfile index 94271c3..13f5b06 100644 --- a/Cartfile +++ b/Cartfile @@ -1 +1 @@ -github "NachoSoto/ReactiveSwift" "master" +github "ReactiveCocoa/ReactiveSwift" "xros"