11 | #import "DPImplementationKey.h"
12 | #import "DPImplementationValue.h"
13 |
14 | @interface DPRegistry ()
15 |
16 | @property (nonatomic,strong) NSMutableDictionary *mRegistrations;
17 |
18 | @end
19 |
20 | @implementation DPRegistry
21 |
22 | #pragma mark - constructor
23 | -(instancetype)init {
24 | if (self = [super init]) {
25 | self.mRegistrations = [[NSMutableDictionary alloc] init];
26 | } return self;
27 | }
28 |
29 | #pragma mark - singleton
30 | +(DPRegistry *)sharedRegistry {
31 | static DPRegistry *reg;
32 | static dispatch_once_t onceToken;
33 | dispatch_once(&onceToken, ^{
34 | reg = [[self alloc] init];
35 | });
36 | return reg;
37 | }
38 |
39 | #pragma mark - getters
40 | -(NSDictionary *)registrations {
41 | return [self.mRegistrations copy];
42 | }
43 |
44 | #pragma mark - retrieve
45 | -(id)implementationForProtocol:(NSString *)protocolName andContext:(NSString *)context {
46 | DPImplementationKey * key = [[DPImplementationKey alloc] initWithProtocolName:protocolName andContext:context];
47 | id imp = [self.mRegistrations objectForKey:key];
48 | if ([imp class] == imp) {
49 | return [[(Class)imp alloc] init];
50 | } else {
51 | return imp;
52 | }
53 | }
54 | -(BOOL)isSingleton:(NSString *)protocolName andContext:(NSString *)context {
55 | DPImplementationKey * key = [[DPImplementationKey alloc] initWithProtocolName:protocolName andContext:context];
56 | id imp = [self.mRegistrations objectForKey:key];
57 | if ([imp class] == imp) {
58 | return NO;
59 | } else {
60 | return YES;
61 | }
62 | }
63 |
64 | #pragma mark - add
65 | -(void)registerImplementation:(id)imp forProtocol:(Protocol *)protocol context:(NSString *)context {
66 | NSAssert(imp != nil, @"Implementation cannot be nil, it needs to be a class (will be instantiated with default constructor or a instance");
67 | NSAssert(protocol != nil, @"Protocol cannot be nil when adding an implementation to the registry");
68 | DPImplementationKey *desc = [[DPImplementationKey alloc] initWithProtocolName:NSStringFromProtocol(protocol) andContext:context];
69 | [self.mRegistrations setObject:imp forKey:desc];
70 | }
71 | -(void)unregisterImplementationForProtocol:(Protocol *)protocol context:(NSString *)context {
72 | NSAssert(protocol != nil, @"Protocol cannot be nil when adding an implementation to the registry");
73 | DPImplementationKey *desc = [[DPImplementationKey alloc] initWithProtocolName:NSStringFromProtocol(protocol) andContext:context];
74 | [self.mRegistrations removeObjectForKey:desc];
75 | }
76 |
77 | @end
78 |
--------------------------------------------------------------------------------
/DependProject/DependProject/Base.lproj/LaunchScreen.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Depend
2 |
3 | Depend is a simple dependency injection framework to do the simplest and minimally invasive property injection. It just works with Protocol bindings since it is the right thing to do! And it’s pretty simple:
4 |
5 |
6 | ## The Installation
7 |
8 | You can install using CocoaPods:
9 | pod ‘Depend'
10 |
11 | Or, you can drop the files inside Pod/Classes into your project.
12 |
13 | ## The Registration
14 |
15 | Just provide the DPRegistry the implementation for the protocol:
16 | [[DPRegistry sharedRegistry] registerImplementation:[DPDatasource class] forProtocol:@protocol(DPDatasourceProtocol) context:nil];
17 | The implementation works this way:
18 | **If you provide a class**: The injection class will instantiate for you with the default constructor **If you provide an instance**: The instance will be injected!
19 |
20 |
21 | ## The Injection
22 |
23 | On the app delegate, you need to call the DPInjector inject method:
24 | -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
25 | [DPInjector inject];
26 | return YES;
27 | }
28 |
29 |
30 | To inject on a class you just need to write your property declaration with the 'injected' prefix to the setter and the readonly qualifier. It’s important to declare it on the private interface of your class.
31 | @property (setter=injected1:) id<DPDatasourceProtocol> datasource;
32 | @property (setter=injected2:) id<REDUser> user;
33 | Done! When you access **self.datasource **, it is going to be already populated.
34 |
35 |
36 | ## Contexts
37 |
38 | For you who wondered what is the context parameter on the DPRegistry registerImplementation:forProtocol:context: method. Defining a context on the injection and in the registration can be used to provide different implementations.
39 | Just change the injection declaration to:
40 | @property (setter=injected_post:) id<DPDatasourceProtocol> postDatasource;
41 | @property (setter=injected_stupid:) id<DPDatasourceProtocol> anotherStupidDatasource;
42 | And the registration to:
43 | [[DPRegistry sharedRegistry] registerImplementation:[DPPostDatasource class] forProtocol:@protocol(DPDatasourceProtocol) context:@“post”];
44 | [[DPRegistry sharedRegistry] registerImplementation:[DPStupidDatasource class] forProtocol:@protocol(DPDatasourceProtocol) context:@“stupid”];
45 | Any word that comes after the _ (underline) is the context name.
46 |
47 | ### Wanna see a example on a real project?
48 |
49 | Check out this small project !
50 | https://github.com/rafagonc/Reading-List/
51 |
52 | And the registrations!
53 | https://github.com/rafagonc/Reading-List/blob/master/ReadingList/REDDepedencyInjection.m
54 |
55 | ## License
56 |
57 | The MIT License (MIT)
58 | Copyright (c) 2015 Rafael Gonçalves
59 | Permission is hereby granted, free of charge, to any person obtaining a copy
60 | of this software and associated documentation files (the "Software"), to deal
61 | in the Software without restriction, including without limitation the rights
62 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
63 | copies of the Software, and to permit persons to whom the Software is
64 | furnished to do so, subject to the following conditions:
65 | The above copyright notice and this permission notice shall be included in all
66 | copies or substantial portions of the Software.
67 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
68 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
69 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
70 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
71 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
72 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
73 | SOFTWARE.
74 |
--------------------------------------------------------------------------------
/Depend.xcodeproj/xcuserdata/rafagonc.xcuserdatad/xcschemes/Depend.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
38 |
39 |
44 |
45 |
47 |
53 |
54 |
55 |
56 |
57 |
63 |
64 |
65 |
66 |
75 |
76 |
82 |
83 |
84 |
85 |
86 |
87 |
93 |
94 |
100 |
101 |
102 |
103 |
105 |
106 |
109 |
110 |
111 |
--------------------------------------------------------------------------------
/DependProject/DependProject/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
--------------------------------------------------------------------------------
/Depend.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 2A10B37D1BAA6FC10088592B /* DependTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A10B37C1BAA6FC10088592B /* DependTests.m */; };
11 | 2A10B3801BAA72920088592B /* EXInjectedClass.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A10B37F1BAA72920088592B /* EXInjectedClass.m */; };
12 | 2A28576F1BAA4B6400AEE15C /* libDepend.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2A2857631BAA4B6400AEE15C /* libDepend.a */; };
13 | 2A28578F1BAB519100AEE15C /* EXProtocolImplementation.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A28578E1BAB519100AEE15C /* EXProtocolImplementation.m */; };
14 | 2A2857921BAB519E00AEE15C /* EXAnotherProtocolImplementation.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A2857911BAB519E00AEE15C /* EXAnotherProtocolImplementation.m */; };
15 | 2A2E64941BABC7D6001752FE /* DPCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A2E64891BABC7D6001752FE /* DPCache.m */; };
16 | 2A2E64951BABC7D6001752FE /* DPImplementationKey.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A2E648B1BABC7D6001752FE /* DPImplementationKey.m */; };
17 | 2A2E64961BABC7D6001752FE /* DPInjectionDescriptor.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A2E648D1BABC7D6001752FE /* DPInjectionDescriptor.m */; };
18 | 2A2E64971BABC7D6001752FE /* DPInjectionPropertyDescriptor.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A2E648F1BABC7D6001752FE /* DPInjectionPropertyDescriptor.m */; };
19 | 2A2E64981BABC7D6001752FE /* DPInjector.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A2E64911BABC7D6001752FE /* DPInjector.m */; };
20 | 2A2E64991BABC7D6001752FE /* DPRegistry.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A2E64931BABC7D6001752FE /* DPRegistry.m */; };
21 | 2A92CA341BDFE33C004044D7 /* EXInjectedSubclass.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A92CA331BDFE33C004044D7 /* EXInjectedSubclass.m */; };
22 | /* End PBXBuildFile section */
23 |
24 | /* Begin PBXContainerItemProxy section */
25 | 2A2857701BAA4B6400AEE15C /* PBXContainerItemProxy */ = {
26 | isa = PBXContainerItemProxy;
27 | containerPortal = 2A28575B1BAA4B6400AEE15C /* Project object */;
28 | proxyType = 1;
29 | remoteGlobalIDString = 2A2857621BAA4B6400AEE15C;
30 | remoteInfo = Depend;
31 | };
32 | /* End PBXContainerItemProxy section */
33 |
34 | /* Begin PBXCopyFilesBuildPhase section */
35 | 2A2857611BAA4B6400AEE15C /* CopyFiles */ = {
36 | isa = PBXCopyFilesBuildPhase;
37 | buildActionMask = 2147483647;
38 | dstPath = "include/$(PRODUCT_NAME)";
39 | dstSubfolderSpec = 16;
40 | files = (
41 | );
42 | runOnlyForDeploymentPostprocessing = 0;
43 | };
44 | /* End PBXCopyFilesBuildPhase section */
45 |
46 | /* Begin PBXFileReference section */
47 | 2A10B37C1BAA6FC10088592B /* DependTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DependTests.m; sourceTree = ""; };
48 | 2A10B37E1BAA72920088592B /* EXInjectedClass.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EXInjectedClass.h; sourceTree = ""; };
49 | 2A10B37F1BAA72920088592B /* EXInjectedClass.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EXInjectedClass.m; sourceTree = ""; };
50 | 2A10B3811BAA729F0088592B /* EXProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EXProtocol.h; sourceTree = ""; };
51 | 2A2857631BAA4B6400AEE15C /* libDepend.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libDepend.a; sourceTree = BUILT_PRODUCTS_DIR; };
52 | 2A28576E1BAA4B6400AEE15C /* DependTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DependTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
53 | 2A2857741BAA4B6400AEE15C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
54 | 2A28578D1BAB519100AEE15C /* EXProtocolImplementation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EXProtocolImplementation.h; sourceTree = ""; };
55 | 2A28578E1BAB519100AEE15C /* EXProtocolImplementation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EXProtocolImplementation.m; sourceTree = ""; };
56 | 2A2857901BAB519E00AEE15C /* EXAnotherProtocolImplementation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EXAnotherProtocolImplementation.h; sourceTree = ""; };
57 | 2A2857911BAB519E00AEE15C /* EXAnotherProtocolImplementation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EXAnotherProtocolImplementation.m; sourceTree = ""; };
58 | 2A2E64881BABC7D6001752FE /* DPCache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DPCache.h; path = Pod/Classes/DPCache.h; sourceTree = SOURCE_ROOT; };
59 | 2A2E64891BABC7D6001752FE /* DPCache.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DPCache.m; path = Pod/Classes/DPCache.m; sourceTree = SOURCE_ROOT; };
60 | 2A2E648A1BABC7D6001752FE /* DPImplementationKey.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DPImplementationKey.h; path = Pod/Classes/DPImplementationKey.h; sourceTree = SOURCE_ROOT; };
61 | 2A2E648B1BABC7D6001752FE /* DPImplementationKey.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DPImplementationKey.m; path = Pod/Classes/DPImplementationKey.m; sourceTree = SOURCE_ROOT; };
62 | 2A2E648C1BABC7D6001752FE /* DPInjectionDescriptor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DPInjectionDescriptor.h; path = Pod/Classes/DPInjectionDescriptor.h; sourceTree = SOURCE_ROOT; };
63 | 2A2E648D1BABC7D6001752FE /* DPInjectionDescriptor.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DPInjectionDescriptor.m; path = Pod/Classes/DPInjectionDescriptor.m; sourceTree = SOURCE_ROOT; };
64 | 2A2E648E1BABC7D6001752FE /* DPInjectionPropertyDescriptor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DPInjectionPropertyDescriptor.h; path = Pod/Classes/DPInjectionPropertyDescriptor.h; sourceTree = SOURCE_ROOT; };
65 | 2A2E648F1BABC7D6001752FE /* DPInjectionPropertyDescriptor.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DPInjectionPropertyDescriptor.m; path = Pod/Classes/DPInjectionPropertyDescriptor.m; sourceTree = SOURCE_ROOT; };
66 | 2A2E64901BABC7D6001752FE /* DPInjector.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DPInjector.h; path = Pod/Classes/DPInjector.h; sourceTree = SOURCE_ROOT; };
67 | 2A2E64911BABC7D6001752FE /* DPInjector.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DPInjector.m; path = Pod/Classes/DPInjector.m; sourceTree = SOURCE_ROOT; };
68 | 2A2E64921BABC7D6001752FE /* DPRegistry.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DPRegistry.h; path = Pod/Classes/DPRegistry.h; sourceTree = SOURCE_ROOT; };
69 | 2A2E64931BABC7D6001752FE /* DPRegistry.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DPRegistry.m; path = Pod/Classes/DPRegistry.m; sourceTree = SOURCE_ROOT; };
70 | 2A92CA321BDFE33C004044D7 /* EXInjectedSubclass.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EXInjectedSubclass.h; sourceTree = ""; };
71 | 2A92CA331BDFE33C004044D7 /* EXInjectedSubclass.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EXInjectedSubclass.m; sourceTree = ""; };
72 | 4458D1A41D3808A40053C14A /* DPImplementationValue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DPImplementationValue.h; path = Pod/Classes/DPImplementationValue.h; sourceTree = SOURCE_ROOT; };
73 | /* End PBXFileReference section */
74 |
75 | /* Begin PBXFrameworksBuildPhase section */
76 | 2A2857601BAA4B6400AEE15C /* Frameworks */ = {
77 | isa = PBXFrameworksBuildPhase;
78 | buildActionMask = 2147483647;
79 | files = (
80 | );
81 | runOnlyForDeploymentPostprocessing = 0;
82 | };
83 | 2A28576B1BAA4B6400AEE15C /* Frameworks */ = {
84 | isa = PBXFrameworksBuildPhase;
85 | buildActionMask = 2147483647;
86 | files = (
87 | 2A28576F1BAA4B6400AEE15C /* libDepend.a in Frameworks */,
88 | );
89 | runOnlyForDeploymentPostprocessing = 0;
90 | };
91 | /* End PBXFrameworksBuildPhase section */
92 |
93 | /* Begin PBXGroup section */
94 | 2A28575A1BAA4B6400AEE15C = {
95 | isa = PBXGroup;
96 | children = (
97 | 2A2857651BAA4B6400AEE15C /* Depend */,
98 | 2A2857721BAA4B6400AEE15C /* DependTests */,
99 | 2A2857641BAA4B6400AEE15C /* Products */,
100 | );
101 | sourceTree = "";
102 | };
103 | 2A2857641BAA4B6400AEE15C /* Products */ = {
104 | isa = PBXGroup;
105 | children = (
106 | 2A2857631BAA4B6400AEE15C /* libDepend.a */,
107 | 2A28576E1BAA4B6400AEE15C /* DependTests.xctest */,
108 | );
109 | name = Products;
110 | sourceTree = "";
111 | };
112 | 2A2857651BAA4B6400AEE15C /* Depend */ = {
113 | isa = PBXGroup;
114 | children = (
115 | 2A2E64881BABC7D6001752FE /* DPCache.h */,
116 | 2A2E64891BABC7D6001752FE /* DPCache.m */,
117 | 2A2E648A1BABC7D6001752FE /* DPImplementationKey.h */,
118 | 2A2E648B1BABC7D6001752FE /* DPImplementationKey.m */,
119 | 2A2E648C1BABC7D6001752FE /* DPInjectionDescriptor.h */,
120 | 2A2E648D1BABC7D6001752FE /* DPInjectionDescriptor.m */,
121 | 2A2E648E1BABC7D6001752FE /* DPInjectionPropertyDescriptor.h */,
122 | 2A2E648F1BABC7D6001752FE /* DPInjectionPropertyDescriptor.m */,
123 | 2A2E64901BABC7D6001752FE /* DPInjector.h */,
124 | 2A2E64911BABC7D6001752FE /* DPInjector.m */,
125 | 2A2E64921BABC7D6001752FE /* DPRegistry.h */,
126 | 2A2E64931BABC7D6001752FE /* DPRegistry.m */,
127 | 4458D1A41D3808A40053C14A /* DPImplementationValue.h */,
128 | );
129 | path = Depend;
130 | sourceTree = "";
131 | };
132 | 2A2857721BAA4B6400AEE15C /* DependTests */ = {
133 | isa = PBXGroup;
134 | children = (
135 | 2A10B37C1BAA6FC10088592B /* DependTests.m */,
136 | 2A2857731BAA4B6400AEE15C /* Supporting Files */,
137 | );
138 | path = DependTests;
139 | sourceTree = "";
140 | };
141 | 2A2857731BAA4B6400AEE15C /* Supporting Files */ = {
142 | isa = PBXGroup;
143 | children = (
144 | 2A2857741BAA4B6400AEE15C /* Info.plist */,
145 | 2A10B3811BAA729F0088592B /* EXProtocol.h */,
146 | 2A10B37E1BAA72920088592B /* EXInjectedClass.h */,
147 | 2A10B37F1BAA72920088592B /* EXInjectedClass.m */,
148 | 2A28578D1BAB519100AEE15C /* EXProtocolImplementation.h */,
149 | 2A28578E1BAB519100AEE15C /* EXProtocolImplementation.m */,
150 | 2A2857901BAB519E00AEE15C /* EXAnotherProtocolImplementation.h */,
151 | 2A2857911BAB519E00AEE15C /* EXAnotherProtocolImplementation.m */,
152 | 2A92CA321BDFE33C004044D7 /* EXInjectedSubclass.h */,
153 | 2A92CA331BDFE33C004044D7 /* EXInjectedSubclass.m */,
154 | );
155 | name = "Supporting Files";
156 | sourceTree = "";
157 | };
158 | /* End PBXGroup section */
159 |
160 | /* Begin PBXNativeTarget section */
161 | 2A2857621BAA4B6400AEE15C /* Depend */ = {
162 | isa = PBXNativeTarget;
163 | buildConfigurationList = 2A2857771BAA4B6400AEE15C /* Build configuration list for PBXNativeTarget "Depend" */;
164 | buildPhases = (
165 | 2A28575F1BAA4B6400AEE15C /* Sources */,
166 | 2A2857601BAA4B6400AEE15C /* Frameworks */,
167 | 2A2857611BAA4B6400AEE15C /* CopyFiles */,
168 | );
169 | buildRules = (
170 | );
171 | dependencies = (
172 | );
173 | name = Depend;
174 | productName = Depend;
175 | productReference = 2A2857631BAA4B6400AEE15C /* libDepend.a */;
176 | productType = "com.apple.product-type.library.static";
177 | };
178 | 2A28576D1BAA4B6400AEE15C /* DependTests */ = {
179 | isa = PBXNativeTarget;
180 | buildConfigurationList = 2A28577A1BAA4B6400AEE15C /* Build configuration list for PBXNativeTarget "DependTests" */;
181 | buildPhases = (
182 | 2A28576A1BAA4B6400AEE15C /* Sources */,
183 | 2A28576B1BAA4B6400AEE15C /* Frameworks */,
184 | 2A28576C1BAA4B6400AEE15C /* Resources */,
185 | );
186 | buildRules = (
187 | );
188 | dependencies = (
189 | 2A2857711BAA4B6400AEE15C /* PBXTargetDependency */,
190 | );
191 | name = DependTests;
192 | productName = DependTests;
193 | productReference = 2A28576E1BAA4B6400AEE15C /* DependTests.xctest */;
194 | productType = "com.apple.product-type.bundle.unit-test";
195 | };
196 | /* End PBXNativeTarget section */
197 |
198 | /* Begin PBXProject section */
199 | 2A28575B1BAA4B6400AEE15C /* Project object */ = {
200 | isa = PBXProject;
201 | attributes = {
202 | LastUpgradeCheck = 0640;
203 | ORGANIZATIONNAME = "Rafael Gonçalves";
204 | TargetAttributes = {
205 | 2A2857621BAA4B6400AEE15C = {
206 | CreatedOnToolsVersion = 6.4;
207 | };
208 | 2A28576D1BAA4B6400AEE15C = {
209 | CreatedOnToolsVersion = 6.4;
210 | };
211 | };
212 | };
213 | buildConfigurationList = 2A28575E1BAA4B6400AEE15C /* Build configuration list for PBXProject "Depend" */;
214 | compatibilityVersion = "Xcode 3.2";
215 | developmentRegion = English;
216 | hasScannedForEncodings = 0;
217 | knownRegions = (
218 | en,
219 | );
220 | mainGroup = 2A28575A1BAA4B6400AEE15C;
221 | productRefGroup = 2A2857641BAA4B6400AEE15C /* Products */;
222 | projectDirPath = "";
223 | projectRoot = "";
224 | targets = (
225 | 2A2857621BAA4B6400AEE15C /* Depend */,
226 | 2A28576D1BAA4B6400AEE15C /* DependTests */,
227 | );
228 | };
229 | /* End PBXProject section */
230 |
231 | /* Begin PBXResourcesBuildPhase section */
232 | 2A28576C1BAA4B6400AEE15C /* Resources */ = {
233 | isa = PBXResourcesBuildPhase;
234 | buildActionMask = 2147483647;
235 | files = (
236 | );
237 | runOnlyForDeploymentPostprocessing = 0;
238 | };
239 | /* End PBXResourcesBuildPhase section */
240 |
241 | /* Begin PBXSourcesBuildPhase section */
242 | 2A28575F1BAA4B6400AEE15C /* Sources */ = {
243 | isa = PBXSourcesBuildPhase;
244 | buildActionMask = 2147483647;
245 | files = (
246 | 2A2E64981BABC7D6001752FE /* DPInjector.m in Sources */,
247 | 2A2E64961BABC7D6001752FE /* DPInjectionDescriptor.m in Sources */,
248 | 2A2E64991BABC7D6001752FE /* DPRegistry.m in Sources */,
249 | 2A2E64951BABC7D6001752FE /* DPImplementationKey.m in Sources */,
250 | 2A2E64971BABC7D6001752FE /* DPInjectionPropertyDescriptor.m in Sources */,
251 | 2A2E64941BABC7D6001752FE /* DPCache.m in Sources */,
252 | );
253 | runOnlyForDeploymentPostprocessing = 0;
254 | };
255 | 2A28576A1BAA4B6400AEE15C /* Sources */ = {
256 | isa = PBXSourcesBuildPhase;
257 | buildActionMask = 2147483647;
258 | files = (
259 | 2A92CA341BDFE33C004044D7 /* EXInjectedSubclass.m in Sources */,
260 | 2A10B37D1BAA6FC10088592B /* DependTests.m in Sources */,
261 | 2A10B3801BAA72920088592B /* EXInjectedClass.m in Sources */,
262 | 2A2857921BAB519E00AEE15C /* EXAnotherProtocolImplementation.m in Sources */,
263 | 2A28578F1BAB519100AEE15C /* EXProtocolImplementation.m in Sources */,
264 | );
265 | runOnlyForDeploymentPostprocessing = 0;
266 | };
267 | /* End PBXSourcesBuildPhase section */
268 |
269 | /* Begin PBXTargetDependency section */
270 | 2A2857711BAA4B6400AEE15C /* PBXTargetDependency */ = {
271 | isa = PBXTargetDependency;
272 | target = 2A2857621BAA4B6400AEE15C /* Depend */;
273 | targetProxy = 2A2857701BAA4B6400AEE15C /* PBXContainerItemProxy */;
274 | };
275 | /* End PBXTargetDependency section */
276 |
277 | /* Begin XCBuildConfiguration section */
278 | 2A2857751BAA4B6400AEE15C /* Debug */ = {
279 | isa = XCBuildConfiguration;
280 | buildSettings = {
281 | ALWAYS_SEARCH_USER_PATHS = NO;
282 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
283 | CLANG_CXX_LIBRARY = "libc++";
284 | CLANG_ENABLE_MODULES = YES;
285 | CLANG_ENABLE_OBJC_ARC = YES;
286 | CLANG_WARN_BOOL_CONVERSION = YES;
287 | CLANG_WARN_CONSTANT_CONVERSION = YES;
288 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
289 | CLANG_WARN_EMPTY_BODY = YES;
290 | CLANG_WARN_ENUM_CONVERSION = YES;
291 | CLANG_WARN_INT_CONVERSION = YES;
292 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
293 | CLANG_WARN_UNREACHABLE_CODE = YES;
294 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
295 | COPY_PHASE_STRIP = NO;
296 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
297 | ENABLE_STRICT_OBJC_MSGSEND = YES;
298 | GCC_C_LANGUAGE_STANDARD = gnu99;
299 | GCC_DYNAMIC_NO_PIC = NO;
300 | GCC_NO_COMMON_BLOCKS = YES;
301 | GCC_OPTIMIZATION_LEVEL = 0;
302 | GCC_PREPROCESSOR_DEFINITIONS = (
303 | "DEBUG=1",
304 | "$(inherited)",
305 | );
306 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
307 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
308 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
309 | GCC_WARN_UNDECLARED_SELECTOR = YES;
310 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
311 | GCC_WARN_UNUSED_FUNCTION = YES;
312 | GCC_WARN_UNUSED_VARIABLE = YES;
313 | IPHONEOS_DEPLOYMENT_TARGET = 8.4;
314 | MTL_ENABLE_DEBUG_INFO = YES;
315 | ONLY_ACTIVE_ARCH = YES;
316 | SDKROOT = iphoneos;
317 | };
318 | name = Debug;
319 | };
320 | 2A2857761BAA4B6400AEE15C /* Release */ = {
321 | isa = XCBuildConfiguration;
322 | buildSettings = {
323 | ALWAYS_SEARCH_USER_PATHS = NO;
324 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
325 | CLANG_CXX_LIBRARY = "libc++";
326 | CLANG_ENABLE_MODULES = YES;
327 | CLANG_ENABLE_OBJC_ARC = YES;
328 | CLANG_WARN_BOOL_CONVERSION = YES;
329 | CLANG_WARN_CONSTANT_CONVERSION = YES;
330 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
331 | CLANG_WARN_EMPTY_BODY = YES;
332 | CLANG_WARN_ENUM_CONVERSION = YES;
333 | CLANG_WARN_INT_CONVERSION = YES;
334 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
335 | CLANG_WARN_UNREACHABLE_CODE = YES;
336 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
337 | COPY_PHASE_STRIP = NO;
338 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
339 | ENABLE_NS_ASSERTIONS = NO;
340 | ENABLE_STRICT_OBJC_MSGSEND = YES;
341 | GCC_C_LANGUAGE_STANDARD = gnu99;
342 | GCC_NO_COMMON_BLOCKS = YES;
343 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
344 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
345 | GCC_WARN_UNDECLARED_SELECTOR = YES;
346 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
347 | GCC_WARN_UNUSED_FUNCTION = YES;
348 | GCC_WARN_UNUSED_VARIABLE = YES;
349 | IPHONEOS_DEPLOYMENT_TARGET = 8.4;
350 | MTL_ENABLE_DEBUG_INFO = NO;
351 | SDKROOT = iphoneos;
352 | VALIDATE_PRODUCT = YES;
353 | };
354 | name = Release;
355 | };
356 | 2A2857781BAA4B6400AEE15C /* Debug */ = {
357 | isa = XCBuildConfiguration;
358 | buildSettings = {
359 | OTHER_LDFLAGS = "-ObjC";
360 | PRODUCT_NAME = "$(TARGET_NAME)";
361 | SKIP_INSTALL = YES;
362 | };
363 | name = Debug;
364 | };
365 | 2A2857791BAA4B6400AEE15C /* Release */ = {
366 | isa = XCBuildConfiguration;
367 | buildSettings = {
368 | OTHER_LDFLAGS = "-ObjC";
369 | PRODUCT_NAME = "$(TARGET_NAME)";
370 | SKIP_INSTALL = YES;
371 | };
372 | name = Release;
373 | };
374 | 2A28577B1BAA4B6400AEE15C /* Debug */ = {
375 | isa = XCBuildConfiguration;
376 | buildSettings = {
377 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
378 | FRAMEWORK_SEARCH_PATHS = (
379 | "$(SDKROOT)/Developer/Library/Frameworks",
380 | "$(inherited)",
381 | );
382 | GCC_PREPROCESSOR_DEFINITIONS = (
383 | "DEBUG=1",
384 | "$(inherited)",
385 | );
386 | INFOPLIST_FILE = DependTests/Info.plist;
387 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
388 | PRODUCT_NAME = "$(TARGET_NAME)";
389 | };
390 | name = Debug;
391 | };
392 | 2A28577C1BAA4B6400AEE15C /* Release */ = {
393 | isa = XCBuildConfiguration;
394 | buildSettings = {
395 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
396 | FRAMEWORK_SEARCH_PATHS = (
397 | "$(SDKROOT)/Developer/Library/Frameworks",
398 | "$(inherited)",
399 | );
400 | INFOPLIST_FILE = DependTests/Info.plist;
401 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
402 | PRODUCT_NAME = "$(TARGET_NAME)";
403 | };
404 | name = Release;
405 | };
406 | /* End XCBuildConfiguration section */
407 |
408 | /* Begin XCConfigurationList section */
409 | 2A28575E1BAA4B6400AEE15C /* Build configuration list for PBXProject "Depend" */ = {
410 | isa = XCConfigurationList;
411 | buildConfigurations = (
412 | 2A2857751BAA4B6400AEE15C /* Debug */,
413 | 2A2857761BAA4B6400AEE15C /* Release */,
414 | );
415 | defaultConfigurationIsVisible = 0;
416 | defaultConfigurationName = Release;
417 | };
418 | 2A2857771BAA4B6400AEE15C /* Build configuration list for PBXNativeTarget "Depend" */ = {
419 | isa = XCConfigurationList;
420 | buildConfigurations = (
421 | 2A2857781BAA4B6400AEE15C /* Debug */,
422 | 2A2857791BAA4B6400AEE15C /* Release */,
423 | );
424 | defaultConfigurationIsVisible = 0;
425 | defaultConfigurationName = Release;
426 | };
427 | 2A28577A1BAA4B6400AEE15C /* Build configuration list for PBXNativeTarget "DependTests" */ = {
428 | isa = XCConfigurationList;
429 | buildConfigurations = (
430 | 2A28577B1BAA4B6400AEE15C /* Debug */,
431 | 2A28577C1BAA4B6400AEE15C /* Release */,
432 | );
433 | defaultConfigurationIsVisible = 0;
434 | defaultConfigurationName = Release;
435 | };
436 | /* End XCConfigurationList section */
437 | };
438 | rootObject = 2A28575B1BAA4B6400AEE15C /* Project object */;
439 | }
440 |
--------------------------------------------------------------------------------
/DependProject/DependProject.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 2A10B40A1BABB4280088592B /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A10B4091BABB4280088592B /* main.m */; };
11 | 2A10B40D1BABB4280088592B /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A10B40C1BABB4280088592B /* AppDelegate.m */; };
12 | 2A10B4101BABB4280088592B /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A10B40F1BABB4280088592B /* ViewController.m */; };
13 | 2A10B4131BABB4280088592B /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 2A10B4111BABB4280088592B /* Main.storyboard */; };
14 | 2A10B4151BABB4280088592B /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 2A10B4141BABB4280088592B /* Images.xcassets */; };
15 | 2A10B4181BABB4280088592B /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2A10B4161BABB4280088592B /* LaunchScreen.xib */; };
16 | 2A10B4241BABB4280088592B /* DependProjectTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A10B4231BABB4280088592B /* DependProjectTests.m */; };
17 | 2A10B43B1BABB59E0088592B /* libDepend.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2A10B43A1BABB59E0088592B /* libDepend.a */; };
18 | 2A2E647C1BABB683001752FE /* DPDatasource.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A2E647B1BABB683001752FE /* DPDatasource.m */; };
19 | 2A2E64801BABB797001752FE /* DPRegister.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A2E647F1BABB797001752FE /* DPRegister.m */; };
20 | 2A2E64831BABB899001752FE /* DPSecondDatasource.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A2E64821BABB899001752FE /* DPSecondDatasource.m */; };
21 | /* End PBXBuildFile section */
22 |
23 | /* Begin PBXContainerItemProxy section */
24 | 2A10B41E1BABB4280088592B /* PBXContainerItemProxy */ = {
25 | isa = PBXContainerItemProxy;
26 | containerPortal = 2A10B3FC1BABB4280088592B /* Project object */;
27 | proxyType = 1;
28 | remoteGlobalIDString = 2A10B4031BABB4280088592B;
29 | remoteInfo = DependProject;
30 | };
31 | /* End PBXContainerItemProxy section */
32 |
33 | /* Begin PBXFileReference section */
34 | 2A10B4041BABB4280088592B /* DependProject.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DependProject.app; sourceTree = BUILT_PRODUCTS_DIR; };
35 | 2A10B4081BABB4280088592B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
36 | 2A10B4091BABB4280088592B /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
37 | 2A10B40B1BABB4280088592B /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
38 | 2A10B40C1BABB4280088592B /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
39 | 2A10B40E1BABB4280088592B /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
40 | 2A10B40F1BABB4280088592B /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
41 | 2A10B4121BABB4280088592B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
42 | 2A10B4141BABB4280088592B /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
43 | 2A10B4171BABB4280088592B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
44 | 2A10B41D1BABB4280088592B /* DependProjectTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DependProjectTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
45 | 2A10B4221BABB4280088592B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
46 | 2A10B4231BABB4280088592B /* DependProjectTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DependProjectTests.m; sourceTree = ""; };
47 | 2A10B43A1BABB59E0088592B /* libDepend.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libDepend.a; path = "../../../../../Library/Developer/Xcode/DerivedData/Depend-djrujyxodhamrhfahjjaovwgfrtd/Build/Products/Debug-iphoneos/libDepend.a"; sourceTree = ""; };
48 | 2A2E647A1BABB683001752FE /* DPDatasource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DPDatasource.h; sourceTree = ""; };
49 | 2A2E647B1BABB683001752FE /* DPDatasource.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DPDatasource.m; sourceTree = ""; };
50 | 2A2E647D1BABB69D001752FE /* DPDatasourceProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DPDatasourceProtocol.h; sourceTree = ""; };
51 | 2A2E647E1BABB797001752FE /* DPRegister.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DPRegister.h; sourceTree = ""; };
52 | 2A2E647F1BABB797001752FE /* DPRegister.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DPRegister.m; sourceTree = ""; };
53 | 2A2E64811BABB899001752FE /* DPSecondDatasource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DPSecondDatasource.h; sourceTree = ""; };
54 | 2A2E64821BABB899001752FE /* DPSecondDatasource.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DPSecondDatasource.m; sourceTree = ""; };
55 | /* End PBXFileReference section */
56 |
57 | /* Begin PBXFrameworksBuildPhase section */
58 | 2A10B4011BABB4280088592B /* Frameworks */ = {
59 | isa = PBXFrameworksBuildPhase;
60 | buildActionMask = 2147483647;
61 | files = (
62 | 2A10B43B1BABB59E0088592B /* libDepend.a in Frameworks */,
63 | );
64 | runOnlyForDeploymentPostprocessing = 0;
65 | };
66 | 2A10B41A1BABB4280088592B /* Frameworks */ = {
67 | isa = PBXFrameworksBuildPhase;
68 | buildActionMask = 2147483647;
69 | files = (
70 | );
71 | runOnlyForDeploymentPostprocessing = 0;
72 | };
73 | /* End PBXFrameworksBuildPhase section */
74 |
75 | /* Begin PBXGroup section */
76 | 2A10B3FB1BABB4280088592B = {
77 | isa = PBXGroup;
78 | children = (
79 | 2A10B4061BABB4280088592B /* DependProject */,
80 | 2A10B4201BABB4280088592B /* DependProjectTests */,
81 | 2A10B4051BABB4280088592B /* Products */,
82 | );
83 | sourceTree = "";
84 | };
85 | 2A10B4051BABB4280088592B /* Products */ = {
86 | isa = PBXGroup;
87 | children = (
88 | 2A10B4041BABB4280088592B /* DependProject.app */,
89 | 2A10B41D1BABB4280088592B /* DependProjectTests.xctest */,
90 | );
91 | name = Products;
92 | sourceTree = "";
93 | };
94 | 2A10B4061BABB4280088592B /* DependProject */ = {
95 | isa = PBXGroup;
96 | children = (
97 | 2A2E64871BABB954001752FE /* Registration Class */,
98 | 2A2E64841BABB93F001752FE /* Implementations */,
99 | 2A2E64851BABB944001752FE /* Protocol */,
100 | 2A2E64861BABB94D001752FE /* Injected Class */,
101 | 2A10B4071BABB4280088592B /* Supporting Files */,
102 | );
103 | path = DependProject;
104 | sourceTree = "";
105 | };
106 | 2A10B4071BABB4280088592B /* Supporting Files */ = {
107 | isa = PBXGroup;
108 | children = (
109 | 2A10B40B1BABB4280088592B /* AppDelegate.h */,
110 | 2A10B40C1BABB4280088592B /* AppDelegate.m */,
111 | 2A10B43A1BABB59E0088592B /* libDepend.a */,
112 | 2A10B4111BABB4280088592B /* Main.storyboard */,
113 | 2A10B4141BABB4280088592B /* Images.xcassets */,
114 | 2A10B4161BABB4280088592B /* LaunchScreen.xib */,
115 | 2A10B4081BABB4280088592B /* Info.plist */,
116 | 2A10B4091BABB4280088592B /* main.m */,
117 | );
118 | name = "Supporting Files";
119 | sourceTree = "";
120 | };
121 | 2A10B4201BABB4280088592B /* DependProjectTests */ = {
122 | isa = PBXGroup;
123 | children = (
124 | 2A10B4231BABB4280088592B /* DependProjectTests.m */,
125 | 2A10B4211BABB4280088592B /* Supporting Files */,
126 | );
127 | path = DependProjectTests;
128 | sourceTree = "";
129 | };
130 | 2A10B4211BABB4280088592B /* Supporting Files */ = {
131 | isa = PBXGroup;
132 | children = (
133 | 2A10B4221BABB4280088592B /* Info.plist */,
134 | );
135 | name = "Supporting Files";
136 | sourceTree = "";
137 | };
138 | 2A2E64841BABB93F001752FE /* Implementations */ = {
139 | isa = PBXGroup;
140 | children = (
141 | 2A2E64811BABB899001752FE /* DPSecondDatasource.h */,
142 | 2A2E64821BABB899001752FE /* DPSecondDatasource.m */,
143 | 2A2E647A1BABB683001752FE /* DPDatasource.h */,
144 | 2A2E647B1BABB683001752FE /* DPDatasource.m */,
145 | );
146 | name = Implementations;
147 | sourceTree = "";
148 | };
149 | 2A2E64851BABB944001752FE /* Protocol */ = {
150 | isa = PBXGroup;
151 | children = (
152 | 2A2E647D1BABB69D001752FE /* DPDatasourceProtocol.h */,
153 | );
154 | name = Protocol;
155 | sourceTree = "";
156 | };
157 | 2A2E64861BABB94D001752FE /* Injected Class */ = {
158 | isa = PBXGroup;
159 | children = (
160 | 2A10B40E1BABB4280088592B /* ViewController.h */,
161 | 2A10B40F1BABB4280088592B /* ViewController.m */,
162 | );
163 | name = "Injected Class";
164 | sourceTree = "";
165 | };
166 | 2A2E64871BABB954001752FE /* Registration Class */ = {
167 | isa = PBXGroup;
168 | children = (
169 | 2A2E647E1BABB797001752FE /* DPRegister.h */,
170 | 2A2E647F1BABB797001752FE /* DPRegister.m */,
171 | );
172 | name = "Registration Class";
173 | sourceTree = "";
174 | };
175 | /* End PBXGroup section */
176 |
177 | /* Begin PBXNativeTarget section */
178 | 2A10B4031BABB4280088592B /* DependProject */ = {
179 | isa = PBXNativeTarget;
180 | buildConfigurationList = 2A10B4271BABB4280088592B /* Build configuration list for PBXNativeTarget "DependProject" */;
181 | buildPhases = (
182 | 2A10B4001BABB4280088592B /* Sources */,
183 | 2A10B4011BABB4280088592B /* Frameworks */,
184 | 2A10B4021BABB4280088592B /* Resources */,
185 | );
186 | buildRules = (
187 | );
188 | dependencies = (
189 | );
190 | name = DependProject;
191 | productName = DependProject;
192 | productReference = 2A10B4041BABB4280088592B /* DependProject.app */;
193 | productType = "com.apple.product-type.application";
194 | };
195 | 2A10B41C1BABB4280088592B /* DependProjectTests */ = {
196 | isa = PBXNativeTarget;
197 | buildConfigurationList = 2A10B42A1BABB4280088592B /* Build configuration list for PBXNativeTarget "DependProjectTests" */;
198 | buildPhases = (
199 | 2A10B4191BABB4280088592B /* Sources */,
200 | 2A10B41A1BABB4280088592B /* Frameworks */,
201 | 2A10B41B1BABB4280088592B /* Resources */,
202 | );
203 | buildRules = (
204 | );
205 | dependencies = (
206 | 2A10B41F1BABB4280088592B /* PBXTargetDependency */,
207 | );
208 | name = DependProjectTests;
209 | productName = DependProjectTests;
210 | productReference = 2A10B41D1BABB4280088592B /* DependProjectTests.xctest */;
211 | productType = "com.apple.product-type.bundle.unit-test";
212 | };
213 | /* End PBXNativeTarget section */
214 |
215 | /* Begin PBXProject section */
216 | 2A10B3FC1BABB4280088592B /* Project object */ = {
217 | isa = PBXProject;
218 | attributes = {
219 | LastUpgradeCheck = 0640;
220 | ORGANIZATIONNAME = "Rafael Gonzalves";
221 | TargetAttributes = {
222 | 2A10B4031BABB4280088592B = {
223 | CreatedOnToolsVersion = 6.4;
224 | };
225 | 2A10B41C1BABB4280088592B = {
226 | CreatedOnToolsVersion = 6.4;
227 | TestTargetID = 2A10B4031BABB4280088592B;
228 | };
229 | };
230 | };
231 | buildConfigurationList = 2A10B3FF1BABB4280088592B /* Build configuration list for PBXProject "DependProject" */;
232 | compatibilityVersion = "Xcode 3.2";
233 | developmentRegion = English;
234 | hasScannedForEncodings = 0;
235 | knownRegions = (
236 | en,
237 | Base,
238 | );
239 | mainGroup = 2A10B3FB1BABB4280088592B;
240 | productRefGroup = 2A10B4051BABB4280088592B /* Products */;
241 | projectDirPath = "";
242 | projectRoot = "";
243 | targets = (
244 | 2A10B4031BABB4280088592B /* DependProject */,
245 | 2A10B41C1BABB4280088592B /* DependProjectTests */,
246 | );
247 | };
248 | /* End PBXProject section */
249 |
250 | /* Begin PBXResourcesBuildPhase section */
251 | 2A10B4021BABB4280088592B /* Resources */ = {
252 | isa = PBXResourcesBuildPhase;
253 | buildActionMask = 2147483647;
254 | files = (
255 | 2A10B4131BABB4280088592B /* Main.storyboard in Resources */,
256 | 2A10B4181BABB4280088592B /* LaunchScreen.xib in Resources */,
257 | 2A10B4151BABB4280088592B /* Images.xcassets in Resources */,
258 | );
259 | runOnlyForDeploymentPostprocessing = 0;
260 | };
261 | 2A10B41B1BABB4280088592B /* Resources */ = {
262 | isa = PBXResourcesBuildPhase;
263 | buildActionMask = 2147483647;
264 | files = (
265 | );
266 | runOnlyForDeploymentPostprocessing = 0;
267 | };
268 | /* End PBXResourcesBuildPhase section */
269 |
270 | /* Begin PBXSourcesBuildPhase section */
271 | 2A10B4001BABB4280088592B /* Sources */ = {
272 | isa = PBXSourcesBuildPhase;
273 | buildActionMask = 2147483647;
274 | files = (
275 | 2A2E64831BABB899001752FE /* DPSecondDatasource.m in Sources */,
276 | 2A2E647C1BABB683001752FE /* DPDatasource.m in Sources */,
277 | 2A10B4101BABB4280088592B /* ViewController.m in Sources */,
278 | 2A10B40D1BABB4280088592B /* AppDelegate.m in Sources */,
279 | 2A2E64801BABB797001752FE /* DPRegister.m in Sources */,
280 | 2A10B40A1BABB4280088592B /* main.m in Sources */,
281 | );
282 | runOnlyForDeploymentPostprocessing = 0;
283 | };
284 | 2A10B4191BABB4280088592B /* Sources */ = {
285 | isa = PBXSourcesBuildPhase;
286 | buildActionMask = 2147483647;
287 | files = (
288 | 2A10B4241BABB4280088592B /* DependProjectTests.m in Sources */,
289 | );
290 | runOnlyForDeploymentPostprocessing = 0;
291 | };
292 | /* End PBXSourcesBuildPhase section */
293 |
294 | /* Begin PBXTargetDependency section */
295 | 2A10B41F1BABB4280088592B /* PBXTargetDependency */ = {
296 | isa = PBXTargetDependency;
297 | target = 2A10B4031BABB4280088592B /* DependProject */;
298 | targetProxy = 2A10B41E1BABB4280088592B /* PBXContainerItemProxy */;
299 | };
300 | /* End PBXTargetDependency section */
301 |
302 | /* Begin PBXVariantGroup section */
303 | 2A10B4111BABB4280088592B /* Main.storyboard */ = {
304 | isa = PBXVariantGroup;
305 | children = (
306 | 2A10B4121BABB4280088592B /* Base */,
307 | );
308 | name = Main.storyboard;
309 | sourceTree = "";
310 | };
311 | 2A10B4161BABB4280088592B /* LaunchScreen.xib */ = {
312 | isa = PBXVariantGroup;
313 | children = (
314 | 2A10B4171BABB4280088592B /* Base */,
315 | );
316 | name = LaunchScreen.xib;
317 | sourceTree = "";
318 | };
319 | /* End PBXVariantGroup section */
320 |
321 | /* Begin XCBuildConfiguration section */
322 | 2A10B4251BABB4280088592B /* Debug */ = {
323 | isa = XCBuildConfiguration;
324 | buildSettings = {
325 | ALWAYS_SEARCH_USER_PATHS = NO;
326 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
327 | CLANG_CXX_LIBRARY = "libc++";
328 | CLANG_ENABLE_MODULES = YES;
329 | CLANG_ENABLE_OBJC_ARC = YES;
330 | CLANG_WARN_BOOL_CONVERSION = YES;
331 | CLANG_WARN_CONSTANT_CONVERSION = YES;
332 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
333 | CLANG_WARN_EMPTY_BODY = YES;
334 | CLANG_WARN_ENUM_CONVERSION = YES;
335 | CLANG_WARN_INT_CONVERSION = YES;
336 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
337 | CLANG_WARN_UNREACHABLE_CODE = YES;
338 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
339 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
340 | COPY_PHASE_STRIP = NO;
341 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
342 | ENABLE_STRICT_OBJC_MSGSEND = YES;
343 | GCC_C_LANGUAGE_STANDARD = gnu99;
344 | GCC_DYNAMIC_NO_PIC = NO;
345 | GCC_NO_COMMON_BLOCKS = YES;
346 | GCC_OPTIMIZATION_LEVEL = 0;
347 | GCC_PREPROCESSOR_DEFINITIONS = (
348 | "DEBUG=1",
349 | "$(inherited)",
350 | );
351 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
352 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
353 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
354 | GCC_WARN_UNDECLARED_SELECTOR = YES;
355 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
356 | GCC_WARN_UNUSED_FUNCTION = YES;
357 | GCC_WARN_UNUSED_VARIABLE = YES;
358 | IPHONEOS_DEPLOYMENT_TARGET = 8.4;
359 | MTL_ENABLE_DEBUG_INFO = YES;
360 | ONLY_ACTIVE_ARCH = YES;
361 | SDKROOT = iphoneos;
362 | };
363 | name = Debug;
364 | };
365 | 2A10B4261BABB4280088592B /* Release */ = {
366 | isa = XCBuildConfiguration;
367 | buildSettings = {
368 | ALWAYS_SEARCH_USER_PATHS = NO;
369 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
370 | CLANG_CXX_LIBRARY = "libc++";
371 | CLANG_ENABLE_MODULES = YES;
372 | CLANG_ENABLE_OBJC_ARC = YES;
373 | CLANG_WARN_BOOL_CONVERSION = YES;
374 | CLANG_WARN_CONSTANT_CONVERSION = YES;
375 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
376 | CLANG_WARN_EMPTY_BODY = YES;
377 | CLANG_WARN_ENUM_CONVERSION = YES;
378 | CLANG_WARN_INT_CONVERSION = YES;
379 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
380 | CLANG_WARN_UNREACHABLE_CODE = YES;
381 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
382 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
383 | COPY_PHASE_STRIP = NO;
384 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
385 | ENABLE_NS_ASSERTIONS = NO;
386 | ENABLE_STRICT_OBJC_MSGSEND = YES;
387 | GCC_C_LANGUAGE_STANDARD = gnu99;
388 | GCC_NO_COMMON_BLOCKS = YES;
389 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
390 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
391 | GCC_WARN_UNDECLARED_SELECTOR = YES;
392 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
393 | GCC_WARN_UNUSED_FUNCTION = YES;
394 | GCC_WARN_UNUSED_VARIABLE = YES;
395 | IPHONEOS_DEPLOYMENT_TARGET = 8.4;
396 | MTL_ENABLE_DEBUG_INFO = NO;
397 | SDKROOT = iphoneos;
398 | VALIDATE_PRODUCT = YES;
399 | };
400 | name = Release;
401 | };
402 | 2A10B4281BABB4280088592B /* Debug */ = {
403 | isa = XCBuildConfiguration;
404 | buildSettings = {
405 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
406 | INFOPLIST_FILE = DependProject/Info.plist;
407 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
408 | LIBRARY_SEARCH_PATHS = (
409 | "$(inherited)",
410 | "$(USER_LIBRARY_DIR)/Developer/Xcode/DerivedData/Depend-djrujyxodhamrhfahjjaovwgfrtd/Build/Products/Debug-iphoneos",
411 | );
412 | PRODUCT_NAME = "$(TARGET_NAME)";
413 | };
414 | name = Debug;
415 | };
416 | 2A10B4291BABB4280088592B /* Release */ = {
417 | isa = XCBuildConfiguration;
418 | buildSettings = {
419 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
420 | INFOPLIST_FILE = DependProject/Info.plist;
421 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
422 | LIBRARY_SEARCH_PATHS = (
423 | "$(inherited)",
424 | "$(USER_LIBRARY_DIR)/Developer/Xcode/DerivedData/Depend-djrujyxodhamrhfahjjaovwgfrtd/Build/Products/Debug-iphoneos",
425 | );
426 | PRODUCT_NAME = "$(TARGET_NAME)";
427 | };
428 | name = Release;
429 | };
430 | 2A10B42B1BABB4280088592B /* Debug */ = {
431 | isa = XCBuildConfiguration;
432 | buildSettings = {
433 | BUNDLE_LOADER = "$(TEST_HOST)";
434 | FRAMEWORK_SEARCH_PATHS = (
435 | "$(SDKROOT)/Developer/Library/Frameworks",
436 | "$(inherited)",
437 | );
438 | GCC_PREPROCESSOR_DEFINITIONS = (
439 | "DEBUG=1",
440 | "$(inherited)",
441 | );
442 | INFOPLIST_FILE = DependProjectTests/Info.plist;
443 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
444 | PRODUCT_NAME = "$(TARGET_NAME)";
445 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DependProject.app/DependProject";
446 | };
447 | name = Debug;
448 | };
449 | 2A10B42C1BABB4280088592B /* Release */ = {
450 | isa = XCBuildConfiguration;
451 | buildSettings = {
452 | BUNDLE_LOADER = "$(TEST_HOST)";
453 | FRAMEWORK_SEARCH_PATHS = (
454 | "$(SDKROOT)/Developer/Library/Frameworks",
455 | "$(inherited)",
456 | );
457 | INFOPLIST_FILE = DependProjectTests/Info.plist;
458 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
459 | PRODUCT_NAME = "$(TARGET_NAME)";
460 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DependProject.app/DependProject";
461 | };
462 | name = Release;
463 | };
464 | /* End XCBuildConfiguration section */
465 |
466 | /* Begin XCConfigurationList section */
467 | 2A10B3FF1BABB4280088592B /* Build configuration list for PBXProject "DependProject" */ = {
468 | isa = XCConfigurationList;
469 | buildConfigurations = (
470 | 2A10B4251BABB4280088592B /* Debug */,
471 | 2A10B4261BABB4280088592B /* Release */,
472 | );
473 | defaultConfigurationIsVisible = 0;
474 | defaultConfigurationName = Release;
475 | };
476 | 2A10B4271BABB4280088592B /* Build configuration list for PBXNativeTarget "DependProject" */ = {
477 | isa = XCConfigurationList;
478 | buildConfigurations = (
479 | 2A10B4281BABB4280088592B /* Debug */,
480 | 2A10B4291BABB4280088592B /* Release */,
481 | );
482 | defaultConfigurationIsVisible = 0;
483 | defaultConfigurationName = Release;
484 | };
485 | 2A10B42A1BABB4280088592B /* Build configuration list for PBXNativeTarget "DependProjectTests" */ = {
486 | isa = XCConfigurationList;
487 | buildConfigurations = (
488 | 2A10B42B1BABB4280088592B /* Debug */,
489 | 2A10B42C1BABB4280088592B /* Release */,
490 | );
491 | defaultConfigurationIsVisible = 0;
492 | defaultConfigurationName = Release;
493 | };
494 | /* End XCConfigurationList section */
495 | };
496 | rootObject = 2A10B3FC1BABB4280088592B /* Project object */;
497 | }
498 |
--------------------------------------------------------------------------------