Skip to content

Commit

Permalink
Merge pull request #166 from adjust/v4320
Browse files Browse the repository at this point in the history
Version 4.32.0
  • Loading branch information
uerceg authored Sep 16, 2022
2 parents 8622814 + d42f7d6 commit 56e229c
Show file tree
Hide file tree
Showing 27 changed files with 2,880 additions and 877 deletions.
22 changes: 21 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
### Version 4.32.0 (16th September 2022)
#### Added
- Added partner sharing settings to the third party sharing feature.
- Added `getLastDeeplink` getter to `Adjust` API to be able to get last tracked deep link by the SDK (iOS only).
- Added support for `LinkMe` feature (iOS only).
- Added support to get Facebook install referrer information in attribution callback (Android only).

#### Changed
- Switched to adding permission `com.google.android.gms.permission.AD_ID` in the Android app's manifest by default.

#### Fixed
- Fixed import statement errors in case CocoaPods is forcing usage of frameworks (https://github.com/adjust/cordova_sdk/issues/163).

#### Native SDKs
- [iOS@v4.32.0][ios_sdk_v4.32.0]
- [Android@v4.32.0][android_sdk_v4.32.0]

---

### Version 4.30.0 (24th May 2022)

#### Added
Expand Down Expand Up @@ -584,6 +603,7 @@
[ios_sdk_v4.29.4]: https://github.com/adjust/ios_sdk/tree/v4.29.4
[ios_sdk_v4.29.6]: https://github.com/adjust/ios_sdk/tree/v4.29.6
[ios_sdk_v4.30.0]: https://github.com/adjust/ios_sdk/tree/v4.30.0
[ios_sdk_v4.32.0]: https://github.com/adjust/ios_sdk/tree/v4.32.0

[android_sdk_v3.5.0]: https://github.com/adjust/android_sdk/tree/v3.5.0
[android_sdk_v4.1.0]: https://github.com/adjust/android_sdk/tree/v4.1.0
Expand Down Expand Up @@ -613,4 +633,4 @@
[android_sdk_v4.28.4]: https://github.com/adjust/android_sdk/tree/v4.28.4
[android_sdk_v4.28.5]: https://github.com/adjust/android_sdk/tree/v4.28.5
[android_sdk_v4.30.1]: https://github.com/adjust/android_sdk/tree/v4.30.1

[android_sdk_v4.32.0]: https://github.com/adjust/android_sdk/tree/v4.32.0
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -870,17 +870,9 @@ Upon receiving this information, Adjust changes sharing the specific user's data

### <a id="sdk-signature"></a>SDK signature

An account manager must activate the Adjust SDK signature. Contact Adjust support (support@adjust.com) if you are interested in using this feature.
When you set up the SDK Signature, each SDK communication package is "signed". This lets Adjust’s servers easily detect and reject any install activity that is not legitimate.

If the SDK signature has already been enabled on your account and you have access to App Secrets in your Adjust Dashboard, please use the method below to integrate the SDK signature into your app.

An App Secret is set by passing all secret parameters (`secretId`, `info1`, `info2`, `info3`, `info4`) to `setAppSecret` method of `AdjustConfig` instance:

```js
var adjustConfig = new AdjustConfig(appToken, environment);
adjustConfig.setAppSecret(secretId, info1, info2, info3, info4);
Adjust.create(adjustConfig);
```
There are just a few steps involved in setting up the SDK Signature. Please contact your Technical Account Manager or support@adjust.com to get started.

### <a id="background-tracking"></a>Background tracking

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.30.0
4.32.0
208 changes: 104 additions & 104 deletions doc/migrate.md
Original file line number Diff line number Diff line change
@@ -1,104 +1,104 @@
## Migrate your Adjust SDK for Cordova to 4.30.0 from 3.4.1

### Migration procedure

Go to your project's folder and remove any previous version of the adjust SDK plugin you have.

```
> cordova plugins rm com.adjust.sdk
Uninstalling com.adjust.sdk from android
Uninstalling com.adjust.sdk from ios
```

After you have successfully removed previous version of plugin, install latest version of plugin.

```
> cordova plugin add path_to_folder/cordova_sdk
Installing "com.adjust.sdk" for android
Installing "com.adjust.sdk" for ios
```

In previous versions, you had to copy the adjust `hooks` folder to your project's root folder. By
doing this, you had `hooks/after_prepare/replace_adjust.js` in your project's folder. If
`after_prepare/replace_adjust.js` is the only content of your `hooks` folder, you can delete entire
`hooks` folder. If you have some other hooks you are using in your app, then delete just
`replace_adjust.js` file from `hooks/after_prepare` folder.

### SDK initialization

We have changed how you configure and start the adjust SDK. All initial setup is now done with a new
instance of the `AdjustConfig` object. The following steps should now be taken to configure the adjust SDK:

1. Create an instance of an `AdjustConfig` config object with the app token and environment.
2. Optionally, you can now call methods of the `AdjustConfig` object to specify available options.
3. Launch the SDK by invoking `Adjust.create` with the config object.

Here is an example of how the setup might look before and after the migration:

##### Before

You needed to edit `adjust.json` file and to replace predefined properties with your own.

```javascript
{
"appToken" : "{yourAppToken}",
"environment" : "sandbox",
"logLevel" : "info",
"enableEventBuffering" : "false"
}
```

`replace_adjust.js` was taking care that values you set in this file be used when your app starts
and the adjust instance was automatically initialized with these values for you.

##### After

```cs
var adjustConfig = new AdjustConfig("{YourAppToken}", AdjustConfig.EnvironmentSandbox);
adjustConfig.setLogLevel(AdjustConfig.LogLevelVerbose);

Adjust.create(adjustConfig);
```

### Event tracking

We also introduced proper event objects that are set up before they are tracked. Again, an example of how it
might look like before and after:

##### Before

```javascript
Adjust.trackEvent('{EventToken}');
```

##### After

```javascript
var adjustEvent = new AdjustEvent("{EventToken}");
Adjust.trackEvent(adjustEvent);
```

### Revenue tracking

Revenues are now handled like normal events. You just set a revenue and a currency to track revenues.
Note that it is no longer possible to track revenues without associated event tokens. You might need
to create an additional event token in your dashboard.

*Please note* - the revenue format has been changed from a cent float to a whole currency-unit float.
Current revenue tracking must be adjusted to whole currency units (i.e., divided by 100) in order to
remain consistent.

##### Before

```cs
Adjust.trackRevenue(1.0, "{EventToken}");
```

##### After

```cs
var adjustEvent = new AdjustEvent("{EventToken}");
adjustEvent.setRevenue(0.01, "EUR");

Adjust.trackEvent(adjustEvent);
```
## Migrate your Adjust SDK for Cordova to 4.32.0 from 3.4.1

### Migration procedure

Go to your project's folder and remove any previous version of the adjust SDK plugin you have.

```
> cordova plugins rm com.adjust.sdk
Uninstalling com.adjust.sdk from android
Uninstalling com.adjust.sdk from ios
```

After you have successfully removed previous version of plugin, install latest version of plugin.

```
> cordova plugin add path_to_folder/cordova_sdk
Installing "com.adjust.sdk" for android
Installing "com.adjust.sdk" for ios
```

In previous versions, you had to copy the adjust `hooks` folder to your project's root folder. By
doing this, you had `hooks/after_prepare/replace_adjust.js` in your project's folder. If
`after_prepare/replace_adjust.js` is the only content of your `hooks` folder, you can delete entire
`hooks` folder. If you have some other hooks you are using in your app, then delete just
`replace_adjust.js` file from `hooks/after_prepare` folder.

### SDK initialization

We have changed how you configure and start the adjust SDK. All initial setup is now done with a new
instance of the `AdjustConfig` object. The following steps should now be taken to configure the adjust SDK:

1. Create an instance of an `AdjustConfig` config object with the app token and environment.
2. Optionally, you can now call methods of the `AdjustConfig` object to specify available options.
3. Launch the SDK by invoking `Adjust.create` with the config object.

Here is an example of how the setup might look before and after the migration:

##### Before

You needed to edit `adjust.json` file and to replace predefined properties with your own.

```javascript
{
"appToken" : "{yourAppToken}",
"environment" : "sandbox",
"logLevel" : "info",
"enableEventBuffering" : "false"
}
```

`replace_adjust.js` was taking care that values you set in this file be used when your app starts
and the adjust instance was automatically initialized with these values for you.

##### After

```cs
var adjustConfig = new AdjustConfig("{YourAppToken}", AdjustConfig.EnvironmentSandbox);
adjustConfig.setLogLevel(AdjustConfig.LogLevelVerbose);

Adjust.create(adjustConfig);
```

### Event tracking

We also introduced proper event objects that are set up before they are tracked. Again, an example of how it
might look like before and after:

##### Before

```javascript
Adjust.trackEvent('{EventToken}');
```

##### After

```javascript
var adjustEvent = new AdjustEvent("{EventToken}");
Adjust.trackEvent(adjustEvent);
```

### Revenue tracking

Revenues are now handled like normal events. You just set a revenue and a currency to track revenues.
Note that it is no longer possible to track revenues without associated event tokens. You might need
to create an additional event token in your dashboard.

*Please note* - the revenue format has been changed from a cent float to a whole currency-unit float.
Current revenue tracking must be adjusted to whole currency units (i.e., divided by 100) in order to
remain consistent.

##### Before

```cs
Adjust.trackRevenue(1.0, "{EventToken}");
```

##### After

```cs
var adjustEvent = new AdjustEvent("{EventToken}");
adjustEvent.setRevenue(0.01, "EUR");

Adjust.trackEvent(adjustEvent);
```
Loading

0 comments on commit 56e229c

Please sign in to comment.