diff --git a/app/build.gradle b/app/build.gradle index 742a5c9..b01304b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,8 +8,8 @@ android { applicationId "tech.bogomolov.incomingsmsgateway" minSdkVersion 19 targetSdkVersion 30 - versionCode 6 - versionName "2.0" + versionCode 7 + versionName "2.0.1" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/app/src/androidTest/java/tech/bogomolov/incomingsmsgateway/WebhookCallerTest.java b/app/src/androidTest/java/tech/bogomolov/incomingsmsgateway/WebhookCallerTest.java index 190b63a..b1d49ee 100644 --- a/app/src/androidTest/java/tech/bogomolov/incomingsmsgateway/WebhookCallerTest.java +++ b/app/src/androidTest/java/tech/bogomolov/incomingsmsgateway/WebhookCallerTest.java @@ -37,11 +37,17 @@ public void setup() { } @Test - public void testSuccess() throws Exception { + public void testHttpsSuccess() throws Exception { WorkInfo workInfo = this.getWorkInfo("https://example.com", "test"); assertThat(workInfo.getState(), is(WorkInfo.State.SUCCEEDED)); } + @Test + public void testHttpSuccess() throws Exception { + WorkInfo workInfo = this.getWorkInfo("http://example.com", "test"); + assertThat(workInfo.getState(), is(WorkInfo.State.SUCCEEDED)); + } + @Test public void testError() throws Exception { WorkInfo workInfo = this.getWorkInfo("not a url", "test"); diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 0c30387..08a8102 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -12,7 +12,8 @@ android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" - android:theme="@style/AppTheme"> + android:theme="@style/AppTheme" + android:usesCleartextTraffic="true">