Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 5.0.0 #45

Merged
merged 75 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
a9dfc51
Temp use of v5 ios dev ext
nonelse Jun 27, 2024
7c642ea
Add first config changes
nonelse Jun 27, 2024
87cf995
Add first API changes
nonelse Jul 1, 2024
552ba46
Migrate config and public API in iOs
nonelse Jul 18, 2024
ad9950d
Rename purchase and subscription
nonelse Aug 16, 2024
19d0aaf
Add some android changes
nonelse Aug 19, 2024
5d30fdc
Couple Android methods
nonelse Aug 21, 2024
4a7775e
Add Android adid callbacks
nonelse Aug 21, 2024
31dff99
Add attribution getter
nonelse Aug 23, 2024
38ffe7f
Add last deeplink callback
nonelse Aug 23, 2024
1248976
Add sdk version callback
nonelse Aug 23, 2024
870d0f6
Update purchase verification
nonelse Aug 23, 2024
f0368c2
Add verify and track
nonelse Aug 23, 2024
20d53ac
Remove mobile equipament
nonelse Aug 27, 2024
e75f899
Enable preinstall
nonelse Aug 27, 2024
704633d
Android enable cost
nonelse Aug 27, 2024
7a80a03
Enable play store
nonelse Aug 27, 2024
96c813d
Remove final attribution setter
nonelse Aug 27, 2024
637c101
Android read once
nonelse Aug 27, 2024
c3e8fc7
Android sending background
nonelse Aug 27, 2024
bd804c6
Fix adjust header ios import
nonelse Aug 29, 2024
83905c6
Update ios deeplink
nonelse Aug 29, 2024
fa71a6f
Fix timestamp ios renaming
nonelse Aug 29, 2024
9c5d72d
Enable coppa compliance
nonelse Aug 29, 2024
02b588b
Remove receipt
nonelse Aug 30, 2024
292f50e
Add android test option ignore lifecycle
nonelse Aug 30, 2024
15de999
Replace url strategy android
nonelse Aug 30, 2024
d5fed73
Android process deeplink
nonelse Aug 30, 2024
bd088a7
set dedup max size
nonelse Aug 30, 2024
9f59cc3
Test options
nonelse Sep 4, 2024
44c7c99
Update version
nonelse Sep 4, 2024
95ee679
Delete removed feature from tests
nonelse Sep 4, 2024
e80effc
Rename track ad revenue new
nonelse Sep 4, 2024
6e5ccb5
Fix test option key setting
nonelse Sep 4, 2024
87a0f32
Attribution getter testing
nonelse Sep 5, 2024
60e047f
Add test config features
nonelse Sep 5, 2024
1a99ba0
Fix key value global iOs parameters
nonelse Sep 5, 2024
4f8348f
Fix tps iOs
nonelse Sep 5, 2024
64c9bf5
Various test fixes
nonelse Sep 6, 2024
98d381f
Add event dedup
nonelse Sep 6, 2024
4b4b92d
Fix Android compile errors
nonelse Sep 16, 2024
273bb28
refac: add null checks for all ios callbacks
uerceg Sep 19, 2024
983228f
Fix Android test lib jni
nonelse Sep 23, 2024
a3627e5
Fix Android test default initial values
nonelse Sep 23, 2024
c639cb5
Fix JNI for deferred deeplink callback
nonelse Sep 24, 2024
bb4d66b
Use static for capture lambdas in callback
nonelse Sep 24, 2024
34c1081
Add android callback proxy changeys
nonelse Sep 24, 2024
539af25
Add test command for event purchase token
nonelse Sep 24, 2024
ee64427
Fix verify and JNI issues
nonelse Sep 24, 2024
1f82006
build: update submodules and switch to https
uerceg Sep 24, 2024
57c69fd
Android build script
nonelse Sep 24, 2024
dac2914
Remove onResume by default after init
nonelse Sep 24, 2024
200a14f
build: run android tests
uerceg Sep 24, 2024
df41081
Inject sdk prefix in sdk version
nonelse Sep 24, 2024
f226b4c
refac: return empty strings in case of invalid getter states
uerceg Sep 24, 2024
d1636a2
build: update dist dir content
uerceg Sep 25, 2024
3c1246e
build: switch from jar to aar natively
uerceg Sep 25, 2024
2afec98
build: fix test library jar lookup path for release build
uerceg Sep 25, 2024
16eeee8
refac: rename methods and clean up a bit
uerceg Sep 26, 2024
f0d5661
fix: fix adjust delegate swizzling
uerceg Sep 26, 2024
bd4a780
chore: clean up source files header comments
uerceg Sep 26, 2024
6fb66a2
build: switch to static xcframework
uerceg Sep 26, 2024
d68f9e8
fix: fix some android getters jni logic
uerceg Sep 26, 2024
c41989e
fix: fix is enabled getter jni logic and rename skan callback
uerceg Sep 26, 2024
a3fc147
feat: add disable idfv feature
uerceg Sep 26, 2024
4bfffac
fix: fix skan updated callback renaming
uerceg Sep 26, 2024
312a77f
build: revert build script to work with static framework
uerceg Sep 30, 2024
bf60e76
refac: adjust to fixed native android SUPPRESS log level typo
uerceg Sep 30, 2024
b45b563
fix: don't cache one time getter callbacks
uerceg Sep 30, 2024
d55f99d
test: run tests
uerceg Sep 30, 2024
97f87b8
docs: update readme
uerceg Sep 30, 2024
e5bed4f
docs: update changelog
uerceg Sep 30, 2024
af9088f
docs: update changelog
uerceg Oct 2, 2024
57616ff
docs: update readme
uerceg Oct 2, 2024
efc7a55
build: update ios submodule
uerceg Oct 2, 2024
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
6 changes: 2 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
[submodule "ext/ios/sdk"]
path = ext/ios/sdk
url = git@github.com:adjust/ios_sdk.git
branch = master
url = https://github.com/adjust/ios_sdk.git
[submodule "ext/android/sdk"]
path = ext/android/sdk
url = git@github.com:adjust/android_sdk.git
branch = master
url = https://github.com/adjust/android_sdk.git
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
### Version 5.0.0 (2nd October 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.

