Skip to content

Commit bba3008

Browse files
authored
Merge pull request #4 from k-angama/feature/add-swift-package
Add Swift Package
2 parents f352f91 + bc7cb44 commit bba3008

24 files changed

Lines changed: 173 additions & 81 deletions

File tree

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,12 @@ Carthage/Build
3535
# `pod install` in .travis.yml
3636
#
3737
Pods/
38+
39+
# Swift Package
40+
/.build
41+
/Packages
42+
xcuserdata/
43+
DerivedData/
44+
.swiftpm/configuration/registries.json
45+
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
46+
.netrc
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

CleanArchKit.podspec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
Pod::Spec.new do |s|
33
s.name = 'CleanArchKit'
4-
s.version = '0.1.3'
5-
s.swift_version = "5.0"
4+
s.version = '0.1.4'
5+
s.swift_version = "5.4"
66
s.summary = 'An iOS library to create a project with the Clean Architecture using Router and MVVM pattern.'
77

88
s.description = <<-DESC
@@ -15,10 +15,10 @@ DESC
1515
s.source = { :git => 'https://github.com/k-angama/iOS-CleanArchKit.git', :tag => s.version.to_s }
1616
s.social_media_url = 'https://twitter.com/k_angama'
1717

18-
s.ios.deployment_target = '11.0'
18+
s.ios.deployment_target = '12.0'
1919

20-
s.source_files = 'CleanArchKit/**/*.{swift}'
21-
s.exclude_files = 'CleanArchKit/CleanArchKitTests/**/*.{swift}'
20+
s.source_files = 'Sources/CleanArchKit/**/*.{swift}'
21+
s.exclude_files = 'Tests/CleanArchKit/CleanArchKitTests/**/*.{swift}'
2222

2323
s.frameworks = 'UIKit'
2424

CleanArchKit/CleanArchKit.xcodeproj/project.pbxproj

Lines changed: 78 additions & 71 deletions
Large diffs are not rendered by default.

CleanArchKitWorkspace.xcworkspace/contents.xcworkspacedata

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/CleanArchKitExample.xcodeproj/project.pbxproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@
634634
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
635635
GCC_WARN_UNUSED_FUNCTION = YES;
636636
GCC_WARN_UNUSED_VARIABLE = YES;
637-
IPHONEOS_DEPLOYMENT_TARGET = 16.2;
637+
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
638638
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
639639
MTL_FAST_MATH = YES;
640640
ONLY_ACTIVE_ARCH = YES;
@@ -688,7 +688,7 @@
688688
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
689689
GCC_WARN_UNUSED_FUNCTION = YES;
690690
GCC_WARN_UNUSED_VARIABLE = YES;
691-
IPHONEOS_DEPLOYMENT_TARGET = 16.2;
691+
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
692692
MTL_ENABLE_DEBUG_INFO = NO;
693693
MTL_FAST_MATH = YES;
694694
SDKROOT = iphoneos;
@@ -714,6 +714,7 @@
714714
INFOPLIST_KEY_UIMainStoryboardFile = Main;
715715
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
716716
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
717+
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
717718
LD_RUNPATH_SEARCH_PATHS = (
718719
"$(inherited)",
719720
"@executable_path/Frameworks",
@@ -743,6 +744,7 @@
743744
INFOPLIST_KEY_UIMainStoryboardFile = Main;
744745
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
745746
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
747+
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
746748
LD_RUNPATH_SEARCH_PATHS = (
747749
"$(inherited)",
748750
"@executable_path/Frameworks",

Package.swift

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// swift-tools-version: 5.4
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "CleanArchKit",
8+
platforms: [
9+
.iOS(.v12)
10+
],
11+
products: [
12+
.library(
13+
name: "CleanArchKit",
14+
targets: ["CleanArchKit"]),
15+
],
16+
targets: [
17+
.target(
18+
name: "CleanArchKit"),
19+
.testTarget(
20+
name: "CleanArchKitTests",
21+
dependencies: ["CleanArchKit"]),
22+
]
23+
)

Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ SPEC CHECKSUMS:
2828

2929
PODFILE CHECKSUM: 0379424d1a27e9a926255062c7d08b9ce3a023f8
3030

31-
COCOAPODS: 1.12.1
31+
COCOAPODS: 1.14.3

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ CleanArchKit is an iOS framework developed in Swift that implements Clean Archit
88
CleanArchKit requires the following:
99

1010
* Xcode 11.0 or later
11-
* Swift 5.0 or later
12-
* iOS 11.0 or later
11+
* Swift 5.4 or later
12+
* iOS 12.0 or later
1313

1414

1515
## Installation
1616

17+
### CocoaPods
18+
1719
To install this framework using [CocoaPods](https://cocoapods.org), add the following line to your Podfile:
1820

1921
```ruby
@@ -22,6 +24,12 @@ pod 'CleanArchKit'
2224

2325
Then run `pod install` in your terminal.
2426

27+
### Swift Package Manager
28+
29+
1. In Xcode, navigate in menu: File > Add Package Dependencies
30+
2. Add `https://github.com/k-angama/iOS-CleanArchKit.git`
31+
3. Click Add Package.
32+
2533

2634
## Usage
2735

File renamed without changes.

0 commit comments

Comments
 (0)