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" }