From 1106987c0c859e9761d2973df185a0a1f1d61d59 Mon Sep 17 00:00:00 2001 From: ThomasSession Date: Fri, 28 Mar 2025 10:33:01 +1030 Subject: [PATCH] Android target sdk 35 (#1063) * Android target sdk 15 Removed unused libraries Fixed broken icon colors * Bumping libsession-util --- app/build.gradle | 22 +++++-------------- app/src/main/AndroidManifest.xml | 2 +- .../securesms/ApplicationContext.kt | 11 +++++----- .../menus/ConversationActionModeCallback.kt | 18 ++++++++++++++- .../conversation/v2/messages/DocumentView.kt | 1 + app/src/main/res/layout/share_activity.xml | 10 ++++----- app/src/main/res/layout/view_document.xml | 2 +- .../menu/menu_conversation_item_action.xml | 1 + build.gradle | 10 ++------- gradle.properties | 6 ++--- libsession/build.gradle | 2 +- 11 files changed, 43 insertions(+), 42 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index f4d9c11a7a..2c407f426e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -270,7 +270,7 @@ dependencies { implementation("com.google.dagger:hilt-android:$daggerHiltVersion") implementation "androidx.appcompat:appcompat:$appcompatVersion" - implementation 'androidx.recyclerview:recyclerview:1.3.2' + implementation 'androidx.recyclerview:recyclerview:1.4.0' implementation "com.google.android.material:material:$materialVersion" implementation 'com.google.android.flexbox:flexbox:3.0.0' implementation 'androidx.legacy:legacy-support-v13:1.0.0' @@ -279,7 +279,7 @@ dependencies { implementation 'androidx.legacy:legacy-preference-v14:1.0.0' implementation 'androidx.gridlayout:gridlayout:1.0.0' implementation 'androidx.exifinterface:exifinterface:1.3.4' - implementation 'androidx.constraintlayout:constraintlayout:2.1.4' + implementation 'androidx.constraintlayout:constraintlayout:2.2.1' implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycleVersion" implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleVersion" implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycleVersion" @@ -287,11 +287,11 @@ dependencies { implementation "androidx.lifecycle:lifecycle-viewmodel-compose:$lifecycleVersion" implementation "androidx.lifecycle:lifecycle-extensions:2.2.0" implementation "androidx.paging:paging-runtime-ktx:$pagingVersion" - implementation 'androidx.activity:activity-ktx:1.9.2' - implementation 'androidx.activity:activity-compose:1.9.2' - implementation 'androidx.fragment:fragment-ktx:1.8.4' + implementation 'androidx.activity:activity-ktx:1.10.1' + implementation 'androidx.activity:activity-compose:1.10.1' + implementation 'androidx.fragment:fragment-ktx:1.8.6' implementation "androidx.core:core-ktx:$coreVersion" - implementation "androidx.work:work-runtime-ktx:2.7.1" + implementation "androidx.work:work-runtime-ktx:2.10.0" playImplementation ("com.google.firebase:firebase-messaging:24.0.0") { exclude group: 'com.google.firebase', module: 'firebase-core' @@ -307,19 +307,13 @@ dependencies { implementation 'org.signal:aesgcmprovider:0.0.3' implementation 'io.github.webrtc-sdk:android:125.6422.06.1' implementation "me.leolin:ShortcutBadger:1.1.16" - implementation 'se.emilsjolander:stickylistheaders:2.7.0' - implementation 'com.jpardogo.materialtabstrip:library:1.0.9' implementation 'org.apache.httpcomponents:httpclient-android:4.3.5' - implementation 'commons-net:commons-net:3.7.2' implementation 'com.github.chrisbanes:PhotoView:2.1.3' implementation "com.github.bumptech.glide:glide:$glideVersion" implementation "com.github.bumptech.glide:compose:1.0.0-beta01" implementation 'com.makeramen:roundedimageview:2.1.0' - implementation 'com.pnikosis:materialish-progress:1.5' implementation 'org.greenrobot:eventbus:3.0.0' - implementation 'pl.tajchert:waitingdots:0.1.0' implementation 'com.vanniktech:android-image-cropper:4.5.0' - implementation 'com.melnykov:floatingactionbutton:1.3.0' implementation ('com.davemorrissey.labs:subsampling-scale-image-view:3.6.0') { exclude group: 'com.android.support', module: 'support-annotations' } @@ -331,7 +325,6 @@ dependencies { exclude group: 'com.squareup.okhttp', module: 'okhttp-urlconnection' } implementation 'com.annimon:stream:1.1.8' - implementation 'com.github.dmytrodanylyk.circular-progress-button:library:1.1.3-S2' implementation 'androidx.sqlite:sqlite-ktx:2.3.1' implementation 'net.zetetic:sqlcipher-android:4.6.1@aar' implementation project(":libsignal") @@ -363,9 +356,6 @@ dependencies { // Core library androidTestImplementation "androidx.test:core:$testCoreVersion" - androidTestImplementation('com.adevinta.android:barista:4.2.0') { - exclude group: 'org.jetbrains.kotlin' - } // AndroidJUnitRunner and JUnit Rules androidTestImplementation 'androidx.test:runner:1.5.2' androidTestImplementation 'androidx.test:rules:1.5.0' diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index d6c9072e18..12a36085de 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -3,7 +3,7 @@ xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"> - + - + diff --git a/app/src/main/res/layout/view_document.xml b/app/src/main/res/layout/view_document.xml index c9abfd0f55..95b9921740 100644 --- a/app/src/main/res/layout/view_document.xml +++ b/app/src/main/res/layout/view_document.xml @@ -15,7 +15,7 @@ android:layout_height="match_parent" android:paddingHorizontal="@dimen/message_spacing" android:background="@drawable/view_quote_attachment_preview_background"> -