Skip to content

Commit ad720ce

Browse files
committed
release: SDK 3.1.1
1 parent 712cd3e commit ad720ce

File tree

5 files changed

+13533
-2
lines changed

5 files changed

+13533
-2
lines changed

Sources/gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ androidXTestCoreKtx = "1.6.1"
1111
androidXTestRunner = "1.6.2"
1212
androidXTestTruth = "1.6.0"
1313
assertjCore = "3.24.2"
14-
batchSdk = "3.1.0"
15-
batchApiLevel = "310"
14+
batchSdk = "3.1.1"
15+
batchApiLevel = "311"
1616
batchMessagingApiLevel = "31"
1717
batchResourcePrefix = "com_batchsdk_"
1818
batchNamespace = "com.batch.android"

Sources/sdk/src/main/AndroidManifest.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@
5353
android:exported="false"
5454
tools:targetApi="O"/>
5555

56+
<service
57+
android:name=".BatchDisplayReceiptJobService"
58+
android:permission="android.permission.BIND_JOB_SERVICE"
59+
android:exported="false" />
60+
5661
<service
5762
android:name="com.batch.android.eventdispatcher.DispatcherDiscoveryService"
5863
android:directBootAware="true"
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package com.batch.android;
2+
3+
import android.app.job.JobParameters;
4+
import android.app.job.JobService;
5+
6+
/**
7+
* A legacy no-op JobService for backward compatibility.
8+
*<p>
9+
* Batch SDK v2 scheduled this service. After an app update to a version using Batch SDK v3+,
10+
* the Android OS may still attempt to start this job from its cache.
11+
* <p>
12+
* @deprecated This dummy implementation is preventing a {@link java.lang.ClassNotFoundException} for users updating the app.
13+
*/
14+
@Deprecated
15+
public class BatchDisplayReceiptJobService extends JobService {
16+
17+
@Override
18+
public boolean onStartJob(final JobParameters jobParameters) {
19+
return false;
20+
}
21+
22+
@Override
23+
public boolean onStopJob(JobParameters jobParameters) {
24+
return false;
25+
}
26+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
84b1be1ffce8da3381cabfa8c5ea0466a3bb5f77 public-sdk/Batch.aar

0 commit comments

Comments
 (0)