Skip to content

Commit

Permalink
Merge pull request #88 from FelixHerrmann/remove/objective-c
Browse files Browse the repository at this point in the history
[Remove] Objective-C
  • Loading branch information
FelixHerrmann authored Jan 4, 2024
2 parents 479f12f + 3b4127a commit b5c18d0
Show file tree
Hide file tree
Showing 15 changed files with 1 addition and 1,424 deletions.
1 change: 0 additions & 1 deletion .github/workflows/xcodebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
matrix:
scheme:
- SwiftPackageList
- SwiftPackageListObjc
- SwiftPackageListUI
destination:
- platform=macOS
Expand Down
14 changes: 0 additions & 14 deletions .swiftpm/xcode/xcshareddata/xcschemes/Libraries.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,6 @@
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "SwiftPackageListObjc"
BuildableName = "SwiftPackageListObjc"
BlueprintName = "SwiftPackageListObjc"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,6 @@
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "SwiftPackageListObjc"
BuildableName = "SwiftPackageListObjc"
BlueprintName = "SwiftPackageListObjc"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
Expand Down Expand Up @@ -104,20 +90,6 @@
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "SwiftPackageList_SwiftPackageListObjcTests"
BuildableName = "SwiftPackageList_SwiftPackageListObjcTests"
BlueprintName = "SwiftPackageList_SwiftPackageListObjcTests"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
Expand Down Expand Up @@ -206,16 +178,6 @@
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "SwiftPackageListObjcTests"
BuildableName = "SwiftPackageListObjcTests"
BlueprintName = "SwiftPackageListObjcTests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
Expand Down

This file was deleted.

7 changes: 0 additions & 7 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ let package = Package(
.plugin(name: "SwiftPackageListSettingsBundlePlugin", targets: ["SwiftPackageListSettingsBundlePlugin"]),
.plugin(name: "SwiftPackageListPDFPlugin", targets: ["SwiftPackageListPDFPlugin"]),
.library(name: "SwiftPackageList", targets: ["SwiftPackageList"]),
.library(name: "SwiftPackageListObjc", type: .dynamic, targets: ["SwiftPackageListObjc"]),
.library(name: "SwiftPackageListUI", targets: ["SwiftPackageListUI"]),
],
dependencies: [
Expand Down Expand Up @@ -60,7 +59,6 @@ let package = Package(
dependencies: [.target(name: "SwiftPackageList")]
),
.target(name: "SwiftPackageList"),
.target(name: "SwiftPackageListObjc"),
.target(
name: "SwiftPackageListUI",
dependencies: [.target(name: "SwiftPackageList")],
Expand All @@ -77,10 +75,5 @@ let package = Package(
dependencies: [.target(name: "SwiftPackageList")],
resources: [.process("Resources")]
),
.testTarget(
name: "SwiftPackageListObjcTests",
dependencies: [.target(name: "SwiftPackageListObjc")],
resources: [.process("Resources")]
),
]
)
21 changes: 1 addition & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,7 @@ Load the generated package-list file from the bundle or use some pre-build UI co

Add the package to your project as shown [here](https://developer.apple.com/documentation/swift_packages/adding_package_dependencies_to_your_app).

It contains 3 libraries; `SwiftPackageList`/`SwiftPackageListObjc` for loading the Data in Swift and Objective-C
and `SwiftPackageListUI` to get an iOS Settings-like user interface.
It contains 2 libraries; `SwiftPackageList` for loading the Data and `SwiftPackageListUI` to get an iOS Settings-like user interface.

#### SwiftPackageList

Expand All @@ -195,24 +194,6 @@ do {
}
```

#### SwiftPackageListObjc

```objc
@import SwiftPackageListObjc;

NSError *error;
NSArray<SPLPackage *> *packages = SPLPackageList(&error);
if (packages) {
// use packages
} else {
if (error.code == SPLErrorNoPackageList) {
NSLog(@"There is no package-list file");
} else {
NSLog(@"%@", error);
}
}
```

#### SwiftPackageListUI

```swift
Expand Down
10 changes: 0 additions & 10 deletions Sources/SwiftPackageListObjc/SPLError.m

This file was deleted.

32 changes: 0 additions & 32 deletions Sources/SwiftPackageListObjc/SPLPackage.m

This file was deleted.

75 changes: 0 additions & 75 deletions Sources/SwiftPackageListObjc/SPLPackageList.m

This file was deleted.

22 changes: 0 additions & 22 deletions Sources/SwiftPackageListObjc/include/SPLError.h

This file was deleted.

Loading

0 comments on commit b5c18d0

Please sign in to comment.