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
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,27 @@
### Version 4.37.0 (30th January 2024)
#### Added
- Added ability to process shortened deep links and provide the unshortened link back as a response. You can achieve this by invoking `processDeeplink` method of the `Adjust` instance.
- Added support for Meta install referrer.
- Added getter for obtaining IDFV value of the iOS device. You can obtain IDFV value by calling `getIdfv` method of the `Adjust` instance.
- Added support for Google Play Games on PC.
- Added support for `TopOn` and `AD(X)` ad revenue tracking.
- Added a new type of URL strategy called `AdjustConfig.AdjustUrlStrategyCnOnly`. This URL strategy represents `AdjustConfig.AdjustUrlStrategyCn` strategy, but without fallback domains.
- Added ability to indicate if the device IDs should be read just once per SDK initialization via calling `setReadDeviceInfoOnceEnabled` method of the `AdjustConfig` instance.

#### Native SDKs
- [[email protected]][ios_sdk_v4.37.0]
- [[email protected]][android_sdk_v4.38.1]

---

### Version 4.35.1 (10th October 2023)
#### Added
- Added sending of `event_callback_id` parameter (if set) with the event payload.

#### Native SDKs
- [[email protected]][ios_sdk_v4.35.2]
- [[email protected]][android_sdk_v4.35.1]

---

### Version 4.35.0 (6th October 2023)
Expand Down Expand Up @@ -589,6 +606,7 @@
[ios_sdk_v4.33.3]: https://github.com/adjust/ios_sdk/tree/v4.33.3
[ios_sdk_v4.35.1]: https://github.com/adjust/ios_sdk/tree/v4.35.1
[ios_sdk_v4.35.2]: https://github.com/adjust/ios_sdk/tree/v4.35.2
[ios_sdk_v4.37.0]: https://github.com/adjust/ios_sdk/tree/v4.37.0

[android_sdk_v4.10.4]: https://github.com/adjust/android_sdk/tree/v4.10.4
[android_sdk_v4.11.0]: https://github.com/adjust/android_sdk/tree/v4.11.0
Expand Down Expand Up @@ -623,3 +641,4 @@
[android_sdk_v4.33.2]: https://github.com/adjust/android_sdk/tree/v4.33.2
[android_sdk_v4.35.0]: https://github.com/adjust/android_sdk/tree/v4.35.0
[android_sdk_v4.35.1]: https://github.com/adjust/android_sdk/tree/v4.35.1
[android_sdk_v4.38.1]: https://github.com/adjust/android_sdk/tree/v4.38.1
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.35.1
4.37.0
Binary file modified android/libs/adjust-android.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="com.google.android.gms.permission.AD_ID"/>

<queries>
<package android:name="com.facebook.katana" />
</queries>
<queries>
<package android:name="com.instagram.android" />
</queries>

