Skip to content

Commit

Permalink
Release 3.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
UnitySteven committed Oct 2, 2020
1 parent 708e678 commit 5725cac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -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"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5725cac

Please sign in to comment.