Merge pull request #2941 from nextcloud/dependabot/gradle/com.android.tools.build-gradle-8.0.0

Build(deps): Bump com.android.tools.build:gradle from 7.4.2 to 8.0.0
This commit is contained in:
Andy Scherzinger 2023-04-17 10:30:27 +02:00 committed by GitHub
commit 1227961ad8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
26 changed files with 100 additions and 74 deletions

View File

@ -4,7 +4,7 @@ name: generic
steps: steps:
- name: generic - name: generic
image: ghcr.io/nextcloud/continuous-integration-android8:2 image: ghcr.io/nextcloud/continuous-integration-android8:3
commands: commands:
- ./gradlew --console=plain assembleGeneric - ./gradlew --console=plain assembleGeneric
@ -23,7 +23,7 @@ name: gplay
steps: steps:
- name: gplay - name: gplay
image: ghcr.io/nextcloud/continuous-integration-android8:2 image: ghcr.io/nextcloud/continuous-integration-android8:3
commands: commands:
- ./gradlew --console=plain assembleGplay - ./gradlew --console=plain assembleGplay
@ -42,7 +42,7 @@ name: tests
steps: steps:
- name: all - name: all
image: ghcr.io/nextcloud/continuous-integration-android8:2 image: ghcr.io/nextcloud/continuous-integration-android8:3
privileged: true privileged: true
commands: commands:
- emulator -avd android -no-snapshot -gpu swiftshader_indirect -no-window -no-audio -skin 500x833 & - emulator -avd android -no-snapshot -gpu swiftshader_indirect -no-window -no-audio -skin 500x833 &

View File

@ -32,11 +32,11 @@ jobs:
with: with:
repository: ${{ steps.get-vars.outputs.repo }} repository: ${{ steps.get-vars.outputs.repo }}
ref: ${{ steps.get-vars.outputs.branch }} ref: ${{ steps.get-vars.outputs.branch }}
- name: Set up JDK 11 - name: Set up JDK 17
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0 uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0
with: with:
distribution: "temurin" distribution: "temurin"
java-version: 11 java-version: 17
- name: Install dependencies - name: Install dependencies
run: | run: |
python3 -m pip install defusedxml python3 -m pip install defusedxml

View File

@ -20,7 +20,7 @@ jobs:
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0 uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0
with: with:
distribution: "temurin" distribution: "temurin"
java-version: 11 java-version: 17
- name: Build ${{ matrix.flavor }} - name: Build ${{ matrix.flavor }}
run: | run: |
echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" >> gradle.properties echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" >> gradle.properties

View File

@ -16,10 +16,10 @@ jobs:
task: [ detekt, ktlintCheck ] task: [ detekt, ktlintCheck ]
steps: steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0 - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
- name: Set up JDK 11 - name: Set up JDK 17
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0 uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0
with: with:
distribution: "temurin" distribution: "temurin"
java-version: 11 java-version: 17
- name: Check ${{ matrix.task }} - name: Check ${{ matrix.task }}
run: ./gradlew ${{ matrix.task }} run: ./gradlew ${{ matrix.task }}

View File

@ -39,7 +39,7 @@ jobs:
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0 uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0
with: with:
distribution: "temurin" distribution: "temurin"
java-version: 11 java-version: 17
- name: Assemble - name: Assemble
run: | run: |
mkdir -p "$HOME/.gradle" mkdir -p "$HOME/.gradle"

View File

@ -17,12 +17,12 @@ jobs:
id: check-secrets id: check-secrets
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0 - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
if: ${{ steps.check-secrets.outputs.ok == 'true' }} if: ${{ steps.check-secrets.outputs.ok == 'true' }}
- name: set up JDK 11 - name: set up JDK 17
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0 uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0
if: ${{ steps.check-secrets.outputs.ok == 'true' }} if: ${{ steps.check-secrets.outputs.ok == 'true' }}
with: with:
distribution: "temurin" distribution: "temurin"
java-version: 11 java-version: 17
- name: Build QA - name: Build QA
if: ${{ steps.check-secrets.outputs.ok == 'true' }} if: ${{ steps.check-secrets.outputs.ok == 'true' }}
env: env:

View File

@ -122,8 +122,8 @@ android {
check.dependsOn 'spotbugsGplayDebug', 'lint', 'ktlintCheck', 'detekt' check.dependsOn 'spotbugsGplayDebug', 'lint', 'ktlintCheck', 'detekt'
compileOptions { compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_17
} }
buildFeatures { buildFeatures {

View File

@ -339,7 +339,7 @@ class ConversationItem(
} }
companion object { companion object {
const val VIEW_TYPE = R.layout.rv_item_conversation_with_last_message const val VIEW_TYPE = FlexibleItemViewType.CONVERSATION_ITEM
private const val MILLIES = 1000L private const val MILLIES = 1000L
private const val STATUS_SIZE_IN_DP = 9f private const val STATUS_SIZE_IN_DP = 9f
private const val UNREAD_BUBBLE_STROKE_WIDTH = 6.0f private const val UNREAD_BUBBLE_STROKE_WIDTH = 6.0f

View File

@ -0,0 +1,33 @@
/*
* Nextcloud Talk application
*
* @author Andy Scherzinger
* Copyright (C) 2023 Andy Scherzinger <info@andy-scherzinger.de>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.nextcloud.talk.adapters.items
class FlexibleItemViewType {
companion object {
const val CONVERSATION_ITEM: Int = 1120391230
const val LOAD_MORE_RESULTS_ITEM: Int = 1120391231
const val MESSAGE_RESULT_ITEM: Int = 1120391232
const val MESSAGES_TEXT_HEADER_ITEM: Int = 1120391233
const val POLL_RESULT_HEADER_ITEM: Int = 1120391234
const val POLL_RESULT_VOTER_ITEM: Int = 1120391235
const val POLL_RESULT_VOTERS_OVERVIEW_ITEM: Int = 1120391236
}
}

View File

@ -36,7 +36,7 @@ object LoadMoreResultsItem :
IFilterable<String> { IFilterable<String> {
// layout is used as view type for uniqueness // layout is used as view type for uniqueness
const val VIEW_TYPE: Int = R.layout.rv_item_load_more const val VIEW_TYPE = FlexibleItemViewType.LOAD_MORE_RESULTS_ITEM
class ViewHolder(view: View, adapter: FlexibleAdapter<*>) : class ViewHolder(view: View, adapter: FlexibleAdapter<*>) :
FlexibleViewHolder(view, adapter) { FlexibleViewHolder(view, adapter) {

View File

@ -92,8 +92,7 @@ data class MessageResultItem constructor(
} }
companion object { companion object {
// layout is used as view type for uniqueness const val VIEW_TYPE = FlexibleItemViewType.MESSAGE_RESULT_ITEM
const val VIEW_TYPE: Int = R.layout.rv_item_search_message
} }
override fun getHeader(): GenericTextHeaderItem = MessagesTextHeaderItem(context, viewThemeUtils) override fun getHeader(): GenericTextHeaderItem = MessagesTextHeaderItem(context, viewThemeUtils)

View File

@ -28,10 +28,7 @@ import com.nextcloud.talk.ui.theme.ViewThemeUtils
class MessagesTextHeaderItem(context: Context, viewThemeUtils: ViewThemeUtils) : class MessagesTextHeaderItem(context: Context, viewThemeUtils: ViewThemeUtils) :
GenericTextHeaderItem(context.getString(R.string.messages), viewThemeUtils) { GenericTextHeaderItem(context.getString(R.string.messages), viewThemeUtils) {
companion object { companion object {
/** const val VIEW_TYPE = FlexibleItemViewType.MESSAGES_TEXT_HEADER_ITEM
* "Random" value, just has to be different than other view types
*/
const val VIEW_TYPE = 1120391230
} }
override fun getItemViewType(): Int = VIEW_TYPE override fun getItemViewType(): Int = VIEW_TYPE

View File

@ -37,7 +37,6 @@ import com.nextcloud.talk.databinding.ItemCustomIncomingLinkPreviewMessageBindin
import com.nextcloud.talk.extensions.loadBotsAvatar import com.nextcloud.talk.extensions.loadBotsAvatar
import com.nextcloud.talk.extensions.loadChangelogBotAvatar import com.nextcloud.talk.extensions.loadChangelogBotAvatar
import com.nextcloud.talk.models.json.chat.ChatMessage import com.nextcloud.talk.models.json.chat.ChatMessage
import com.nextcloud.talk.ui.recyclerview.MessageSwipeCallback
import com.nextcloud.talk.ui.theme.ViewThemeUtils import com.nextcloud.talk.ui.theme.ViewThemeUtils
import com.nextcloud.talk.utils.ApiUtils import com.nextcloud.talk.utils.ApiUtils
import com.nextcloud.talk.utils.DateUtils import com.nextcloud.talk.utils.DateUtils
@ -98,7 +97,7 @@ class IncomingLinkPreviewMessageViewHolder(incomingView: View, payload: Any) : M
true true
} }
itemView.setTag(MessageSwipeCallback.REPLYABLE_VIEW_TAG, message.replyable) itemView.setTag(R.string.replyable_message_view_tag, message.replyable)
Reaction().showReactions( Reaction().showReactions(
message, message,

View File

@ -45,7 +45,6 @@ import com.nextcloud.talk.databinding.ItemCustomIncomingTextMessageBinding
import com.nextcloud.talk.extensions.loadBotsAvatar import com.nextcloud.talk.extensions.loadBotsAvatar
import com.nextcloud.talk.extensions.loadChangelogBotAvatar import com.nextcloud.talk.extensions.loadChangelogBotAvatar
import com.nextcloud.talk.models.json.chat.ChatMessage import com.nextcloud.talk.models.json.chat.ChatMessage
import com.nextcloud.talk.ui.recyclerview.MessageSwipeCallback
import com.nextcloud.talk.ui.theme.ViewThemeUtils import com.nextcloud.talk.ui.theme.ViewThemeUtils
import com.nextcloud.talk.utils.ApiUtils import com.nextcloud.talk.utils.ApiUtils
import com.nextcloud.talk.utils.DateUtils import com.nextcloud.talk.utils.DateUtils
@ -111,7 +110,7 @@ class IncomingTextMessageViewHolder(itemView: View, payload: Any) : MessageHolde
binding.messageQuote.quotedChatMessageView.visibility = View.GONE binding.messageQuote.quotedChatMessageView.visibility = View.GONE
} }
itemView.setTag(MessageSwipeCallback.REPLYABLE_VIEW_TAG, message.replyable) itemView.setTag(R.string.replyable_message_view_tag, message.replyable)
Reaction().showReactions( Reaction().showReactions(
message, message,

View File

@ -36,7 +36,6 @@ import com.nextcloud.talk.application.NextcloudTalkApplication.Companion.sharedA
import com.nextcloud.talk.databinding.ItemCustomOutcomingLinkPreviewMessageBinding import com.nextcloud.talk.databinding.ItemCustomOutcomingLinkPreviewMessageBinding
import com.nextcloud.talk.models.json.chat.ChatMessage import com.nextcloud.talk.models.json.chat.ChatMessage
import com.nextcloud.talk.models.json.chat.ReadStatus import com.nextcloud.talk.models.json.chat.ReadStatus
import com.nextcloud.talk.ui.recyclerview.MessageSwipeCallback
import com.nextcloud.talk.ui.theme.ViewThemeUtils import com.nextcloud.talk.ui.theme.ViewThemeUtils
import com.nextcloud.talk.utils.ApiUtils import com.nextcloud.talk.utils.ApiUtils
import com.nextcloud.talk.utils.DateUtils import com.nextcloud.talk.utils.DateUtils
@ -121,7 +120,7 @@ class OutcomingLinkPreviewMessageViewHolder(outcomingView: View, payload: Any) :
true true
} }
itemView.setTag(MessageSwipeCallback.REPLYABLE_VIEW_TAG, message.replyable) itemView.setTag(R.string.replyable_message_view_tag, message.replyable)
Reaction().showReactions( Reaction().showReactions(
message, message,

View File

@ -42,7 +42,6 @@ import com.nextcloud.talk.chat.ChatActivity
import com.nextcloud.talk.databinding.ItemCustomOutcomingTextMessageBinding import com.nextcloud.talk.databinding.ItemCustomOutcomingTextMessageBinding
import com.nextcloud.talk.models.json.chat.ChatMessage import com.nextcloud.talk.models.json.chat.ChatMessage
import com.nextcloud.talk.models.json.chat.ReadStatus import com.nextcloud.talk.models.json.chat.ReadStatus
import com.nextcloud.talk.ui.recyclerview.MessageSwipeCallback
import com.nextcloud.talk.ui.theme.ViewThemeUtils import com.nextcloud.talk.ui.theme.ViewThemeUtils
import com.nextcloud.talk.utils.ApiUtils import com.nextcloud.talk.utils.ApiUtils
import com.nextcloud.talk.utils.DateUtils import com.nextcloud.talk.utils.DateUtils
@ -127,7 +126,7 @@ class OutcomingTextMessageViewHolder(itemView: View) : OutcomingTextMessageViewH
binding.checkMark.setContentDescription(readStatusContentDescriptionString) binding.checkMark.setContentDescription(readStatusContentDescriptionString)
itemView.setTag(MessageSwipeCallback.REPLYABLE_VIEW_TAG, message.replyable) itemView.setTag(R.string.replyable_message_view_tag, message.replyable)
Reaction().showReactions( Reaction().showReactions(
message, message,

View File

@ -54,7 +54,6 @@ import com.nextcloud.talk.data.user.model.User
import com.nextcloud.talk.databinding.ReactionsInsideMessageBinding import com.nextcloud.talk.databinding.ReactionsInsideMessageBinding
import com.nextcloud.talk.extensions.loadChangelogBotAvatar import com.nextcloud.talk.extensions.loadChangelogBotAvatar
import com.nextcloud.talk.models.json.chat.ChatMessage import com.nextcloud.talk.models.json.chat.ChatMessage
import com.nextcloud.talk.ui.recyclerview.MessageSwipeCallback
import com.nextcloud.talk.ui.theme.ViewThemeUtils import com.nextcloud.talk.ui.theme.ViewThemeUtils
import com.nextcloud.talk.utils.DateUtils import com.nextcloud.talk.utils.DateUtils
import com.nextcloud.talk.utils.DisplayUtils import com.nextcloud.talk.utils.DisplayUtils
@ -159,7 +158,7 @@ abstract class PreviewMessageViewHolder(itemView: View?, payload: Any?) :
} }
messageText.text = "" messageText.text = ""
} }
itemView.setTag(MessageSwipeCallback.REPLYABLE_VIEW_TAG, message.replyable) itemView.setTag(R.string.replyable_message_view_tag, message.replyable)
Reaction().showReactions( Reaction().showReactions(
message, message,
::clickOnReaction, ::clickOnReaction,

View File

@ -43,8 +43,6 @@ import javax.inject.Inject;
import androidx.core.view.ViewCompat; import androidx.core.view.ViewCompat;
import autodagger.AutoInjector; import autodagger.AutoInjector;
import static com.nextcloud.talk.ui.recyclerview.MessageSwipeCallback.REPLYABLE_VIEW_TAG;
@AutoInjector(NextcloudTalkApplication.class) @AutoInjector(NextcloudTalkApplication.class)
public class SystemMessageViewHolder extends MessageHolders.IncomingTextMessageViewHolder<ChatMessage> { public class SystemMessageViewHolder extends MessageHolders.IncomingTextMessageViewHolder<ChatMessage> {
@ -109,6 +107,6 @@ public class SystemMessageViewHolder extends MessageHolders.IncomingTextMessageV
time.setText(dateUtils.getLocalTimeStringFromTimestamp(message.getTimestamp())); time.setText(dateUtils.getLocalTimeStringFromTimestamp(message.getTimestamp()));
} }
itemView.setTag(REPLYABLE_VIEW_TAG, message.getReplyable()); itemView.setTag(R.string.replyable_message_view_tag, message.getReplyable());
} }
} }

View File

@ -20,7 +20,7 @@
package com.nextcloud.talk.polls.adapters package com.nextcloud.talk.polls.adapters
import com.nextcloud.talk.R import com.nextcloud.talk.adapters.items.FlexibleItemViewType
data class PollResultHeaderItem( data class PollResultHeaderItem(
val name: String, val name: String,
@ -33,7 +33,6 @@ data class PollResultHeaderItem(
} }
companion object { companion object {
// layout is used as view type for uniqueness const val VIEW_TYPE = FlexibleItemViewType.POLL_RESULT_HEADER_ITEM
const val VIEW_TYPE: Int = R.layout.poll_result_header_item
} }
} }

View File

@ -20,7 +20,7 @@
package com.nextcloud.talk.polls.adapters package com.nextcloud.talk.polls.adapters
import com.nextcloud.talk.R import com.nextcloud.talk.adapters.items.FlexibleItemViewType
import com.nextcloud.talk.polls.model.PollDetails import com.nextcloud.talk.polls.model.PollDetails
data class PollResultVoterItem( data class PollResultVoterItem(
@ -32,7 +32,6 @@ data class PollResultVoterItem(
} }
companion object { companion object {
// layout is used as view type for uniqueness const val VIEW_TYPE = FlexibleItemViewType.POLL_RESULT_VOTER_ITEM
const val VIEW_TYPE: Int = R.layout.poll_result_voter_item
} }
} }

