Update Lib + Gradle

This commit is contained in:
2023-01-31 14:20:49 +01:00
parent 3e6ae820c5
commit 42e72c15f1
2 changed files with 11 additions and 12 deletions

View File

@@ -16,12 +16,12 @@ android {
}
}
compileSdk 32
compileSdk 33
defaultConfig {
applicationId "fr.svpro.radiomercure"
minSdk 26
targetSdk 32
targetSdk 33
versionCode 202
versionName '2.0.2'
@@ -44,12 +44,12 @@ android {
dependencies {
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'com.google.android.material:material:1.7.0'
implementation 'androidx.appcompat:appcompat:1.6.0'
implementation 'com.google.android.material:material:1.8.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.4'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}

View File

@@ -184,19 +184,18 @@ public class MainActivity extends AppCompatActivity {
web.getSettings().setAllowFileAccess(true);
web.getSettings().setAllowFileAccessFromFileURLs(true);
web.getSettings().setAllowUniversalAccessFromFileURLs(true);
web.getSettings().setAppCacheEnabled(true);
web.getSettings().setDatabaseEnabled(true);
web.getSettings().setDomStorageEnabled(true);
web.getSettings().setCacheMode(WebSettings.LOAD_DEFAULT);
web.getSettings().setAppCachePath(web.getContext().getCacheDir().getAbsolutePath());
// web.getSettings().setAppCachePath(web.getContext().getCacheDir().getAbsolutePath());
web.getSettings().setUseWideViewPort(true);
web.getSettings().setLoadWithOverviewMode(true);
web.getSettings().setLayoutAlgorithm(WebSettings.LayoutAlgorithm.SINGLE_COLUMN);
web.getSettings().setAllowFileAccessFromFileURLs(true);
//Log.w("AGENT", web.getSettings().getUserAgentString());
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
web.getSettings().setAllowFileAccessFromFileURLs(true);
}
//if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
// web.getSettings().setAllowFileAccessFromFileURLs(true);
//}
web.loadUrl(URL_PLATEFORM);
web.setDownloadListener((url, userAgent, contentDisposition, mimeType, contentLength) -> {