Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
qVadro committed Jun 9, 2018
2 parents fff815b + 76484d5 commit baa4da2
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,18 @@

Download the latest sdk version from our server:

[<img src=https://github.com/Game-of-whales/GOW-SDK-UNITY/wiki/img/download.png>](https://github.com/Game-of-whales/GOW-SDK-IOS/releases/download/v2.0.12/GOW-SDK-IOS-FRAMEWORK-2.0.12.zip)
[<img src=https://github.com/Game-of-whales/GOW-SDK-UNITY/wiki/img/download.png>](https://github.com/Game-of-whales/GOW-SDK-IOS/releases/download/v2.0.13/GameOfWhales.framework.zip)

# Changelog

### 2.0.13 (May 14, 2018)

ADDED

* Custom data is supported for special offers.
* The information about a device's locale is sent to **Game of Whales**.


### 2.0.12 (Jan 11, 2018)

ADDED
Expand Down Expand Up @@ -178,6 +186,14 @@ A special offer can also influence count (count of coins, for example) which a p
}
```

It's possible to pass [custom data](https://www.gameofwhales.com/documentation/custom-data) to special offers. In order to get the data in game's side, use _customValues_ parameter of _SpecialOffer_ class.

```swift
let str = offer.customValues.valueForKey("your_string") as? NSTring
let number = offer.customValues.valueForKey("your_number") as? NSNumber
let boolean = offer.customValues.valueForKey("your_bool") as? NSNumber
```

## Notifications

### Step 8 (for iOS only)
Expand Down Expand Up @@ -389,6 +405,15 @@ A special offer can also influence count (count of coins, for example) which a p
coins *= so.countFactor;
}
```

It's possible to pass [custom data](https://www.gameofwhales.com/documentation/custom-data) to special offers. In order to get the data in game's side, use _customValues_ parameter of _SpecialOffer_ class.

```objective-c
NSString * str = [specialOffer.customValues objectForKey:@"your_str"];
NSNumber * number = [specialOffer.customValues objectForKey:@"your_int"];
NSNumber * boolean = [specialOffer.customValues objectForKey:@"your_bool"];
```

## Notifications

### Step 8 (for iOS only)
Expand Down

0 comments on commit baa4da2

Please sign in to comment.