View File

@ -20,7 +20,7 @@
package com.nextcloud.talk.polls.adapters package com.nextcloud.talk.polls.adapters
import com.nextcloud.talk.R import com.nextcloud.talk.adapters.items.FlexibleItemViewType
import com.nextcloud.talk.polls.model.PollDetails import com.nextcloud.talk.polls.model.PollDetails
data class PollResultVotersOverviewItem( data class PollResultVotersOverviewItem(
@ -33,6 +33,6 @@ data class PollResultVotersOverviewItem(
companion object { companion object {
// layout is used as view type for uniqueness // layout is used as view type for uniqueness
const val VIEW_TYPE: Int = R.layout.poll_result_voters_overview_item const val VIEW_TYPE = FlexibleItemViewType.POLL_RESULT_VOTERS_OVERVIEW_ITEM
} }
} }

View File

@ -39,6 +39,9 @@ import com.nextcloud.talk.ui.theme.ViewThemeUtils;
import com.nextcloud.talk.utils.FileSortOrder; import com.nextcloud.talk.utils.FileSortOrder;
import com.nextcloud.talk.utils.preferences.AppPreferences; import com.nextcloud.talk.utils.preferences.AppPreferences;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject; import javax.inject.Inject;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
@ -65,7 +68,7 @@ public class SortingOrderDialogFragment extends DialogFragment implements View.O
private SortingOrderFragmentBinding binding; private SortingOrderFragmentBinding binding;
private View dialogView; private View dialogView;
private View[] taggedViews; private List<View> taggedViews;
private String currentSortOrderName; private String currentSortOrderName;
public static SortingOrderDialogFragment newInstance(@NonNull FileSortOrder sortOrder) { public static SortingOrderDialogFragment newInstance(@NonNull FileSortOrder sortOrder) {
@ -121,31 +124,32 @@ public class SortingOrderDialogFragment extends DialogFragment implements View.O
viewThemeUtils.platform.themeDialog(binding.root); viewThemeUtils.platform.themeDialog(binding.root);
viewThemeUtils.material.colorMaterialButtonPrimaryBorderless(binding.cancel); viewThemeUtils.material.colorMaterialButtonPrimaryBorderless(binding.cancel);
taggedViews = new View[12]; taggedViews = new ArrayList<>(12);
taggedViews[0] = binding.sortByNameAscending;
taggedViews[0].setTag(FileSortOrder.Companion.getSort_a_to_z()); binding.sortByNameAscending.setTag(FileSortOrder.Companion.getSort_a_to_z());
taggedViews[1] = binding.sortByNameAZText; taggedViews.add(binding.sortByNameAscending);
taggedViews[1].setTag(FileSortOrder.Companion.getSort_a_to_z()); binding.sortByNameAZText.setTag(FileSortOrder.Companion.getSort_a_to_z());
taggedViews[2] = binding.sortByNameDescending; taggedViews.add(binding.sortByNameAZText);
taggedViews[2].setTag(FileSortOrder.Companion.getSort_z_to_a()); binding.sortByNameDescending.setTag(FileSortOrder.Companion.getSort_z_to_a());
taggedViews[3] = binding.sortByNameZAText; taggedViews.add(binding.sortByNameDescending);
taggedViews[3].setTag(FileSortOrder.Companion.getSort_z_to_a()); binding.sortByNameZAText.setTag(FileSortOrder.Companion.getSort_z_to_a());
taggedViews[4] = binding.sortByModificationDateAscending; taggedViews.add(binding.sortByNameZAText);
taggedViews[4].setTag(FileSortOrder.Companion.getSort_old_to_new()); binding.sortByModificationDateAscending.setTag(FileSortOrder.Companion.getSort_old_to_new());
taggedViews[5] = binding.sortByModificationDateOldestFirstText; taggedViews.add(binding.sortByModificationDateAscending);
taggedViews[5].setTag(FileSortOrder.Companion.getSort_old_to_new()); binding.sortByModificationDateOldestFirstText.setTag(FileSortOrder.Companion.getSort_old_to_new());
taggedViews[6] = binding.sortByModificationDateDescending; taggedViews.add(binding.sortByModificationDateOldestFirstText);
taggedViews[6].setTag(FileSortOrder.Companion.getSort_new_to_old()); binding.sortByModificationDateDescending.setTag(FileSortOrder.Companion.getSort_new_to_old());
taggedViews[7] = binding.sortByModificationDateNewestFirstText; taggedViews.add(binding.sortByModificationDateDescending);
taggedViews[7].setTag(FileSortOrder.Companion.getSort_new_to_old()); binding.sortByModificationDateNewestFirstText.setTag(FileSortOrder.Companion.getSort_new_to_old());
taggedViews[8] = binding.sortBySizeAscending; taggedViews.add(binding.sortByModificationDateNewestFirstText);
taggedViews[8].setTag(FileSortOrder.Companion.getSort_small_to_big()); binding.sortBySizeAscending.setTag(FileSortOrder.Companion.getSort_small_to_big());
taggedViews[9] = binding.sortBySizeSmallestFirstText; taggedViews.add(binding.sortBySizeAscending);
taggedViews[9].setTag(FileSortOrder.Companion.getSort_small_to_big()); binding.sortBySizeSmallestFirstText.setTag(FileSortOrder.Companion.getSort_small_to_big());
taggedViews[10] = binding.sortBySizeDescending; taggedViews.add(binding.sortBySizeSmallestFirstText);
taggedViews[10].setTag(FileSortOrder.Companion.getSort_big_to_small()); binding.sortBySizeDescending.setTag(FileSortOrder.Companion.getSort_big_to_small());
taggedViews[11] = binding.sortBySizeBiggestFirstText; taggedViews.add(binding.sortBySizeDescending);
taggedViews[11].setTag(FileSortOrder.Companion.getSort_big_to_small()); binding.sortBySizeBiggestFirstText.setTag(FileSortOrder.Companion.getSort_big_to_small());
taggedViews.add(binding.sortBySizeBiggestFirstText);
setupActiveOrderSelection(); setupActiveOrderSelection();
} }

View File

@ -74,8 +74,8 @@ class MessageSwipeCallback(private val context: Context, private val messageSwip
override fun getMovementFlags(recyclerView: RecyclerView, viewHolder: RecyclerView.ViewHolder): Int { override fun getMovementFlags(recyclerView: RecyclerView, viewHolder: RecyclerView.ViewHolder): Int {
view = viewHolder.itemView view = viewHolder.itemView
if (viewHolder.itemView.getTag(REPLYABLE_VIEW_TAG) != null && if (viewHolder.itemView.getTag(R.string.replyable_message_view_tag) != null &&
viewHolder.itemView.getTag(REPLYABLE_VIEW_TAG) as Boolean viewHolder.itemView.getTag(R.string.replyable_message_view_tag) as Boolean
) { ) {
imageDrawable = AppCompatResources.getDrawable(context, R.drawable.ic_reply)!! imageDrawable = AppCompatResources.getDrawable(context, R.drawable.ic_reply)!!
shareRound = AppCompatResources.getDrawable(context, R.drawable.round_bgnd)!! shareRound = AppCompatResources.getDrawable(context, R.drawable.round_bgnd)!!
@ -291,6 +291,5 @@ class MessageSwipeCallback(private val context: Context, private val messageSwip
const val ICON_BOUNDS_PIXEL_TOP: Int = 13 const val ICON_BOUNDS_PIXEL_TOP: Int = 13
const val ICON_BOUNDS_PIXEL_RIGHT: Int = 12 const val ICON_BOUNDS_PIXEL_RIGHT: Int = 12
const val ICON_BOUNDS_PIXEL_BOTTOM: Int = 11 const val ICON_BOUNDS_PIXEL_BOTTOM: Int = 11
const val REPLYABLE_VIEW_TAG: Int = R.string.replyable_message_view_tag
} }
} }

View File

@ -34,7 +34,7 @@ buildscript {
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:7.4.2' classpath 'com.android.tools.build:gradle:8.0.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}"
classpath "org.jetbrains.kotlin:kotlin-serialization:${kotlinVersion}" classpath "org.jetbrains.kotlin:kotlin-serialization:${kotlinVersion}"
classpath 'com.github.spotbugs.snom:spotbugs-gradle-plugin:5.0.14' classpath 'com.github.spotbugs.snom:spotbugs-gradle-plugin:5.0.14'

View File

@ -35,6 +35,9 @@ org.gradle.jvmargs=-XX:MaxHeapSize\=2048m -Xmx2048m
android.useAndroidX=true android.useAndroidX=true
android.enableJetifier=true android.enableJetifier=true
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false
# org.gradle.parallel=true # org.gradle.parallel=true
org.gradle.daemon=true org.gradle.daemon=true
@ -44,4 +47,4 @@ org.gradle.parallel=true
NC_TEST_SERVER_BASEURL=http://server NC_TEST_SERVER_BASEURL=http://server
NC_TEST_SERVER_USERNAME=user1 NC_TEST_SERVER_USERNAME=user1
NC_TEST_SERVER_PASSWORD=user1 NC_TEST_SERVER_PASSWORD=user1

View File

@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip