Skip to content

Commit

Permalink
Merge pull request #4 from k-angama/feature/add-swift-package
Browse files Browse the repository at this point in the history
Add Swift Package
  • Loading branch information
k-angama committed Jan 25, 2024
2 parents f352f91 + bc7cb44 commit bba3008
Show file tree
Hide file tree
Showing 24 changed files with 173 additions and 81 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,12 @@ Carthage/Build
# `pod install` in .travis.yml
#
Pods/

# Swift Package
/.build
/Packages
xcuserdata/
DerivedData/
.swiftpm/configuration/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc
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>
10 changes: 5 additions & 5 deletions CleanArchKit.podspec
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

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

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

s.ios.deployment_target = '11.0'
s.ios.deployment_target = '12.0'

s.source_files = 'CleanArchKit/**/*.{swift}'
s.exclude_files = 'CleanArchKit/CleanArchKitTests/**/*.{swift}'
s.source_files = 'Sources/CleanArchKit/**/*.{swift}'
s.exclude_files = 'Tests/CleanArchKit/CleanArchKitTests/**/*.{swift}'

s.frameworks = 'UIKit'

Expand Down
149 changes: 78 additions & 71 deletions CleanArchKit/CleanArchKit.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions CleanArchKitWorkspace.xcworkspace/contents.xcworkspacedata

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

6 changes: 4 additions & 2 deletions Example/CleanArchKitExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 16.2;
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -688,7 +688,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 16.2;
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
Expand All @@ -714,6 +714,7 @@
INFOPLIST_KEY_UIMainStoryboardFile = Main;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -743,6 +744,7 @@
INFOPLIST_KEY_UIMainStoryboardFile = Main;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down
23 changes: 23 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// swift-tools-version: 5.4
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "CleanArchKit",
platforms: [
.iOS(.v12)
],
products: [
.library(
name: "CleanArchKit",
targets: ["CleanArchKit"]),
],
targets: [
.target(
name: "CleanArchKit"),
.testTarget(
name: "CleanArchKitTests",
dependencies: ["CleanArchKit"]),
]
)
2 changes: 1 addition & 1 deletion Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 0379424d1a27e9a926255062c7d08b9ce3a023f8

COCOAPODS: 1.12.1
COCOAPODS: 1.14.3
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ CleanArchKit is an iOS framework developed in Swift that implements Clean Archit
CleanArchKit requires the following:

* Xcode 11.0 or later
* Swift 5.0 or later
* iOS 11.0 or later
* Swift 5.4 or later
* iOS 12.0 or later


## Installation

### CocoaPods

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

```ruby
Expand All @@ -22,6 +24,12 @@ pod 'CleanArchKit'

Then run `pod install` in your terminal.

### Swift Package Manager

1. In Xcode, navigate in menu: File > Add Package Dependencies
2. Add `https://github.com/k-angama/iOS-CleanArchKit.git`
3. Click Add Package.


## Usage

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

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

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

import PackageDescription

let package = Package(
name: "CleanArchKit",
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "CleanArchKit",
targets: ["CleanArchKit"]),
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "CleanArchKit"),
.testTarget(
name: "CleanArchKitTests",
dependencies: ["CleanArchKit"]),
]
)
2 changes: 2 additions & 0 deletions Tests/Sources/CleanArchKit/CleanArchKit.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// The Swift Programming Language
// https://docs.swift.org/swift-book

0 comments on commit bba3008

Please sign in to comment.