To try out SDK v5 in your app, you can follow our new v4 to v5 [migration guide](https://dev.adjust.com/en/sdk/cocos2dx/migration/v4-to-v5).

If you are a current Adjust client and have questions about SDK v5, please email [sdk-v5@adjust.com](mailto:sdk-v5@adjust.com).

In case you were using beta version of the SDK v5, please switch to the official v5 release.

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

---

### Version 4.37.0 (22nd January 2024)
#### Added
- Added support for SKAD 4.0.
Expand Down Expand Up @@ -415,6 +431,7 @@
[ios_sdk_v4.29.6]: https://github.com/adjust/ios_sdk/tree/v4.29.6
[ios_sdk_v4.32.1]: https://github.com/adjust/ios_sdk/tree/v4.32.1
[ios_sdk_v4.37.0]: https://github.com/adjust/ios_sdk/tree/v4.37.0
[ios_sdk_v5.0.1]: https://github.com/adjust/ios_sdk/tree/v5.0.1

[android_sdk_v4.0.8]: https://github.com/adjust/android_sdk/tree/v4.0.8
[android_sdk_v4.1.0]: https://github.com/adjust/android_sdk/tree/v4.1.0
Expand All @@ -439,5 +456,6 @@
[android_sdk_v4.28.4]: https://github.com/adjust/android_sdk/tree/v4.28.4
[android_sdk_v4.33.0]: https://github.com/adjust/android_sdk/tree/v4.33.0
[android_sdk_v4.38.0]: https://github.com/adjust/android_sdk/tree/v4.38.0
[android_sdk_v5.0.1]: https://github.com/adjust/android_sdk/tree/v5.0.1

[windows_sdk_v4.0.3]: https://github.com/adjust/windows_sdk/tree/v4.0.3
1,446 changes: 4 additions & 1,442 deletions README.md

Large diffs are not rendered by default.

66 changes: 34 additions & 32 deletions dist/ADJAdjust2dx.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Adjust SDK
//
// Created by Uglješa Erceg (@uerceg) on 17th June 2015.
// Copyright © 2015-2019 Adjust GmbH. All rights reserved.
// Copyright © 2015-Present Adjust GmbH. All rights reserved.
//

#ifndef _ADJUST_ADJADJUST2DX_H_
Expand All @@ -12,58 +12,60 @@
#include <map>
#include <iostream>
#include "ADJEvent2dx.h"
#include "ADJDeeplink2dx.h"
#include "ADJConfig2dx.h"
#include "ADJAppStoreSubscription2dx.h"
#include "ADJThirdPartySharing2dx.h"
#include "ADJAdRevenue2dx.h"
#include "ADJAppStorePurchase2dx.h"
#include "AdjustAttribution2dx.h"
#include "AdjustPurchaseVerificationResult2dx.h"

extern const std::string ADJEnvironmentSandbox2dx;
extern const std::string ADJEnvironmentProduction2dx;

class ADJAdjust2dx {
public:
static void appDidLaunch(ADJConfig2dx adjustConfig);
static void initSdk(ADJConfig2dx adjustConfig);
static void trackEvent(ADJEvent2dx adjustEvent);
static void trackAppStoreSubscription(ADJAppStoreSubscription2dx subscription);
static void trackSubsessionStart();
static void trackSubsessionEnd();
static void setEnabled(bool isEnabled);
static void appWillOpenUrl(std::string url);
static void setDeviceToken(std::string deviceToken);
static void setOfflineMode(bool isOffline);
static void sendFirstPackages();
static void enable();
static void disable();
static void processDeeplink(ADJDeeplink2dx adjustDeeplink);
static void setPushToken(std::string pushToken);
static void switchToOfflineMode();
static void switchBackToOnlineMode();
static void gdprForgetMe();
static void disableThirdPartySharing();
static void addSessionCallbackParameter(std::string key, std::string value);
static void addSessionPartnerParameter(std::string key, std::string value);
static void removeSessionCallbackParameter(std::string key);
static void removeSessionPartnerParameter(std::string key);
static void resetSessionCallbackParameters();
static void resetSessionPartnerParameters();
static void trackAdRevenue(std::string source, std::string payload);
static void trackAdRevenueNew(ADJAdRevenue2dx adRevenue);
static bool isEnabled();
static std::string getIdfa();
static std::string getAdid();
static std::string getSdkVersion();
static AdjustAttribution2dx getAttribution();
static void requestTrackingAuthorizationWithCompletionHandler(void (*trackingStatusCallback)(int status));
static void addGlobalCallbackParameter(std::string key, std::string value);
static void addGlobalPartnerParameter(std::string key, std::string value);
static void removeGlobalCallbackParameter(std::string key);
static void removeGlobalPartnerParameter(std::string key);
static void removeGlobalCallbackParameters();
static void removeGlobalPartnerParameters();
static void trackAdRevenue(ADJAdRevenue2dx adRevenue);
static void isEnabled(void(*callback)(bool isEnabled));
static void getIdfa(void(*callback)(std::string idfa));
static void getAdid(void(*callback)(std::string adid));
static void getSdkVersion(void(*callback)(std::string sdkVersion), std::string sdkPrefix);
static void getAttribution(void(*callback)(AdjustAttribution2dx attribution));
static void requestAppTrackingAuthorization(void (*callback)(int status));
static int getAppTrackingAuthorizationStatus();
static void trackThirdPartySharing(ADJThirdPartySharing2dx thirdPartySharing);
static void trackMeasurementConsent(bool measurementConsent);
static void updateConversionValue(int conversionValue);
static void updatePostbackConversionValue(int conversionValue, void (*errorCallback)(std::string error));
static void updatePostbackConversionValue(int conversionValue, std::string coarseValue, void (*errorCallback)(std::string error));
static void updatePostbackConversionValue(int conversionValue, std::string coarseValue, bool lockWindow, void (*errorCallback)(std::string error));
static void checkForNewAttStatus();
static std::string getLastDeeplink();
static void verifyAppStorePurchase(ADJAppStorePurchase2dx purchase, void (*verificationCallback)(std::string verificationStatus, int code, std::string message));
static std::string getIdfv();
static void processDeeplink(std::string url, void (*resolvedLinkCallback)(std::string resolvedLink));
static void updateSkanConversionValue(int conversionValue,
std::string coarseValue,
bool lockWindow,
void (*callback)(std::string error));
static void getLastDeeplink(void(*callback)(std::string lastDeeplink));
static void verifyAppStorePurchase(ADJAppStorePurchase2dx purchase, void (*callback)(AdjustPurchaseVerificationResult2dx verificationResult));
static void verifyAndTrackAppStorePurchase(ADJEvent2dx adjustEvent, void (*callback)(AdjustPurchaseVerificationResult2dx verificationResult));
static void getIdfv(void(*callback)(std::string idfv));
static void processAndResolveDeeplink(ADJDeeplink2dx adjustDeeplink, void (*callback)(std::string resolvedLink));
// For testing purposes only.
static void setTestOptions(std::map<std::string, std::string> testOptionsMap);
static void setTestOptions(std::map<std::string, std::string> stringTestOptionsMap,
std::map<std::string, int> intTestOptionsMap);
static void teardown();
};

Expand Down
Loading