Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

ADB upgrade

Acho Arnoldbded0b4a9b13
diff --git a/android/app/build.gradle b/android/app/build.gradle
index f49acb2b..ae0e8d94 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -2,27 +2,22 @@ plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'com.google.gms.google-services'
- id "io.sentry.android.gradle" version "4.3.1"
+ id "io.sentry.android.gradle" version "6.2.0"
}
-def getGitHash = { ->
- def stdout = new ByteArrayOutputStream()
- exec {
- commandLine 'git', 'rev-parse', '--short', 'HEAD'
- standardOutput = stdout
- }
- return stdout.toString().trim()
-}
+def gitHash = providers.exec {
+ commandLine 'git', 'rev-parse', '--short', 'HEAD'
+}.standardOutput.asText.map { it.trim() }.getOrElse("unknown")
android {
- compileSdk 35
+ compileSdk 36
defaultConfig {
applicationId "com.httpsms"
minSdk 28
targetSdk 35
versionCode 1
- versionName "${getGitHash()}"
+ versionName gitHash
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
diff --git a/android/build.gradle b/android/build.gradle
index 8450dab4..eeed1cc3 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
- kotlin_version = '2.1.0'
+ kotlin_version = '2.2.10'
}
repositories {
// Check that you have the following line (if not, add it):
@@ -17,9 +17,9 @@ buildscript {
}
plugins {
- id 'com.android.application' version '8.13.2' apply false
- id 'com.android.library' version '8.13.2' apply false
- id 'org.jetbrains.kotlin.android' version '1.6.21' apply false
+ id 'com.android.application' version '9.1.0' apply false
+ id 'com.android.library' version '9.1.0' apply false
+ id 'org.jetbrains.kotlin.android' version '2.3.20' apply false
}
tasks.register('clean', Delete) {
diff --git a/android/gradle.properties b/android/gradle.properties
index cf0008dd..8665be9a 100644
--- a/android/gradle.properties
+++ b/android/gradle.properties
@@ -22,3 +22,13 @@ kotlin.code.style=official
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.nonFinalResIds=false
+android.defaults.buildfeatures.resvalues=true
+android.sdk.defaultTargetSdkToCompileSdkIfUnset=false
+android.enableAppCompileTimeRClass=false
+android.usesSdkInManifest.disallowed=false
+android.uniquePackageNames=false
+android.dependency.useConstraints=true
+android.r8.strictFullModeForKeepRules=false
+android.r8.optimizedResourceShrinking=false
+android.builtInKotlin=false
+android.newDsl=false
diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties
index 0d14e6a1..2721b96b 100644
--- a/android/gradle/wrapper/gradle-wrapper.properties
+++ b/android/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
#Thu Jun 23 15:32:32 EEST 2022
distributionBase=GRADLE_USER_HOME
-distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME