Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ The adjust plugin automatically registers with the cordova events `deviceready`,
To configure the parameters of your app to adjust, follow these steps:

1. Open the file `plugins/com.adjust.sdk/config/adjust.json`.
2. Replace the `appToken` value with the App Token that you can find in your [dashboard].
2. Replace the `appToken` value with the App Token that you can find in your [dashboard].
3. Copy the the adjust hook folder `plugins/com.adjust.sdk/hooks` to the root of your project. It contains the script to replace the configuration values from the `adjust.json` file.
4. There should be a new file `hooks/after_prepare/replace_adjust.js` located at the root of your project. Check if this file has execute permission and add the permission if needed.

Depending on whether or not you build your app for testing or for production
you must set the key `environment` with one of these values:
Expand Down Expand Up @@ -66,6 +67,20 @@ If your app makes heavy use of event tracking, you might want to delay some
HTTP requests in order to send them in one batch every minute. You can enable
event buffering by setting the key `enableEventBuffering` to `true`.

#### Google Play Store

Since the 1st of August of 2014, apps in the Google Play Store must use the [Google Advertising ID][google_ad_id] to uniquely identify the devices. To allow the adjust SDK to use the Google Advertising ID, you must integrate the [Google Play Services][google_play_services].

You can integrate Google Play Services into a Cordova project by installing a corresponding [plugin][google_play_services_plugin].

If you are using Proguard, add these lines to your Proguard file:

````
-keep class com.adjust.sdk.** { *; }
-keep class com.google.android.gms.common.** { *; }
-keep class com.google.android.gms.ads.identifier.** { *; }
```

## Additional Features

Once you integrated the adjust SDK into your project, you can take advantage of
Expand Down Expand Up @@ -190,6 +205,9 @@ Please make sure to consider [applicable attribution data policies.][attribution
[dashboard]: http://adjust.com
[releases]: https://github.com/adjust/cordova_sdk/releases
[attribution-data]: https://github.com/adjust/sdks/blob/master/doc/attribution-data.md
[google_play_services]: http://developer.android.com/google/play-services/index.html
[google_ad_id]: https://developer.android.com/google/play-services/id.html
[google_play_services_plugin]: https://github.com/MobileChromeApps/google-play-services

## License

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.4.0
3.4.1
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"version": "3.4.0",
"version": "3.4.1",
"name": "com.adjust.cordova",
"cordova_name": "Adjust SDK Cordova Plugin",
"description": "Cordova plugin for the Adjust SDK 3.4.0",
"description": "Cordova plugin for the Adjust SDK 3.4.1",
"license": "MIT License",
"platforms": [
"ios",
Expand Down
5 changes: 4 additions & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="com.adjust.sdk"
version="3.4.0">
version="3.4.1">

<name>Adjust</name>
<description>Adjust plugin for Cordova</description>
Expand Down Expand Up @@ -80,5 +80,8 @@
<source-file src="src/ios/Adjust/Adjust/AIAdditions/NSString+AIAdditions.m" />
<header-file src="src/ios/Adjust/Adjust/AIAdditions/UIDevice+AIAdditions.h" />
<source-file src="src/ios/Adjust/Adjust/AIAdditions/UIDevice+AIAdditions.m" />

<framework src="AdSupport.framework" weak="true" />
<framework src="iAd.framework" weak="true" />
</platform>
</plugin>
2 changes: 1 addition & 1 deletion src/android/com/adjust/sdk/AdjustCordova.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public boolean execute(String action, JSONArray args,
Adjust.appDidLaunch(this.cordova.getActivity(), appToken,
environment, logLevel, eventBuffering);

Adjust.setSdkPrefix("cordova3.4.0");
Adjust.setSdkPrefix("cordova3.4.1");
Adjust.onResume(this.cordova.getActivity());

return true;
Expand Down
2 changes: 1 addition & 1 deletion src/ios/AdjustCordova.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ - (void)appDidLaunch:(CDVInvokedUrlCommand *)command {
NSString *appToken = [command.arguments objectAtIndex:0];
[Adjust appDidLaunch:appToken];

[Adjust setSdkPrefix:@"cordova3.4.0"];
[Adjust setSdkPrefix:@"cordova3.4.1"];

NSString *environment = [command.arguments objectAtIndex:1];
[Adjust setEnvironment:environment];
Expand Down