diff --git a/build.gradle b/build.gradle index 974b807..68ec4fc 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ buildscript { google() } dependencies { - classpath 'com.android.tools.build:gradle:8.9.1' + classpath 'com.android.tools.build:gradle:9.2.1' } } diff --git a/gradle.properties b/gradle.properties index 340f070..5bac8ac 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1 @@ -android.enableJetifier=true android.useAndroidX=true -android.defaults.buildfeatures.buildconfig=true diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index c642711..068ffe2 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-all.zip diff --git a/usbSerialExamples/build.gradle b/usbSerialExamples/build.gradle index e7957f6..6f4ad75 100644 --- a/usbSerialExamples/build.gradle +++ b/usbSerialExamples/build.gradle @@ -24,6 +24,9 @@ android { } } namespace 'com.hoho.android.usbserial.examples' + buildFeatures { + buildConfig true + } } dependencies { diff --git a/usbSerialForAndroid/build.gradle b/usbSerialForAndroid/build.gradle index 76b85fa..3e3e26a 100644 --- a/usbSerialForAndroid/build.gradle +++ b/usbSerialForAndroid/build.gradle @@ -28,17 +28,20 @@ android { withSourcesJar() } } + buildFeatures { + buildConfig true + } } dependencies { - implementation "androidx.annotation:annotation:1.9.1" + implementation "androidx.annotation:annotation:1.10.0" testImplementation 'junit:junit:4.13.2' - testImplementation 'org.mockito:mockito-core:5.15.2' + testImplementation 'org.mockito:mockito-core:5.17.0' // later versions require new Java version: Unsupported class file major version 68 androidTestImplementation 'androidx.appcompat:appcompat:1.6.1' // later versions have minsdk 21 androidTestImplementation 'androidx.test:core:1.5.0' // later versions have minsdk 19 androidTestImplementation 'androidx.test:runner:1.5.2' // later versions have minsdk 19 androidTestImplementation 'commons-net:commons-net:3.9.0' // later versions fail on old Android devices with missing java.time.Duration class - androidTestImplementation 'org.apache.commons:commons-lang3:3.14.0' + androidTestImplementation 'org.apache.commons:commons-lang3:3.20.0' } // gradle task: publishToMavenLocal