Compare commits

...
6 changed files with 39 additions and 10 deletions

No files matched your search

+5 -5
View File
@@ -71,15 +71,13 @@ file("$project.rootDir/ndk.env").readLines().each() {
android {
compileSdkVersion 32
compileSdkVersion 33
// install this NDK version and Cmake to produce smaller APKs. Build will still work if not installed
ndkVersion "${ndkEnv.get("NDK_VERSION")}"
namespace 'com.owncloud.android'
testNamespace "${namespace}.test"
defaultConfig {
minSdkVersion 23
targetSdkVersion 31
@@ -229,14 +227,16 @@ dependencies {
exclude group: 'org.ogce', module: 'xpp3' // unused in Android and brings wrong Junit version
}
compileOnly 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2' // remove after entire switch to lib v2
compileOnly 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
// remove after entire switch to lib v2
implementation "commons-httpclient:commons-httpclient:3.1@jar" // remove after entire switch to lib v2
implementation 'org.apache.jackrabbit:jackrabbit-webdav:2.13.5' // remove after entire switch to lib v2
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.android.material:material:1.7.0'
implementation 'com.jakewharton:disklrucache:2.0.2'
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation "androidx.appcompat:appcompat:$appCompatVersion"
implementation "androidx.appcompat:appcompat-resources:$appCompatVersion"
implementation 'androidx.webkit:webkit:1.5.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.exifinterface:exifinterface:1.3.5'
+1
View File
@@ -85,6 +85,7 @@
android:supportsRtl="true"
android:theme="@style/Theme.ownCloud.Toolbar"
android:usesCleartextTraffic="true"
android:localeConfig="@xml/locale_config"
tools:replace="android:allowBackup"
tools:ignore="UnusedAttribute">
@@ -73,6 +73,7 @@ import org.apache.commons.httpclient.methods.GetMethod;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.lang.ref.WeakReference;
import java.net.URLEncoder;
@@ -944,7 +945,7 @@ public final class ThumbnailsCacheManager {
} finally {
try {
retriever.release();
} catch (RuntimeException ex) {
} catch (RuntimeException | IOException ex) {
// Ignore failure at this point.
Log_OC.w(TAG, "Failed release MediaMetadataRetriever for " + file.getAbsolutePath());
}
@@ -193,10 +193,10 @@ public class ExternalSiteWebView extends FileActivity {
webSettings.setDomStorageEnabled(true);
// caching disabled in debug mode
if ((getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE) == 0) {
webSettings.setAppCacheEnabled(true);
webSettings.setAppCachePath(getCacheDir().getPath());
}
// if ((getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE) == 0) {
// webSettings.setAppCacheEnabled(true);
// webSettings.setAppCachePath(getCacheDir().getPath());
// }
}
private void setupActionBar(String title) {
+26
View File
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?><!--
~
~ Nextcloud Android client application
~
~ @author Tobias Kaminsky
~ Copyright (C) 2022 Tobias Kaminsky
~ Copyright (C) 2022 Nextcloud GmbH
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<locale-config xmlns:android="http://schemas.android.com/apk/res/android">
<locale android:name="en" />
<locale android:name="de" />
</locale-config>
+1
View File
@@ -17,6 +17,7 @@ buildscript {
exoplayerVersion = "2.18.1"
documentScannerVersion = "1.0.1"
roomVersion = "2.4.3"
appCompatVersion = "1.6.0-rc01"
ciBuild = System.getenv("CI") == "true"
}