Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated example, TODO, and podspec

  • Loading branch information...
commit c7043ef154fb96b9e3687703c3150ea9620c9a17 1 parent bc896b8
@dewind dewind authored
View
3  Examples/ObjectionExample/Libraries/Objection-iOS.framework/Versions/A/Headers/JSObjection.h
@@ -6,7 +6,8 @@
}
-+ (JSObjectionInjector *)createInjector:(JSObjectionModule *)aModule;
++ (JSObjectionInjector *)createInjectorWithModules:(JSObjectionModule *)first, ... NS_REQUIRES_NIL_TERMINATION;
++ (JSObjectionInjector *)createInjector:(JSObjectionModule *)module;
+ (JSObjectionInjector *)createInjector;
+ (void)registerClass:(Class)theClass lifeCycle:(JSObjectionInstantiationRule)lifeCycle;
+ (void)setGlobalInjector:(JSObjectionInjector *)anInjector;
View
1  ...jectionExample/Libraries/Objection-iOS.framework/Versions/A/Headers/JSObjectionInjector.h
@@ -9,5 +9,6 @@
- (id)initWithContext:(NSDictionary *)theGlobalContext;
- (id)initWithContext:(NSDictionary *)theGlobalContext andModule:(JSObjectionModule *)theModule;
+- (id)initWithContext:(NSDictionary *)theGlobalContext andModules:(NSArray *)modules;
- (id)getObject:(id)classOrProtocol;
@end
View
3  ...ObjectionExample/Libraries/Objection-iOS.framework/Versions/A/Headers/JSObjectionModule.h
@@ -3,7 +3,7 @@
@class JSObjectionInjector;
@protocol JSObjectionProvider<NSObject>
-- (id)createInstance:(JSObjectionInjector *)context;
+- (id)provide:(JSObjectionInjector *)context;
@end
@@ -21,6 +21,7 @@
- (void)bindProvider:(id<JSObjectionProvider>)provider toClass:(Class)aClass;
- (void)bindProvider:(id<JSObjectionProvider>)provider toProtocol:(Protocol *)aProtocol;
- (void)bindClass:(Class)aClass toProtocol:(Protocol *)aProtocol;
+- (void)bindClass:(Class)aClass toClass:(Class)toClass;
- (void)bindBlock:(id (^)(JSObjectionInjector *context))block toClass:(Class)aClass;
- (void)bindBlock:(id (^)(JSObjectionInjector *context))block toProtocol:(Protocol *)aProtocol;
- (void)registerEagerSingleton:(Class)klass;
View
BIN  Examples/ObjectionExample/Libraries/Objection-iOS.framework/Versions/A/Objection-iOS
Binary file not shown
View
4 Examples/ObjectionExample/Libraries/Objection-iOS.framework/Versions/A/Resources/Info.plist
@@ -13,10 +13,10 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
- <string>0.10.0</string>
+ <string>0.12.0</string>
<key>CFBundleSignature</key>
<string>ATOM</string>
<key>CFBundleVersion</key>
- <string>1</string>
+ <string>0.12.1</string>
</dict>
</plist>
View
2  Examples/ObjectionExample/ObjectionExample.xcodeproj/project.pbxproj
@@ -479,7 +479,7 @@
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
attributes = {
- LastUpgradeCheck = 0420;
+ LastUpgradeCheck = 0430;
};
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "ObjectionExample" */;
compatibilityVersion = "Xcode 3.2";
View
4 Objection.podspec
@@ -1,9 +1,9 @@
Pod::Spec.new do |s|
s.name = 'Objection'
- s.version = '0.10'
+ s.version = '0.12.1'
s.summary = 'A lightweight dependency injection framework for Objective-C.'
s.author = { 'Justin DeWind' => 'dewind@atomicobject.com' }
- s.source = { :git => 'https://github.com/atomicobject/objection.git', :tag => '0.10' }
+ s.source = { :git => 'https://github.com/atomicobject/objection.git', :tag => '0.12.1' }
s.homepage = 'http://www.objection-framework.org'
s.source_files = 'Source'
s.license = "https://github.com/atomicobject/objection/blob/master/LICENSE"
View
5 README.md
@@ -205,8 +205,9 @@ Occasionally you'll want to manually construct an object within Objection. Provi
```
## TODO
-* Add support for custom initializers
-* Support 'static' injection to help workaround poorly implemented APIs
+* Add support for alternate initializers
+ * <code>objection\_initializer(initWithNibName:bundle, @"Nib", nil)</code>
+* Support 'static' injection
* Resolve circular dependencies
* Add contribution section
* Re-factor the method for declaring dependencies
Please sign in to comment.
Something went wrong with that request. Please try again.