https://github.com/remirobert/dotzu-objective-c
Dotzu Objective-c example project
https://github.com/remirobert/dotzu-objective-c
afnetworking framework logging network objective-c
Last synced: 15 days ago
JSON representation
Dotzu Objective-c example project
- Host: GitHub
- URL: https://github.com/remirobert/dotzu-objective-c
- Owner: remirobert
- License: mit
- Created: 2017-02-18T17:26:49.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-18T18:43:17.000Z (about 9 years ago)
- Last Synced: 2025-05-01T06:37:03.828Z (11 months ago)
- Topics: afnetworking, framework, logging, network, objective-c
- Language: Objective-C
- Size: 196 KB
- Stars: 31
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dotzu-Objective-c
Dotzu Objective-c example project.
👉 [Project link](https://github.com/remirobert/Dotzu)
## Installation Cocoapods:
```Ruby
use_frameworks!
pod 'DotzuObjc'
```
After installing the pod, go to your **Pod target**, set the **swift legacy language version** to **no**.

## Usage
In the `AppDelegate` instanciate `Dotzu manager`.
```Objective-c
@import Dotzu;
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[[Dotzu sharedManager] displayWindow];
return YES;
}
@end
```
## Logs
```Objective-c
@import Dotzu_objc;
NSLog(@"log verbose");
LogVerbose(@"verbose");
LogWarning(@"warning");
LogInfo(@"info");
LogError(@"ok");
```
## Network for AFNetworking:
```Objective-c
NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration];
[[Dotzu sharedManager] addLoggerWithSession:configuration];
AFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:configuration];
```