Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added carthage support for accessibility core #131

Merged
merged 6 commits into from
Aug 10, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
9 changes: 9 additions & 0 deletions Scripts/build.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,16 @@ enum Platform: String, CustomStringConvertible {
enum Task: String, CustomStringConvertible {
case spm
case xcode
case carthage

var workspace: String? {
switch self {
case .spm:
return nil
case .xcode:
return "Example/AccessibilitySnapshot.xcworkspace"
case .carthage:
return nil
}
}

Expand All @@ -86,6 +89,8 @@ enum Task: String, CustomStringConvertible {
return nil
case .xcode:
return nil
case .carthage:
return "Sources/AccessibilitySnapshotCore.xcodeproj"
}
}

Expand All @@ -95,6 +100,8 @@ enum Task: String, CustomStringConvertible {
return "AccessibilitySnapshot"
case .xcode:
return "AccessibilitySnapshotDemo"
case .carthage:
return "AccessibilitySnapshotCore"
}
}

Expand All @@ -104,6 +111,8 @@ enum Task: String, CustomStringConvertible {
return false
case .xcode:
return true
case .carthage:
return false
}
}

Expand Down
675 changes: 675 additions & 0 deletions Sources/AccessibilitySnapshotCore.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1420"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EF4D51EE2A55A51D00FF0E46"
BuildableName = "AccessibilitySnapshotCore.framework"
BlueprintName = "AccessibilitySnapshotCore"
ReferencedContainer = "container:AccessibilitySnapshotCore.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EF4D51EE2A55A51D00FF0E46"
BuildableName = "AccessibilitySnapshotCore.framework"
BlueprintName = "AccessibilitySnapshotCore"
ReferencedContainer = "container:AccessibilitySnapshotCore.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
20 changes: 20 additions & 0 deletions Sources/AccessibilitySnapshotCore/AccessibilitySnapshotCore.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//
// AccessibilitySnapshotCore.h
// AccessibilitySnapshotCore
//
// Created by Andrei Uriadov on 05.07.23.
//
NickEntin marked this conversation as resolved.
Show resolved Hide resolved

#import <Foundation/Foundation.h>

//! 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 <AccessibilitySnapshotCore/PublicHeader.h>

#import "UIApplication+DynamicTypeSnapshotting.h"
#import "UIView+DynamicTypeSnapshotting.h"
#import "UIAccessibilityStatusUtility.h"