Send and receive SMS messages using your Android phone programmatically via a simple HTTP API
Add git hash in android version
Acho Arnoldc1a3d9e7cb72
diff --git a/android/app/build.gradle b/android/app/build.gradleindex afdfcd1e..05d28016 100644--- a/android/app/build.gradle+++ b/android/app/build.gradle@@ -5,17 +5,26 @@ plugins {id "io.sentry.android.gradle" version "3.1.2"}+def getGitHash = { ->+ def stdout = new ByteArrayOutputStream()+ exec {+ commandLine 'git', 'rev-parse', '--short', 'HEAD'+ standardOutput = stdout+ }+ return stdout.toString().trim()+}+android {- compileSdk 31+ compileSdk 33buildToolsVersion "32.0.0"defaultConfig {applicationId "com.httpsms"minSdk 30- targetSdk 30+ targetSdk 33versionCode 1- versionName "1.0"+ versionName "${getGitHash()}"testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"}@@ -48,11 +57,11 @@ dependencies {implementation 'com.jakewharton.timber:timber:5.0.1'implementation 'androidx.preference:preference:1.2.0'implementation 'androidx.work:work-runtime-ktx:2.7.1'- implementation 'androidx.core:core-ktx:1.8.0'+ implementation 'androidx.core:core-ktx:1.9.0'implementation "androidx.cardview:cardview:1.0.0"implementation 'com.beust:klaxon:5.5'implementation 'androidx.work:work-runtime-ktx:2.7.1'- implementation 'androidx.appcompat:appcompat:1.4.2'+ implementation 'androidx.appcompat:appcompat:1.5.1'implementation 'org.apache.commons:commons-text:1.9'implementation 'com.google.android.material:material:1.6.1'implementation 'androidx.constraintlayout:constraintlayout:2.1.4'diff --git a/android/build.gradle b/android/build.gradleindex 40f09798..827d055a 100644--- a/android/build.gradle+++ b/android/build.gradle@@ -7,13 +7,13 @@ buildscript {}dependencies {// Add this line- classpath 'com.google.gms:google-services:4.3.13'+ classpath 'com.google.gms:google-services:4.3.14'}}plugins {- id 'com.android.application' version '7.3.0' apply false- id 'com.android.library' version '7.3.0' apply false+ id 'com.android.application' version '7.3.1' apply false+ id 'com.android.library' version '7.3.1' apply falseid 'org.jetbrains.kotlin.android' version '1.6.21' apply false}