diff --git a/.swift-version b/.swift-version new file mode 100644 index 0000000..5186d07 --- /dev/null +++ b/.swift-version @@ -0,0 +1 @@ +4.0 diff --git a/ABNSDemo.xcodeproj/project.pbxproj b/ABNSDemo.xcodeproj/project.pbxproj index 7571561..dba6d54 100644 --- a/ABNSDemo.xcodeproj/project.pbxproj +++ b/ABNSDemo.xcodeproj/project.pbxproj @@ -11,6 +11,8 @@ 5FE405D41F752DF2005DCEAE /* SecondViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B0A801A21C98878600135DDA /* SecondViewController.swift */; }; 5FE405D61F752DFD005DCEAE /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B0A801C81C98906300135DDA /* Main.storyboard */; }; 5FE405D71F752E04005DCEAE /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B0A801CB1C98906D00135DDA /* LaunchScreen.storyboard */; }; + 5FE405DB1F753A00005DCEAE /* ABNScheduler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5FE405DA1F752E51005DCEAE /* ABNScheduler.swift */; }; + 5FE405DC1F753A00005DCEAE /* ABNScheduler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5FE405DA1F752E51005DCEAE /* ABNScheduler.swift */; }; B0A8019F1C98878600135DDA /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = B0A8019E1C98878600135DDA /* AppDelegate.swift */; }; B0A801A11C98878600135DDA /* FirstViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B0A801A01C98878600135DDA /* FirstViewController.swift */; }; B0A801A31C98878600135DDA /* SecondViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B0A801A21C98878600135DDA /* SecondViewController.swift */; }; @@ -65,18 +67,18 @@ /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - 5FE405D81F752E3D005DCEAE /* ABNScheduler */ = { + 5FE405D81F752E3D005DCEAE /* PJScheduler */ = { isa = PBXGroup; children = ( 5FE405DA1F752E51005DCEAE /* ABNScheduler.swift */, ); - path = ABNScheduler; + path = PJScheduler; sourceTree = ""; }; B0A801921C98878600135DDA = { isa = PBXGroup; children = ( - 5FE405D81F752E3D005DCEAE /* ABNScheduler */, + 5FE405D81F752E3D005DCEAE /* PJScheduler */, B0A8019D1C98878600135DDA /* ABNSDemo */, B0A801B41C98878600135DDA /* ABNSDemoTests */, B0A8019C1C98878600135DDA /* Products */, @@ -161,7 +163,7 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0720; - LastUpgradeCheck = 0820; + LastUpgradeCheck = 0900; ORGANIZATIONNAME = "Ahmed Abdul Badie"; TargetAttributes = { B0A8019A1C98878600135DDA = { @@ -224,6 +226,7 @@ buildActionMask = 2147483647; files = ( B0A801A31C98878600135DDA /* SecondViewController.swift in Sources */, + 5FE405DB1F753A00005DCEAE /* ABNScheduler.swift in Sources */, B0A8019F1C98878600135DDA /* AppDelegate.swift in Sources */, B0A801A11C98878600135DDA /* FirstViewController.swift in Sources */, ); @@ -234,6 +237,7 @@ buildActionMask = 2147483647; files = ( 5FE405D41F752DF2005DCEAE /* SecondViewController.swift in Sources */, + 5FE405DC1F753A00005DCEAE /* ABNScheduler.swift in Sources */, 5FE405D31F752DF2005DCEAE /* FirstViewController.swift in Sources */, B0A801B61C98878600135DDA /* ABNSDemoTests.swift in Sources */, B0A801C31C98881F00135DDA /* ABNSchedulerTests.swift in Sources */, @@ -278,14 +282,20 @@ CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; @@ -324,14 +334,20 @@ CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; diff --git a/ABNSDemo.xcodeproj/project.xcworkspace/xcuserdata/jonnycau.xcuserdatad/UserInterfaceState.xcuserstate b/ABNSDemo.xcodeproj/project.xcworkspace/xcuserdata/jonnycau.xcuserdatad/UserInterfaceState.xcuserstate index 451db74..8aa2630 100644 Binary files a/ABNSDemo.xcodeproj/project.xcworkspace/xcuserdata/jonnycau.xcuserdatad/UserInterfaceState.xcuserstate and b/ABNSDemo.xcodeproj/project.xcworkspace/xcuserdata/jonnycau.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/ABNSDemo.xcodeproj/xcshareddata/xcschemes/ABNSDemo.xcscheme b/ABNSDemo.xcodeproj/xcshareddata/xcschemes/ABNSDemo.xcscheme index 68fb444..9c1373f 100644 --- a/ABNSDemo.xcodeproj/xcshareddata/xcschemes/ABNSDemo.xcscheme +++ b/ABNSDemo.xcodeproj/xcshareddata/xcschemes/ABNSDemo.xcscheme @@ -1,6 +1,6 @@ "MIT", :file => "FILE_LICENSE" } + + + # ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # Specify the authors of the library, with email addresses. Email addresses + # of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also + # accepts just a name if you'd rather not provide an email address. + # + # Specify a social_media_url where others can refer to, for example a twitter + # profile URL. + # + + s.author = { "Pierre jonny cau" => "pjonny@gmail.com" } + # Or just: s.author = "Pierre jonny cau" + # s.authors = { "Pierre jonny cau" => "pjonny@gmail.com" } + s.social_media_url = "http://twitter.com/pjcau" + + # ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # If this Pod runs only on iOS or OS X, then specify the platform and + # the deployment target. You can optionally include the target after the platform. + # + + s.platform = :ios + s.platform = :ios, "9.0" + + # When using multiple platforms + # s.ios.deployment_target = "5.0" + # s.osx.deployment_target = "10.7" + # s.watchos.deployment_target = "2.0" + # s.tvos.deployment_target = "9.0" + + + # ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # Specify the location from where the source should be retrieved. + # Supports git, hg, bzr, svn and HTTP. + # + + s.source = { :git => "https://github.com/pjcau/ABNScheduler.git", :tag => "#{s.version}" } + + + # ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # CocoaPods is smart about how it includes source code. For source files + # giving a folder will include any swift, h, m, mm, c & cpp files. + # For header files it will include any header in the folder. + # Not including the public_header_files will make all headers public. + # + + s.source_files = "PJScheduler/**/*.swift" + #s.exclude_files = "Classes/Exclude" + + # s.public_header_files = "Classes/**/*.h" + + + # ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # A list of resources included with the Pod. These are copied into the + # target bundle with a build phase script. Anything else will be cleaned. + # You can preserve files from being cleaned, please don't preserve + # non-essential files like tests, examples and documentation. + # + + # s.resource = "icon.png" + # s.resources = "Resources/*.png" + + # s.preserve_paths = "FilesToSave", "MoreFilesToSave" + + + # ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # Link your library with frameworks, or libraries. Libraries do not include + # the lib prefix of their name. + # + + # s.framework = "SomeFramework" + # s.frameworks = "SomeFramework", "AnotherFramework" + + # s.library = "iconv" + # s.libraries = "iconv", "xml2" + + + # ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # If your library depends on compiler flags you can set them in the xcconfig hash + # where they will only apply to your library. If you depend on other Podspecs + # you can include multiple dependencies to ensure it works. + + s.requires_arc = true + + # s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" } + # s.dependency "JSONKit", "~> 1.4" + +end diff --git a/ABNScheduler/ABNScheduler.swift b/PJScheduler/ABNScheduler.swift similarity index 100% rename from ABNScheduler/ABNScheduler.swift rename to PJScheduler/ABNScheduler.swift