diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cfb849f1..4b6159ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,3 +60,17 @@ jobs: run: sudo xcode-select --switch /Applications/Xcode_12.5.1.app/Contents/Developer - name: Build run: Scripts/build.swift spm ${{ matrix.platform }} + carthage: + name: Carthage Build + runs-on: macOS-11 + strategy: + matrix: + platform: ['iOS_14'] + fail-fast: false + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + - name: Select Xcode Version (12.5.1) + run: sudo xcode-select --switch /Applications/Xcode_12.5.1.app/Contents/Developer + - name: Build + run: Scripts/build.swift carthage ${{ matrix.platform }} diff --git a/Scripts/build.swift b/Scripts/build.swift index 6f4db3df..959b833d 100755 --- a/Scripts/build.swift +++ b/Scripts/build.swift @@ -70,6 +70,7 @@ enum Platform: String, CustomStringConvertible { enum Task: String, CustomStringConvertible { case spm case xcode + case carthage var workspace: String? { switch self { @@ -77,6 +78,8 @@ enum Task: String, CustomStringConvertible { return nil case .xcode: return "Example/AccessibilitySnapshot.xcworkspace" + case .carthage: + return nil } } @@ -86,6 +89,8 @@ enum Task: String, CustomStringConvertible { return nil case .xcode: return nil + case .carthage: + return "Sources/AccessibilitySnapshotCore.xcodeproj" } } @@ -95,6 +100,8 @@ enum Task: String, CustomStringConvertible { return "AccessibilitySnapshot" case .xcode: return "AccessibilitySnapshotDemo" + case .carthage: + return "AccessibilitySnapshotCore" } } @@ -104,6 +111,8 @@ enum Task: String, CustomStringConvertible { return false case .xcode: return true + case .carthage: + return false } } diff --git a/Sources/AccessibilitySnapshotCore.xcodeproj/project.pbxproj b/Sources/AccessibilitySnapshotCore.xcodeproj/project.pbxproj new file mode 100644 index 00000000..1cf543c5 --- /dev/null +++ b/Sources/AccessibilitySnapshotCore.xcodeproj/project.pbxproj @@ -0,0 +1,675 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + EF28C2D92A55CA3A00D78303 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = EF4D51DF2A55A4A400FF0E46 /* Images.xcassets */; }; + EF28C2DA2A55CA4600D78303 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = EF4D51DC2A55A4A400FF0E46 /* Localizable.strings */; }; + EF28C2DB2A55CA5800D78303 /* AccessibilitySnapshot.bundle in Resources */ = {isa = PBXBuildFile; fileRef = EF28C2D52A55CA2700D78303 /* AccessibilitySnapshot.bundle */; }; + EF4D51F32A55A51D00FF0E46 /* AccessibilitySnapshotCore.h in Headers */ = {isa = PBXBuildFile; fileRef = EF4D51F22A55A51D00FF0E46 /* AccessibilitySnapshotCore.h */; settings = {ATTRIBUTES = (Public, ); }; }; + EF4D51FD2A55A68500FF0E46 /* String+Localization.swift in Sources */ = {isa = PBXBuildFile; fileRef = EF4D51DA2A55A4A400FF0E46 /* String+Localization.swift */; }; + EF4D51FE2A55A68500FF0E46 /* UIAccessibility+SnapshotAdditions.swift in Sources */ = {isa = PBXBuildFile; fileRef = EF4D51D62A55A4A400FF0E46 /* UIAccessibility+SnapshotAdditions.swift */; }; + EF4D51FF2A55A68500FF0E46 /* AccessibilityHierarchyParser.swift in Sources */ = {isa = PBXBuildFile; fileRef = EF4D51D82A55A4A400FF0E46 /* AccessibilityHierarchyParser.swift */; }; + EF4D52002A55A68500FF0E46 /* UIApplication+FirstKeyWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = EF4D51D92A55A4A400FF0E46 /* UIApplication+FirstKeyWindow.swift */; }; + EF4D52012A55A68500FF0E46 /* UIView+InvertColorsSnapshotting.swift in Sources */ = {isa = PBXBuildFile; fileRef = EF4D51D52A55A4A400FF0E46 /* UIView+InvertColorsSnapshotting.swift */; }; + EF4D52022A55A68500FF0E46 /* AccessibilitySnapshotView.swift in Sources */ = {isa = PBXBuildFile; fileRef = EF4D51D72A55A4A400FF0E46 /* AccessibilitySnapshotView.swift */; }; + EF4D52042A55A69A00FF0E46 /* ASAccessibilityEnabler.m in Sources */ = {isa = PBXBuildFile; fileRef = EF4D51E32A55A4A400FF0E46 /* ASAccessibilityEnabler.m */; }; + EF4D52062A55A69A00FF0E46 /* UIView+DynamicTypeSnapshotting.m in Sources */ = {isa = PBXBuildFile; fileRef = EF4D51E42A55A4A400FF0E46 /* UIView+DynamicTypeSnapshotting.m */; }; + EF4D52072A55A69A00FF0E46 /* UIAccessibilityStatusUtility.m in Sources */ = {isa = PBXBuildFile; fileRef = EF4D51E52A55A4A400FF0E46 /* UIAccessibilityStatusUtility.m */; }; + EF4D52082A55A6A100FF0E46 /* UIApplication+DynamicTypeSnapshotting.m in Sources */ = {isa = PBXBuildFile; fileRef = EF4D51E92A55A4A400FF0E46 /* UIApplication+DynamicTypeSnapshotting.m */; }; + EF4D52092A55A6D000FF0E46 /* UIApplication+DynamicTypeSnapshotting.h in Headers */ = {isa = PBXBuildFile; fileRef = EF4D51E22A55A4A400FF0E46 /* UIApplication+DynamicTypeSnapshotting.h */; settings = {ATTRIBUTES = (Public, ); }; }; + EF4D520A2A55A6D000FF0E46 /* UIAccessibilityStatusUtility.h in Headers */ = {isa = PBXBuildFile; fileRef = EF4D51E82A55A4A400FF0E46 /* UIAccessibilityStatusUtility.h */; settings = {ATTRIBUTES = (Public, ); }; }; + EF4D520B2A55A6D000FF0E46 /* UIView+DynamicTypeSnapshotting.h in Headers */ = {isa = PBXBuildFile; fileRef = EF4D51E72A55A4A400FF0E46 /* UIView+DynamicTypeSnapshotting.h */; settings = {ATTRIBUTES = (Public, ); }; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + EF28C2DC2A55CAF600D78303 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = EF4D51CC2A55A3B200FF0E46 /* Project object */; + proxyType = 1; + remoteGlobalIDString = EF28C2D42A55CA2700D78303; + remoteInfo = AccessibilitySnapshot; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + EF28C2D52A55CA2700D78303 /* AccessibilitySnapshot.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AccessibilitySnapshot.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; + EF4D51D52A55A4A400FF0E46 /* UIView+InvertColorsSnapshotting.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIView+InvertColorsSnapshotting.swift"; sourceTree = ""; }; + EF4D51D62A55A4A400FF0E46 /* UIAccessibility+SnapshotAdditions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIAccessibility+SnapshotAdditions.swift"; sourceTree = ""; }; + EF4D51D72A55A4A400FF0E46 /* AccessibilitySnapshotView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccessibilitySnapshotView.swift; sourceTree = ""; }; + EF4D51D82A55A4A400FF0E46 /* AccessibilityHierarchyParser.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccessibilityHierarchyParser.swift; sourceTree = ""; }; + EF4D51D92A55A4A400FF0E46 /* UIApplication+FirstKeyWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIApplication+FirstKeyWindow.swift"; sourceTree = ""; }; + EF4D51DA2A55A4A400FF0E46 /* String+Localization.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "String+Localization.swift"; sourceTree = ""; }; + EF4D51DD2A55A4A400FF0E46 /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/Localizable.strings; sourceTree = ""; }; + EF4D51DE2A55A4A400FF0E46 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = ""; }; + EF4D51DF2A55A4A400FF0E46 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; + EF4D51E02A55A4A400FF0E46 /* ru */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ru; path = ru.lproj/Localizable.strings; sourceTree = ""; }; + EF4D51E22A55A4A400FF0E46 /* UIApplication+DynamicTypeSnapshotting.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "UIApplication+DynamicTypeSnapshotting.h"; sourceTree = ""; }; + EF4D51E32A55A4A400FF0E46 /* ASAccessibilityEnabler.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ASAccessibilityEnabler.m; sourceTree = ""; }; + EF4D51E42A55A4A400FF0E46 /* UIView+DynamicTypeSnapshotting.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "UIView+DynamicTypeSnapshotting.m"; sourceTree = ""; }; + EF4D51E52A55A4A400FF0E46 /* UIAccessibilityStatusUtility.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = UIAccessibilityStatusUtility.m; sourceTree = ""; }; + EF4D51E72A55A4A400FF0E46 /* UIView+DynamicTypeSnapshotting.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "UIView+DynamicTypeSnapshotting.h"; sourceTree = ""; }; + EF4D51E82A55A4A400FF0E46 /* UIAccessibilityStatusUtility.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = UIAccessibilityStatusUtility.h; sourceTree = ""; }; + EF4D51E92A55A4A400FF0E46 /* UIApplication+DynamicTypeSnapshotting.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "UIApplication+DynamicTypeSnapshotting.m"; sourceTree = ""; }; + EF4D51EF2A55A51D00FF0E46 /* AccessibilitySnapshotCore.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = AccessibilitySnapshotCore.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + EF4D51F22A55A51D00FF0E46 /* AccessibilitySnapshotCore.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AccessibilitySnapshotCore.h; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + EF28C2D22A55CA2700D78303 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + EF4D51EC2A55A51D00FF0E46 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + EF4D51CB2A55A3B200FF0E46 = { + isa = PBXGroup; + children = ( + EF4D51D22A55A4A400FF0E46 /* Core */, + EF4D51F12A55A51D00FF0E46 /* AccessibilitySnapshotCore */, + EF4D51F02A55A51D00FF0E46 /* Products */, + ); + sourceTree = ""; + }; + EF4D51D22A55A4A400FF0E46 /* Core */ = { + isa = PBXGroup; + children = ( + EF4D51D32A55A4A400FF0E46 /* Swift */, + EF4D51E12A55A4A400FF0E46 /* ObjC */, + ); + name = Core; + path = AccessibilitySnapshot/Core; + sourceTree = ""; + }; + EF4D51D32A55A4A400FF0E46 /* Swift */ = { + isa = PBXGroup; + children = ( + EF4D51D42A55A4A400FF0E46 /* Classes */, + EF4D51DB2A55A4A400FF0E46 /* Assets */, + ); + path = Swift; + sourceTree = ""; + }; + EF4D51D42A55A4A400FF0E46 /* Classes */ = { + isa = PBXGroup; + children = ( + EF4D51D52A55A4A400FF0E46 /* UIView+InvertColorsSnapshotting.swift */, + EF4D51D62A55A4A400FF0E46 /* UIAccessibility+SnapshotAdditions.swift */, + EF4D51D72A55A4A400FF0E46 /* AccessibilitySnapshotView.swift */, + EF4D51D82A55A4A400FF0E46 /* AccessibilityHierarchyParser.swift */, + EF4D51D92A55A4A400FF0E46 /* UIApplication+FirstKeyWindow.swift */, + EF4D51DA2A55A4A400FF0E46 /* String+Localization.swift */, + ); + path = Classes; + sourceTree = ""; + }; + EF4D51DB2A55A4A400FF0E46 /* Assets */ = { + isa = PBXGroup; + children = ( + EF4D51DC2A55A4A400FF0E46 /* Localizable.strings */, + EF4D51DF2A55A4A400FF0E46 /* Images.xcassets */, + ); + path = Assets; + sourceTree = ""; + }; + EF4D51E12A55A4A400FF0E46 /* ObjC */ = { + isa = PBXGroup; + children = ( + EF4D51E22A55A4A400FF0E46 /* UIApplication+DynamicTypeSnapshotting.h */, + EF4D51E32A55A4A400FF0E46 /* ASAccessibilityEnabler.m */, + EF4D51E42A55A4A400FF0E46 /* UIView+DynamicTypeSnapshotting.m */, + EF4D51E52A55A4A400FF0E46 /* UIAccessibilityStatusUtility.m */, + EF4D51E62A55A4A400FF0E46 /* include */, + EF4D51E92A55A4A400FF0E46 /* UIApplication+DynamicTypeSnapshotting.m */, + ); + path = ObjC; + sourceTree = ""; + }; + EF4D51E62A55A4A400FF0E46 /* include */ = { + isa = PBXGroup; + children = ( + EF4D51E72A55A4A400FF0E46 /* UIView+DynamicTypeSnapshotting.h */, + EF4D51E82A55A4A400FF0E46 /* UIAccessibilityStatusUtility.h */, + ); + path = include; + sourceTree = ""; + }; + EF4D51F02A55A51D00FF0E46 /* Products */ = { + isa = PBXGroup; + children = ( + EF4D51EF2A55A51D00FF0E46 /* AccessibilitySnapshotCore.framework */, + EF28C2D52A55CA2700D78303 /* AccessibilitySnapshot.bundle */, + ); + name = Products; + sourceTree = ""; + }; + EF4D51F12A55A51D00FF0E46 /* AccessibilitySnapshotCore */ = { + isa = PBXGroup; + children = ( + EF4D51F22A55A51D00FF0E46 /* AccessibilitySnapshotCore.h */, + ); + path = AccessibilitySnapshotCore; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + EF4D51EA2A55A51D00FF0E46 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + EF4D51F32A55A51D00FF0E46 /* AccessibilitySnapshotCore.h in Headers */, + EF4D520A2A55A6D000FF0E46 /* UIAccessibilityStatusUtility.h in Headers */, + EF4D520B2A55A6D000FF0E46 /* UIView+DynamicTypeSnapshotting.h in Headers */, + EF4D52092A55A6D000FF0E46 /* UIApplication+DynamicTypeSnapshotting.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + EF28C2D42A55CA2700D78303 /* AccessibilitySnapshot */ = { + isa = PBXNativeTarget; + buildConfigurationList = EF28C2D62A55CA2700D78303 /* Build configuration list for PBXNativeTarget "AccessibilitySnapshot" */; + buildPhases = ( + EF28C2D12A55CA2700D78303 /* Sources */, + EF28C2D22A55CA2700D78303 /* Frameworks */, + EF28C2D32A55CA2700D78303 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = AccessibilitySnapshot; + productName = AccessibilitySnapshotCoreBundle; + productReference = EF28C2D52A55CA2700D78303 /* AccessibilitySnapshot.bundle */; + productType = "com.apple.product-type.bundle"; + }; + EF4D51EE2A55A51D00FF0E46 /* AccessibilitySnapshotCore */ = { + isa = PBXNativeTarget; + buildConfigurationList = EF4D51F42A55A51D00FF0E46 /* Build configuration list for PBXNativeTarget "AccessibilitySnapshotCore" */; + buildPhases = ( + EF4D51EA2A55A51D00FF0E46 /* Headers */, + EF4D51EB2A55A51D00FF0E46 /* Sources */, + EF4D51EC2A55A51D00FF0E46 /* Frameworks */, + EF4D51ED2A55A51D00FF0E46 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + EF28C2DD2A55CAF600D78303 /* PBXTargetDependency */, + ); + name = AccessibilitySnapshotCore; + productName = AccessibilitySnapshotCore; + productReference = EF4D51EF2A55A51D00FF0E46 /* AccessibilitySnapshotCore.framework */; + productType = "com.apple.product-type.framework"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + EF4D51CC2A55A3B200FF0E46 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastUpgradeCheck = 1420; + TargetAttributes = { + EF28C2D42A55CA2700D78303 = { + CreatedOnToolsVersion = 14.2; + }; + EF4D51EE2A55A51D00FF0E46 = { + CreatedOnToolsVersion = 14.2; + }; + }; + }; + buildConfigurationList = EF4D51CF2A55A3B200FF0E46 /* Build configuration list for PBXProject "AccessibilitySnapshotCore" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + de, + ru, + ); + mainGroup = EF4D51CB2A55A3B200FF0E46; + productRefGroup = EF4D51F02A55A51D00FF0E46 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + EF4D51EE2A55A51D00FF0E46 /* AccessibilitySnapshotCore */, + EF28C2D42A55CA2700D78303 /* AccessibilitySnapshot */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + EF28C2D32A55CA2700D78303 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + EF28C2D92A55CA3A00D78303 /* Images.xcassets in Resources */, + EF28C2DA2A55CA4600D78303 /* Localizable.strings in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + EF4D51ED2A55A51D00FF0E46 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + EF28C2DB2A55CA5800D78303 /* AccessibilitySnapshot.bundle in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + EF28C2D12A55CA2700D78303 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + EF4D51EB2A55A51D00FF0E46 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + EF4D52082A55A6A100FF0E46 /* UIApplication+DynamicTypeSnapshotting.m in Sources */, + EF4D52062A55A69A00FF0E46 /* UIView+DynamicTypeSnapshotting.m in Sources */, + EF4D51FF2A55A68500FF0E46 /* AccessibilityHierarchyParser.swift in Sources */, + EF4D52012A55A68500FF0E46 /* UIView+InvertColorsSnapshotting.swift in Sources */, + EF4D51FE2A55A68500FF0E46 /* UIAccessibility+SnapshotAdditions.swift in Sources */, + EF4D51FD2A55A68500FF0E46 /* String+Localization.swift in Sources */, + EF4D52002A55A68500FF0E46 /* UIApplication+FirstKeyWindow.swift in Sources */, + EF4D52042A55A69A00FF0E46 /* ASAccessibilityEnabler.m in Sources */, + EF4D52022A55A68500FF0E46 /* AccessibilitySnapshotView.swift in Sources */, + EF4D52072A55A69A00FF0E46 /* UIAccessibilityStatusUtility.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + EF28C2DD2A55CAF600D78303 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = EF28C2D42A55CA2700D78303 /* AccessibilitySnapshot */; + targetProxy = EF28C2DC2A55CAF600D78303 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + EF4D51DC2A55A4A400FF0E46 /* Localizable.strings */ = { + isa = PBXVariantGroup; + children = ( + EF4D51DD2A55A4A400FF0E46 /* de */, + EF4D51DE2A55A4A400FF0E46 /* en */, + EF4D51E02A55A4A400FF0E46 /* ru */, + ); + name = Localizable.strings; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + EF28C2D72A55CA2700D78303 /* 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; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = dwarf; + DEVELOPMENT_TEAM = K7C399XTGR; + 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; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + INFOPLIST_KEY_NSPrincipalClass = ""; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Bundles"; + MACOSX_DEPLOYMENT_TARGET = 13.1; + MARKETING_VERSION = 1.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + PRODUCT_BUNDLE_IDENTIFIER = org.carthage.AccessibilitySnapshotCoreBundle; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = macosx; + SKIP_INSTALL = YES; + SWIFT_EMIT_LOC_STRINGS = YES; + WRAPPER_EXTENSION = bundle; + }; + name = Debug; + }; + EF28C2D82A55CA2700D78303 /* 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; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + DEVELOPMENT_TEAM = K7C399XTGR; + 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; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + INFOPLIST_KEY_NSPrincipalClass = ""; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Bundles"; + MACOSX_DEPLOYMENT_TARGET = 13.1; + MARKETING_VERSION = 1.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = org.carthage.AccessibilitySnapshotCoreBundle; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = macosx; + SKIP_INSTALL = YES; + SWIFT_EMIT_LOC_STRINGS = YES; + WRAPPER_EXTENSION = bundle; + }; + name = Release; + }; + EF4D51D02A55A3B200FF0E46 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + }; + name = Debug; + }; + EF4D51D12A55A3B200FF0E46 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + }; + name = Release; + }; + EF4D51F52A55A51D00FF0E46 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; + 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; + CODE_SIGN_STYLE = Automatic; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = dwarf; + DEFINES_MODULE = YES; + DEVELOPMENT_TEAM = ""; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + 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; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + PRODUCT_BUNDLE_IDENTIFIER = org.carthage.AccessibilitySnapshotCore; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SDKROOT = iphoneos; + SKIP_INSTALL = NO; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + EF4D51F62A55A51D00FF0E46 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; + 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; + CODE_SIGN_STYLE = Automatic; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + DEFINES_MODULE = YES; + DEVELOPMENT_TEAM = ""; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + 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; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = org.carthage.AccessibilitySnapshotCore; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SDKROOT = iphoneos; + SKIP_INSTALL = NO; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + EF28C2D62A55CA2700D78303 /* Build configuration list for PBXNativeTarget "AccessibilitySnapshot" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + EF28C2D72A55CA2700D78303 /* Debug */, + EF28C2D82A55CA2700D78303 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + EF4D51CF2A55A3B200FF0E46 /* Build configuration list for PBXProject "AccessibilitySnapshotCore" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + EF4D51D02A55A3B200FF0E46 /* Debug */, + EF4D51D12A55A3B200FF0E46 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + EF4D51F42A55A51D00FF0E46 /* Build configuration list for PBXNativeTarget "AccessibilitySnapshotCore" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + EF4D51F52A55A51D00FF0E46 /* Debug */, + EF4D51F62A55A51D00FF0E46 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = EF4D51CC2A55A3B200FF0E46 /* Project object */; +} diff --git a/Sources/AccessibilitySnapshotCore.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Sources/AccessibilitySnapshotCore.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..919434a6 --- /dev/null +++ b/Sources/AccessibilitySnapshotCore.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Sources/AccessibilitySnapshotCore.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Sources/AccessibilitySnapshotCore.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 00000000..18d98100 --- /dev/null +++ b/Sources/AccessibilitySnapshotCore.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Sources/AccessibilitySnapshotCore.xcodeproj/xcshareddata/xcschemes/AccessibilitySnapshotCore.xcscheme b/Sources/AccessibilitySnapshotCore.xcodeproj/xcshareddata/xcschemes/AccessibilitySnapshotCore.xcscheme new file mode 100644 index 00000000..5c3c39e5 --- /dev/null +++ b/Sources/AccessibilitySnapshotCore.xcodeproj/xcshareddata/xcschemes/AccessibilitySnapshotCore.xcscheme @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Sources/AccessibilitySnapshotCore/AccessibilitySnapshotCore.h b/Sources/AccessibilitySnapshotCore/AccessibilitySnapshotCore.h new file mode 100644 index 00000000..2aec3a9e --- /dev/null +++ b/Sources/AccessibilitySnapshotCore/AccessibilitySnapshotCore.h @@ -0,0 +1,29 @@ +// +// Copyright 2023 Block Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +#import + +//! Project version number for AccessibilitySnapshotCore. +FOUNDATION_EXPORT double AccessibilitySnapshotCoreVersionNumber; + +//! Project version string for AccessibilitySnapshotCore. +FOUNDATION_EXPORT const unsigned char AccessibilitySnapshotCoreVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + +#import "UIApplication+DynamicTypeSnapshotting.h" +#import "UIView+DynamicTypeSnapshotting.h" +#import "UIAccessibilityStatusUtility.h"