From 8c3345af0c06c11998f94fe80b0dfddc67b4c78f Mon Sep 17 00:00:00 2001
From: th-mustache-dk <58849846+th-mustache-dk@users.noreply.github.com>
Date: Wed, 8 Apr 2020 11:09:44 +0200
Subject: [PATCH 1/5] Create Package.swift
---
Package.swift | 15 +++++++++++++++
1 file changed, 15 insertions(+)
create mode 100644 Package.swift
diff --git a/Package.swift b/Package.swift
new file mode 100644
index 0000000..c2deffe
--- /dev/null
+++ b/Package.swift
@@ -0,0 +1,15 @@
+// swift-tools-version:5.1
+import PackageDescription
+
+let package = Package(
+ name: "CHIPageControl",
+ platforms: [
+ .iOS(.v8)
+ ],
+ products: [
+ .library(name: "CHIPageControl", targets: ["CHIPageControl"]),
+ ],
+ targets: [
+ .target(name: "CHIPageControl")
+ ]
+)
From 746d3d3ce888487d60da8be0b1301efb82673f1c Mon Sep 17 00:00:00 2001
From: Tommy Sadiq Hinrichsen
Date: Wed, 8 Apr 2020 11:34:08 +0200
Subject: [PATCH 2/5] Align with SPM folder structure
---
CHIPageControl.xcodeproj/project.pbxproj | 14 +++++++++++---
.../xcshareddata/xcschemes/CHIPageControl.xcscheme | 4 ----
.../CHIPageControl}/CHIPageControl.h | 0
.../CHIPageControl}/CHIPageControlAji.swift | 0
.../CHIPageControl}/CHIPageControlAleppo.swift | 0
.../CHIPageControl}/CHIPageControlChimayo.swift | 0
.../CHIPageControl}/CHIPageControlFresno.swift | 0
.../CHIPageControl}/CHIPageControlJalapeno.swift | 0
.../CHIPageControl}/CHIPageControlJaloro.swift | 0
.../CHIPageControl}/CHIPageControlPaprika.swift | 0
.../CHIPageControl}/CHIPageControlPuya.swift | 0
.../CHIPageControl}/Core/CHIBasePageControl.swift | 0
.../CHIPageControl}/Core/CHILayer.swift | 0
.../CHIPageControl}/Core/CHIPageControllable.swift | 0
.../CHIPageControl}/Info.plist | 0
15 files changed, 11 insertions(+), 7 deletions(-)
rename {CHIPageControl => Sources/CHIPageControl}/CHIPageControl.h (100%)
rename {CHIPageControl => Sources/CHIPageControl}/CHIPageControlAji.swift (100%)
rename {CHIPageControl => Sources/CHIPageControl}/CHIPageControlAleppo.swift (100%)
rename {CHIPageControl => Sources/CHIPageControl}/CHIPageControlChimayo.swift (100%)
rename {CHIPageControl => Sources/CHIPageControl}/CHIPageControlFresno.swift (100%)
rename {CHIPageControl => Sources/CHIPageControl}/CHIPageControlJalapeno.swift (100%)
rename {CHIPageControl => Sources/CHIPageControl}/CHIPageControlJaloro.swift (100%)
rename {CHIPageControl => Sources/CHIPageControl}/CHIPageControlPaprika.swift (100%)
rename {CHIPageControl => Sources/CHIPageControl}/CHIPageControlPuya.swift (100%)
rename {CHIPageControl => Sources/CHIPageControl}/Core/CHIBasePageControl.swift (100%)
rename {CHIPageControl => Sources/CHIPageControl}/Core/CHILayer.swift (100%)
rename {CHIPageControl => Sources/CHIPageControl}/Core/CHIPageControllable.swift (100%)
rename {CHIPageControl => Sources/CHIPageControl}/Info.plist (100%)
diff --git a/CHIPageControl.xcodeproj/project.pbxproj b/CHIPageControl.xcodeproj/project.pbxproj
index bd3d625..021df14 100644
--- a/CHIPageControl.xcodeproj/project.pbxproj
+++ b/CHIPageControl.xcodeproj/project.pbxproj
@@ -66,7 +66,7 @@
4313A7821E7A831E0015A568 = {
isa = PBXGroup;
children = (
- 4313A78E1E7A831E0015A568 /* CHIPageControl */,
+ 78C4F44A243DCCF700A529D3 /* Sources */,
4313A78D1E7A831E0015A568 /* Products */,
4313A7EB1E7A92970015A568 /* Frameworks */,
);
@@ -119,6 +119,14 @@
name = Frameworks;
sourceTree = "";
};
+ 78C4F44A243DCCF700A529D3 /* Sources */ = {
+ isa = PBXGroup;
+ children = (
+ 4313A78E1E7A831E0015A568 /* CHIPageControl */,
+ );
+ path = Sources;
+ sourceTree = "";
+ };
/* End PBXGroup section */
/* Begin PBXHeadersBuildPhase section */
@@ -347,7 +355,7 @@
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
- INFOPLIST_FILE = CHIPageControl/Info.plist;
+ INFOPLIST_FILE = "$(PROJECT_DIR)/Sources/CHIPageControl/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = lv.chi.CHIPageControl;
@@ -368,7 +376,7 @@
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
- INFOPLIST_FILE = CHIPageControl/Info.plist;
+ INFOPLIST_FILE = "$(PROJECT_DIR)/Sources/CHIPageControl/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = lv.chi.CHIPageControl;
diff --git a/CHIPageControl.xcodeproj/xcshareddata/xcschemes/CHIPageControl.xcscheme b/CHIPageControl.xcodeproj/xcshareddata/xcschemes/CHIPageControl.xcscheme
index 9d5c37f..65d6cee 100644
--- a/CHIPageControl.xcodeproj/xcshareddata/xcschemes/CHIPageControl.xcscheme
+++ b/CHIPageControl.xcodeproj/xcshareddata/xcschemes/CHIPageControl.xcscheme
@@ -29,8 +29,6 @@
shouldUseLaunchSchemeArgsEnv = "YES">
-
-
-
-
Date: Wed, 8 Apr 2020 11:35:58 +0200
Subject: [PATCH 3/5] Updated to 0.3.0
---
CHIPageControl.podspec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CHIPageControl.podspec b/CHIPageControl.podspec
index e48c859..fd51e8b 100644
--- a/CHIPageControl.podspec
+++ b/CHIPageControl.podspec
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'CHIPageControl'
- s.version = '0.2'
+ s.version = '0.3.0'
s.summary = 'CHIPageControl is a set of cool animated page controls written in Swift to replace boring UIPageControl.'
s.ios.deployment_target = '8.0'
From 4449f72215abf85d6783857fe01a6576a34b0aef Mon Sep 17 00:00:00 2001
From: Saad Aamir
Date: Sun, 27 Dec 2020 14:05:37 +0300
Subject: [PATCH 4/5] update .podspec .source_files path to reflect SPM support
Signed-off-by: Saad Aamir
---
CHIPageControl.podspec | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/CHIPageControl.podspec b/CHIPageControl.podspec
index fd51e8b..79c8a13 100644
--- a/CHIPageControl.podspec
+++ b/CHIPageControl.podspec
@@ -12,38 +12,38 @@ Pod::Spec.new do |s|
s.source = { :git => 'https://github.com/ChiliLabs/CHIPageControl.git', :tag => s.version.to_s }
s.swift_version = '5.0'
- s.source_files = 'CHIPageControl/*.swift', 'CHIPageControl/Core/*.swift'
+ s.source_files = 'Sources/CHIPageControl/*.swift', 'Sources/CHIPageControl/Core/*.swift'
s.subspec 'Aji' do |aji|
- aji.source_files = 'CHIPageControl/CHIPageControlAji.swift', 'CHIPageControl/Core/*.swift'
+ aji.source_files = 'Sources/CHIPageControl/CHIPageControlAji.swift', 'Sources/CHIPageControl/Core/*.swift'
end
s.subspec 'Aleppo' do |aleppo|
- aleppo.source_files = 'CHIPageControl/CHIPageControlAleppo.swift', 'CHIPageControl/Core/*.swift'
+ aleppo.source_files = 'Sources/CHIPageControl/CHIPageControlAleppo.swift', 'Sources/CHIPageControl/Core/*.swift'
end
s.subspec 'Chimayo' do |chimayo|
- chimayo.source_files = 'CHIPageControl/CHIPageControlChimayo.swift', 'CHIPageControl/Core/*.swift'
+ chimayo.source_files = 'Sources/CHIPageControl/CHIPageControlChimayo.swift', 'Sources/CHIPageControl/Core/*.swift'
end
s.subspec 'Fresno' do |fresno|
- fresno.source_files = 'CHIPageControl/CHIPageControlFresno.swift', 'CHIPageControl/Core/*.swift'
+ fresno.source_files = 'Sources/CHIPageControl/CHIPageControlFresno.swift', 'Sources/CHIPageControl/Core/*.swift'
end
s.subspec 'Jalapeno' do |jalapeno|
- jalapeno.source_files = 'CHIPageControl/CHIPageControlJalapeno.swift', 'CHIPageControl/Core/*.swift'
+ jalapeno.source_files = 'Sources/CHIPageControl/CHIPageControlJalapeno.swift', 'Sources/CHIPageControl/Core/*.swift'
end
s.subspec 'Jaloro' do |jaloro|
- jaloro.source_files = 'CHIPageControl/CHIPageControlJaloro.swift', 'CHIPageControl/Core/*.swift'
+ jaloro.source_files = 'Sources/CHIPageControl/CHIPageControlJaloro.swift', 'Sources/CHIPageControl/Core/*.swift'
end
s.subspec 'Paprika' do |paprika|
- paprika.source_files = 'CHIPageControl/CHIPageControlPaprika.swift', 'CHIPageControl/Core/*.swift'
+ paprika.source_files = 'Sources/CHIPageControl/CHIPageControlPaprika.swift', 'Sources/CHIPageControl/Core/*.swift'
end
s.subspec 'Puya' do |puya|
- puya.source_files = 'CHIPageControl/CHIPageControlPuya.swift', 'CHIPageControl/Core/*.swift'
+ puya.source_files = 'Sources/CHIPageControl/CHIPageControlPuya.swift', 'Sources/CHIPageControl/Core/*.swift'
end
end
From ee9e6480d1772a714bbab4992f84ca4153d21e98 Mon Sep 17 00:00:00 2001
From: Saad Aamir
Date: Thu, 7 Oct 2021 12:19:33 +0300
Subject: [PATCH 5/5] IPHONEOS_DEPLOYMENT_TARGET set to 12.2
Signed-off-by: Saad Aamir
---
CHIPageControl.xcodeproj/project.pbxproj | 10 +++++++---
.../xcshareddata/xcschemes/CHIPageControl.xcscheme | 2 +-
Package.swift | 2 +-
3 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/CHIPageControl.xcodeproj/project.pbxproj b/CHIPageControl.xcodeproj/project.pbxproj
index 021df14..6be6a6e 100644
--- a/CHIPageControl.xcodeproj/project.pbxproj
+++ b/CHIPageControl.xcodeproj/project.pbxproj
@@ -167,7 +167,7 @@
4313A7831E7A831E0015A568 /* Project object */ = {
isa = PBXProject;
attributes = {
- LastUpgradeCheck = 1020;
+ LastUpgradeCheck = 1300;
ORGANIZATIONNAME = chi.lv;
TargetAttributes = {
4313A78B1E7A831E0015A568 = {
@@ -253,6 +253,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
@@ -278,7 +279,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 9.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 12.2;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
@@ -315,6 +316,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
@@ -334,7 +336,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 9.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 12.2;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
@@ -357,6 +359,7 @@
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "$(PROJECT_DIR)/Sources/CHIPageControl/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
+ IPHONEOS_DEPLOYMENT_TARGET = 12.2;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = lv.chi.CHIPageControl;
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -378,6 +381,7 @@
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "$(PROJECT_DIR)/Sources/CHIPageControl/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
+ IPHONEOS_DEPLOYMENT_TARGET = 12.2;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = lv.chi.CHIPageControl;
PRODUCT_NAME = "$(TARGET_NAME)";
diff --git a/CHIPageControl.xcodeproj/xcshareddata/xcschemes/CHIPageControl.xcscheme b/CHIPageControl.xcodeproj/xcshareddata/xcschemes/CHIPageControl.xcscheme
index 65d6cee..6f733e1 100644
--- a/CHIPageControl.xcodeproj/xcshareddata/xcschemes/CHIPageControl.xcscheme
+++ b/CHIPageControl.xcodeproj/xcshareddata/xcschemes/CHIPageControl.xcscheme
@@ -1,6 +1,6 @@
|