Skip to content

Commit

Permalink
Release 1.2.0 (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
tung-vu-td authored Jul 10, 2024
1 parent 8db2141 commit 17fa7ce
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 23 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Change Log

## version 1.1.0
## version 1.2.0
_2024-07-10_

* New APIs enableAutoTrackingIP and disableAutoTrackingIP to track device’s IP in td_ip column

## version 1.1.1
_2024-04-29_

* Add NSPrivacyAccessedAPIType to Privacy manifest
Expand Down
52 changes: 32 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Version 1 has major changes that are not backward compatible with previous versi
- Server side upload timestamp feature is removed.
- New `enableAutoAppendLocalTimestamp` and `disableAutoAppendLocalTimestamp` to help automatically track local timestamp.
- `uuid` is now reserved column name. If you try to add value to event's `uuid` key, you won't see the column show up in the database.
- Auto tracking of client id by adding `td_ip` field is no longer supported.
- Auto tracking of client id by adding `td_ip` field is no longer supported. Instead, use new `enableAutoTrackingIP` and `disableAutoTrackingIP` APIs.

## Installation

Expand All @@ -30,7 +30,7 @@ $ gem install cocoapods
Next, add this line in your Podfile.

```
pod 'TreasureData-iOS-SDK', '= 1.1.1'
pod 'TreasureData-iOS-SDK', '= 1.2.0'
```

Add this line to your Podfile (usually at the beginning of the file).
Expand All @@ -52,7 +52,7 @@ You can install either via Xcode: File > Swift Packages > Add Package Dependency

Or add this line to `dependencies` array in Package.swift file:
```
.package(url: "https://github.com/treasure-data/td-ios-sdk.git", .upToNextMajor(from: "1.1.1"))
.package(url: "https://github.com/treasure-data/td-ios-sdk.git", .upToNextMajor(from: "1.2.0"))
```

### Framework
Expand Down Expand Up @@ -436,6 +436,19 @@ It outputs the following column names and values:
- `td_locale_country` : `[[NSLocale currentLocale] objectForKey: NSLocaleCountryCode]`
- `td_locale_lang` : `[[NSLocale currentLocale] objectForKey: NSLocaleLanguageCode]`

### Auto tracking device IP

Device IP will be added to each event automatically in `td_ip` column if you call `enableAutoTrackingIP`. Note that the tracked IP address is the one when you upload the events to Treasure Data, not the one when you add the event.

```
[[TreasureData sharedInstance] enableAutoTrackingIP];
```

To disable auto tracking IP:

```
[[TreasureData sharedInstance] disableAutoTrackingIP];
```

### Enable/Disable debug log

Expand Down Expand Up @@ -575,23 +588,22 @@ The current version has been built and tested with XCode v10.2.

#### iOS

| iOS Version | v0.8.0 | v0.9.0 | v1.0.1 | v1.1.0 | v1.1.1 |
| :---------- | :----------------- | :----------------- | :----------------- | :----------------- | :----------------- |
| 17 | not tested | not tested | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| 16 | not tested | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| 15 | not tested | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| 14 | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| 13 | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| 12 | :white_check_mark: | :white_check_mark: | :white_check_mark: | not tested | not tested |
| 11 | :white_check_mark: | not tested | not tested | not tested | not tested |
| 10 | :white_check_mark: | not tested | not tested | not tested | not tested |
| 9 | :white_check_mark: | not tested | not tested | not tested | not tested |
| 8 | :white_check_mark: | not tested | not tested | not tested | not tested |
| 7 | not tested | not tested | not tested | not tested | not tested |
| iOS Version | v0.8.0 | v0.9.0 | v1.0.1 | v1.1.0 | v1.1.1 | v1.2.0 |
| :---------- | :----------------- | :----------------- | :----------------- | :----------------- | :----------------- | :----------------- |
| 17 | not tested | not tested | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| 16 | not tested | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| 15 | not tested | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| 14 | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| 13 | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | not tested |
| 12 | :white_check_mark: | :white_check_mark: | :white_check_mark: | not tested | not tested | not tested |
| 11 | :white_check_mark: | not tested | not tested | not tested | not tested | not tested |
| 10 | :white_check_mark: | not tested | not tested | not tested | not tested | not tested |
| 9 | :white_check_mark: | not tested | not tested | not tested | not tested | not tested |
| 8 | :white_check_mark: | not tested | not tested | not tested | not tested | not tested |
| 7 | not tested | not tested | not tested | not tested | not tested | not tested |

#### tvOS

| tvOS Version | v0.8.0 | v0.9.0 | v1.0.1 | v1.1.0 | v1.1.1 |
| :----------- | :----------------- | :----------------- | :----------------- | :----------------- | :----------------- |
| 12 and up | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |

| tvOS Version | v0.8.0 | v0.9.0 | v1.0.1 | v1.1.0 | v1.1.1 | v1.2.0 |
| :----------- | :----------------- | :----------------- | :----------------- | :----------------- | :----------------- | :----------------- |
| 12 and up | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
2 changes: 1 addition & 1 deletion TreasureData-iOS-SDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'TreasureData-iOS-SDK'
s.version = '1.1.1'
s.version = '1.2.0'
s.summary = 'TreasureData SDK for iOS'
s.license = 'Apache'
s.authors = { 'mitsu': '[email protected]',
Expand Down
2 changes: 1 addition & 1 deletion TreasureData/TDClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#import "TDClient.h"
@import GZIP;

static NSString *version = @"1.1.1";
static NSString *version = @"1.2.0";

@implementation TDClient

Expand Down

0 comments on commit 17fa7ce

Please sign in to comment.