diff --git a/app/build.gradle b/app/build.gradle index 5ef71c06c..781f53ffd 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -578,7 +578,7 @@ dependencies { implementation libs.rxjava3.rxkotlin implementation libs.rxdogtag - androidTestUtil 'androidx.test:orchestrator:1.4.1' + androidTestUtil testLibs.androidx.test.orchestrator } def getLastCommitTimestamp() { diff --git a/app/src/androidTest/java/org/thoughtcrime/securesms/profiles/manage/UsernameEditFragmentTest.kt b/app/src/androidTest/java/org/thoughtcrime/securesms/profiles/manage/UsernameEditFragmentTest.kt index be7c6deb5..bd8115de7 100644 --- a/app/src/androidTest/java/org/thoughtcrime/securesms/profiles/manage/UsernameEditFragmentTest.kt +++ b/app/src/androidTest/java/org/thoughtcrime/securesms/profiles/manage/UsernameEditFragmentTest.kt @@ -25,14 +25,19 @@ import org.junit.Rule import org.junit.Test import org.junit.runner.RunWith import org.thoughtcrime.securesms.R +import org.thoughtcrime.securesms.database.SignalDatabase import org.thoughtcrime.securesms.dependencies.InstrumentationApplicationDependencyProvider +import org.thoughtcrime.securesms.recipients.Recipient import org.thoughtcrime.securesms.testing.Put import org.thoughtcrime.securesms.testing.RxTestSchedulerRule import org.thoughtcrime.securesms.testing.SignalActivityRule +import org.thoughtcrime.securesms.testing.SignalDatabaseRule +import org.thoughtcrime.securesms.testing.assertIs import org.thoughtcrime.securesms.testing.assertIsNotNull import org.thoughtcrime.securesms.testing.assertIsNull import org.thoughtcrime.securesms.testing.success import org.whispersystems.signalservice.internal.push.ReserveUsernameResponse +import java.util.Optional import java.util.concurrent.TimeUnit @RunWith(AndroidJUnit4::class) diff --git a/contacts/app/build.gradle b/contacts/app/build.gradle index bcd392831..2548e9fdc 100644 --- a/contacts/app/build.gradle +++ b/contacts/app/build.gradle @@ -37,8 +37,7 @@ ktlint { dependencies { coreLibraryDesugaring libs.android.tools.desugar - implementation "androidx.activity:activity-ktx:1.2.2" - + implementation libs.androidx.activity.ktx implementation libs.androidx.appcompat implementation libs.material.material implementation libs.androidx.constraintlayout diff --git a/dependencies.gradle b/dependencies.gradle index e95a446de..36aa2452d 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -43,6 +43,7 @@ dependencyResolutionManagement { alias('androidx-navigation-fragment-ktx').to('androidx.navigation', 'navigation-fragment-ktx').versionRef('androidx-navigation') alias('androidx-navigation-ui-ktx').to('androidx.navigation', 'navigation-ui-ktx').versionRef('androidx-navigation') alias('androidx-lifecycle-viewmodel-ktx').to('androidx.lifecycle', 'lifecycle-viewmodel-ktx').versionRef('androidx-lifecycle') + alias('androidx-lifecycle-livedata-core').to('androidx.lifecycle', 'lifecycle-livedata').versionRef('androidx-lifecycle') alias('androidx-lifecycle-livedata-ktx').to('androidx.lifecycle', 'lifecycle-livedata-ktx').versionRef('androidx-lifecycle') alias('androidx-lifecycle-process').to('androidx.lifecycle', 'lifecycle-process').versionRef('androidx-lifecycle') alias('androidx-lifecycle-viewmodel-savedstate').to('androidx.lifecycle', 'lifecycle-viewmodel-savedstate').versionRef('androidx-lifecycle') @@ -72,6 +73,7 @@ dependencyResolutionManagement { alias('google-zxing-core').to('com.google.zxing:core:3.4.1') alias('google-ez-vcard').to('com.googlecode.ez-vcard:ez-vcard:0.9.11') alias('google-jsr305').to('com.google.code.findbugs:jsr305:3.0.2') + alias('google-guava-android').to('com.google.guava:guava:30.0-android') // Exoplayer alias('exoplayer-core').to('com.google.android.exoplayer', 'exoplayer-core').versionRef('exoplayer') @@ -123,6 +125,10 @@ dependencyResolutionManagement { alias('lottie').to('com.airbnb.android:lottie:3.6.0') alias('stickyheadergrid').to('com.codewaves.stickyheadergrid:stickyheadergrid:0.9.4') alias('dnsjava').to('dnsjava:dnsjava:2.1.9') + alias('nanohttpd-webserver').to('org.nanohttpd:nanohttpd-webserver:2.3.1') + + // Can't use the newest version because it hits some weird NoClassDefFoundException + alias('jknack-handlebars').to('com.github.jknack:handlebars:4.0.7') // Mp4Parser alias('mp4parser-isoparser').to('org.mp4parser', 'isoparser').versionRef('mp4parser') @@ -141,6 +147,7 @@ dependencyResolutionManagement { alias('androidx-test-core-ktx').to('androidx.test', 'core-ktx').versionRef('androidx-test') alias('androidx-test-ext-junit').to('androidx.test.ext', 'junit').versionRef('androidx-test-ext-junit') alias('androidx-test-ext-junit-ktx').to('androidx.test.ext', 'junit-ktx').versionRef('androidx-test-ext-junit') + alias('androidx-test-orchestrator').to('androidx.test:orchestrator:1.4.1') alias('espresso-core').to('androidx.test.espresso:espresso-core:3.4.0') alias('mockito-core').to('org.mockito:mockito-inline:4.6.1') alias('mockito-kotlin').to('org.mockito.kotlin:mockito-kotlin:4.0.0') diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index bd1b265fc..37ae8a6f9 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -20,16 +20,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - - - @@ -38,14 +28,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - @@ -54,24 +36,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - - - - - - - - - - - @@ -88,11 +52,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - @@ -101,14 +60,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - @@ -117,14 +68,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - @@ -248,21 +191,11 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - - - @@ -271,16 +204,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - - - @@ -289,11 +212,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - @@ -335,64 +253,16 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -458,32 +328,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -556,27 +400,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - - - - - - - - - - - - - - @@ -598,14 +421,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - @@ -619,14 +434,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - @@ -659,11 +466,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - @@ -680,14 +482,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - @@ -696,14 +490,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - @@ -717,19 +503,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - - - - - - @@ -772,19 +545,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - - - - - - @@ -817,14 +577,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - @@ -851,14 +603,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - @@ -930,14 +674,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - @@ -946,14 +682,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - @@ -1009,19 +737,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - - - - - - @@ -1030,14 +745,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - @@ -1054,11 +761,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - @@ -1090,11 +792,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - @@ -1105,11 +802,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - @@ -1186,11 +878,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - @@ -1282,89 +969,26 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1380,219 +1004,46 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1609,11 +1060,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - @@ -1627,22 +1073,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - - - - - - - - - @@ -1651,22 +1081,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - - - - - - - - - @@ -1675,64 +1089,16 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1741,27 +1107,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - - - - - - - - - - - - - - @@ -1770,27 +1115,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - - - - - - - - - - - - - - @@ -1799,32 +1123,11 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - - - - - - - - - - - - - - @@ -1833,22 +1136,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - - - - - - - - - @@ -1857,27 +1144,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - - - - - - - - - - - - - - @@ -1901,51 +1167,14 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + @@ -1953,209 +1182,46 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -2166,6 +1232,14 @@ https://docs.gradle.org/current/userguide/dependency_verification.html + + + + + + + + @@ -2174,20 +1248,12 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - + + + - - - - - - - - - - + + @@ -2198,6 +1264,14 @@ https://docs.gradle.org/current/userguide/dependency_verification.html + + + + + + + + @@ -2206,6 +1280,14 @@ https://docs.gradle.org/current/userguide/dependency_verification.html + + + + + + + + @@ -2214,20 +1296,36 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - + + + - - + + - - - + + + - - + + + + + + + + + + + + + + + + + + @@ -2238,20 +1336,12 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - + + + - - - - - - - - - - + + @@ -2267,11 +1357,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - @@ -2523,21 +1608,11 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - - - @@ -2553,11 +1628,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - @@ -2568,11 +1638,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - @@ -2611,31 +1676,16 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - - - - - - - - @@ -2651,16 +1701,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - - - @@ -2840,9 +1880,24 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - + + + + + + + + + + + + + + + + + + @@ -2850,6 +1905,11 @@ https://docs.gradle.org/current/userguide/dependency_verification.html + + + + + @@ -3033,11 +2093,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - @@ -3053,14 +2108,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html - - - - - - - - @@ -4356,6 +3403,14 @@ https://docs.gradle.org/current/userguide/dependency_verification.html + + + + + + + + diff --git a/qr/lib/build.gradle b/qr/lib/build.gradle index 0ec4450ea..1afced463 100644 --- a/qr/lib/build.gradle +++ b/qr/lib/build.gradle @@ -6,13 +6,11 @@ dependencies { implementation libs.androidx.camera.lifecycle implementation libs.androidx.camera.view implementation libs.androidx.lifecycle.common.java8 + implementation libs.androidx.lifecycle.livedata.core + implementation libs.google.guava.android implementation libs.google.zxing.android.integration implementation libs.google.zxing.core implementation libs.rxjava3.rxjava - - // Included to force proper versions for verification and match main app - implementation 'androidx.lifecycle:lifecycle-livedata:2.5.1' - implementation 'com.google.guava:guava:30.0-android' } \ No newline at end of file diff --git a/spinner/app/build.gradle b/spinner/app/build.gradle index 562e93828..c99aa4e7e 100644 --- a/spinner/app/build.gradle +++ b/spinner/app/build.gradle @@ -46,9 +46,8 @@ android { dependencies { coreLibraryDesugaring libs.android.tools.desugar - implementation "androidx.activity:activity-ktx:1.2.2" - implementation libs.androidx.core.ktx + implementation libs.androidx.activity.ktx implementation libs.androidx.appcompat implementation libs.material.material implementation libs.androidx.constraintlayout diff --git a/spinner/lib/build.gradle b/spinner/lib/build.gradle index f8e36c79e..f263354e0 100644 --- a/spinner/lib/build.gradle +++ b/spinner/lib/build.gradle @@ -29,8 +29,7 @@ ktlint { } dependencies { - // Can't use the newest version because it hits some weird NoClassDefFoundException - implementation 'com.github.jknack:handlebars:4.0.7' + implementation libs.jknack.handlebars implementation libs.androidx.appcompat implementation libs.material.material @@ -38,5 +37,5 @@ dependencies { implementation project(':core-util') testImplementation testLibs.junit.junit - implementation 'org.nanohttpd:nanohttpd-webserver:2.3.1' + implementation libs.nanohttpd.webserver } \ No newline at end of file