Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanbruel committed Jun 29, 2015
2 parents f269fb9 + 47283c7 commit d5536a6
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
14 changes: 14 additions & 0 deletions DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,20 @@ With HOKO, you can aggregate all the platforms where your App is available. Each

3. Run `pod install` and wait for CocoaPod to install HOKO SDK. From this moment on, instead of using `.xcodeproj` file, you should start using `.xcworkspace`.

### Integrating the SDK with your Swift project

Because the HOKO SDK is written in `Objective-C`, you'll have to manually add a `Bridging Header file` into your project in order to use it with your Swift code:
* `File` > `New` > `File...` > `iOS` > `Source` > `Header File`
* Name that header file `YourAppName-Bridging-Header.h`
* Inside that header file, import `#import "Hoko.h"`
* Go to your project > `Build Settings` > `Objective-C Bridging Header` > add the path to your bridging header file, from your root folder (e.g. `MyApp/MyApp-Bridging-Header.h`)
* Get Swifty!
### Framework
1. Download the [Hoko SDK](https://github.com/hokolinks/hoko-ios/archive/master.zip).
Expand Down
3 changes: 2 additions & 1 deletion Hoko/HOKDeeplinking.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
// Copyright (c) 2015 Hoko, S.A. All rights reserved.
//

#import "HOKDeeplink.h"
#import <UIKit/UIKit.h>

#import "HOKDeeplink.h"
#import "Hoko+Nullability.h"

/**
Expand Down
1 change: 1 addition & 0 deletions Hoko/HOKSwizzling.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#import "HOKSwizzling.h"

#import <objc/runtime.h>
#import <UIKit/UIKit.h>

#import "Hoko.h"
#import "HOKError.h"
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,20 @@ To integrate HOKO in your app, simply follow the 3 simple steps below after addi
2. Drag the `Hoko` folder to your project.
3. Be sure to also add `SystemConfiguration.framework` and `zlib.dylib` in case your project does not include it already.

### Integrating the SDK with your Swift project

Because the HOKO SDK is written in `Objective-C`, you'll have to manually add a `Bridging Header file` into your project in order to use it with your Swift code:
* `File` > `New` > `File...` > `iOS` > `Source` > `Header File`
* Name that header file `YourAppName-Bridging-Header.h`
* Inside that header file, import `#import <Hoko/Hoko.h>`
* Go to your project > `Build Settings` > `Objective-C Bridging Header` > add the path to your bridging header file, from your root folder (e.g. `MyApp/MyApp-Bridging-Header.h`)
* Get Swifty!
## SDK Setup
Add the following line to your `applicationDidFinishLaunching` method in your `AppDelegate` class (don't forget to import the HOKO class by using `#import <Hoko/Hoko.h>` if you're working with `Objective-C`).
Expand Down

0 comments on commit d5536a6

Please sign in to comment.