From 76e3df93c9f297fc163eb5493353a860c262a7b6 Mon Sep 17 00:00:00 2001 From: untidylamp <44341286+untidylamp@users.noreply.github.com> Date: Fri, 16 Nov 2018 12:06:00 -0500 Subject: [PATCH 1/5] Ask for RECEIVE_SMS Permissions (#28) fix for Incoming SMS not bridged #27 --- app/src/main/java/eu/droogers/smsmatrix/MainActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/eu/droogers/smsmatrix/MainActivity.java b/app/src/main/java/eu/droogers/smsmatrix/MainActivity.java index 8f1ff99..41babb8 100644 --- a/app/src/main/java/eu/droogers/smsmatrix/MainActivity.java +++ b/app/src/main/java/eu/droogers/smsmatrix/MainActivity.java @@ -74,6 +74,7 @@ public class MainActivity extends Activity { private void checkPermissions() { askPermission(Manifest.permission.READ_SMS); askPermission(Manifest.permission.SEND_SMS); + askPermission(Manifest.permission.RECEIVE_SMS); askPermission(Manifest.permission.READ_PHONE_STATE); askPermission(Manifest.permission.READ_CONTACTS); askPermission(Manifest.permission.READ_EXTERNAL_STORAGE); From c28e0eb0cc7b9261264200daa87c2f538071a3a9 Mon Sep 17 00:00:00 2001 From: Gerben Droogers Date: Fri, 16 Nov 2018 18:34:03 +0100 Subject: [PATCH 2/5] Update gradle --- build.gradle | 2 +- gradle/wrapper/gradle-wrapper.properties | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 7e01a0a..ae9fbaf 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ buildscript { google() } dependencies { - classpath 'com.android.tools.build:gradle:3.0.1' + classpath 'com.android.tools.build:gradle:3.2.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index a1dcb52..537120a 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Fri Nov 10 13:09:46 CET 2017 +#Fri Nov 16 18:23:47 CET 2018 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip From 1228e5e6be5990bec30a5667a3ba1c3635d4d1c6 Mon Sep 17 00:00:00 2001 From: Gerben Droogers Date: Fri, 16 Nov 2018 18:40:28 +0100 Subject: [PATCH 3/5] Update version code and name #24 --- app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 3a755cc..24e7b36 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -7,8 +7,8 @@ android { applicationId "eu.droogers.smsmatrix" minSdkVersion 23 targetSdkVersion 26 - versionCode 1 - versionName "1.0" + versionCode 7 + versionName "0.0.7" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { From 19abc64af0381c112025479d754318214558b6f6 Mon Sep 17 00:00:00 2001 From: Gerben Droogers Date: Fri, 16 Nov 2018 19:09:53 +0100 Subject: [PATCH 4/5] Fix app crashing when device is been called --- app/src/main/java/eu/droogers/smsmatrix/MatrixService.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/droogers/smsmatrix/MatrixService.java b/app/src/main/java/eu/droogers/smsmatrix/MatrixService.java index 1102561..9fbd89a 100644 --- a/app/src/main/java/eu/droogers/smsmatrix/MatrixService.java +++ b/app/src/main/java/eu/droogers/smsmatrix/MatrixService.java @@ -54,11 +54,12 @@ public class MatrixService extends Service { String phone = intent.getStringExtra("SendSms_phone"); String type = intent.getStringExtra("SendSms_type"); if (phone != null) { - if (type.equals(Matrix.MESSAGE_TYPE_TEXT)) + System.out.println(phone); + if (type.equals(Matrix.MESSAGE_TYPE_TEXT) || type.equals(Matrix.MESSAGE_TYPE_NOTICE)) { String body = intent.getStringExtra("SendSms_body"); mx.sendMessage(phone, body, type); - } else { + } else if (type.equals(Matrix.MESSAGE_TYPE_IMAGE) || type.equals(Matrix.MESSAGE_TYPE_VIDEO)) { byte[] body = intent.getByteArrayExtra("SendSms_body"); String fileName = intent.getStringExtra("SendSms_fileName"); String contentType = intent.getStringExtra("SendSms_contentType"); From fd21cf0b5b0b73491d29ca1282567c9524a8ec82 Mon Sep 17 00:00:00 2001 From: Gerben Droogers Date: Fri, 16 Nov 2018 19:10:32 +0100 Subject: [PATCH 5/5] Update to version 0.0.8 --- app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 24e7b36..5efbaa1 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -7,8 +7,8 @@ android { applicationId "eu.droogers.smsmatrix" minSdkVersion 23 targetSdkVersion 26 - versionCode 7 - versionName "0.0.7" + versionCode 8 + versionName "0.0.8" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes {