Skip to content

Commit

Permalink
Merge pull request #304 from adjust/v501
Browse files Browse the repository at this point in the history
Version 5.0.1
  • Loading branch information
uerceg authored Aug 19, 2024
2 parents e32e0b3 + c9df770 commit a7528f3
Show file tree
Hide file tree
Showing 23 changed files with 27 additions and 3,700 deletions.
2 changes: 2 additions & 0 deletions Assets/Adjust/Example/Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ void OnGUI()
{
AdjustConfig adjustConfig = new AdjustConfig("2fm9gkqubvpc", AdjustEnvironment.Sandbox);
adjustConfig.LogLevel = AdjustLogLevel.Verbose;
adjustConfig.AttributionChangedDelegate = AttributionChangedCallback;
adjustConfig.DeferredDeeplinkDelegate = DeferredDeeplinkCallback;
Adjust.InitSdk(adjustConfig);

isEnabled = true;
Expand Down
6 changes: 4 additions & 2 deletions Assets/Adjust/Native/iOS/AdjustUnityAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ + (IMP)swizzleOriginalSelector:(SEL)originalSelector
- (BOOL)adjust_application:(UIApplication *)application
openURL:(NSURL *)url
options:(NSDictionary *)options {
[Adjust processDeeplink:url];
ADJDeeplink *deeplink = [[ADJDeeplink alloc] initWithDeeplink:url];
[Adjust processDeeplink:deeplink];
return original_openURL ? original_openURL(self, _cmd, application, url, options) : YES;
}

Expand All @@ -65,7 +66,8 @@ - (BOOL)adjust_application:(UIApplication *)application
restorationHandler:(void (^)(NSArray *restorableObjects))restorationHandler {
if ([[userActivity activityType] isEqualToString:NSUserActivityTypeBrowsingWeb]) {
NSURL *url = [userActivity webpageURL];
[Adjust processDeeplink:url];
ADJDeeplink *deeplink = [[ADJDeeplink alloc] initWithDeeplink:url];
[Adjust processDeeplink:deeplink];
}
return original_continueUserActivity ? original_continueUserActivity(self, _cmd, application, userActivity, restorationHandler) : YES;
}
Expand Down
6 changes: 3 additions & 3 deletions Assets/Adjust/Native/iOS/AdjustUnityDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ + (id)getInstanceWithAttributionCallback:(AdjustDelegateAttributionCallback)attr
withSelector:@selector(adjustSessionTrackingFailedWannabe:)];
}
if (deferredDeeplinkCallback != nil) {
[defaultInstance swizzleOriginalSelector:@selector(adjustDeeplinkResponse:)
withSelector:@selector(adjustDeeplinkResponseWannabe:)];
[defaultInstance swizzleOriginalSelector:@selector(adjustDeferredDeeplinkReceived:)
withSelector:@selector(adjustDeferredDeeplinkReceivedWannabe:)];
}
if (skanUpdatedCallback != nil) {
[defaultInstance swizzleOriginalSelector:@selector(adjustSkanUpdatedWithConversionData:)
Expand Down Expand Up @@ -270,7 +270,7 @@ - (void)adjustSessionTrackingFailedWannabe:(ADJSessionFailure *)sessionFailureRe
_sessionFailureCallback(charArraySessionFailure);
}

- (BOOL)adjustDeeplinkResponseWannabe:(NSURL *)deeplink {
- (BOOL)adjustDeferredDeeplinkReceivedWannabe:(NSURL *)deeplink {
if (_deferredDeeplinkCallback != nil) {
NSString *stringDeeplink = [deeplink absoluteString];
const char* charDeeplink = [stringDeeplink UTF8String];
Expand Down
2 changes: 1 addition & 1 deletion Assets/Adjust/Scripts/AdjustAndroid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace AdjustSdk
#if UNITY_ANDROID
public class AdjustAndroid
{
private const string sdkPrefix = "unity5.0.0";
private const string sdkPrefix = "unity5.0.1";
private static bool isDeferredDeeplinkOpeningEnabled = true;
private static AndroidJavaClass ajcAdjust = new AndroidJavaClass("com.adjust.sdk.Adjust");
private static AndroidJavaObject ajoCurrentActivity = new AndroidJavaClass("com.unity3d.player.UnityPlayer").GetStatic<AndroidJavaObject>("currentActivity");
Expand Down
2 changes: 1 addition & 1 deletion Assets/Adjust/Scripts/AdjustiOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace AdjustSdk
#if UNITY_IOS
public class AdjustiOS
{
private const string sdkPrefix = "unity5.0.0";
private const string sdkPrefix = "unity5.0.1";

// app callbacks as method parameters
private static List<Action<bool>> appIsEnabledGetterCallbacks;
Expand Down
4 changes: 2 additions & 2 deletions Assets/Adjust/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.adjust.sdk",
"version": "5.0.0",
"version": "5.0.1",
"unity": "2019.4",
"displayName": "Adjust",
"license": "MIT",
Expand All @@ -9,4 +9,4 @@
"name": "Adjust",
"url": "https://github.com/adjust/unity_sdk"
}
}
}
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
### Version 5.0.1 (19th August 2024)
#### Fixed
- Fixed handling of deferred deep links on iOS platform.

#### Changed
- Added attribution and deferred deep link callbacks to example app.

#### Native SDKs
- [iOS@v5.0.0][ios_sdk_v5.0.0]
- [Android@v5.0.0][android_sdk_v5.0.0]

---

### Version 5.0.0 (12th August 2024)

We're excited to release our major new SDK version (v5). Among many internal improvements, our spoofing protection solution is now included out of the box, reinforcing our commitment to accurate, actionable, and fraud-free data.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.38.1
5.0.1
1,081 changes: 0 additions & 1,081 deletions doc/chinese/README.md

This file was deleted.

24 changes: 0 additions & 24 deletions doc/chinese/sdk-to-sdk/mopub.md

This file was deleted.

95 changes: 0 additions & 95 deletions doc/english/migration/migrate.md

This file was deleted.

44 changes: 0 additions & 44 deletions doc/english/plugins/imei.md

This file was deleted.

36 changes: 0 additions & 36 deletions doc/english/plugins/oaid.md

This file was deleted.

32 changes: 0 additions & 32 deletions doc/english/sdk-to-sdk/admob.md

This file was deleted.

40 changes: 0 additions & 40 deletions doc/english/sdk-to-sdk/applovin-max.md

This file was deleted.

Loading

0 comments on commit a7528f3

Please sign in to comment.