File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
unity-ads/src/main/java/com/unity3d/services/core/webview Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.application'
2
2
3
3
android {
4
- compileSdkVersion 26
4
+ compileSdkVersion 30
5
5
buildToolsVersion ' 28.0.2'
6
6
7
7
defaultConfig {
8
8
applicationId " com.unity3d.ads.example"
9
9
minSdkVersion 19
10
- targetSdkVersion 29
10
+ targetSdkVersion 30
11
11
versionCode = 3500
12
12
versionName = " 3.5.0"
13
13
}
Original file line number Diff line number Diff line change @@ -22,14 +22,12 @@ public WebView(Context context) {
22
22
super (context );
23
23
WebSettings settings = getSettings ();
24
24
25
- if (Build .VERSION .SDK_INT >= 16 && Build . VERSION . SDK_INT < 30 ) {
25
+ if (Build .VERSION .SDK_INT >= 16 ) {
26
26
settings .setAllowFileAccessFromFileURLs (true );
27
27
settings .setAllowUniversalAccessFromFileURLs (true );
28
28
}
29
29
30
- if (Build .VERSION .SDK_INT >= 30 ) {
31
- settings .setAllowFileAccess (true );
32
- }
30
+ settings .setAllowFileAccess (true );
33
31
34
32
if (Build .VERSION .SDK_INT >= 19 ) {
35
33
try {
You can’t perform that action at this time.
0 commit comments