Skip to content

Commit

Permalink
Release version 1.1.0 (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
tung-vu-td authored Jul 11, 2024
1 parent 2f6463c commit 4f10ea2
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 27 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log

## Version 1.1.0
_2024-07-10_

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

## Version 1.0.1
_2024-05-30_

Expand Down
60 changes: 37 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,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` APIs 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 @@ -24,7 +24,7 @@ If you use gradle, add the following dependency to `dependencies` directive in t

```
dependencies {
implementation 'com.treasuredata:td-android-sdk:1.0.1'
implementation 'com.treasuredata:td-android-sdk:1.1.0'
}
```

Expand All @@ -36,7 +36,7 @@ If you use maven, add the following directives to your pom.xml
<dependency>
<groupId>com.treasuredata</groupId>
<artifactId>td-android-sdk</artifactId>
<version>1.0.1</version>
<version>1.1.0</version>
</dependency>
```

Expand Down Expand Up @@ -485,6 +485,20 @@ It outputs the following column names and values:
- `td_locale_country` : java.util.Locale.getCountry() (from Context.getResources().getConfiguration().locale)
- `td_locale_lang` : java.util.Locale.getLanguage() (from Context.getResources().getConfiguration().locale)

### 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];
```

### Profiles API

Lookup for profiles via [Profiles API](https://docs.treasuredata.com/display/public/PD/Working+with+Profiles+and+the+Profiles+API+Tokens)
Expand Down Expand Up @@ -526,24 +540,24 @@ TreasureData.sharedInstance().fetchUserSegments(Arrays.asList("<your_profile_api

Android SDK for Arm Treasure Data only supports any Android device running API 28 (Android 9.0) and higher

| Codename | Version | API | v0.6.0 | v1.0.0 | v1.0.1 |
| :----------------- | :------ | :----- | :----------------- | :----------------- | :----------------- |
| Android 14 | 14 | 34 | not tested | :white_check_mark: | :white_check_mark: |
| Android 13 | 13 | 33 | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Android 12 | 13 | 31, 32 | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Android 11 | 11 | 30 | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Android 10 | 10 | 29 | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Pie | 9.0 | 28 | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Oreo | 8.1 | 27 | :white_check_mark: | not tested | not tested |
| Oreo | 8.0 | 26 | :white_check_mark: | not tested | not tested |
| Nougat | 7.1 | 25 | :white_check_mark: | not tested | not tested |
| Nougat | 7.0 | 24 | :white_check_mark: | not tested | not tested |
| Marshmallow | 6.0 | 23 | :white_check_mark: | not tested | not tested |
| Lollipop | 5.1 | 22 | :white_check_mark: | not tested | not tested |
| Lollipop | 5.0 | 21 | :white_check_mark: | not tested | not tested |
| KitKat | 4.4 | 19 | :white_check_mark: | not tested | not tested |
| Jelly Bean | 4.3 | 18 | :white_check_mark: | not tested | not tested |
| Jelly Bean | 4.2 | 17 | not tested | not tested | not tested |
| Jelly Bean | 4.1 | 16 | not tested | not tested | not tested |
| Ice Cream Sandwich | 4.0 | 15 | not tested | not tested | not tested |
| Codename | Version | API | v0.6.0 | v1.0.0 | v1.0.1 | v1.1.0 |
| :----------------- | :------ | :----- | :----------------- | :----------------- | :----------------- | :----------------- |
| Android 14 | 14 | 34 | not tested | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Android 13 | 13 | 33 | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Android 12 | 13 | 31, 32 | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Android 11 | 11 | 30 | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Android 10 | 10 | 29 | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Pie | 9.0 | 28 | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Oreo | 8.1 | 27 | :white_check_mark: | not tested | not tested | not tested |
| Oreo | 8.0 | 26 | :white_check_mark: | not tested | not tested | not tested |
| Nougat | 7.1 | 25 | :white_check_mark: | not tested | not tested | not tested |
| Nougat | 7.0 | 24 | :white_check_mark: | not tested | not tested | not tested |
| Marshmallow | 6.0 | 23 | :white_check_mark: | not tested | not tested | not tested |
| Lollipop | 5.1 | 22 | :white_check_mark: | not tested | not tested | not tested |
| Lollipop | 5.0 | 21 | :white_check_mark: | not tested | not tested | not tested |
| KitKat | 4.4 | 19 | :white_check_mark: | not tested | not tested | not tested |
| Jelly Bean | 4.3 | 18 | :white_check_mark: | not tested | not tested | not tested |
| Jelly Bean | 4.2 | 17 | not tested | not tested | not tested | not tested |
| Jelly Bean | 4.1 | 16 | not tested | not tested | not tested | not tested |
| Ice Cream Sandwich | 4.0 | 15 | not tested | not tested | not tested | not tested |

6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ plugins {
}

group = 'com.treasuredata'
version = '1.0.1'
version = '1.1.0'
description = 'Android SDK for Treasure Data Cloud'

java.sourceCompatibility = JavaVersion.VERSION_1_8
Expand Down Expand Up @@ -126,8 +126,8 @@ publishing {
def snapshotsRepoUrl = 'https://oss.sonatype.org/content/repositories/snapshots'
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username findProperty('sonatypeUsername')
password findProperty('sonatypePassword')
username findProperty('sonatypeTokenUsername')
password findProperty('sonatypeTokenPassword')
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/treasuredata/android/TreasureData.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

public class TreasureData implements CDPClient {
private static final String TAG = TreasureData.class.getSimpleName();
private static final String VERSION = "1.0.1";
private static final String VERSION = "1.1.0";
private static final String LABEL_ADD_EVENT = "addEvent";
private static final String LABEL_UPLOAD_EVENTS = "uploadEvents";
private static final Pattern DATABASE_NAME_PATTERN = Pattern.compile("^[0-9a-z_]{3,255}$");
Expand Down

0 comments on commit 4f10ea2

Please sign in to comment.