Skip to content

Commit 8c944ce

Browse files
authored
Merge pull request #206 from adjust/v4330
Version 4.33.0
2 parents 87f06f7 + fee009e commit 8c944ce

34 files changed

+1484
-702
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
### Version 4.33.0 (15th January 2023)
2+
#### Added
3+
- Added support for SKAdNetwork 4.0.
4+
- Added support for setting a new China URL Strategy. You can choose this setting by calling `setUrlStrategy` method of `AdjustConfig` instance with `AdjustConfig.UrlStrategyCn` parameter.
5+
- Added support to OAID plugin for MSA SDK v2.0.0.
6+
7+
#### Native SDKs
8+
- [[email protected]][ios_sdk_v4.33.3]
9+
- [[email protected]][android_sdk_v4.33.2]
10+
11+
---
12+
113
### Version 4.32.1 (14th November 2022)
214
#### Fixed
315
- Fixed conversion bug which caused `transaction_date` parameter of iOS subscription tracking to be wrongly formatted.
@@ -551,6 +563,7 @@
551563
[ios_sdk_v4.29.6]: https://github.com/adjust/ios_sdk/tree/v4.29.6
552564
[ios_sdk_v4.31.0]: https://github.com/adjust/ios_sdk/tree/v4.31.0
553565
[ios_sdk_v4.32.1]: https://github.com/adjust/ios_sdk/tree/v4.32.1
566+
[ios_sdk_v4.33.3]: https://github.com/adjust/ios_sdk/tree/v4.33.3
554567

555568
[android_sdk_v4.10.4]: https://github.com/adjust/android_sdk/tree/v4.10.4
556569
[android_sdk_v4.11.0]: https://github.com/adjust/android_sdk/tree/v4.11.0
@@ -582,3 +595,4 @@
582595
[android_sdk_v4.28.9]: https://github.com/adjust/android_sdk/tree/v4.28.9
583596
[android_sdk_v4.31.0]: https://github.com/adjust/android_sdk/tree/v4.31.0
584597
[android_sdk_v4.32.0]: https://github.com/adjust/android_sdk/tree/v4.32.0
598+
[android_sdk_v4.33.2]: https://github.com/adjust/android_sdk/tree/v4.33.2

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.32.1
1+
4.33.0

android/libs/adjust-android.jar

3.17 KB
Binary file not shown.

