From 0237486c3afe3f82b2c3175c464c6af7d17d6297 Mon Sep 17 00:00:00 2001 From: Andrii Dudla Date: Wed, 7 Aug 2024 10:06:13 +0200 Subject: [PATCH] Release 6.15.0 --- RELEASENOTES.md | 4 ++++ Readme.md | 4 ++-- app/build.gradle | 23 +++++++++++-------- .../appsflyer/AppsflyerIntegration.java | 9 +------- gradle.properties | 4 ++-- segmenttestapp/build.gradle | 14 +++++------ segmenttestapp/src/main/AndroidManifest.xml | 3 ++- 7 files changed, 31 insertions(+), 30 deletions(-) diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 2fc238d..960e28e 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -1,3 +1,7 @@ +### 6.15.0 +* Update Android SDK to v6.15.0 +* Added the logAdRevenue method to send ad revenue data to AppsFlyer. Note: Starting with this version, the AdRevenue Connector should no longer be used. For more details, [see] (https://dev.appsflyer.com/hc/docs/ad-revenue-1) + ### 6.14.0 * Update Android SDK to v6.14.0 * Updated Huawei Referrer integration. [Learn more](https://dev.appsflyer.com/hc/docs/install-android-sdk#huawei-install-referrer). diff --git a/Readme.md b/Readme.md index bfe0525..561461c 100644 --- a/Readme.md +++ b/Readme.md @@ -21,7 +21,7 @@ You can track installs, updates and sessions and also track additional in-app ev --- -Built with AppsFlyer Android SDK `v6.14.0` +Built with AppsFlyer Android SDK `v6.15.0` ## Table of content @@ -97,7 +97,7 @@ And to start the AppsFlyer SDK, use `void startAppsFlyer(Context context)` API. Add the AppsFlyer Segment Integration dependency to your app `build.gradle` file. ```java -implementation 'com.appsflyer:segment-android-integration:6.14.0' +implementation 'com.appsflyer:segment-android-integration:6.15.0' implementation 'com.android.installreferrer:installreferrer:2.1' ``` diff --git a/app/build.gradle b/app/build.gradle index c8d3379..543882f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,11 +1,11 @@ apply plugin: 'com.android.library' android { - compileSdkVersion 33 + compileSdk 34 defaultConfig { - minSdkVersion 19 - targetSdkVersion 33 + minSdk 19 + targetSdk 34 versionCode 1 versionName "1.0" testApplicationId "com.example.test" @@ -38,16 +38,19 @@ android { } dependencies { - testImplementation 'androidx.test.ext:junit:1.1.5' - api 'com.appsflyer:af-android-sdk:6.14.0' - compileOnly 'com.android.installreferrer:installreferrer:2.1' + api 'com.appsflyer:af-android-sdk:6.15.0' compileOnly 'com.segment.analytics.android:analytics:4.+' - testImplementation 'androidx.test:core:1.4.0' + compileOnly 'com.android.installreferrer:installreferrer:2.2' + + testImplementation 'androidx.test:core:1.6.1' + testImplementation 'androidx.test.ext:junit:1.2.1' + testImplementation 'com.android.installreferrer:installreferrer:2.2' + testImplementation 'junit:junit:4.13.2' - testImplementation 'org.robolectric:robolectric:4.9.2' - testImplementation 'com.android.installreferrer:installreferrer:2.1' - testImplementation 'com.segment.analytics.android:analytics:4.+' testImplementation 'org.mockito:mockito-core:4.2.0' + testImplementation 'org.robolectric:robolectric:4.11.0' + + testImplementation 'com.segment.analytics.android:analytics:4.+' testImplementation 'com.segment.analytics.android:analytics-tests:4.+' } diff --git a/app/src/main/java/com/segment/analytics/android/integrations/appsflyer/AppsflyerIntegration.java b/app/src/main/java/com/segment/analytics/android/integrations/appsflyer/AppsflyerIntegration.java index 2fe8bf4..4913388 100644 --- a/app/src/main/java/com/segment/analytics/android/integrations/appsflyer/AppsflyerIntegration.java +++ b/app/src/main/java/com/segment/analytics/android/integrations/appsflyer/AppsflyerIntegration.java @@ -92,13 +92,12 @@ public Integration create(ValueMap settings, Analytics analytics) boolean trackAttributionData = settings.getBoolean("trackAttributionData", false); Application application = analytics.getApplication(); - AppsFlyerConversionListener listener = null; if (trackAttributionData) { listener = new ConversionListener(analytics); } - AppsFlyerLib.getInstance().setPluginInfo(new PluginInfo(Plugin.SEGMENT,"6.14.0")); + AppsFlyerLib.getInstance().setPluginInfo(new PluginInfo(Plugin.SEGMENT,"6.15.0")); afLib.setDebugLog(logger.logLevel != Analytics.LogLevel.NONE); afLib.init(devKey, listener, application.getApplicationContext()); if (deepLinkListener != null) @@ -148,7 +147,6 @@ public void onActivityCreated(Activity activity, Bundle savedInstanceState) { } } - @Override public AppsFlyerLib getUnderlyingInstance() { return appsflyer; @@ -169,7 +167,6 @@ public void identify(IdentifyPayload identify) { } private void updateEndUserAttributes() { - appsflyer.setCustomerUserId(customerUserId); logger.verbose("appsflyer.setCustomerUserId(%s)", customerUserId); appsflyer.setCurrencyCode(currencyCode); @@ -316,9 +313,5 @@ private void editorCommit(SharedPreferences.Editor editor) { private Context getContext() { return this.analytics.getApplication().getApplicationContext(); } - } - - - } diff --git a/gradle.properties b/gradle.properties index c1e6e08..e01d12b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -19,8 +19,8 @@ GROUP=com.appsflyer -VERSION_CODE=16 -VERSION_NAME=6.14.0 +VERSION_CODE=17 +VERSION_NAME=6.15.0 POM_ARTIFACT_ID=segment-android-integration POM_PACKAGING=aar diff --git a/segmenttestapp/build.gradle b/segmenttestapp/build.gradle index 544b06e..c00b9c3 100644 --- a/segmenttestapp/build.gradle +++ b/segmenttestapp/build.gradle @@ -1,13 +1,12 @@ apply plugin: 'com.android.application' - android { - compileSdkVersion 33 + compileSdk 34 defaultConfig { applicationId "com.appsflyer.segment.app" - minSdkVersion 19 - targetSdkVersion 33 + minSdk 19 + targetSdk 34 versionCode 1 versionName "1.0" } @@ -25,9 +24,10 @@ android { dependencies { implementation project(path: ':app') - testImplementation 'junit:junit:4.12' + implementation 'com.appsflyer:af-android-sdk:6.15.0' implementation 'com.android.support:appcompat-v7:28.0.0' - implementation 'com.appsflyer:af-android-sdk:6.14.0' implementation 'com.segment.analytics.android:analytics:4.+' - implementation 'com.android.installreferrer:installreferrer:2.1' + implementation 'com.android.installreferrer:installreferrer:2.2' + + testImplementation 'junit:junit:4.13.2' } diff --git a/segmenttestapp/src/main/AndroidManifest.xml b/segmenttestapp/src/main/AndroidManifest.xml index df39da0..bcfd8bd 100644 --- a/segmenttestapp/src/main/AndroidManifest.xml +++ b/segmenttestapp/src/main/AndroidManifest.xml @@ -21,7 +21,7 @@ - + @@ -29,6 +29,7 @@