From d6a230a2357336297f6fa447e0c97878a0c726df Mon Sep 17 00:00:00 2001 From: Cody Henthorne Date: Mon, 9 Nov 2020 09:12:28 -0500 Subject: [PATCH] Update AppCompat to 1.2 along with other Android UI libraries. --- app/build.gradle | 8 ++-- .../activity_shared_contact_details.xml | 4 +- app/src/main/res/layout/alert_view.xml | 4 +- .../attachment_keyboard_button_item.xml | 2 +- .../camera_contact_selection_fragment.xml | 2 +- .../res/layout/contact_filter_toolbar.xml | 48 ++++++++++--------- .../res/layout/conversation_list_fragment.xml | 2 +- .../res/layout/conversation_search_nav.xml | 4 +- .../res/layout/conversation_title_view.xml | 2 +- app/src/main/res/layout/country_code_text.xml | 2 +- .../main/res/layout/device_add_fragment.xml | 15 +++--- .../main/res/layout/device_link_fragment.xml | 17 +++---- .../main/res/layout/emoji_display_item.xml | 2 +- .../res/layout/expiration_timer_badge.xml | 2 +- .../res/layout/giphy_activity_toolbar.xml | 25 +++++----- app/src/main/res/layout/insights_modal.xml | 2 +- .../layout/item_selectable_contact_field.xml | 2 +- app/src/main/res/layout/link_preview.xml | 2 +- app/src/main/res/layout/media_keyboard.xml | 4 +- .../res/layout/media_overview_activity.xml | 6 +-- .../res/layout/mediapicker_media_item.xml | 2 +- .../res/layout/mediasend_count_button.xml | 2 +- .../res/layout/message_details_recipient.xml | 3 +- .../res/layout/microphone_recorder_view.xml | 6 +-- .../res/layout/profile_create_fragment.xml | 6 +-- app/src/main/res/layout/quote_view.xml | 6 +-- .../main/res/layout/reactions_megaphone.xml | 2 +- .../res/layout/recipient_manage_fragment.xml | 2 +- app/src/main/res/layout/recording_layout.xml | 2 +- app/src/main/res/layout/share_activity.xml | 15 +++--- .../layout/sticker_management_empty_item.xml | 2 +- .../sticker_management_sticker_item.xml | 4 +- .../res/layout/sticker_preview_activity.xml | 2 +- app/src/main/res/layout/thumbnail_view.xml | 2 +- .../res/layout/transfer_controls_view.xml | 2 +- .../layout/transport_selection_list_item.xml | 20 ++++---- .../unidentified_delivery_learn_more.xml | 2 +- .../main/res/layout/unknown_sender_view.xml | 24 +++++----- app/src/main/res/layout/video_editor_hud.xml | 2 +- .../layout/webrtc_answer_decline_button.xml | 10 ++-- app/witness-verifications.gradle | 32 ++++++------- .../witness/WitnessPlugin.groovy | 21 ++++---- 42 files changed, 164 insertions(+), 160 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 3649ec24b0..87bfe0696b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -300,18 +300,18 @@ android { dependencies { lintChecks project(':lintchecks') - implementation('androidx.appcompat:appcompat:1.1.0-beta01') { + implementation ('androidx.appcompat:appcompat:1.2.0') { force = true } - implementation 'androidx.recyclerview:recyclerview:1.0.0' - implementation 'com.google.android.material:material:1.1.0' + implementation 'androidx.recyclerview:recyclerview:1.1.0' + implementation 'com.google.android.material:material:1.2.1' implementation 'androidx.legacy:legacy-support-v13:1.0.0' implementation 'androidx.cardview:cardview:1.0.0' implementation 'androidx.preference:preference:1.0.0' implementation 'androidx.legacy:legacy-preference-v14:1.0.0' implementation 'androidx.gridlayout:gridlayout:1.0.0' implementation 'androidx.exifinterface:exifinterface:1.0.0' - implementation 'androidx.constraintlayout:constraintlayout:1.1.3' + implementation 'androidx.constraintlayout:constraintlayout:2.0.4' implementation 'androidx.multidex:multidex:2.0.1' implementation 'androidx.navigation:navigation-fragment:2.1.0' implementation 'androidx.navigation:navigation-ui:2.1.0' diff --git a/app/src/main/res/layout/activity_shared_contact_details.xml b/app/src/main/res/layout/activity_shared_contact_details.xml index 04040fc0b3..85f00ea8aa 100644 --- a/app/src/main/res/layout/activity_shared_contact_details.xml +++ b/app/src/main/res/layout/activity_shared_contact_details.xml @@ -93,7 +93,7 @@ android:gravity="center" android:padding="10dp"> - - - - - - - + - + - - - - - - + - - + - - - - + - - - - - - - - - - - - - - - - - - - - - - - - + diff --git a/app/src/main/res/layout/sticker_management_empty_item.xml b/app/src/main/res/layout/sticker_management_empty_item.xml index a9dc64d44e..9e166a26da 100644 --- a/app/src/main/res/layout/sticker_management_empty_item.xml +++ b/app/src/main/res/layout/sticker_management_empty_item.xml @@ -8,7 +8,7 @@ android:layout_marginStart="@dimen/sticker_management_horizontal_margin" android:layout_marginEnd="@dimen/sticker_management_horizontal_margin"> - - - - - - - + - - + - + - + - - - - - - { return it.name.equals(name) && it.moduleVersion.id.group.equals(group) } - if (artifacts.size() > 1) { - throw new InvalidUserDataException("Multiple artifacts found for $group:$name, ${artifacts.size()} found") - } + artifacts.forEach { dependency -> + println "Verifying " + group + ":" + name - ResolvedArtifact dependency = artifacts.find() + if (dependency == null) { + throw new InvalidUserDataException("No dependency for integrity assertion found: " + group + ":" + name) + } - println "Verifying " + group + ":" + name - - if (dependency == null) { - throw new InvalidUserDataException("No dependency for integrity assertion found: " + group + ":" + name) - } - - if (!hash.equals(calculateSha256(dependency.file))) { - throw new InvalidUserDataException("Checksum failed for " + assertion) + if (!hash.equals(calculateSha256(dependency.file))) { + throw new InvalidUserDataException("Checksum failed for " + assertion) + } } } } @@ -66,6 +62,7 @@ class WitnessPlugin implements Plugin { .findAll { dep -> !dep.id.componentIdentifier.displayName.startsWith('project :') } .collect { dep -> "['$dep.moduleVersion.id.group:$dep.name:$dep.moduleVersion.id.version',\n '${calculateSha256(dep.file)}']" } .sort() + .unique() .each { dep -> stringBuilder.append "\n $dep,\n" }