android/src/main/java/com/adjust/sdk/Adjust.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ public void create(ReadableMap mapConfig) {
210210
adjustConfig.setUrlStrategy(AdjustConfig.URL_STRATEGY_CHINA);
211211
} else if (urlStrategy.equalsIgnoreCase("india")) {
212212
adjustConfig.setUrlStrategy(AdjustConfig.URL_STRATEGY_INDIA);
213+
} else if (urlStrategy.equalsIgnoreCase("cn")) {
214+
adjustConfig.setUrlStrategy(AdjustConfig.URL_STRATEGY_CN);
213215
} else if (urlStrategy.equalsIgnoreCase("data-residency-eu")) {
214216
adjustConfig.setUrlStrategy(AdjustConfig.DATA_RESIDENCY_EU);
215217
} else if (urlStrategy.equalsIgnoreCase("data-residency-us")) {

example/ios/Podfile.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PODS:
2-
- Adjust (4.32.1):
3-
- Adjust/Core (= 4.32.1)
4-
- Adjust/Core (4.32.1)
2+
- Adjust (4.33.3):
3+
- Adjust/Core (= 4.33.3)
4+
- Adjust/Core (4.33.3)
55
- boost (1.76.0)
66
- CocoaAsyncSocket (7.6.5)
77
- DoubleConversion (1.1.6)
@@ -287,8 +287,8 @@ PODS:
287287
- React-jsinspector (0.69.4)
288288
- React-logger (0.69.4):
289289
- glog
290-
- react-native-adjust (4.32.1):
291-
- Adjust (= 4.32.1)
290+
- react-native-adjust (4.33.0):
291+
- Adjust (= 4.33.3)
292292
- React-Core
293293
- React-perflogger (0.69.4)
294294
- React-RCTActionSheet (0.69.4):
@@ -508,7 +508,7 @@ EXTERNAL SOURCES:
508508
:path: "../node_modules/react-native/ReactCommon/yoga"
509509

510510
SPEC CHECKSUMS:
511-
Adjust: 3030e2e086023cb6cadef374b500b6cc263bb9d0
511+
Adjust: 41d0d5c031409aebe7fb1f5703ff0d3306133439
512512
boost: a7c83b31436843459a1961bfd74b96033dc77234
513513
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
514514
DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
@@ -541,7 +541,7 @@ SPEC CHECKSUMS:
541541
React-jsiexecutor: a27badbbdbc0ff781813370736a2d1c7261181d4
542542
React-jsinspector: 8a3d3f5dcd23a91e8c80b1bf0e96902cd1dca999
543543
React-logger: 1088859f145b8f6dd0d3ed051a647ef0e3e80fad
544-
react-native-adjust: 8b0e252bd8a20ec4144ee2dc8f86d862635ce5db
544+
react-native-adjust: 5f5966b51459bf8cb074bf8ebc1307a2bfb7b1da
545545
React-perflogger: cb386fd44c97ec7f8199c04c12b22066b0f2e1e0
546546
React-RCTActionSheet: f803a85e46cf5b4066c2ac5e122447f918e9c6e5
547547
React-RCTAnimation: 19c80fa950ccce7f4db76a2a7f2cf79baae07fc7

example/yarn.lock

Lines changed: 410 additions & 292 deletions
Large diffs are not rendered by default.

ext/android/sdk

Submodule sdk updated 54 files

ext/ios/sdk

Submodule sdk updated 258 files

index.d.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ declare module 'react-native-adjust' {
6060
conversionValue: number
6161
}
6262

63+
interface AdjustSkad4Data {
64+
fineValue: number
65+
coarseValue: string
66+
lockWindow: boolean
67+
}
68+
6369
export class AdjustConfig {
6470
constructor(appToken: string, environment: Environment)
6571
public setLogLevel(level: LogLevel): void
@@ -119,6 +125,10 @@ declare module 'react-native-adjust' {
119125
callback: (conversionValue: AdjustConversionValue) => void
120126
): void
121127

128+
public setSkad4ConversionValueUpdatedCallbackListener(
129+
callback: (skad4Data: AdjustSkad4Data) => void
130+
): void
131+
122132
static LogLevelVerbose: LogLevel
123133
static LogLevelDebug: LogLevel
124134
static LogLevelInfo: LogLevel
@@ -130,6 +140,7 @@ declare module 'react-native-adjust' {
130140
static EnvironmentProduction: Environment
131141
static UrlStrategyChina: UrlStrategy
132142
static UrlStrategyIndia: UrlStrategy
143+
static UrlStrategyCn: UrlStrategy
133144
static DataResidencyEU: UrlStrategy
134145
static DataResidencyTR: UrlStrategy
135146
static DataResidencyUS: UrlStrategy
@@ -213,6 +224,8 @@ declare module 'react-native-adjust' {
213224
convertUniversalLink: (url: string, scheme: string, callback: (convertedUrl: string) => void) => void
214225
requestTrackingAuthorizationWithCompletionHandler: (handler: (status: number) => void) => void
215226
updateConversionValue: (conversionValue: number) => void
227+
updateConversionValueWithErrorCallback: (conversionValue: number, callback: (error: string) => void) => void
228+
updateConversionValueWithSkad4ErrorCallback: (conversionValue: number, coarseValue: string, lockWindow: boolean, callback: (error: string) => void) => void
216229
getAppTrackingAuthorizationStatus: (callback: (authorizationStatus: number) => void) => void
217230
trackThirdPartySharing: (adjustThirdPartySharing: AdjustThirdPartySharing) => void
218231
trackMeasurementConsent: (measurementConsent: boolean) => void

index.js

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Adjust.getAmazonAdId = function(callback) {
132132
};
133133

134134
Adjust.getSdkVersion = function(callback) {
135-
module_adjust.getSdkVersion("react-native4.32.1", callback);
135+
module_adjust.getSdkVersion("react-native4.33.0", callback);
136136
};
137137

138138
Adjust.setReferrer = function(referrer) {
@@ -156,6 +156,14 @@ Adjust.updateConversionValue = function(conversionValue) {
156156
module_adjust.updateConversionValue(conversionValue);
157157
};
158158

159+
Adjust.updateConversionValueWithErrorCallback = function(conversionValue, callback) {
160+
module_adjust.updateConversionValueWithErrorCallback(conversionValue, callback);
161+
};
162+
163+
Adjust.updateConversionValueWithSkad4ErrorCallback = function(conversionValue, coarseValue, lockWindow, callback) {
164+
module_adjust.updateConversionValueWithSkad4ErrorCallback(conversionValue, coarseValue, lockWindow, callback);
165+
};
166+
159167
Adjust.getAppTrackingAuthorizationStatus = function(callback) {
160168
module_adjust.getAppTrackingAuthorizationStatus(callback);
161169
};
@@ -242,7 +250,7 @@ Adjust.onPause = function(testParam) {
242250
// AdjustConfig
243251

244252
var AdjustConfig = function(appToken, environment) {
245-
this.sdkPrefix = "react-native4.32.1";
253+
this.sdkPrefix = "react-native4.33.0";
246254
this.appToken = appToken;
247255
this.environment = environment;
248256
this.logLevel = null;
@@ -294,9 +302,11 @@ AdjustConfig.SessionTrackingSucceededSubscription = null;
294302
AdjustConfig.SessionTrackingFailedSubscription = null;
295303
AdjustConfig.DeferredDeeplinkSubscription = null;
296304
AdjustConfig.ConversionValueUpdatedSubscription = null;
305+
AdjustConfig.Skad4ConversionValueUpdatedSubscription = null;
297306

298307
AdjustConfig.UrlStrategyChina = "china";
299308
AdjustConfig.UrlStrategyIndia = "india";
309+
AdjustConfig.UrlStrategyCn = "cn";
300310

301311
AdjustConfig.DataResidencyEU = "data-residency-eu";
302312
AdjustConfig.DataResidencyTR = "data-residency-tr";
@@ -484,6 +494,17 @@ AdjustConfig.prototype.setConversionValueUpdatedCallbackListener = function(conv
484494
}
485495
};
486496

497+
AdjustConfig.prototype.setSkad4ConversionValueUpdatedCallbackListener = function(skad4ConversionValueUpdatedCallbackListener) {
498+
if (Platform.OS === "ios") {
499+
if (null == AdjustConfig.Skad4ConversionValueUpdatedSubscription) {
500+
module_adjust.setSkad4ConversionValueUpdatedCallbackListener();
501+
AdjustConfig.Skad4ConversionValueUpdatedSubscription = module_adjust_emitter.addListener(
502+
'adjust_skad4ConversionValueUpdated', skad4ConversionValueUpdatedCallbackListener
503+
);
504+
}
505+
}
506+
};
507+
487508
// AdjustEvent
488509

489510
var AdjustEvent = function(eventToken) {

0 commit comments

Comments
 (0)