Dotzu Objective-c example project.
use_frameworks!
pod 'DotzuObjc'
After installing the pod, go to your Pod target, set the swift legacy language version to no.
In the AppDelegate
instanciate Dotzu manager
.
@import Dotzu;
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[[Dotzu sharedManager] displayWindow];
return YES;
}
@end
@import Dotzu_objc;
NSLog(@"log verbose");
LogVerbose(@"verbose");
LogWarning(@"warning");
LogInfo(@"info");
LogError(@"ok");
NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration];
[[Dotzu sharedManager] addLoggerWithSession:configuration];
AFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:configuration];