<application>
<receiver
android:name="com.adjust.sdk.AdjustReferrerReceiver"
Expand Down
34 changes: 34 additions & 0 deletions android/src/main/java/com/adjust/sdk/Adjust.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ public void create(ReadableMap mapConfig) {
String externalDeviceId = null;
String urlStrategy = null;
String preinstallFilePath = null;
String fbAppId = null;
long secretId = 0L;
long info1 = 0L;
long info2 = 0L;
Expand All @@ -128,6 +129,7 @@ public void create(ReadableMap mapConfig) {
boolean playStoreKidsAppEnabled = false;
boolean coppaCompliantEnabled = false;
boolean finalAndroidAttributionEnabled = false;
boolean readDeviceInfoOnceEnabled = false;

// Suppress log level.
if (checkKey(mapConfig, "logLevel")) {
Expand Down Expand Up @@ -213,6 +215,8 @@ public void create(ReadableMap mapConfig) {
adjustConfig.setUrlStrategy(AdjustConfig.URL_STRATEGY_INDIA);
} else if (urlStrategy.equalsIgnoreCase("cn")) {
adjustConfig.setUrlStrategy(AdjustConfig.URL_STRATEGY_CN);
} else if (urlStrategy.equalsIgnoreCase("cn-only")) {
adjustConfig.setUrlStrategy(AdjustConfig.URL_STRATEGY_CN_ONLY);
} else if (urlStrategy.equalsIgnoreCase("data-residency-eu")) {
adjustConfig.setUrlStrategy(AdjustConfig.DATA_RESIDENCY_EU);
} else if (urlStrategy.equalsIgnoreCase("data-residency-us")) {
Expand All @@ -234,6 +238,12 @@ public void create(ReadableMap mapConfig) {
adjustConfig.setPreinstallFilePath(preinstallFilePath);
}

// FB app ID (meta install referrer).
if (checkKey(mapConfig, "fbAppId")) {
fbAppId = mapConfig.getString("fbAppId");
adjustConfig.setFbAppId(fbAppId);
}

// App secret.
if (checkKey(mapConfig, "secretId")
&& checkKey(mapConfig, "info1")
Expand Down Expand Up @@ -311,6 +321,12 @@ && checkKey(mapConfig, "info4")) {
adjustConfig.setFinalAttributionEnabled(finalAndroidAttributionEnabled);
}

// Read device info only once.
if (checkKey(mapConfig, "readDeviceInfoOnceEnabled")) {
readDeviceInfoOnceEnabled = mapConfig.getBoolean("readDeviceInfoOnceEnabled");
adjustConfig.setReadDeviceInfoOnceEnabled(readDeviceInfoOnceEnabled);
}

// Attribution callback.
if (attributionCallback) {
adjustConfig.setOnAttributionChangedListener(this);
Expand Down Expand Up @@ -704,6 +720,11 @@ public void getIdfa(Callback callback) {
callback.invoke("");
}

@ReactMethod
public void getIdfv(Callback callback) {
callback.invoke("");
}

@ReactMethod
public void getGoogleAdId(final Callback callback) {
com.adjust.sdk.Adjust.getGoogleAdId(getReactApplicationContext(), new com.adjust.sdk.OnDeviceIdsRead() {
Expand Down Expand Up @@ -852,6 +873,19 @@ public void onVerificationFinished(AdjustPurchaseVerificationResult verification
});
}

@ReactMethod
public void processDeeplink(String strUri, Callback callback) {
final Uri uri = Uri.parse(strUri);

// Process deeplink.
com.adjust.sdk.Adjust.processDeeplink(uri, getReactApplicationContext(), new OnDeeplinkResolvedListener() {
@Override
public void onDeeplinkResolved(String resolvedLink) {
callback.invoke(resolvedLink);
}
});
}

@ReactMethod
public void checkForNewAttStatus() {
// do nothing
Expand Down
16 changes: 8 additions & 8 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PODS:
- Adjust (4.35.2):
- Adjust/Core (= 4.35.2)
- Adjust/Core (4.35.2)
- Adjust (4.37.0):
- Adjust/Core (= 4.37.0)
- Adjust/Core (4.37.0)
- boost (1.76.0)
- CocoaAsyncSocket (7.6.5)
- DoubleConversion (1.1.6)
Expand Down Expand Up @@ -287,8 +287,8 @@ PODS:
- React-jsinspector (0.69.4)
- React-logger (0.69.4):
- glog
- react-native-adjust (4.35.1):
- Adjust (= 4.35.2)
- react-native-adjust (4.37.0):
- Adjust (= 4.37.0)
- React-Core
- React-perflogger (0.69.4)
- React-RCTActionSheet (0.69.4):
Expand Down Expand Up @@ -508,7 +508,7 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon/yoga"

SPEC CHECKSUMS:
Adjust: cac836ba910f868b38d0350045aaf498f794719a
Adjust: 86a6935688251ca6cea371f9b284578ccf3d981b
boost: a7c83b31436843459a1961bfd74b96033dc77234
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
Expand Down Expand Up @@ -541,7 +541,7 @@ SPEC CHECKSUMS:
React-jsiexecutor: a27badbbdbc0ff781813370736a2d1c7261181d4
React-jsinspector: 8a3d3f5dcd23a91e8c80b1bf0e96902cd1dca999
React-logger: 1088859f145b8f6dd0d3ed051a647ef0e3e80fad
react-native-adjust: 4bbce119ab6613cfa7b95af94e5802ab492dcf07
react-native-adjust: 667739bee69c6878375b0d09bc0f35934fb72ed3
React-perflogger: cb386fd44c97ec7f8199c04c12b22066b0f2e1e0
React-RCTActionSheet: f803a85e46cf5b4066c2ac5e122447f918e9c6e5
React-RCTAnimation: 19c80fa950ccce7f4db76a2a7f2cf79baae07fc7
Expand All @@ -560,4 +560,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 3e8fef6186a492afd4504d65ef4a2ad6fbbb9ab4

COCOAPODS: 1.12.1
COCOAPODS: 1.14.3
Loading