From 5725cac204fc8c592cd9a484f669b9bcdf237407 Mon Sep 17 00:00:00 2001 From: Steven Bankhead Date: Thu, 1 Oct 2020 17:17:35 -0700 Subject: [PATCH] Release 3.5.0 --- app/build.gradle | 4 ++-- .../java/com/unity3d/services/core/webview/WebView.java | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 8354f318..bf6dd881 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,13 +1,13 @@ apply plugin: 'com.android.application' android { - compileSdkVersion 26 + compileSdkVersion 30 buildToolsVersion '28.0.2' defaultConfig { applicationId "com.unity3d.ads.example" minSdkVersion 19 - targetSdkVersion 29 + targetSdkVersion 30 versionCode = 3500 versionName = "3.5.0" } diff --git a/unity-ads/src/main/java/com/unity3d/services/core/webview/WebView.java b/unity-ads/src/main/java/com/unity3d/services/core/webview/WebView.java index 74013a66..6ae1c41e 100644 --- a/unity-ads/src/main/java/com/unity3d/services/core/webview/WebView.java +++ b/unity-ads/src/main/java/com/unity3d/services/core/webview/WebView.java @@ -22,14 +22,12 @@ public WebView(Context context) { super(context); WebSettings settings = getSettings(); - if(Build.VERSION.SDK_INT >= 16 && Build.VERSION.SDK_INT < 30) { + if(Build.VERSION.SDK_INT >= 16) { settings.setAllowFileAccessFromFileURLs(true); settings.setAllowUniversalAccessFromFileURLs(true); } - if(Build.VERSION.SDK_INT >= 30) { - settings.setAllowFileAccess(true); - } + settings.setAllowFileAccess(true); if (Build.VERSION.SDK_INT >= 19) { try {