Skip to content

Commit 0908b7c

Browse files
authored
Release 6.15.0 (#97)
* Release 6.15.0
1 parent 725d2b6 commit 0908b7c

File tree

9 files changed

+36
-35
lines changed

9 files changed

+36
-35
lines changed

RELEASENOTES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 6.15.0
2+
* Update Android SDK to v6.15.0
3+
* 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)
4+
15
### 6.14.0
26
* Update Android SDK to v6.14.0
37
* Updated Huawei Referrer integration. [Learn more](https://dev.appsflyer.com/hc/docs/install-android-sdk#huawei-install-referrer).

Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ You can track installs, updates and sessions and also track additional in-app ev
2121

2222
---
2323

24-
Built with AppsFlyer Android SDK `v6.14.0`
24+
Built with AppsFlyer Android SDK `v6.15.0`
2525

2626
## Table of content
2727

@@ -97,7 +97,7 @@ And to start the AppsFlyer SDK, use `void startAppsFlyer(Context context)` API.
9797

9898
Add the AppsFlyer Segment Integration dependency to your app `build.gradle` file.
9999
```java
100-
implementation 'com.appsflyer:segment-android-integration:6.14.0'
100+
implementation 'com.appsflyer:segment-android-integration:6.15.0'
101101
implementation 'com.android.installreferrer:installreferrer:2.1'
102102
```
103103

app/build.gradle

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
apply plugin: 'com.android.library'
22

33
android {
4-
compileSdkVersion 33
4+
compileSdk 33
55

66
defaultConfig {
7-
minSdkVersion 19
8-
targetSdkVersion 33
7+
minSdk 19
8+
targetSdk 33
99
versionCode 1
1010
versionName "1.0"
1111
testApplicationId "com.example.test"
@@ -38,16 +38,19 @@ android {
3838
}
3939

4040
dependencies {
41-
testImplementation 'androidx.test.ext:junit:1.1.5'
42-
api 'com.appsflyer:af-android-sdk:6.14.0'
43-
compileOnly 'com.android.installreferrer:installreferrer:2.1'
41+
api 'com.appsflyer:af-android-sdk:6.15.0'
4442
compileOnly 'com.segment.analytics.android:analytics:4.+'
45-
testImplementation 'androidx.test:core:1.4.0'
43+
compileOnly 'com.android.installreferrer:installreferrer:2.2'
44+
45+
testImplementation 'androidx.test:core:1.6.1'
46+
testImplementation 'androidx.test.ext:junit:1.2.1'
47+
testImplementation 'com.android.installreferrer:installreferrer:2.2'
48+
4649
testImplementation 'junit:junit:4.13.2'
50+
testImplementation 'org.mockito:mockito-core:4.2.0'
4751
testImplementation 'org.robolectric:robolectric:4.9.2'
48-
testImplementation 'com.android.installreferrer:installreferrer:2.1'
52+
4953
testImplementation 'com.segment.analytics.android:analytics:4.+'
50-
testImplementation 'org.mockito:mockito-core:4.2.0'
5154
testImplementation 'com.segment.analytics.android:analytics-tests:4.+'
5255
}
5356

app/publish.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ afterEvaluate {
111111
url = isReleaseBuild() ? getReleaseRepositoryUrl() : getSnapshotRepositoryUrl()
112112

113113
credentials(PasswordCredentials) {
114-
username = getRepositoryUsername()
115-
password = getRepositoryPassword()
114+
username = getSonatypeRepositoryToken()
115+
password = getSonatypeRepositoryTokenPassword()
116116
}
117117
}
118118
}

app/src/main/java/com/segment/analytics/android/integrations/appsflyer/AppsflyerIntegration.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,12 @@ public Integration<AppsFlyerLib> create(ValueMap settings, Analytics analytics)
9292
boolean trackAttributionData = settings.getBoolean("trackAttributionData", false);
9393
Application application = analytics.getApplication();
9494

95-
9695
AppsFlyerConversionListener listener = null;
9796
if (trackAttributionData) {
9897
listener = new ConversionListener(analytics);
9998
}
10099

101-
AppsFlyerLib.getInstance().setPluginInfo(new PluginInfo(Plugin.SEGMENT,"6.14.0"));
100+
AppsFlyerLib.getInstance().setPluginInfo(new PluginInfo(Plugin.SEGMENT,"6.15.0"));
102101
afLib.setDebugLog(logger.logLevel != Analytics.LogLevel.NONE);
103102
afLib.init(devKey, listener, application.getApplicationContext());
104103
if (deepLinkListener != null)
@@ -148,7 +147,6 @@ public void onActivityCreated(Activity activity, Bundle savedInstanceState) {
148147
}
149148
}
150149

151-
152150
@Override
153151
public AppsFlyerLib getUnderlyingInstance() {
154152
return appsflyer;
@@ -169,7 +167,6 @@ public void identify(IdentifyPayload identify) {
169167
}
170168

171169
private void updateEndUserAttributes() {
172-
173170
appsflyer.setCustomerUserId(customerUserId);
174171
logger.verbose("appsflyer.setCustomerUserId(%s)", customerUserId);
175172
appsflyer.setCurrencyCode(currencyCode);
@@ -316,9 +313,5 @@ private void editorCommit(SharedPreferences.Editor editor) {
316313
private Context getContext() {
317314
return this.analytics.getApplication().getApplicationContext();
318315
}
319-
320316
}
321-
322-
323-
324317
}

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ buildscript {
1111
}
1212
apply plugin: 'io.codearte.nexus-staging'
1313

14-
def getRepositoryUsername() { return hasProperty('ossrhUsername') ? ossrhUsername : "" }
14+
def getSonatypeRepositoryToken() { return hasProperty('ossrhToken') ? ossrhToken : "" }
1515

16-
def getRepositoryPassword() { return hasProperty('ossrhPassword') ? ossrhPassword : "" }
16+
def getSonatypeRepositoryTokenPassword() { return hasProperty('ossrhTokenPassword') ? ossrhTokenPassword : "" }
1717

1818
nexusStaging {
1919
packageGroup = GROUP // optional if packageGroup == project.getGroup()
20-
username = getRepositoryUsername()
21-
password = getRepositoryPassword()
20+
username = getSonatypeRepositoryToken()
21+
password = getSonatypeRepositoryTokenPassword()
2222
delayBetweenRetriesInMillis = 30000
2323
numberOfRetries = 120
2424
}

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
GROUP=com.appsflyer
2121

22-
VERSION_CODE=16
23-
VERSION_NAME=6.14.0
22+
VERSION_CODE=19
23+
VERSION_NAME=6.15.0
2424
POM_ARTIFACT_ID=segment-android-integration
2525
POM_PACKAGING=aar
2626

segmenttestapp/build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
apply plugin: 'com.android.application'
22

3-
43
android {
5-
compileSdkVersion 33
4+
compileSdk 34
65

76
defaultConfig {
87
applicationId "com.appsflyer.segment.app"
9-
minSdkVersion 19
10-
targetSdkVersion 33
8+
minSdk 19
9+
targetSdk 34
1110
versionCode 1
1211
versionName "1.0"
1312
}
@@ -25,9 +24,10 @@ android {
2524

2625
dependencies {
2726
implementation project(path: ':app')
28-
testImplementation 'junit:junit:4.12'
27+
implementation 'com.appsflyer:af-android-sdk:6.15.0'
2928
implementation 'com.android.support:appcompat-v7:28.0.0'
30-
implementation 'com.appsflyer:af-android-sdk:6.14.0'
3129
implementation 'com.segment.analytics.android:analytics:4.+'
32-
implementation 'com.android.installreferrer:installreferrer:2.1'
30+
implementation 'com.android.installreferrer:installreferrer:2.2'
31+
32+
testImplementation 'junit:junit:4.13.2'
3333
}

segmenttestapp/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@
2121
<category android:name="android.intent.category.LAUNCHER" />
2222
</intent-filter>
2323

24-
<intent-filter>
24+
<intent-filter android:autoVerify="true">
2525
<action android:name="android.intent.action.VIEW" />
2626

2727
<category android:name="android.intent.category.DEFAULT" />
2828
<category android:name="android.intent.category.BROWSABLE" />
2929

3030
<data
3131
android:host="segment.onelink.me"
32+
android:pathPrefix="/Udqe"
3233
android:scheme="https" />
3334
</intent-filter>
3435
</activity>

0 commit comments

Comments
 (0)