Skip to content

Commit

Permalink
SPM support, for real this time
Browse files Browse the repository at this point in the history
  • Loading branch information
nighthawk committed Mar 2, 2022
1 parent c09d824 commit da2e5c4
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 70 deletions.
8 changes: 5 additions & 3 deletions ASWeekSelectorView.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ Pod::Spec.new do |s|
s.homepage = "https://github.com/nighthawk/ASWeekSelectorView"
s.license = 'FreeBSD'
s.author = { "Adrian Schoenig" => "adrian@schoenig.me" }
# s.source = { git: '.'}
s.source = { :git => "https://github.com/nighthawk/ASWeekSelectorView.git", :tag => "v#{s.version}" }
s.source = { git: '.'}
# s.source = { :git => "https://github.com/nighthawk/ASWeekSelectorView.git", :tag => "v#{s.version}" }
s.platform = :ios, '10.0'
s.source_files = 'Classes/*.{h,m}'
s.source_files = [
'Sources/**/*.{h,m}'
]
s.requires_arc = true
end
22 changes: 0 additions & 22 deletions Example/ASWeekSelectorViewTests/ASWeekSelectorViewTests-Info.plist

This file was deleted.

34 changes: 0 additions & 34 deletions Example/ASWeekSelectorViewTests/ASWeekSelectorViewTests.m

This file was deleted.

2 changes: 0 additions & 2 deletions Example/ASWeekSelectorViewTests/en.lproj/InfoPlist.strings

This file was deleted.

4 changes: 1 addition & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ let package = Package(
],
targets: [
.target(
name: "ASWeekSelectorView",
dependencies: [],
path: "Classes"
name: "ASWeekSelectorView"
),
]
)
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ Using Cocoapods:
pod 'ASWeekSelectorView', '~> 1.0'
```

Using Carthage:

```ruby
github "nighthawk/ASWeekSelectorView"
```

2) Add an instance of `ASWeekSelectorView` to your view hierarchy, configure it, provide a delegate and implement the delegate smethod. (Note that you won't need to use `ASDaySelectionView` and `ASSingleWeekView` yourself - they are internal helper class.)

3) When using Auto Layout, adjust the frame in `viewWillLayoutSubviews`:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
//
//

#if SWIFT_PACKAGE
#import <ASWeekSelectorView/ASWeekSelectorView.h>
#else
#import "ASWeekSelectorView.h"
#endif

#import <QuartzCore/QuartzCore.h>

Expand Down
File renamed without changes.

0 comments on commit da2e5c4

Please sign in to comment.