Skip to content

Commit

Permalink
Merge pull request #13 from rbaumbach/spm_support
Browse files Browse the repository at this point in the history
New release 1.1.0: Add SPM Support
  • Loading branch information
rbaumbach authored Oct 18, 2022
2 parents f738aae + 5140d1c commit 5ad0390
Show file tree
Hide file tree
Showing 26 changed files with 108 additions and 363 deletions.
14 changes: 12 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Xcode
# macOS

.DS_Store

# Xcode

build/
.build/
*.pbxuser
!default.pbxuser
*.mode1v3
Expand All @@ -14,18 +19,23 @@ xcuserdata
profile
*.moved-aside
DerivedData
.idea/
Pods/
ObjectiveC.gcda
ObjectiveC.gcno

# Carthage

Carthage
Swizzlean.framework.zip

# Fastlane

fastlane/report.xml
fastlane/.env*private*
fastlane/test-output/
fastlane/test_output/
fastlane/README.md

# Jetbrains

.idea/
20 changes: 20 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// swift-tools-version: 5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "Swizzlean",
products: [
.library(
name: "Swizzlean",
targets: ["Swizzlean"])
],
targets: [
.target(
name: "Swizzlean"),
.testTarget(
name: "SwizzleanSpecs",
dependencies: ["Swizzlean"])
]
)
8 changes: 1 addition & 7 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@ source 'https://github.com/CocoaPods/Specs.git'
platform :ios, "8.0"
inhibit_all_warnings!

target :Specs do
pod 'Specta'
pod 'Expecta'
pod 'OCMock'
end

target :IntegrationSpecs do
target :Tests do
pod 'Specta'
pod 'Expecta'
pod 'OCMock'
Expand Down
2 changes: 1 addition & 1 deletion Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ SPEC CHECKSUMS:
OCMock: 75fbeaa46a9b11f8c182bbb1d1f7e9a35ccc9955
Specta: b79d84043684b35ffdc2680df578dc318ec2efc2

PODFILE CHECKSUM: c43dc820eeb25e43398aae8a31f14fe4e7b13e6f
PODFILE CHECKSUM: 22bd42077b7bc18750c04e52fdf5fbba17b734b9

COCOAPODS: 1.11.3
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,22 @@ A quick and "lean" way to swizzle methods for your Objective-C development needs

### Cocoapods

[CocoaPods](http://cocoapods.org) is the recommended way to add Swizzlean to your project.
[CocoaPods](http://cocoapods.org) is the recommended way to add `Swizzlean` to your project.

1. Add Swizzlean to your Podfile `pod 'Swizzlean'`.
2. Install the pod(s) by running `pod install`.
3. Add Swizzlean to your files with `#import <Swizzlean/Swizzlean.h>`.

### Swift Package Manager (SPM)

[Swift Package Manager](https://swift.org/package-manager/) can be used to add `Swizzlean` the to your project:

1. Add `.package(url: "https://github.com/rbaumbach/Swizzlean", from: "1.1.0")`
2. [Follow intructions to add](https://swift.org/getting-started/#using-the-package-manager) the `Swizzlean` package to your project.

### Carthage

You can also use [Carthage](https://github.com/Carthage/Carthage) to manually add the Swizzlean dynamic framework to your project.
You can also use [Carthage](https://github.com/Carthage/Carthage) to manually add the `Swizzlean` framework to your project.

1. Add `github "rbaumbach/Swizzlean"` to your [Cartfile](https://github.com/Carthage/Carthage/blob/master/Documentation/Artifacts.md#cartfile).
2. [Follow instructions to manually add](https://github.com/Carthage/Carthage#adding-frameworks-to-an-application) Swizzlean dynamic framework to your project.
Expand Down Expand Up @@ -64,13 +71,13 @@ NSLog(@"The int value for number7 is: %d", [number7 intValue]);
This project has been setup to use [fastlane](https://fastlane.tools) to run the specs.
First, run the setup.sh script to bundle required gems and Cocoapods when in the project directory:
First, run the `setup.sh` script to bundle required gems and `Cocoapods` when in the project directory:
```bash
$ ./setup.sh
```

And then use fastlane to run all the specs on the command line:
And then use `fastlane` to run all the specs on the command line:

```bash
$ bundle exec fastlane specs
Expand All @@ -82,8 +89,8 @@ Version history can be found [on releases page](https://github.com/rbaumbach/Swi

## Suggestions, requests, feedback and acknowledgements

Thanks for checking out Swizzlean for your swizzling needs. Any feedback can be
Thanks for checking out `Swizzlean` for your swizzling needs. Any feedback can be
can be sent to: <github@ryan.codes>.

Thanks to the following contributors for keeping Swizzlean Swizzletastic:
Thanks to the following contributors for keeping `Swizzlean` Swizzletastic:
[Erik Stromlund](https://github.com/estromlund) & [Aaron Koop](https://github.com/aaronkoop)
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0.3</string>
<string>1.1.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down
File renamed without changes.
File renamed without changes.
22 changes: 0 additions & 22 deletions Specs/Supporting Files/Info.plist

This file was deleted.

2 changes: 1 addition & 1 deletion Swizzlean.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Swizzlean'
s.version = '1.0.3'
s.version = '1.1.0'
s.summary = 'A quick and lean way to swizzle methods for your Objective-C development needs.'
s.homepage = 'https://github.com/rbaumbach/Swizzlean'
s.license = { :type => 'MIT', :file => 'MIT-LICENSE.txt' }
Expand Down
Loading

0 comments on commit 5ad0390

Please sign in to comment.