diff --git a/DecouplingKit.podspec b/DecouplingKit.podspec index c53fda1..5a7124f 100644 --- a/DecouplingKit.podspec +++ b/DecouplingKit.podspec @@ -5,6 +5,7 @@ Pod::Spec.new do |s| s.version = "0.0.1" s.summary = "DecouplingKit" s.description = "DecouplingKit" + s.license = "MIT" diff --git a/DecouplingKit/DKServiceManager.m b/DecouplingKit/DKServiceManager.m index 03bf5ff..671d744 100644 --- a/DecouplingKit/DKServiceManager.m +++ b/DecouplingKit/DKServiceManager.m @@ -50,7 +50,6 @@ - (void)registerLocalServicesWithServiceConfigName:(NSString *)serviceConfigName - (Class)createClass:(Protocol *)service { - id implInstance = nil; if (![self checkValidService:service]) { NSLog(@"%@", [NSString stringWithFormat:@"%@ protocol does not been registed", NSStringFromProtocol(service)] ); @@ -71,7 +70,7 @@ - (id)createInstance:(Protocol *)service Class implClass = [self serviceImplClass:service]; - if ([[implClass class] respondsToSelector:@selector(shareInstance)]) + if ([[implClass class] respondsToSelector:@selector(sharedInstance)]) implInstance = [[implClass class] sharedInstance]; else implInstance = [[implClass alloc] init]; diff --git a/Example/Bussiness1/Podfile.lock b/Example/Bussiness1/Podfile.lock index ddb42b2..47da631 100644 --- a/Example/Bussiness1/Podfile.lock +++ b/Example/Bussiness1/Podfile.lock @@ -14,7 +14,7 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: BussinessPublicService: 671cb1e5f60c09eefdf5f28eaee170220068a654 - DecouplingKit: 4867954e90e0a1c4cd1451db07c8b562ac013236 + DecouplingKit: b161139761b02057b107f0b4fc8871c11611f947 PODFILE CHECKSUM: bf9066636b339656f63262344b3e56cd02d59837 diff --git a/Example/DecouplingKitExample/Podfile.lock b/Example/DecouplingKitExample/Podfile.lock index 3b5c2b3..ef6e344 100644 --- a/Example/DecouplingKitExample/Podfile.lock +++ b/Example/DecouplingKitExample/Podfile.lock @@ -8,7 +8,7 @@ DEPENDENCIES: - Bussiness1 (from `../Bussiness1`) - Bussiness2 (from `../Bussiness2`) - BussinessPublicService (from `../BussinessPublicService`) - - DecouplingKit (from `../../DecouplingKit`) + - DecouplingKit (from `../../`) EXTERNAL SOURCES: Bussiness1: @@ -18,14 +18,14 @@ EXTERNAL SOURCES: BussinessPublicService: :path: "../BussinessPublicService" DecouplingKit: - :path: "../../DecouplingKit" + :path: "../../" SPEC CHECKSUMS: Bussiness1: 4d47ae41c800e1e13bbb1354614ec89f09e2aeaa Bussiness2: fe8f5a1fd93aa68faf471cec830d23e718e85618 BussinessPublicService: 671cb1e5f60c09eefdf5f28eaee170220068a654 - DecouplingKit: 4867954e90e0a1c4cd1451db07c8b562ac013236 + DecouplingKit: b161139761b02057b107f0b4fc8871c11611f947 -PODFILE CHECKSUM: b436c05e49297d7d681209771e26b4aea7d0cd7d +PODFILE CHECKSUM: bf5b0afb9975cc549ba9ca3ec3b582e925c0374c COCOAPODS: 1.0.1