diff --git a/.slather.yml b/.slather.yml index 2a5e7d9..8c03479 100644 --- a/.slather.yml +++ b/.slather.yml @@ -1,3 +1,3 @@ coverage_service: coveralls -xcodeproj: DeepLinkSDK.xcodeproj -source_directory: DeepLinkSDK +xcodeproj: DeepLinkKit.xcodeproj +source_directory: DeepLinkKit diff --git a/.travis.yml b/.travis.yml index 9e652e3..e7f9200 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,6 @@ before_install: - gem i cocoapods --no-ri --no-rdoc - pod install script: - - xctool test -workspace DeepLinkSDK.xcworkspace -scheme ReceiverDemo -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO + - xctool test -workspace DeepLinkKit.xcworkspace -scheme ReceiverDemo -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO after_success: - slather diff --git a/DeepLinkKit.podspec b/DeepLinkKit.podspec new file mode 100644 index 0000000..87cb6f3 --- /dev/null +++ b/DeepLinkKit.podspec @@ -0,0 +1,18 @@ +Pod::Spec.new do |s| + s.name = "DeepLinkKit" + s.version = "1.0.0" + s.summary = "A splendid route-matching, block-based way to handle your deep links." + s.description = <<-DESC + DeepLink Kit is a splendid route-handling block-based way to handle deep links. Use DeepLink Kit to parse incoming URLs, extract parameters from the host, url etc.. and even build outgoing deeplinks. All with a simple, block-based interface. + DESC + s.homepage = "http://www.usebutton.com/sdk/deep-links" + s.license = 'MIT' + s.author = 'Button, Inc.' + s.source = { :git => "https://github.com/usebutton/DeepLinkKit.git", :tag => s.version.to_s } + s.social_media_url = 'https://twitter.com/buttondev' + + s.platform = :ios, '7.0' + s.requires_arc = true + + s.source_files = 'DeepLinkKit/**/*.{h,m}' +end diff --git a/DeepLinkSDK.xcodeproj/project.pbxproj b/DeepLinkKit.xcodeproj/project.pbxproj similarity index 97% rename from DeepLinkSDK.xcodeproj/project.pbxproj rename to DeepLinkKit.xcodeproj/project.pbxproj index 3867d4d..e4307e8 100644 --- a/DeepLinkSDK.xcodeproj/project.pbxproj +++ b/DeepLinkKit.xcodeproj/project.pbxproj @@ -57,7 +57,7 @@ containerPortal = 6003F582195388D10070C39A /* Project object */; proxyType = 1; remoteGlobalIDString = 6003F589195388D20070C39A; - remoteInfo = DeepLinkSDK; + remoteInfo = DeepLinkKit; }; /* End PBXContainerItemProxy section */ @@ -66,10 +66,6 @@ 19367BAF0FEDE5B798128F3D /* libPods-Tests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Tests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 2AE3E05821FBC0C05F248E61 /* Pods-Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Tests/Pods-Tests.debug.xcconfig"; sourceTree = ""; }; 2F4988DD1AE71ABC0069EF2B /* DPLRouteHandlerIntegrationTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DPLRouteHandlerIntegrationTest.m; path = IntegrationTests/DPLRouteHandlerIntegrationTest.m; sourceTree = ""; }; - 4D4F41231B0298FF00B710DB /* DPLRegularExpression.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DPLRegularExpression.h; sourceTree = ""; }; - 4D4F41241B0298FF00B710DB /* DPLRegularExpression.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DPLRegularExpression.m; sourceTree = ""; }; - 4D4F41251B029D9E00B710DB /* DPLMatchResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DPLMatchResult.h; sourceTree = ""; }; - 4D4F41261B029D9E00B710DB /* DPLMatchResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DPLMatchResult.m; sourceTree = ""; }; 4D4F412A1B02A96400B710DB /* DPLRegularExpressionSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DPLRegularExpressionSpec.m; sourceTree = ""; }; 57D5F02E049D7887B4F4ACDF /* Pods-ReceiverDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReceiverDemo.debug.xcconfig"; path = "Pods/Target Support Files/Pods-ReceiverDemo/Pods-ReceiverDemo.debug.xcconfig"; sourceTree = ""; }; 6003F58A195388D20070C39A /* ReceiverDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ReceiverDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -79,7 +75,11 @@ 6003F5AE195388D20070C39A /* Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 6B9E60301031FFD1833ECA7A /* Pods-SenderDemo.test.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SenderDemo.test.xcconfig"; path = "Pods/Target Support Files/Pods-SenderDemo/Pods-SenderDemo.test.xcconfig"; sourceTree = ""; }; 81A53B1FA1F6DF1D2B557DCD /* libPods-SenderDemo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-SenderDemo.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - 8949A4E8F681A12A47C20775 /* DeepLinkSDK.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; name = DeepLinkSDK.podspec; path = ./DeepLinkSDK.podspec; sourceTree = ""; }; + 83D34C3B1B03ECAD00BA6EF1 /* DPLMatchResult.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DPLMatchResult.h; sourceTree = ""; }; + 83D34C3C1B03ECAD00BA6EF1 /* DPLMatchResult.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DPLMatchResult.m; sourceTree = ""; }; + 83D34C3D1B03ECAD00BA6EF1 /* DPLRegularExpression.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DPLRegularExpression.h; sourceTree = ""; }; + 83D34C3E1B03ECAD00BA6EF1 /* DPLRegularExpression.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DPLRegularExpression.m; sourceTree = ""; }; + 8949A4E8F681A12A47C20775 /* DeepLinkKit.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; name = DeepLinkKit.podspec; path = ./DeepLinkKit.podspec; sourceTree = ""; }; A7644D9D2D35BA2869AD63FA /* Pods-SenderDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SenderDemo.release.xcconfig"; path = "Pods/Target Support Files/Pods-SenderDemo/Pods-SenderDemo.release.xcconfig"; sourceTree = ""; }; B3CB044233E227F87FCF2C46 /* Pods-Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-Tests/Pods-Tests.release.xcconfig"; sourceTree = ""; }; B915356798E84DC8F8A0A3CB /* Pods-SenderDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SenderDemo.debug.xcconfig"; path = "Pods/Target Support Files/Pods-SenderDemo/Pods-SenderDemo.debug.xcconfig"; sourceTree = ""; }; @@ -136,13 +136,13 @@ DEAD328419E079D3003C8D65 /* Tests-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Tests-Info.plist"; sourceTree = ""; }; DEAD328519E079D3003C8D65 /* Tests-Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = ""; }; DEB4EDBC1A4A036D00F31D14 /* DPLDeepLink_Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DPLDeepLink_Private.h; sourceTree = ""; }; - DEB4EDBD1A4A726200F31D14 /* DeepLinkSDK.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DeepLinkSDK.h; sourceTree = ""; }; + DEB4EDBD1A4A726200F31D14 /* DeepLinkKit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DeepLinkKit.h; sourceTree = ""; }; DECB32491A87C64E0071C76E /* DPLMutableDeepLink.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DPLMutableDeepLink.h; sourceTree = ""; }; DECB324A1A87C64E0071C76E /* DPLMutableDeepLink.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DPLMutableDeepLink.m; sourceTree = ""; }; DECB324B1A87C6750071C76E /* DPLMutableDeepLink+AppLinks.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "DPLMutableDeepLink+AppLinks.h"; sourceTree = ""; }; DECB324C1A87C6750071C76E /* DPLMutableDeepLink+AppLinks.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "DPLMutableDeepLink+AppLinks.m"; sourceTree = ""; }; - DECB32501A87E94B0071C76E /* NSObject+DPLJSONObject.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "NSObject+DPLJSONObject.h"; path = "DeepLinkSDK/Categories/NSObject+DPLJSONObject.h"; sourceTree = SOURCE_ROOT; }; - DECB32511A87E94B0071C76E /* NSObject+DPLJSONObject.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "NSObject+DPLJSONObject.m"; path = "DeepLinkSDK/Categories/NSObject+DPLJSONObject.m"; sourceTree = SOURCE_ROOT; }; + DECB32501A87E94B0071C76E /* NSObject+DPLJSONObject.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "NSObject+DPLJSONObject.h"; path = "DeepLinkKit/Categories/NSObject+DPLJSONObject.h"; sourceTree = SOURCE_ROOT; }; + DECB32511A87E94B0071C76E /* NSObject+DPLJSONObject.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "NSObject+DPLJSONObject.m"; path = "DeepLinkKit/Categories/NSObject+DPLJSONObject.m"; sourceTree = SOURCE_ROOT; }; DECB32521A881CA10071C76E /* NSObject_DPLJSONObjectSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NSObject_DPLJSONObjectSpec.m; sourceTree = ""; }; DECB32541A882D1A0071C76E /* DPLMutableDeepLinkSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DPLMutableDeepLinkSpec.m; sourceTree = ""; }; DECB32561A8866700071C76E /* DPLMutableDeepLink_AppLinksSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DPLMutableDeepLink_AppLinksSpec.m; sourceTree = ""; }; @@ -226,17 +226,6 @@ name = Pods; sourceTree = ""; }; - 4D4F41221B0298AA00B710DB /* Regex */ = { - isa = PBXGroup; - children = ( - 4D4F41231B0298FF00B710DB /* DPLRegularExpression.h */, - 4D4F41241B0298FF00B710DB /* DPLRegularExpression.m */, - 4D4F41251B029D9E00B710DB /* DPLMatchResult.h */, - 4D4F41261B029D9E00B710DB /* DPLMatchResult.m */, - ); - path = Regex; - sourceTree = ""; - }; 4D4F41291B02A95800B710DB /* Regex */ = { isa = PBXGroup; children = ( @@ -250,7 +239,7 @@ children = ( DE11B99B1A42466C008A8F36 /* SampleApps */, 60FF7A9C1954A5C5007DD14C /* Pod Metadata */, - DE5DD32C19E0643F007FD439 /* DeepLinkSDK */, + DE5DD32C19E0643F007FD439 /* DeepLinkKit */, DEAD328119E079D3003C8D65 /* Tests */, 6003F58C195388D20070C39A /* Frameworks */, 6003F58B195388D20070C39A /* Products */, @@ -284,13 +273,24 @@ 60FF7A9C1954A5C5007DD14C /* Pod Metadata */ = { isa = PBXGroup; children = ( - 8949A4E8F681A12A47C20775 /* DeepLinkSDK.podspec */, + 8949A4E8F681A12A47C20775 /* DeepLinkKit.podspec */, E9CA1DB95577CF3689F4B77F /* README.md */, DF9272621ECB6C2824AD5C94 /* LICENSE */, ); name = "Pod Metadata"; sourceTree = ""; }; + 83D34C3A1B03ECAD00BA6EF1 /* Regex */ = { + isa = PBXGroup; + children = ( + 83D34C3B1B03ECAD00BA6EF1 /* DPLMatchResult.h */, + 83D34C3C1B03ECAD00BA6EF1 /* DPLMatchResult.m */, + 83D34C3D1B03ECAD00BA6EF1 /* DPLRegularExpression.h */, + 83D34C3E1B03ECAD00BA6EF1 /* DPLRegularExpression.m */, + ); + path = Regex; + sourceTree = ""; + }; DE025EAC1A5F0CD3007C4F3A /* ProductDetail */ = { isa = PBXGroup; children = ( @@ -422,21 +422,21 @@ path = Categories; sourceTree = ""; }; - DE5DD32C19E0643F007FD439 /* DeepLinkSDK */ = { + DE5DD32C19E0643F007FD439 /* DeepLinkKit */ = { isa = PBXGroup; children = ( - DEB4EDBD1A4A726200F31D14 /* DeepLinkSDK.h */, + DEB4EDBD1A4A726200F31D14 /* DeepLinkKit.h */, DE4128901A8BBE500089DAA2 /* AppLinks.h */, DE99EF6A1A3B6CDD00CE3449 /* Protocols */, DE3E61071A3B4485008D6DFC /* Categories */, DEB4EDBB1A49CEA400F31D14 /* Errors */, - 4D4F41221B0298AA00B710DB /* Regex */, + 83D34C3A1B03ECAD00BA6EF1 /* Regex */, DE16E91F1A42882F00077E18 /* Router */, DEAC406F1A5DA7B8004A9095 /* RouteHandler */, DE16E9331A4289D500077E18 /* RouteMatcher */, DE058E0B1A3B484A00147C04 /* DeepLink */, ); - path = DeepLinkSDK; + path = DeepLinkKit; sourceTree = ""; }; DE87B1EB1A5DEF3100204A35 /* RouteHandlers */ = { @@ -608,7 +608,7 @@ dependencies = ( ); name = ReceiverDemo; - productName = DeepLinkSDK; + productName = DeepLinkKit; productReference = 6003F58A195388D20070C39A /* ReceiverDemo.app */; productType = "com.apple.product-type.application"; }; @@ -628,7 +628,7 @@ 6003F5B4195388D20070C39A /* PBXTargetDependency */, ); name = Tests; - productName = DeepLinkSDKTests; + productName = DeepLinkKitTests; productReference = 6003F5AE195388D20070C39A /* Tests.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; @@ -669,7 +669,7 @@ }; }; }; - buildConfigurationList = 6003F585195388D10070C39A /* Build configuration list for PBXProject "DeepLinkSDK" */; + buildConfigurationList = 6003F585195388D10070C39A /* Build configuration list for PBXProject "DeepLinkKit" */; compatibilityVersion = "Xcode 3.2"; developmentRegion = English; hasScannedForEncodings = 0; @@ -1178,7 +1178,7 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - 6003F585195388D10070C39A /* Build configuration list for PBXProject "DeepLinkSDK" */ = { + 6003F585195388D10070C39A /* Build configuration list for PBXProject "DeepLinkKit" */ = { isa = XCConfigurationList; buildConfigurations = ( 6003F5BD195388D20070C39A /* Debug */, diff --git a/DeepLinkSDK.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/DeepLinkKit.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 69% rename from DeepLinkSDK.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to DeepLinkKit.xcodeproj/project.xcworkspace/contents.xcworkspacedata index 52c6e2e..6feed67 100644 --- a/DeepLinkSDK.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ b/DeepLinkKit.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -2,6 +2,6 @@ + location = "self:DeepLinkKit.xcodeproj"> diff --git a/DeepLinkSDK.xcodeproj/xcshareddata/xcschemes/ReceiverDemo.xcscheme b/DeepLinkKit.xcodeproj/xcshareddata/xcschemes/ReceiverDemo.xcscheme similarity index 91% rename from DeepLinkSDK.xcodeproj/xcshareddata/xcschemes/ReceiverDemo.xcscheme rename to DeepLinkKit.xcodeproj/xcshareddata/xcschemes/ReceiverDemo.xcscheme index d9eb38c..c79f4e8 100644 --- a/DeepLinkSDK.xcodeproj/xcshareddata/xcschemes/ReceiverDemo.xcscheme +++ b/DeepLinkKit.xcodeproj/xcshareddata/xcschemes/ReceiverDemo.xcscheme @@ -17,7 +17,7 @@ BlueprintIdentifier = "6003F589195388D20070C39A" BuildableName = "ReceiverDemo.app" BlueprintName = "ReceiverDemo" - ReferencedContainer = "container:DeepLinkSDK.xcodeproj"> + ReferencedContainer = "container:DeepLinkKit.xcodeproj"> @@ -35,7 +35,7 @@ BlueprintIdentifier = "6003F5AD195388D20070C39A" BuildableName = "Tests.xctest" BlueprintName = "Tests" - ReferencedContainer = "container:DeepLinkSDK.xcodeproj"> + ReferencedContainer = "container:DeepLinkKit.xcodeproj"> @@ -45,7 +45,7 @@ BlueprintIdentifier = "6003F589195388D20070C39A" BuildableName = "ReceiverDemo.app" BlueprintName = "ReceiverDemo" - ReferencedContainer = "container:DeepLinkSDK.xcodeproj"> + ReferencedContainer = "container:DeepLinkKit.xcodeproj"> @@ -64,7 +64,7 @@ BlueprintIdentifier = "6003F589195388D20070C39A" BuildableName = "ReceiverDemo.app" BlueprintName = "ReceiverDemo" - ReferencedContainer = "container:DeepLinkSDK.xcodeproj"> + ReferencedContainer = "container:DeepLinkKit.xcodeproj"> @@ -82,7 +82,7 @@ BlueprintIdentifier = "6003F589195388D20070C39A" BuildableName = "ReceiverDemo.app" BlueprintName = "ReceiverDemo" - ReferencedContainer = "container:DeepLinkSDK.xcodeproj"> + ReferencedContainer = "container:DeepLinkKit.xcodeproj"> diff --git a/DeepLinkSDK.xcodeproj/xcshareddata/xcschemes/SenderDemo.xcscheme b/DeepLinkKit.xcodeproj/xcshareddata/xcschemes/SenderDemo.xcscheme similarity index 87% rename from DeepLinkSDK.xcodeproj/xcshareddata/xcschemes/SenderDemo.xcscheme rename to DeepLinkKit.xcodeproj/xcshareddata/xcschemes/SenderDemo.xcscheme index cad48a5..436b169 100644 --- a/DeepLinkSDK.xcodeproj/xcshareddata/xcschemes/SenderDemo.xcscheme +++ b/DeepLinkKit.xcodeproj/xcshareddata/xcschemes/SenderDemo.xcscheme @@ -17,7 +17,7 @@ BlueprintIdentifier = "DEDB148C1A3F944D00A837F8" BuildableName = "SenderDemo.app" BlueprintName = "SenderDemo" - ReferencedContainer = "container:DeepLinkSDK.xcodeproj"> + ReferencedContainer = "container:DeepLinkKit.xcodeproj"> + ReferencedContainer = "container:DeepLinkKit.xcodeproj"> @@ -49,7 +49,7 @@ BlueprintIdentifier = "6003F5AD195388D20070C39A" BuildableName = "Tests.xctest" BlueprintName = "Tests" - ReferencedContainer = "container:DeepLinkSDK.xcodeproj"> + ReferencedContainer = "container:DeepLinkKit.xcodeproj"> @@ -59,7 +59,7 @@ BlueprintIdentifier = "DEDB148C1A3F944D00A837F8" BuildableName = "SenderDemo.app" BlueprintName = "SenderDemo" - ReferencedContainer = "container:DeepLinkSDK.xcodeproj"> + ReferencedContainer = "container:DeepLinkKit.xcodeproj"> @@ -72,13 +72,14 @@ ignoresPersistentStateOnLaunch = "NO" debugDocumentVersioning = "YES" allowLocationSimulation = "YES"> - + + ReferencedContainer = "container:DeepLinkKit.xcodeproj"> @@ -90,13 +91,14 @@ useCustomWorkingDirectory = "NO" buildConfiguration = "Release" debugDocumentVersioning = "YES"> - + + ReferencedContainer = "container:DeepLinkKit.xcodeproj"> diff --git a/DeepLinkSDK.xcworkspace/contents.xcworkspacedata b/DeepLinkKit.xcworkspace/contents.xcworkspacedata similarity index 79% rename from DeepLinkSDK.xcworkspace/contents.xcworkspacedata rename to DeepLinkKit.xcworkspace/contents.xcworkspacedata index 23f9a4d..be63a30 100644 --- a/DeepLinkSDK.xcworkspace/contents.xcworkspacedata +++ b/DeepLinkKit.xcworkspace/contents.xcworkspacedata @@ -2,7 +2,7 @@ + location = "group:DeepLinkKit.xcodeproj"> diff --git a/DeepLinkSDK/AppLinks.h b/DeepLinkKit/AppLinks.h similarity index 75% rename from DeepLinkSDK/AppLinks.h rename to DeepLinkKit/AppLinks.h index e33764c..f95e2c9 100644 --- a/DeepLinkSDK/AppLinks.h +++ b/DeepLinkKit/AppLinks.h @@ -1,3 +1,3 @@ -#import "DeepLinkSDK.h" +#import "DeepLinkKit.h" #import "DPLDeepLink+AppLinks.h" #import "DPLMutableDeepLink+AppLinks.h" diff --git a/DeepLinkSDK/Categories/NSObject+DPLJSONObject.h b/DeepLinkKit/Categories/NSObject+DPLJSONObject.h similarity index 100% rename from DeepLinkSDK/Categories/NSObject+DPLJSONObject.h rename to DeepLinkKit/Categories/NSObject+DPLJSONObject.h diff --git a/DeepLinkSDK/Categories/NSObject+DPLJSONObject.m b/DeepLinkKit/Categories/NSObject+DPLJSONObject.m similarity index 100% rename from DeepLinkSDK/Categories/NSObject+DPLJSONObject.m rename to DeepLinkKit/Categories/NSObject+DPLJSONObject.m diff --git a/DeepLinkSDK/Categories/NSString+DPLJSON.h b/DeepLinkKit/Categories/NSString+DPLJSON.h similarity index 100% rename from DeepLinkSDK/Categories/NSString+DPLJSON.h rename to DeepLinkKit/Categories/NSString+DPLJSON.h diff --git a/DeepLinkSDK/Categories/NSString+DPLJSON.m b/DeepLinkKit/Categories/NSString+DPLJSON.m similarity index 100% rename from DeepLinkSDK/Categories/NSString+DPLJSON.m rename to DeepLinkKit/Categories/NSString+DPLJSON.m diff --git a/DeepLinkSDK/Categories/NSString+DPLQuery.h b/DeepLinkKit/Categories/NSString+DPLQuery.h similarity index 100% rename from DeepLinkSDK/Categories/NSString+DPLQuery.h rename to DeepLinkKit/Categories/NSString+DPLQuery.h diff --git a/DeepLinkSDK/Categories/NSString+DPLQuery.m b/DeepLinkKit/Categories/NSString+DPLQuery.m similarity index 100% rename from DeepLinkSDK/Categories/NSString+DPLQuery.m rename to DeepLinkKit/Categories/NSString+DPLQuery.m diff --git a/DeepLinkSDK/Categories/NSString+DPLTrim.h b/DeepLinkKit/Categories/NSString+DPLTrim.h similarity index 100% rename from DeepLinkSDK/Categories/NSString+DPLTrim.h rename to DeepLinkKit/Categories/NSString+DPLTrim.h diff --git a/DeepLinkSDK/Categories/NSString+DPLTrim.m b/DeepLinkKit/Categories/NSString+DPLTrim.m similarity index 100% rename from DeepLinkSDK/Categories/NSString+DPLTrim.m rename to DeepLinkKit/Categories/NSString+DPLTrim.m diff --git a/DeepLinkSDK/DeepLink/DPLDeepLink+AppLinks.h b/DeepLinkKit/DeepLink/DPLDeepLink+AppLinks.h similarity index 100% rename from DeepLinkSDK/DeepLink/DPLDeepLink+AppLinks.h rename to DeepLinkKit/DeepLink/DPLDeepLink+AppLinks.h diff --git a/DeepLinkSDK/DeepLink/DPLDeepLink+AppLinks.m b/DeepLinkKit/DeepLink/DPLDeepLink+AppLinks.m similarity index 100% rename from DeepLinkSDK/DeepLink/DPLDeepLink+AppLinks.m rename to DeepLinkKit/DeepLink/DPLDeepLink+AppLinks.m diff --git a/DeepLinkSDK/DeepLink/DPLDeepLink.h b/DeepLinkKit/DeepLink/DPLDeepLink.h similarity index 100% rename from DeepLinkSDK/DeepLink/DPLDeepLink.h rename to DeepLinkKit/DeepLink/DPLDeepLink.h diff --git a/DeepLinkSDK/DeepLink/DPLDeepLink.m b/DeepLinkKit/DeepLink/DPLDeepLink.m similarity index 100% rename from DeepLinkSDK/DeepLink/DPLDeepLink.m rename to DeepLinkKit/DeepLink/DPLDeepLink.m diff --git a/DeepLinkSDK/DeepLink/DPLDeepLink_Private.h b/DeepLinkKit/DeepLink/DPLDeepLink_Private.h similarity index 100% rename from DeepLinkSDK/DeepLink/DPLDeepLink_Private.h rename to DeepLinkKit/DeepLink/DPLDeepLink_Private.h diff --git a/DeepLinkSDK/DeepLink/DPLMutableDeepLink+AppLinks.h b/DeepLinkKit/DeepLink/DPLMutableDeepLink+AppLinks.h similarity index 100% rename from DeepLinkSDK/DeepLink/DPLMutableDeepLink+AppLinks.h rename to DeepLinkKit/DeepLink/DPLMutableDeepLink+AppLinks.h diff --git a/DeepLinkSDK/DeepLink/DPLMutableDeepLink+AppLinks.m b/DeepLinkKit/DeepLink/DPLMutableDeepLink+AppLinks.m similarity index 100% rename from DeepLinkSDK/DeepLink/DPLMutableDeepLink+AppLinks.m rename to DeepLinkKit/DeepLink/DPLMutableDeepLink+AppLinks.m diff --git a/DeepLinkSDK/DeepLink/DPLMutableDeepLink.h b/DeepLinkKit/DeepLink/DPLMutableDeepLink.h similarity index 100% rename from DeepLinkSDK/DeepLink/DPLMutableDeepLink.h rename to DeepLinkKit/DeepLink/DPLMutableDeepLink.h diff --git a/DeepLinkSDK/DeepLink/DPLMutableDeepLink.m b/DeepLinkKit/DeepLink/DPLMutableDeepLink.m similarity index 100% rename from DeepLinkSDK/DeepLink/DPLMutableDeepLink.m rename to DeepLinkKit/DeepLink/DPLMutableDeepLink.m diff --git a/DeepLinkSDK/DeepLinkSDK.h b/DeepLinkKit/DeepLinkKit.h similarity index 100% rename from DeepLinkSDK/DeepLinkSDK.h rename to DeepLinkKit/DeepLinkKit.h diff --git a/DeepLinkSDK/Errors/DPLErrors.h b/DeepLinkKit/Errors/DPLErrors.h similarity index 100% rename from DeepLinkSDK/Errors/DPLErrors.h rename to DeepLinkKit/Errors/DPLErrors.h diff --git a/DeepLinkSDK/Protocols/DPLSerializable.h b/DeepLinkKit/Protocols/DPLSerializable.h similarity index 100% rename from DeepLinkSDK/Protocols/DPLSerializable.h rename to DeepLinkKit/Protocols/DPLSerializable.h diff --git a/DeepLinkSDK/Protocols/DPLTargetViewControllerProtocol.h b/DeepLinkKit/Protocols/DPLTargetViewControllerProtocol.h similarity index 100% rename from DeepLinkSDK/Protocols/DPLTargetViewControllerProtocol.h rename to DeepLinkKit/Protocols/DPLTargetViewControllerProtocol.h diff --git a/DeepLinkSDK/Regex/DPLMatchResult.h b/DeepLinkKit/Regex/DPLMatchResult.h similarity index 100% rename from DeepLinkSDK/Regex/DPLMatchResult.h rename to DeepLinkKit/Regex/DPLMatchResult.h diff --git a/DeepLinkSDK/Regex/DPLMatchResult.m b/DeepLinkKit/Regex/DPLMatchResult.m similarity index 100% rename from DeepLinkSDK/Regex/DPLMatchResult.m rename to DeepLinkKit/Regex/DPLMatchResult.m diff --git a/DeepLinkSDK/Regex/DPLRegularExpression.h b/DeepLinkKit/Regex/DPLRegularExpression.h similarity index 100% rename from DeepLinkSDK/Regex/DPLRegularExpression.h rename to DeepLinkKit/Regex/DPLRegularExpression.h diff --git a/DeepLinkSDK/Regex/DPLRegularExpression.m b/DeepLinkKit/Regex/DPLRegularExpression.m similarity index 100% rename from DeepLinkSDK/Regex/DPLRegularExpression.m rename to DeepLinkKit/Regex/DPLRegularExpression.m diff --git a/DeepLinkSDK/RouteHandler/DPLRouteHandler.h b/DeepLinkKit/RouteHandler/DPLRouteHandler.h similarity index 100% rename from DeepLinkSDK/RouteHandler/DPLRouteHandler.h rename to DeepLinkKit/RouteHandler/DPLRouteHandler.h diff --git a/DeepLinkSDK/RouteHandler/DPLRouteHandler.m b/DeepLinkKit/RouteHandler/DPLRouteHandler.m similarity index 100% rename from DeepLinkSDK/RouteHandler/DPLRouteHandler.m rename to DeepLinkKit/RouteHandler/DPLRouteHandler.m diff --git a/DeepLinkSDK/RouteMatcher/DPLRouteMatcher.h b/DeepLinkKit/RouteMatcher/DPLRouteMatcher.h similarity index 100% rename from DeepLinkSDK/RouteMatcher/DPLRouteMatcher.h rename to DeepLinkKit/RouteMatcher/DPLRouteMatcher.h diff --git a/DeepLinkSDK/RouteMatcher/DPLRouteMatcher.m b/DeepLinkKit/RouteMatcher/DPLRouteMatcher.m similarity index 100% rename from DeepLinkSDK/RouteMatcher/DPLRouteMatcher.m rename to DeepLinkKit/RouteMatcher/DPLRouteMatcher.m diff --git a/DeepLinkSDK/Router/DPLDeepLinkRouter.h b/DeepLinkKit/Router/DPLDeepLinkRouter.h similarity index 100% rename from DeepLinkSDK/Router/DPLDeepLinkRouter.h rename to DeepLinkKit/Router/DPLDeepLinkRouter.h diff --git a/DeepLinkSDK/Router/DPLDeepLinkRouter.m b/DeepLinkKit/Router/DPLDeepLinkRouter.m similarity index 100% rename from DeepLinkSDK/Router/DPLDeepLinkRouter.m rename to DeepLinkKit/Router/DPLDeepLinkRouter.m diff --git a/DeepLinkSDK.podspec b/DeepLinkSDK.podspec deleted file mode 100644 index ddb83e8..0000000 --- a/DeepLinkSDK.podspec +++ /dev/null @@ -1,21 +0,0 @@ -Pod::Spec.new do |s| - s.name = "DeepLinkSDK" - s.version = "0.2.7" - s.summary = "A splendid route-matching, block-based way to handle your deep links." - s.description = <<-DESC - The Button DeepLink SDK is a splendid route-handling block-based way to handle deep links. Rather than decide how to format your URLs, parse them, pass data, and navigate to specific content or perform actions, this SDK and a few lines of code will get you on your way. - DESC - s.homepage = "http://www.usebutton.com/sdk/deep-links" - s.license = 'MIT' - s.author = 'Button, Inc.' - s.source = { :git => "https://github.com/usebutton/ios-deeplink-sdk.git", :tag => s.version.to_s } - s.social_media_url = 'https://twitter.com/buttondev' - - s.platform = :ios, '7.0' - s.requires_arc = true - - s.source_files = 'DeepLinkSDK/**/*.{h,m}' - - s.deprecated = true - s.deprecated_in_favor_of = 'DeepLinkKit' -end diff --git a/Podfile b/Podfile index 4d3ec9d..68999e3 100644 --- a/Podfile +++ b/Podfile @@ -1,13 +1,13 @@ -xcodeproj 'DeepLinkSDK.xcodeproj', 'Test' => :debug +xcodeproj 'DeepLinkKit.xcodeproj', 'Test' => :debug plugin 'slather' target 'SenderDemo', :exclusive => true do - pod 'DeepLinkSDK', :path => '.' + pod 'DeepLinkKit', :path => '.' end target 'ReceiverDemo', :exclusive => true do - pod 'DeepLinkSDK', :path => '.' + pod 'DeepLinkKit', :path => '.' end target 'Tests', :exclusive => true do diff --git a/Podfile.lock b/Podfile.lock index e0274dd..d0e10b6 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -1,5 +1,5 @@ PODS: - - DeepLinkSDK (0.2.7) + - DeepLinkKit (1.0.0) - Expecta (1.0.0) - KIF (3.2.2): - KIF/XCTest (= 3.2.2) @@ -8,18 +8,18 @@ PODS: - Specta (1.0.0) DEPENDENCIES: - - DeepLinkSDK (from `.`) + - DeepLinkKit (from `.`) - Expecta - KIF - OCMock - Specta EXTERNAL SOURCES: - DeepLinkSDK: + DeepLinkKit: :path: . SPEC CHECKSUMS: - DeepLinkSDK: 190c5413efa8ed365b9a6fc44984383f91e878fa + DeepLinkKit: 5d7deb38ad7bc7daf8670eb8878cd8b806ef9689 Expecta: 32604574add2c46a36f8d2f716b6c5736eb75024 KIF: b0bd762b0c7890b04920cf618021d6d4fd5127bd OCMock: a10ea9f0a6e921651f96f78b6faee95ebc813b92 diff --git a/README.md b/README.md index 212a1ec..e3b4f45 100644 --- a/README.md +++ b/README.md @@ -1,43 +1,43 @@

-

DeepLink SDK

+

DeepLink Kit

-CI Status -Coverage Status -Version -License -Platform +CI Status +Coverage Status +Version +License +Platform

## Overview -The Button DeepLink SDK is a splendid route-matching, block-based way to handle your deep links. Rather than decide how to format your URLs, parse them, pass data, and navigate to specific content or perform actions, this library and a few lines of code will get you on your way. +DeepLink Kit is a splendid route-matching, block-based way to handle your deep links. Rather than decide how to format your URLs, parse them, pass data, and navigate to specific content or perform actions, this library and a few lines of code will get you on your way. [Full Documentation](http://www.usebutton.com/sdk/deep-links/integration-guide) ## Check it out -Try the `DeepLinkSDK` sample project by running the following command: +Try the `DeepLinkKit` sample project by running the following command: ```ruby -pod try "DeepLinkSDK" +pod try "DeepLinkKit" ``` ## Installation -DeepLinkSDK is available through [CocoaPods](http://cocoapods.org). To install +DeepLinkKit is available through [CocoaPods](http://cocoapods.org). To install the library, simply add the following line to your Podfile: ```ruby -pod "DeepLinkSDK" +pod "DeepLinkKit" ``` ## Usage Add deep link support to your app in 5 minutes or less following these simple steps. -Note: As of `0.2.0`, in all registered routes, paths are considered to begin at the first forward slash. A route component before the first forward slash will be considered the host. +Note: As of `1.0.0`, all imports should be updated to import ``. @@ -46,7 +46,13 @@ Add deep link support to your app in 5 minutes or less following these simple st
-**2. Create an instance of `DPLDeepLinkRouter` in your app delegate** + +**2. Import DeepLinkKit +```objc +#import +``` +
+**3. Create an instance of `DPLDeepLinkRouter` in your app delegate** ````objc - (BOOL)application:(UIApplication *)application @@ -58,7 +64,7 @@ Add deep link support to your app in 5 minutes or less following these simple st } ````
-**3. Register a route handler** +**4. Register a route handler** ````objc self.router[@"/log/:message"] = ^(DPLDeepLink *link) { @@ -66,7 +72,7 @@ self.router[@"/log/:message"] = ^(DPLDeepLink *link) { }; ````
-**4. Pass incoming URLs to the router** +**5. Pass incoming URLs to the router** ```objc - (BOOL)application:(UIApplication *)application @@ -79,7 +85,7 @@ self.router[@"/log/:message"] = ^(DPLDeepLink *link) { return YES; } ``` -Learn more about the DeepLinkSDK by reading our [Integration Guide](http://www.usebutton.com/sdk/deep-links/integration-guide). +Learn more about the DeepLinkKit by reading our [Integration Guide](http://www.usebutton.com/sdk/deep-links/integration-guide). ## Route Registration Examples @@ -135,7 +141,7 @@ router[@"/timeline"] = ^(DPLDeepLink *link) { ## Running the Demo -To run the example project, run `pod try DeepLinkSDK` in your terminal. You can also clone the repo, and run `pod install` from the project root. If you don't have CocoaPods, begin by [follow this guide](http://guides.cocoapods.org/using/getting-started.html). +To run the example project, run `pod try DeepLinkKit` in your terminal. You can also clone the repo, and run `pod install` from the project root. If you don't have CocoaPods, begin by [follow this guide](http://guides.cocoapods.org/using/getting-started.html). There are two demo apps, `SenderDemo`, and `ReceiverDemo`. `ReceiverDemo` has some registered routes that will handle specific deep links. `SenderDemo` has a couple actions that will deep link out to `ReceiverDemo` for fulfillment. @@ -190,7 +196,7 @@ router[@"categories"] = ^(DPLDeepLink *link) { ## License -DeepLinkSDK is available under the MIT license. See the LICENSE file for more info. +DeepLinkKit is available under the MIT license. See the LICENSE file for more info. ## Contributing diff --git a/Rakefile b/Rakefile index e428350..7607201 100644 --- a/Rakefile +++ b/Rakefile @@ -1,11 +1,11 @@ desc "Runs the specs" task :spec do - sh "xcodebuild test -workspace 'DeepLinkSDK.xcworkspace' -scheme 'ReceiverDemo' -destination 'platform=iOS Simulator,name=iPhone 6,OS=8.1' | xcpretty -c" + sh "xcodebuild test -workspace 'DeepLinkKit.xcworkspace' -scheme 'ReceiverDemo' -destination 'platform=iOS Simulator,name=iPhone 6,OS=8.1' | xcpretty -c" end desc "Synchronizes Xcode project folder with Xcode groups" task :sync do - sh "synx -e '/Pod Metadata' -e '/Pods' DeepLinkSDK.xcodeproj" + sh "synx -e '/Pod Metadata' -e '/Pods' DeepLinkKit.xcodeproj" end desc "Runs pod install with --no-repo-update flag" diff --git a/SampleApps/ReceiverDemo/DPLReceiverAppDelegate.m b/SampleApps/ReceiverDemo/DPLReceiverAppDelegate.m index b1745c1..168b1c4 100644 --- a/SampleApps/ReceiverDemo/DPLReceiverAppDelegate.m +++ b/SampleApps/ReceiverDemo/DPLReceiverAppDelegate.m @@ -1,7 +1,7 @@ #import "DPLReceiverAppDelegate.h" #import "DPLProductRouteHandler.h" -#import +#import @interface DPLReceiverAppDelegate () diff --git a/SampleApps/ReceiverDemo/ProductDetail/DPLProductDetailViewController.h b/SampleApps/ReceiverDemo/ProductDetail/DPLProductDetailViewController.h index 55aac0f..52c3a26 100644 --- a/SampleApps/ReceiverDemo/ProductDetail/DPLProductDetailViewController.h +++ b/SampleApps/ReceiverDemo/ProductDetail/DPLProductDetailViewController.h @@ -1,5 +1,5 @@ #import -#import +#import @class DPLProduct; diff --git a/SampleApps/ReceiverDemo/ProductDetail/DPLProductDetailViewController.m b/SampleApps/ReceiverDemo/ProductDetail/DPLProductDetailViewController.m index 7d2757c..ef4b5ac 100644 --- a/SampleApps/ReceiverDemo/ProductDetail/DPLProductDetailViewController.m +++ b/SampleApps/ReceiverDemo/ProductDetail/DPLProductDetailViewController.m @@ -2,7 +2,7 @@ #import "DPLProductDataSource.h" #import "DPLProduct.h" -#import +#import @interface DPLProductDetailViewController ()