Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration to swift 5 and add SPM Support. #58

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

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

19 changes: 19 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// swift-tools-version:5.3
import PackageDescription

let package = Package(
name: "UPCarouselFlowLayout",
platforms: [ .iOS(.v8) ],
products: [
.library(
name: "UPCarouselFlowLayout", targets: ["UPCarouselFlowLayout"])
],
dependencies: [ ],
targets: [
.target(
name: "UPCarouselFlowLayout",
path: "UPCarouselFlowLayout",
exclude: ["Info.plist", "UPCarouselFlowLayout.h"]),

]
)
4 changes: 2 additions & 2 deletions UPCarouselFlowLayout.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "UPCarouselFlowLayout"
s.version = "1.1.2"
s.version = "1.1.3"
s.summary = "A fancy carousel flow layout for UICollectionView."
s.description = "UPCarouselFlowLayout is a fancy carousel flow layout for UICollectionView. It comes with a paginated effect and it shrinks and makes transparent the side items."

Expand All @@ -11,7 +11,7 @@ Pod::Spec.new do |s|
s.source = { :git => 'https://github.com/ink-spot/UPCarouselFlowLayout.git', :tag => s.version.to_s }

s.ios.deployment_target = '8.1'
s.swift_version = '4.2'
s.swift_version = '5'

s.source_files = 'UPCarouselFlowLayout/**/*.{h,swift}'

Expand Down
13 changes: 7 additions & 6 deletions UPCarouselFlowLayoutDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,11 @@
TargetAttributes = {
01D3876A1D1C4B9D00CE4E1F = {
CreatedOnToolsVersion = 7.3.1;
LastSwiftMigration = 1000;
LastSwiftMigration = 1110;
};
841C94FC1DDEE57F00B997F5 = {
CreatedOnToolsVersion = 8.1;
LastSwiftMigration = 1000;
LastSwiftMigration = 1110;
ProvisioningStyle = Automatic;
};
};
Expand All @@ -223,6 +223,7 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
Base,
);
Expand Down Expand Up @@ -424,7 +425,7 @@
PRODUCT_BUNDLE_IDENTIFIER = UP.UPCarouselFlowLayoutDemo;
PRODUCT_NAME = UPCarouselFlowLayoutDemo;
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand All @@ -439,7 +440,7 @@
PRODUCT_BUNDLE_IDENTIFIER = UP.UPCarouselFlowLayoutDemo;
PRODUCT_NAME = UPCarouselFlowLayoutDemo;
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
};
name = Release;
};
Expand All @@ -463,7 +464,7 @@
SKIP_INSTALL = YES;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
Expand All @@ -489,7 +490,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
Expand Down