Skip to content

Commit 5725cac

Browse files
committed
Release 3.5.0
1 parent 708e678 commit 5725cac

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 26
4+
compileSdkVersion 30
55
buildToolsVersion '28.0.2'
66

77
defaultConfig {
88
applicationId "com.unity3d.ads.example"
99
minSdkVersion 19
10-
targetSdkVersion 29
10+
targetSdkVersion 30
1111
versionCode = 3500
1212
versionName = "3.5.0"
1313
}

unity-ads/src/main/java/com/unity3d/services/core/webview/WebView.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,12 @@ public WebView(Context context) {
2222
super(context);
2323
WebSettings settings = getSettings();
2424

25-
if(Build.VERSION.SDK_INT >= 16 && Build.VERSION.SDK_INT < 30) {
25+
if(Build.VERSION.SDK_INT >= 16) {
2626
settings.setAllowFileAccessFromFileURLs(true);
2727
settings.setAllowUniversalAccessFromFileURLs(true);
2828
}
2929

30-
if(Build.VERSION.SDK_INT >= 30) {
31-
settings.setAllowFileAccess(true);
32-
}
30+
settings.setAllowFileAccess(true);
3331

3432
if (Build.VERSION.SDK_INT >= 19) {
3533
try {

0 commit comments

Comments
 (0)