From b006e0099550d637a9b2c88ec98da823b10c57c2 Mon Sep 17 00:00:00 2001 From: slymax Date: Tue, 25 Feb 2020 21:35:39 +0100 Subject: [PATCH] update config --- README.md | 2 +- app/src/main/java/com/example/app/MainActivity.java | 2 +- app/src/main/java/com/example/app/MyWebViewClient.java | 1 + build.gradle | 2 +- gradle/wrapper/gradle-wrapper.properties | 4 ++-- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b17629c..3f5cec3 100755 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ If you want to create an app that displays the content of a remote website mWebView.setWebViewClient(new MyWebViewClient()); ``` -2. open the `MyWebViewClient.java` file and replace `example.com` on line **13** with your custom hostname +2. open the `MyWebViewClient.java` file and replace `example.com` on line **14** with your custom hostname ```java if (Objects.requireNonNull(Uri.parse(url).getHost()).endsWith("example.com")) { diff --git a/app/src/main/java/com/example/app/MainActivity.java b/app/src/main/java/com/example/app/MainActivity.java index 8dc66bc..a9cf1c2 100755 --- a/app/src/main/java/com/example/app/MainActivity.java +++ b/app/src/main/java/com/example/app/MainActivity.java @@ -11,8 +11,8 @@ public class MainActivity extends Activity { private WebView mWebView; - @SuppressLint("SetJavaScriptEnabled") @Override + @SuppressLint("SetJavaScriptEnabled") protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); diff --git a/app/src/main/java/com/example/app/MyWebViewClient.java b/app/src/main/java/com/example/app/MyWebViewClient.java index 4253f6d..9e4ccc6 100755 --- a/app/src/main/java/com/example/app/MyWebViewClient.java +++ b/app/src/main/java/com/example/app/MyWebViewClient.java @@ -5,6 +5,7 @@ import android.net.Uri; import android.webkit.WebView; import android.webkit.WebViewClient; +@SuppressWarnings("unused") class MyWebViewClient extends WebViewClient { @Override diff --git a/build.gradle b/build.gradle index 168851d..c27fa6d 100755 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ buildscript { google() } dependencies { - classpath 'com.android.tools.build:gradle:3.5.3' + classpath 'com.android.tools.build:gradle:3.6.0' } } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 1873262..057623b 100755 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Mon Sep 23 01:07:03 CEST 2019 +#Tue Feb 25 21:13:29 CET 2020 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip