Skip to content

Commit 0d424dc

Browse files
committed
Update build dependencies
1 parent 7ad6c9f commit 0d424dc

File tree

22 files changed

+47
-40
lines changed

22 files changed

+47
-40
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55

66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:4.2.1'
8+
classpath 'com.android.tools.build:gradle:8.7.2'
99
}
1010
}
1111

example/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ apply plugin: 'com.android.application'
33
android {
44

55
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
6+
namespace = 'com.felhr.serialportexample'
67

78
defaultConfig {
89
applicationId "com.felhr.serialportexample"

example/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest package="com.felhr.serialportexample"
3-
xmlns:android="http://schemas.android.com/apk/res/android">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
43

54
<uses-feature android:name="android.hardware.usb.host"
65
android:required="true"/>

example/src/main/java/com/felhr/serialportexample/UsbService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ private void setFilter() {
231231
*/
232232
private void requestUserPermission() {
233233
Log.d(TAG, String.format("requestUserPermission(%X:%X)", device.getVendorId(), device.getProductId() ) );
234-
PendingIntent mPendingIntent = PendingIntent.getBroadcast(this, 0, new Intent(ACTION_USB_PERMISSION), 0);
234+
PendingIntent mPendingIntent = PendingIntent.getBroadcast(this, 0, new Intent(ACTION_USB_PERMISSION), PendingIntent.FLAG_IMMUTABLE);
235235
usbManager.requestPermission(device, mPendingIntent);
236236
}
237237

examplemultipleports/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ apply plugin: 'com.android.application'
33
android {
44

55
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
6+
namespace = 'com.felhr.examplemultipleports'
67

78
defaultConfig {
89
applicationId "com.felhr.examplemultipleports"
@@ -41,5 +42,5 @@ dependencies {
4142
testImplementation 'junit:junit:4.12'
4243

4344
implementation project(':usbserial')
44-
implementation 'com.annimon:stream:1.2.1'
45+
implementation 'com.annimon:stream:1.2.2'
4546
}

examplemultipleports/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest package="com.felhr.examplemultipleports"
3-
xmlns:android="http://schemas.android.com/apk/res/android">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
43

54
<uses-feature android:name="android.hardware.usb.host"
65
android:required="true"/>

examplestreams/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ apply plugin: 'com.android.application'
33
android {
44

55
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
6+
namespace = 'com.felhr.examplestreams'
67

78
defaultConfig {
89
applicationId "com.felhr.examplestreams"

examplestreams/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest package="com.felhr.examplestreams"
3-
xmlns:android="http://schemas.android.com/apk/res/android">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
43

54
<uses-feature android:name="android.hardware.usb.host"
65
android:required="true"/>

examplestreams/src/main/java/com/felhr/examplestreams/UsbService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ private void setFilter() {
211211
*/
212212
private void requestUserPermission() {
213213
Log.d(TAG, String.format("requestUserPermission(%X:%X)", device.getVendorId(), device.getProductId() ) );
214-
PendingIntent mPendingIntent = PendingIntent.getBroadcast(this, 0, new Intent(ACTION_USB_PERMISSION), 0);
214+
PendingIntent mPendingIntent = PendingIntent.getBroadcast(this, 0, new Intent(ACTION_USB_PERMISSION), PendingIntent.FLAG_IMMUTABLE);
215215
usbManager.requestPermission(device, mPendingIntent);
216216
}
217217

examplesync/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ apply plugin: 'com.android.application'
33
android {
44

55
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
6+
namespace = 'com.felhr.serialportexamplesync'
67

78
defaultConfig {
89
applicationId "com.felhr.serialportexamplesync"

0 commit comments

Comments
 (0)