From b1a8bd01546db422d0dd7b3bb9c8f2b352291ebb Mon Sep 17 00:00:00 2001 From: Kiu Cheong Choi Date: Sun, 27 Feb 2022 00:58:46 +0800 Subject: [PATCH 001/143] refactor: change framework name Change framework name from CFNotify to SwiftNotify BREAKING CHANGE: Class name change from CFNotify* to SwiftNotify* --- .travis.yml | 2 +- CFNotify.podspec | 18 - CFNotify.xcworkspace/contents.xcworkspacedata | 16 - CFNotify/CFNotify.h | 19 - CFNotify/CFNotifyProtocols.swift | 39 -- CHANGELOG.md | 4 +- Carthage/Checkouts/Nimble | 2 +- Carthage/Checkouts/Quick | 2 +- .../project.pbxproj | 108 +++-- .../xcschemes/SwiftNotifyExample.xcscheme} | 32 +- .../SwiftNotifyExample}/AppDelegate.swift | 0 .../AppIcon.appiconset/Contents.json | 0 .../Base.lproj/Launch Screen.storyboard | 2 +- .../Base.lproj/Main.storyboard | 0 .../SwiftNotifyExample}/ClassicVC.swift | 42 +- .../SwiftNotifyExample}/CyberVC.swift | 58 +-- .../SwiftNotifyExample}/Info.plist | 0 .../MainTableViewCell.swift | 2 +- .../SwiftNotifyExample}/MainVC.swift | 2 +- .../SwiftNotifyExample}/Resource/CoFire.png | Bin .../SwiftNotifyExample}/Resource/Dog.jpg | Bin .../SwiftNotifyExample}/Resource/Dog2.jpg | Bin .../SwiftNotifyExample}/Resource/Eagle.jpg | Bin .../SwiftNotifyExample}/Resource/Gradient.jpg | Bin .../SwiftNotifyExample}/Resource/Moon.jpg | Bin .../SwiftNotifyExample}/Resource/Mountain.jpg | Bin .../SwiftNotifyExample}/Resource/Night.jpg | Bin .../SwiftNotifyExample}/Resource/Prism.jpg | Bin .../SwiftNotifyExample}/ToastVC.swift | 42 +- {CFResources => NotifyResources}/Info.plist | 0 .../icon_fail.imageset/icon_fail.png | Bin .../icon_fail.imageset/icon_fail@2x.png | Bin .../icon_fail.imageset/icon_fail@3x.png | Bin .../icon_fail_dark.png | Bin .../icon_fail_dark@2x.png | Bin .../icon_fail_dark@3x.png | Bin .../icon_info.imageset/icon_info.png | Bin .../icon_info.imageset/icon_info@2x.png | Bin .../icon_info.imageset/icon_info@3x.png | Bin .../icon_info_dark.png | Bin .../icon_info_dark@2x.png | Bin .../icon_info_dark@3x.png | Bin .../icon_success.imageset/icon_success.png | Bin .../icon_success.imageset/icon_success@2x.png | Bin .../icon_success.imageset/icon_success@3x.png | Bin .../icon_success_dark.png | Bin .../icon_success_dark@2x.png | Bin .../icon_success_dark@3x.png | Bin .../icon_warning.imageset/icon_warning.png | Bin .../icon_warning.imageset/icon_warning@2x.png | Bin .../icon_warning.imageset/icon_warning@3x.png | Bin .../icon_warning_dark.png | Bin .../icon_warning_dark@2x.png | Bin .../icon_warning_dark@3x.png | Bin README.md | 84 ++-- .../SwiftNotify}/Base/BaseImageView.swift | 2 +- .../SwiftNotify}/Base/BaseLabel.swift | 2 +- .../SwiftNotify}/Extension/CGRectEx.swift | 0 {CFNotify => Sources/SwiftNotify}/Info.plist | 2 + .../SwiftNotify}/Notifier.swift | 6 +- .../SwiftNoticeView}/ClassicView.swift | 2 +- .../SwiftNoticeView}/CyberView.swift | 2 +- .../SwiftNoticeView}/ToastView.swift | 4 +- Sources/SwiftNotify/SwiftNotify.h | 19 + .../SwiftNotify/SwiftNotify.swift | 30 +- .../SwiftNotify/SwiftNotifyProtocols.swift | 39 ++ .../SwiftNotify/SwiftNotifyView.swift | 18 +- SwiftNotify.podspec | 18 + .../project.pbxproj | 390 ++++++++++-------- .../contents.xcworkspacedata | 0 .../xcshareddata/IDEWorkspaceChecks.plist | 0 .../xcshareddata/xcschemes/Resources.xcscheme | 22 +- .../xcschemes/SwiftNotify.xcscheme | 46 +-- .../contents.xcworkspacedata | 10 + .../xcshareddata/IDEWorkspaceChecks.plist | 0 .../SwiftNotifyTests}/Info.plist | 0 .../SwiftNotifyTests/SwiftNotifyTests.swift | 8 +- 77 files changed, 557 insertions(+), 537 deletions(-) delete mode 100644 CFNotify.podspec delete mode 100644 CFNotify.xcworkspace/contents.xcworkspacedata delete mode 100644 CFNotify/CFNotify.h delete mode 100644 CFNotify/CFNotifyProtocols.swift rename Example/{CFNotifyExample/CFNotifyExample.xcodeproj => SwiftNotifyExample/SwiftNotifyExample.xcodeproj}/project.pbxproj (77%) rename Example/{CFNotifyExample/CFNotifyExample.xcodeproj/xcshareddata/xcschemes/CFNotifyExample.xcscheme => SwiftNotifyExample/SwiftNotifyExample.xcodeproj/xcshareddata/xcschemes/SwiftNotifyExample.xcscheme} (77%) rename Example/{CFNotifyExample/CFNotifyExample => SwiftNotifyExample/SwiftNotifyExample}/AppDelegate.swift (100%) rename Example/{CFNotifyExample/CFNotifyExample => SwiftNotifyExample/SwiftNotifyExample}/Assets.xcassets/AppIcon.appiconset/Contents.json (100%) rename Example/{CFNotifyExample/CFNotifyExample => SwiftNotifyExample/SwiftNotifyExample}/Base.lproj/Launch Screen.storyboard (96%) rename Example/{CFNotifyExample/CFNotifyExample => SwiftNotifyExample/SwiftNotifyExample}/Base.lproj/Main.storyboard (100%) rename Example/{CFNotifyExample/CFNotifyExample => SwiftNotifyExample/SwiftNotifyExample}/ClassicVC.swift (63%) rename Example/{CFNotifyExample/CFNotifyExample => SwiftNotifyExample/SwiftNotifyExample}/CyberVC.swift (60%) rename Example/{CFNotifyExample/CFNotifyExample => SwiftNotifyExample/SwiftNotifyExample}/Info.plist (100%) rename Example/{CFNotifyExample/CFNotifyExample => SwiftNotifyExample/SwiftNotifyExample}/MainTableViewCell.swift (97%) rename Example/{CFNotifyExample/CFNotifyExample => SwiftNotifyExample/SwiftNotifyExample}/MainVC.swift (98%) rename Example/{CFNotifyExample/CFNotifyExample => SwiftNotifyExample/SwiftNotifyExample}/Resource/CoFire.png (100%) rename Example/{CFNotifyExample/CFNotifyExample => SwiftNotifyExample/SwiftNotifyExample}/Resource/Dog.jpg (100%) rename Example/{CFNotifyExample/CFNotifyExample => SwiftNotifyExample/SwiftNotifyExample}/Resource/Dog2.jpg (100%) rename Example/{CFNotifyExample/CFNotifyExample => SwiftNotifyExample/SwiftNotifyExample}/Resource/Eagle.jpg (100%) rename Example/{CFNotifyExample/CFNotifyExample => SwiftNotifyExample/SwiftNotifyExample}/Resource/Gradient.jpg (100%) rename Example/{CFNotifyExample/CFNotifyExample => SwiftNotifyExample/SwiftNotifyExample}/Resource/Moon.jpg (100%) rename Example/{CFNotifyExample/CFNotifyExample => SwiftNotifyExample/SwiftNotifyExample}/Resource/Mountain.jpg (100%) rename Example/{CFNotifyExample/CFNotifyExample => SwiftNotifyExample/SwiftNotifyExample}/Resource/Night.jpg (100%) rename Example/{CFNotifyExample/CFNotifyExample => SwiftNotifyExample/SwiftNotifyExample}/Resource/Prism.jpg (100%) rename Example/{CFNotifyExample/CFNotifyExample => SwiftNotifyExample/SwiftNotifyExample}/ToastVC.swift (50%) rename {CFResources => NotifyResources}/Info.plist (100%) rename {CFResources => NotifyResources}/icon_fail.imageset/icon_fail.png (100%) rename {CFResources => NotifyResources}/icon_fail.imageset/icon_fail@2x.png (100%) rename {CFResources => NotifyResources}/icon_fail.imageset/icon_fail@3x.png (100%) rename {CFResources => NotifyResources}/icon_fail_dark.imageset/icon_fail_dark.png (100%) rename {CFResources => NotifyResources}/icon_fail_dark.imageset/icon_fail_dark@2x.png (100%) rename {CFResources => NotifyResources}/icon_fail_dark.imageset/icon_fail_dark@3x.png (100%) rename {CFResources => NotifyResources}/icon_info.imageset/icon_info.png (100%) rename {CFResources => NotifyResources}/icon_info.imageset/icon_info@2x.png (100%) rename {CFResources => NotifyResources}/icon_info.imageset/icon_info@3x.png (100%) rename {CFResources => NotifyResources}/icon_info_dark.imageset/icon_info_dark.png (100%) rename {CFResources => NotifyResources}/icon_info_dark.imageset/icon_info_dark@2x.png (100%) rename {CFResources => NotifyResources}/icon_info_dark.imageset/icon_info_dark@3x.png (100%) rename {CFResources => NotifyResources}/icon_success.imageset/icon_success.png (100%) rename {CFResources => NotifyResources}/icon_success.imageset/icon_success@2x.png (100%) rename {CFResources => NotifyResources}/icon_success.imageset/icon_success@3x.png (100%) rename {CFResources => NotifyResources}/icon_success_dark.imageset/icon_success_dark.png (100%) rename {CFResources => NotifyResources}/icon_success_dark.imageset/icon_success_dark@2x.png (100%) rename {CFResources => NotifyResources}/icon_success_dark.imageset/icon_success_dark@3x.png (100%) rename {CFResources => NotifyResources}/icon_warning.imageset/icon_warning.png (100%) rename {CFResources => NotifyResources}/icon_warning.imageset/icon_warning@2x.png (100%) rename {CFResources => NotifyResources}/icon_warning.imageset/icon_warning@3x.png (100%) rename {CFResources => NotifyResources}/icon_warning_dark.imageset/icon_warning_dark.png (100%) rename {CFResources => NotifyResources}/icon_warning_dark.imageset/icon_warning_dark@2x.png (100%) rename {CFResources => NotifyResources}/icon_warning_dark.imageset/icon_warning_dark@3x.png (100%) rename {CFNotify => Sources/SwiftNotify}/Base/BaseImageView.swift (97%) rename {CFNotify => Sources/SwiftNotify}/Base/BaseLabel.swift (97%) rename {CFNotify => Sources/SwiftNotify}/Extension/CGRectEx.swift (100%) rename {CFNotify => Sources/SwiftNotify}/Info.plist (92%) rename {CFNotify => Sources/SwiftNotify}/Notifier.swift (98%) rename {CFNotify/CFNoticeView => Sources/SwiftNotify/SwiftNoticeView}/ClassicView.swift (99%) rename {CFNotify/CFNoticeView => Sources/SwiftNotify/SwiftNoticeView}/CyberView.swift (99%) rename {CFNotify/CFNoticeView => Sources/SwiftNotify/SwiftNoticeView}/ToastView.swift (99%) create mode 100644 Sources/SwiftNotify/SwiftNotify.h rename CFNotify/CFNotify.swift => Sources/SwiftNotify/SwiftNotify.swift (91%) create mode 100644 Sources/SwiftNotify/SwiftNotifyProtocols.swift rename CFNotify/CFNotifyView.swift => Sources/SwiftNotify/SwiftNotifyView.swift (97%) create mode 100644 SwiftNotify.podspec rename {CFNotify.xcodeproj => SwiftNotify.xcodeproj}/project.pbxproj (75%) rename {CFNotify.xcodeproj => SwiftNotify.xcodeproj}/project.xcworkspace/contents.xcworkspacedata (100%) rename {CFNotify.xcodeproj => SwiftNotify.xcodeproj}/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist (100%) rename CFNotify.xcodeproj/xcshareddata/xcschemes/CFResources.xcscheme => SwiftNotify.xcodeproj/xcshareddata/xcschemes/Resources.xcscheme (79%) rename CFNotify.xcodeproj/xcshareddata/xcschemes/CFNotify.xcscheme => SwiftNotify.xcodeproj/xcshareddata/xcschemes/SwiftNotify.xcscheme (75%) create mode 100644 SwiftNotify.xcworkspace/contents.xcworkspacedata rename {CFNotify.xcworkspace => SwiftNotify.xcworkspace}/xcshareddata/IDEWorkspaceChecks.plist (100%) rename {CFNotifyTests => Tests/SwiftNotifyTests}/Info.plist (100%) rename CFNotifyTests/CFNotifyTests.swift => Tests/SwiftNotifyTests/SwiftNotifyTests.swift (88%) diff --git a/.travis.yml b/.travis.yml index 0b85d9f..01601a9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,4 @@ language: swift osx_image: xcode10.2 -script: xcodebuild clean && xcodebuild build -project CFNotify.xcodeproj -scheme CFNotify +script: xcodebuild clean && xcodebuild build -project SwiftNotify.xcodeproj -scheme SwiftNotify diff --git a/CFNotify.podspec b/CFNotify.podspec deleted file mode 100644 index 970fca5..0000000 --- a/CFNotify.podspec +++ /dev/null @@ -1,18 +0,0 @@ -Pod::Spec.new do |s| - s.name = "CFNotify" - s.version = "1.0.3" - s.summary = "A customizable framework to create draggable views" - s.homepage = "https://github.com/hallelujahbaby/CFNotify" - s.license = { :type => "MIT", :file => "LICENSE" } - - # s.screenshots = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif" - - s.author = { "Johnny" => "hallelujahbaby@gmail.com" } - s.social_media_url = "http://co-fire.com" - s.platform = :ios, "9.0" - s.source = { :git => "https://github.com/hallelujahbaby/CFNotify.git", :tag => s.version.to_s } - s.source_files = "CFNotify", "CFNotify/**/*.{swift,h}" - s.resource_bundles = {"CFResources" =>["CFResources/**/*.png"]} - s.frameworks = "UIKit" - s.requires_arc = true -end diff --git a/CFNotify.xcworkspace/contents.xcworkspacedata b/CFNotify.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 3564275..0000000 --- a/CFNotify.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - diff --git a/CFNotify/CFNotify.h b/CFNotify/CFNotify.h deleted file mode 100644 index 1e4ffa5..0000000 --- a/CFNotify/CFNotify.h +++ /dev/null @@ -1,19 +0,0 @@ -// -// CFNotify.h -// CFNotify -// -// Created by Johnny Choi on 9/11/2016. -// Copyright © 2016 Johnny Choi@Co-Fire. All rights reserved. -// - -#import - -//! Project version number for CFNotify. -FOUNDATION_EXPORT double CFNotifyVersionNumber; - -//! Project version string for CFNotify. -FOUNDATION_EXPORT const unsigned char CFNotifyVersionString[]; - -// In this header, you should import all the public headers of your framework using statements like #import - - diff --git a/CFNotify/CFNotifyProtocols.swift b/CFNotify/CFNotifyProtocols.swift deleted file mode 100644 index e664d11..0000000 --- a/CFNotify/CFNotifyProtocols.swift +++ /dev/null @@ -1,39 +0,0 @@ -// -// CFMessageProtocols.swift -// CFNotify -// -// Created by Johnny Choi on 10/11/2016. -// Copyright © 2016 Johnny Choi@Co-Fire. All rights reserved. -// - -import Foundation -import UIKit - -public protocol CFNotifyDelegate: class { - func cfNotifyDidAppear() - func cfNotifyStartDragging(atPoint: CGPoint) - func cfNotifyIsDragging(atPoint: CGPoint) - func cfNotifyEndDragging(atPoint: CGPoint) - func cfNotifyDidDisappear() - func cfNotifyIsTapped() -} - -// Make the protocol methods to be optional -public extension CFNotifyDelegate { - func cfNotifyDidAppear() {} - func cfNotifyStartDragging(atPoint: CGPoint) {} - func cfNotifyIsDragging(atPoint: CGPoint) {} - func cfNotifyEndDragging(atPoint: CGPoint) {} - func cfNotifyDidDisappear() {} - func cfNotifyIsTapped() {} -} - -// Internal Use -protocol NotifierDelegate: class { - func notifierDidAppear() - func notifierStartDragging(atPoint: CGPoint) - func notifierIsDragging(atPoint: CGPoint) - func notifierEndDragging(atPoint: CGPoint) - func notifierDidDisappear(notifier: Notifier) - func notifierIsTapped() -} diff --git a/CHANGELOG.md b/CHANGELOG.md index 774b910..45fda8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,12 +2,12 @@ CHANGELOG ------------ ### 1.0.2 ------------ -* Fixed issue [#3](https://github.com/hallelujahbaby/CFNotify/issues/3) +* Fixed issue [#3](https://github.com/JT501/SwiftNotify/issues/3) ### 1.0.1 ------------ #### Fixes - * Change `Theme` and `Style` enum to lower case. [minuscorp](https://github.com/minuscorp) ([#2](https://github.com/hallelujahbaby/CFNotify/issues/2)) + * Change `Theme` and `Style` enum to lower case. [minuscorp](https://github.com/minuscorp) ([#2](https://github.com/JT501/SwiftNotify/issues/2)) * Some minor fixes in Example project diff --git a/Carthage/Checkouts/Nimble b/Carthage/Checkouts/Nimble index 3720e6b..348d9c1 160000 --- a/Carthage/Checkouts/Nimble +++ b/Carthage/Checkouts/Nimble @@ -1 +1 @@ -Subproject commit 3720e6b0f6de6d6435f79f8a174fb4bb92df5dc4 +Subproject commit 348d9c141c32301d2da7a09e4b1600df3f335475 diff --git a/Carthage/Checkouts/Quick b/Carthage/Checkouts/Quick index b441ba9..446b7dd 160000 --- a/Carthage/Checkouts/Quick +++ b/Carthage/Checkouts/Quick @@ -1 +1 @@ -Subproject commit b441ba9d4abdc87fc153c55de947834b737bbe04 +Subproject commit 446b7dd7a6d0e81a50745360e3e61935033c707e diff --git a/Example/CFNotifyExample/CFNotifyExample.xcodeproj/project.pbxproj b/Example/SwiftNotifyExample/SwiftNotifyExample.xcodeproj/project.pbxproj similarity index 77% rename from Example/CFNotifyExample/CFNotifyExample.xcodeproj/project.pbxproj rename to Example/SwiftNotifyExample/SwiftNotifyExample.xcodeproj/project.pbxproj index 74c082b..3cf7814 100644 --- a/Example/CFNotifyExample/CFNotifyExample.xcodeproj/project.pbxproj +++ b/Example/SwiftNotifyExample/SwiftNotifyExample.xcodeproj/project.pbxproj @@ -7,6 +7,9 @@ objects = { /* Begin PBXBuildFile section */ + 05A4828827CA9114006805E5 /* SwiftNotify.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 05A4828627CA9114006805E5 /* SwiftNotify.framework */; }; + 05A4828927CA9114006805E5 /* SwiftNotify.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 05A4828627CA9114006805E5 /* SwiftNotify.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 05A4828A27CA9114006805E5 /* SwiftNotifyResources.bundle in Embed PlugIns */ = {isa = PBXBuildFile; fileRef = 05A4828727CA9114006805E5 /* SwiftNotifyResources.bundle */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 05B074DD1DE6F4F8003611FE /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 05B074DC1DE6F4F8003611FE /* AppDelegate.swift */; }; 05B074DF1DE6F4FE003611FE /* CyberVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 05B074DE1DE6F4FE003611FE /* CyberVC.swift */; }; 05B074E31DE6F552003611FE /* Dog.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 05B074E01DE6F552003611FE /* Dog.jpg */; }; @@ -24,59 +27,55 @@ 05B074FD1DE83D7A003611FE /* Moon.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 05B074FC1DE83D7A003611FE /* Moon.jpg */; }; 05B074FF1DE840B4003611FE /* ToastVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 05B074FE1DE840B4003611FE /* ToastVC.swift */; }; 05B075011DE8479D003611FE /* CoFire.png in Resources */ = {isa = PBXBuildFile; fileRef = 05B075001DE8479D003611FE /* CoFire.png */; }; - 05E512461DE6E8E100D3B765 /* CFResources.bundle in Embed PlugIns */ = {isa = PBXBuildFile; fileRef = 05E512451DE6E8E100D3B765 /* CFResources.bundle */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 05E512481DE6EC7100D3B765 /* CFResources.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 05E512451DE6E8E100D3B765 /* CFResources.bundle */; }; - 05E512491DE6ED8D00D3B765 /* CFNotify.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 05E512421DE6E8C100D3B765 /* CFNotify.framework */; }; - 05E5124A1DE6ED8D00D3B765 /* CFNotify.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 05E512421DE6E8C100D3B765 /* CFNotify.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; /* End PBXBuildFile section */ /* Begin PBXCopyFilesBuildPhase section */ - 05E512471DE6E8E100D3B765 /* Embed PlugIns */ = { + 056CC4B427CA8A2900492282 /* Embed Frameworks */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = ""; - dstSubfolderSpec = 13; + dstSubfolderSpec = 10; files = ( - 05E512461DE6E8E100D3B765 /* CFResources.bundle in Embed PlugIns */, + 05A4828927CA9114006805E5 /* SwiftNotify.framework in Embed Frameworks */, ); - name = "Embed PlugIns"; + name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; }; - 05E5124B1DE6ED8D00D3B765 /* Embed Frameworks */ = { + 056CC4B527CA8A2900492282 /* Embed PlugIns */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = ""; - dstSubfolderSpec = 10; + dstSubfolderSpec = 13; files = ( - 05E5124A1DE6ED8D00D3B765 /* CFNotify.framework in Embed Frameworks */, + 05A4828A27CA9114006805E5 /* SwiftNotifyResources.bundle in Embed PlugIns */, ); - name = "Embed Frameworks"; + name = "Embed PlugIns"; runOnlyForDeploymentPostprocessing = 0; }; /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ - 05B074DC1DE6F4F8003611FE /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = CFNotifyExample/AppDelegate.swift; sourceTree = SOURCE_ROOT; }; - 05B074DE1DE6F4FE003611FE /* CyberVC.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = CyberVC.swift; path = CFNotifyExample/CyberVC.swift; sourceTree = SOURCE_ROOT; }; - 05B074E01DE6F552003611FE /* Dog.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = Dog.jpg; path = CFNotifyExample/Resource/Dog.jpg; sourceTree = SOURCE_ROOT; }; - 05B074E11DE6F552003611FE /* Dog2.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = Dog2.jpg; path = CFNotifyExample/Resource/Dog2.jpg; sourceTree = SOURCE_ROOT; }; - 05B074E21DE6F552003611FE /* Prism.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = Prism.jpg; path = CFNotifyExample/Resource/Prism.jpg; sourceTree = SOURCE_ROOT; }; - 05B074E61DE6F5A6003611FE /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = CFNotifyExample/Info.plist; sourceTree = SOURCE_ROOT; }; - 05B074E91DE6F61E003611FE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = CFNotifyExample/Base.lproj/Main.storyboard; sourceTree = SOURCE_ROOT; }; + 05A4828627CA9114006805E5 /* SwiftNotify.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = SwiftNotify.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 05A4828727CA9114006805E5 /* SwiftNotifyResources.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; path = SwiftNotifyResources.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; + 05B074DC1DE6F4F8003611FE /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = SwiftNotifyExample/AppDelegate.swift; sourceTree = SOURCE_ROOT; }; + 05B074DE1DE6F4FE003611FE /* CyberVC.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = CyberVC.swift; path = SwiftNotifyExample/CyberVC.swift; sourceTree = SOURCE_ROOT; }; + 05B074E01DE6F552003611FE /* Dog.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = Dog.jpg; path = SwiftNotifyExample/Resource/Dog.jpg; sourceTree = SOURCE_ROOT; }; + 05B074E11DE6F552003611FE /* Dog2.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = Dog2.jpg; path = SwiftNotifyExample/Resource/Dog2.jpg; sourceTree = SOURCE_ROOT; }; + 05B074E21DE6F552003611FE /* Prism.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = Prism.jpg; path = SwiftNotifyExample/Resource/Prism.jpg; sourceTree = SOURCE_ROOT; }; + 05B074E61DE6F5A6003611FE /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.info; name = Info.plist; path = SwiftNotifyExample/Info.plist; sourceTree = SOURCE_ROOT; }; + 05B074E91DE6F61E003611FE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = SwiftNotifyExample/Base.lproj/Main.storyboard; sourceTree = SOURCE_ROOT; }; 05B074EC1DE6F63A003611FE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = "Base.lproj/Launch Screen.storyboard"; sourceTree = ""; }; - 05B074EE1DE6F880003611FE /* Mountain.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = Mountain.jpg; path = CFNotifyExample/Resource/Mountain.jpg; sourceTree = SOURCE_ROOT; }; - 05B074F01DE7E2C2003611FE /* MainVC.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = MainVC.swift; path = CFNotifyExample/MainVC.swift; sourceTree = SOURCE_ROOT; }; - 05B074F21DE7E3C0003611FE /* MainTableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = MainTableViewCell.swift; path = CFNotifyExample/MainTableViewCell.swift; sourceTree = SOURCE_ROOT; }; - 05B074F41DE7E84E003611FE /* Night.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = Night.jpg; path = CFNotifyExample/Resource/Night.jpg; sourceTree = SOURCE_ROOT; }; - 05B074F61DE7EF6D003611FE /* Eagle.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = Eagle.jpg; path = CFNotifyExample/Resource/Eagle.jpg; sourceTree = SOURCE_ROOT; }; - 05B074F81DE80FC0003611FE /* Gradient.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = Gradient.jpg; path = CFNotifyExample/Resource/Gradient.jpg; sourceTree = SOURCE_ROOT; }; - 05B074FA1DE83851003611FE /* ClassicVC.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ClassicVC.swift; path = CFNotifyExample/ClassicVC.swift; sourceTree = SOURCE_ROOT; }; - 05B074FC1DE83D7A003611FE /* Moon.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = Moon.jpg; path = CFNotifyExample/Resource/Moon.jpg; sourceTree = SOURCE_ROOT; }; - 05B074FE1DE840B4003611FE /* ToastVC.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ToastVC.swift; path = CFNotifyExample/ToastVC.swift; sourceTree = SOURCE_ROOT; }; - 05B075001DE8479D003611FE /* CoFire.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = CoFire.png; path = CFNotifyExample/Resource/CoFire.png; sourceTree = SOURCE_ROOT; }; - 05E512421DE6E8C100D3B765 /* CFNotify.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = CFNotify.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 05E512451DE6E8E100D3B765 /* CFResources.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; path = CFResources.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; - B231B3701DD35A1400D29BD5 /* CFNotifyExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CFNotifyExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 05B074EE1DE6F880003611FE /* Mountain.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = Mountain.jpg; path = SwiftNotifyExample/Resource/Mountain.jpg; sourceTree = SOURCE_ROOT; }; + 05B074F01DE7E2C2003611FE /* MainVC.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = MainVC.swift; path = SwiftNotifyExample/MainVC.swift; sourceTree = SOURCE_ROOT; }; + 05B074F21DE7E3C0003611FE /* MainTableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = MainTableViewCell.swift; path = SwiftNotifyExample/MainTableViewCell.swift; sourceTree = SOURCE_ROOT; }; + 05B074F41DE7E84E003611FE /* Night.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = Night.jpg; path = SwiftNotifyExample/Resource/Night.jpg; sourceTree = SOURCE_ROOT; }; + 05B074F61DE7EF6D003611FE /* Eagle.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = Eagle.jpg; path = SwiftNotifyExample/Resource/Eagle.jpg; sourceTree = SOURCE_ROOT; }; + 05B074F81DE80FC0003611FE /* Gradient.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = Gradient.jpg; path = SwiftNotifyExample/Resource/Gradient.jpg; sourceTree = SOURCE_ROOT; }; + 05B074FA1DE83851003611FE /* ClassicVC.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ClassicVC.swift; path = SwiftNotifyExample/ClassicVC.swift; sourceTree = SOURCE_ROOT; }; + 05B074FC1DE83D7A003611FE /* Moon.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = Moon.jpg; path = SwiftNotifyExample/Resource/Moon.jpg; sourceTree = SOURCE_ROOT; }; + 05B074FE1DE840B4003611FE /* ToastVC.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ToastVC.swift; path = SwiftNotifyExample/ToastVC.swift; sourceTree = SOURCE_ROOT; }; + 05B075001DE8479D003611FE /* CoFire.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = CoFire.png; path = SwiftNotifyExample/Resource/CoFire.png; sourceTree = SOURCE_ROOT; }; + B231B3701DD35A1400D29BD5 /* SwiftNotifyExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwiftNotifyExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -84,7 +83,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 05E512491DE6ED8D00D3B765 /* CFNotify.framework in Frameworks */, + 05A4828827CA9114006805E5 /* SwiftNotify.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -110,7 +109,7 @@ B231B3671DD35A1400D29BD5 = { isa = PBXGroup; children = ( - B231B3721DD35A1400D29BD5 /* CFNotifyExample */, + B231B3721DD35A1400D29BD5 /* SwiftNotifyExample */, B231B3711DD35A1400D29BD5 /* Products */, B231B3851DD35A2A00D29BD5 /* Frameworks */, ); @@ -119,12 +118,12 @@ B231B3711DD35A1400D29BD5 /* Products */ = { isa = PBXGroup; children = ( - B231B3701DD35A1400D29BD5 /* CFNotifyExample.app */, + B231B3701DD35A1400D29BD5 /* SwiftNotifyExample.app */, ); name = Products; sourceTree = ""; }; - B231B3721DD35A1400D29BD5 /* CFNotifyExample */ = { + B231B3721DD35A1400D29BD5 /* SwiftNotifyExample */ = { isa = PBXGroup; children = ( 053212241DDDB3C70008581A /* Resource */, @@ -138,14 +137,14 @@ 05B074ED1DE6F63A003611FE /* Launch Screen.storyboard */, 05B074E61DE6F5A6003611FE /* Info.plist */, ); - path = CFNotifyExample; + path = SwiftNotifyExample; sourceTree = ""; }; B231B3851DD35A2A00D29BD5 /* Frameworks */ = { isa = PBXGroup; children = ( - 05E512421DE6E8C100D3B765 /* CFNotify.framework */, - 05E512451DE6E8E100D3B765 /* CFResources.bundle */, + 05A4828627CA9114006805E5 /* SwiftNotify.framework */, + 05A4828727CA9114006805E5 /* SwiftNotifyResources.bundle */, ); name = Frameworks; sourceTree = ""; @@ -153,23 +152,23 @@ /* End PBXGroup section */ /* Begin PBXNativeTarget section */ - B231B36F1DD35A1400D29BD5 /* CFNotifyExample */ = { + B231B36F1DD35A1400D29BD5 /* SwiftNotifyExample */ = { isa = PBXNativeTarget; - buildConfigurationList = B231B3821DD35A1400D29BD5 /* Build configuration list for PBXNativeTarget "CFNotifyExample" */; + buildConfigurationList = B231B3821DD35A1400D29BD5 /* Build configuration list for PBXNativeTarget "SwiftNotifyExample" */; buildPhases = ( B231B36C1DD35A1400D29BD5 /* Sources */, B231B36D1DD35A1400D29BD5 /* Frameworks */, B231B36E1DD35A1400D29BD5 /* Resources */, - 05E512471DE6E8E100D3B765 /* Embed PlugIns */, - 05E5124B1DE6ED8D00D3B765 /* Embed Frameworks */, + 056CC4B427CA8A2900492282 /* Embed Frameworks */, + 056CC4B527CA8A2900492282 /* Embed PlugIns */, ); buildRules = ( ); dependencies = ( ); - name = CFNotifyExample; + name = SwiftNotifyExample; productName = CFMessageExample; - productReference = B231B3701DD35A1400D29BD5 /* CFNotifyExample.app */; + productReference = B231B3701DD35A1400D29BD5 /* SwiftNotifyExample.app */; productType = "com.apple.product-type.application"; }; /* End PBXNativeTarget section */ @@ -190,7 +189,7 @@ }; }; }; - buildConfigurationList = B231B36B1DD35A1400D29BD5 /* Build configuration list for PBXProject "CFNotifyExample" */; + buildConfigurationList = B231B36B1DD35A1400D29BD5 /* Build configuration list for PBXProject "SwiftNotifyExample" */; compatibilityVersion = "Xcode 3.2"; developmentRegion = en; hasScannedForEncodings = 0; @@ -203,7 +202,7 @@ projectDirPath = ""; projectRoot = ""; targets = ( - B231B36F1DD35A1400D29BD5 /* CFNotifyExample */, + B231B36F1DD35A1400D29BD5 /* SwiftNotifyExample */, ); }; /* End PBXProject section */ @@ -214,7 +213,6 @@ buildActionMask = 2147483647; files = ( 05B074EA1DE6F61E003611FE /* Main.storyboard in Resources */, - 05E512481DE6EC7100D3B765 /* CFResources.bundle in Resources */, 05B074EB1DE6F63A003611FE /* Launch Screen.storyboard in Resources */, 05B075011DE8479D003611FE /* CoFire.png in Resources */, 05B074E51DE6F552003611FE /* Prism.jpg in Resources */, @@ -261,7 +259,7 @@ 05B074EC1DE6F63A003611FE /* Base */, ); name = "Launch Screen.storyboard"; - path = CFNotifyExample; + path = SwiftNotifyExample; sourceTree = SOURCE_ROOT; }; /* End PBXVariantGroup section */ @@ -385,10 +383,10 @@ buildSettings = { CLANG_ENABLE_MODULES = YES; DEVELOPMENT_TEAM = 6J24DF2E7Y; - INFOPLIST_FILE = CFNotifyExample/Info.plist; + INFOPLIST_FILE = "$(SRCROOT)/SwiftNotifyExample/Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "hk.co-fire.CFNotifyExample"; + PRODUCT_BUNDLE_IDENTIFIER = com.jt501.SwiftNotifyExample; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; @@ -400,10 +398,10 @@ buildSettings = { CLANG_ENABLE_MODULES = YES; DEVELOPMENT_TEAM = 6J24DF2E7Y; - INFOPLIST_FILE = CFNotifyExample/Info.plist; + INFOPLIST_FILE = "$(SRCROOT)/SwiftNotifyExample/Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "hk.co-fire.CFNotifyExample"; + PRODUCT_BUNDLE_IDENTIFIER = com.jt501.SwiftNotifyExample; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; }; @@ -412,7 +410,7 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - B231B36B1DD35A1400D29BD5 /* Build configuration list for PBXProject "CFNotifyExample" */ = { + B231B36B1DD35A1400D29BD5 /* Build configuration list for PBXProject "SwiftNotifyExample" */ = { isa = XCConfigurationList; buildConfigurations = ( B231B3801DD35A1400D29BD5 /* Debug */, @@ -421,7 +419,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - B231B3821DD35A1400D29BD5 /* Build configuration list for PBXNativeTarget "CFNotifyExample" */ = { + B231B3821DD35A1400D29BD5 /* Build configuration list for PBXNativeTarget "SwiftNotifyExample" */ = { isa = XCConfigurationList; buildConfigurations = ( B231B3831DD35A1400D29BD5 /* Debug */, diff --git a/Example/CFNotifyExample/CFNotifyExample.xcodeproj/xcshareddata/xcschemes/CFNotifyExample.xcscheme b/Example/SwiftNotifyExample/SwiftNotifyExample.xcodeproj/xcshareddata/xcschemes/SwiftNotifyExample.xcscheme similarity index 77% rename from Example/CFNotifyExample/CFNotifyExample.xcodeproj/xcshareddata/xcschemes/CFNotifyExample.xcscheme rename to Example/SwiftNotifyExample/SwiftNotifyExample.xcodeproj/xcshareddata/xcschemes/SwiftNotifyExample.xcscheme index 0ba435a..3401fb4 100644 --- a/Example/CFNotifyExample/CFNotifyExample.xcodeproj/xcshareddata/xcschemes/CFNotifyExample.xcscheme +++ b/Example/SwiftNotifyExample/SwiftNotifyExample.xcodeproj/xcshareddata/xcschemes/SwiftNotifyExample.xcscheme @@ -15,9 +15,9 @@ + BuildableName = "SwiftNotifyExample.app" + BlueprintName = "SwiftNotifyExample" + ReferencedContainer = "container:SwiftNotifyExample.xcodeproj"> @@ -27,19 +27,17 @@ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" shouldUseLaunchSchemeArgsEnv = "YES"> - - + BuildableName = "SwiftNotifyExample.app" + BlueprintName = "SwiftNotifyExample" + ReferencedContainer = "container:SwiftNotifyExample.xcodeproj"> - - + + + BuildableName = "SwiftNotifyExample.app" + BlueprintName = "SwiftNotifyExample" + ReferencedContainer = "container:SwiftNotifyExample.xcodeproj"> - - + BuildableName = "SwiftNotifyExample.app" + BlueprintName = "SwiftNotifyExample" + ReferencedContainer = "container:SwiftNotifyExample.xcodeproj"> diff --git a/Example/CFNotifyExample/CFNotifyExample/AppDelegate.swift b/Example/SwiftNotifyExample/SwiftNotifyExample/AppDelegate.swift similarity index 100% rename from Example/CFNotifyExample/CFNotifyExample/AppDelegate.swift rename to Example/SwiftNotifyExample/SwiftNotifyExample/AppDelegate.swift diff --git a/Example/CFNotifyExample/CFNotifyExample/Assets.xcassets/AppIcon.appiconset/Contents.json b/Example/SwiftNotifyExample/SwiftNotifyExample/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from Example/CFNotifyExample/CFNotifyExample/Assets.xcassets/AppIcon.appiconset/Contents.json rename to Example/SwiftNotifyExample/SwiftNotifyExample/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/Example/CFNotifyExample/CFNotifyExample/Base.lproj/Launch Screen.storyboard b/Example/SwiftNotifyExample/SwiftNotifyExample/Base.lproj/Launch Screen.storyboard similarity index 96% rename from Example/CFNotifyExample/CFNotifyExample/Base.lproj/Launch Screen.storyboard rename to Example/SwiftNotifyExample/SwiftNotifyExample/Base.lproj/Launch Screen.storyboard index 3e6fc73..31062a1 100644 --- a/Example/CFNotifyExample/CFNotifyExample/Base.lproj/Launch Screen.storyboard +++ b/Example/SwiftNotifyExample/SwiftNotifyExample/Base.lproj/Launch Screen.storyboard @@ -32,7 +32,7 @@ -