Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ configurations.configureEach {
useVersion(libs.versions.jacoco.get())
} else if (requested.group == "commons-logging" && requested.name == "commons-logging") {
useTarget(libs.slfj)
} else if (requested.group == "org.hamcrest") {
useVersion("2.2")
because(
"Align hamcrest on compile and runtime. 1.3 (via junit) exposes fixed-arity " +
"anyOf/allOf overloads that 2.2 (via androidx.test) removed, causing NoSuchMethodError."
)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ class FileDisplayActivityScreenshotIT : AbstractIT() {

@get:Rule
val permissionRule: GrantPermissionRule = GrantPermissionRule.grant(
Manifest.permission.WRITE_EXTERNAL_STORAGE,
Manifest.permission.POST_NOTIFICATIONS
Manifest.permission.WRITE_EXTERNAL_STORAGE
)

companion object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
package com.nextcloud.client

import android.content.Intent
import android.os.Looper
import androidx.test.core.app.launchActivity
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.assertion.ViewAssertions.matches
Expand Down Expand Up @@ -61,12 +60,8 @@ class SettingsActivityIT : AbstractIT() {
}
}

@Suppress("DEPRECATION")
@Test
fun showMnemonic() {
if (Looper.myLooper() == null) {
Looper.prepare()
}
val intent = Intent().apply {
putExtra(RequestCredentialsActivity.KEY_CHECK_RESULT, RequestCredentialsActivity.KEY_CHECK_RESULT_TRUE)
}
Expand All @@ -76,13 +71,10 @@ class SettingsActivityIT : AbstractIT() {
}

launchActivity<SettingsActivity>().use { scenario ->
onView(isRoot()).check(matches(isDisplayed()))

scenario.onActivity { sut ->
sut.handleMnemonicRequest(intent)
}

Looper.myLooper()?.quitSafely()
Assert.assertTrue(true)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,13 @@ class AssistantRepositoryTests : AbstractOnServerIT() {

testCreateTask()

sleep(120)

runBlocking {
val taskList = sut?.getTaskList("assistant")
assertTrue(taskList != null)

sleep(120)

assert((taskList?.size ?: 0) > 0)
val taskId = taskList?.firstOrNull()?.id ?: return@runBlocking

val result = sut?.deleteTask(taskList!!.first().id)
val result = sut?.deleteTask(taskId)
assertTrue(result?.isSuccess == true)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ import org.junit.Test
class SetOnlineStatusBottomSheetIT : AbstractIT() {

@get:Rule
val permissionRule: GrantPermissionRule = GrantPermissionRule.grant(
Manifest.permission.WRITE_EXTERNAL_STORAGE,
Manifest.permission.POST_NOTIFICATIONS
)
val permissionRule: GrantPermissionRule = GrantPermissionRule.grant(Manifest.permission.WRITE_EXTERNAL_STORAGE)

@Test
fun open() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ import org.junit.Test

class SetStatusMessageBottomSheetIT : AbstractIT() {
@get:Rule
val permissionRule: GrantPermissionRule = GrantPermissionRule.grant(
Manifest.permission.WRITE_EXTERNAL_STORAGE,
Manifest.permission.POST_NOTIFICATIONS
)
val permissionRule: GrantPermissionRule = GrantPermissionRule.grant(Manifest.permission.WRITE_EXTERNAL_STORAGE)

@Test
fun open() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ class ScreenshotsIT : AbstractIT() {

@get:Rule
val permissionRule: GrantPermissionRule = GrantPermissionRule.grant(
Manifest.permission.WRITE_EXTERNAL_STORAGE,
Manifest.permission.POST_NOTIFICATIONS
Manifest.permission.WRITE_EXTERNAL_STORAGE
)

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ class DrawerActivityIT : AbstractIT() {

@get:Rule
val permissionRule: GrantPermissionRule = GrantPermissionRule.grant(
Manifest.permission.WRITE_EXTERNAL_STORAGE,
Manifest.permission.POST_NOTIFICATIONS
Manifest.permission.WRITE_EXTERNAL_STORAGE
)

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ class DialogFragmentIT : AbstractIT() {

@get:Rule
val permissionRule: GrantPermissionRule = GrantPermissionRule.grant(
Manifest.permission.WRITE_EXTERNAL_STORAGE,
Manifest.permission.POST_NOTIFICATIONS
Manifest.permission.WRITE_EXTERNAL_STORAGE
)

@After
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
androidCommonLibraryVersion = "0.33.2"
androidGifDrawableVersion = "1.2.32"
androidImageCropperVersion = "4.7.0"
androidLibraryVersion ="0282f675c8f11af9f1da91436f1fa95abe2333fe"
androidLibraryVersion ="e4126f66ffdead52f94a2edd6855b11a8a94f812"
androidOpensslVersion = "3.5.6"
androidPluginVersion = "9.2.1"
androidsvgVersion = "1.4"
Expand Down
24 changes: 15 additions & 9 deletions gradle/verification-metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,7 @@
</trusted-key>
<trusted-key id="1D0A8B5E77C678A7C724445ABF984B4145EA13F7" group="com.squareup" name="javapoet" version="1.13.0"/>
<trusted-key id="1D217F8475EEE9F19AB8DD6B793FD5751A0F0780" group="^com[.]squareup($|([.].*))" regex="true"/>
<trusted-key id="1D2C7EF8ADA0F794B58C7C63436902AF59EDF60E">
<trusting group="dev.equo.ide" name="solstice"/>
</trusted-key>
<trusted-key id="1D2C7EF8ADA0F794B58C7C63436902AF59EDF60E" group="dev.equo.ide" name="solstice"/>
<trusted-key id="1D85469D8559C2E1DF5F925131D2D79DF7E85DD3" group="org.jcommander" name="jcommander" version="1.85"/>
<trusted-key id="1D9AA7F9E1E2824728B8CD1794B291AEF984A085" group="io.reactivex.rxjava3"/>
<trusted-key id="1E046C19ED2873D8C08AF7B8A0632691B78E3422" group="net.sourceforge.pmd"/>
Expand Down Expand Up @@ -362,12 +360,12 @@
<trusted-key id="9857C388D7D1D9D031274CD0A5DEF5A76F94A471" group="^com[.]github[.]spotbugs($|([.].*))" regex="true"/>
<trusted-key id="998AF0E2B935996F5CEBD56B9B1FDA9F3C062231" group="org.apache" name="apache" version="6"/>
<trusted-key id="9E3044071B758EBCB7E45673700E4F39BC05364B">
<trusting group="org.eclipse.platform" name="org.eclipse.osgi"/>
<trusting group="org.eclipse.platform" name="org.eclipse.osgi" version="3.18.300"/>
<trusting group="org.eclipse.platform" name="org.eclipse.osgi" version="3.23.0"/>
<trusting group="org.eclipse.platform" name="org.eclipse.osgi" version="3.23.100"/>
<trusting group="org.eclipse.platform" name="org.eclipse.osgi" version="3.23.200"/>
<trusting group="org.eclipse.platform" name="org.eclipse.osgi" version="3.24.0"/>
<trusting group="org.eclipse.platform" name="org.eclipse.osgi" />
</trusted-key>
<trusted-key id="9EB6D93AEA63F11981C112F716F71868F1D3A389" group="org.lukhnos" name="nnio" version="0.2"/>
<trusted-key id="A31DDE881C3E3C4C985BD0D02C7F998F4272C851" group="com.diffplug.spotless"/>
Expand Down Expand Up @@ -20079,16 +20077,16 @@
<sha256 value="a891aa8be64267621505beae63a8de02a180097dcf3bfc27059dfc6f9d74a440" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
</component>
<component group="com.diffplug.spotless" name="com.diffplug.spotless.gradle.plugin" version="8.8.0">
<artifact name="com.diffplug.spotless.gradle.plugin-8.8.0.pom">
<sha256 value="ae32040d609aafc8e969407d941e8e009fbfbe1991d40e067537bdbe5c52371a" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
</component>
<component group="com.diffplug.spotless" name="com.diffplug.spotless.gradle.plugin" version="8.5.1">
<artifact name="com.diffplug.spotless.gradle.plugin-8.5.1.pom">
<sha256 value="4e623c110b6221482962615a84ae82d0ea7f37dd3c9126063d7953a1555f17c5" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
</component>
<component group="com.diffplug.spotless" name="com.diffplug.spotless.gradle.plugin" version="8.8.0">
<artifact name="com.diffplug.spotless.gradle.plugin-8.8.0.pom">
<sha256 value="ae32040d609aafc8e969407d941e8e009fbfbe1991d40e067537bdbe5c52371a" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
</component>
<component group="com.diffplug.spotless" name="spotless-lib" version="2.40.0">
<artifact name="spotless-lib-2.40.0.jar">
<sha256 value="a3319a8776a6ccee1ed436904ed1016565fd032eca848c25a425126c1937675d" origin="Generated by Gradle"/>
Expand Down Expand Up @@ -22028,6 +22026,14 @@
<sha256 value="548cc8a9156d576dcc46fee694ce3a04eba68c8a5d477796117f806b27c98ed4" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
</component>
<component group="com.github.nextcloud" name="android-library" version="e4126f66ffdead52f94a2edd6855b11a8a94f812">
<artifact name="android-library-e4126f66ffdead52f94a2edd6855b11a8a94f812.aar">
<sha256 value="a2ba336963dba297bb6472212a952b13adfda2af963a89f4e80cc022c400916a" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
<artifact name="android-library-e4126f66ffdead52f94a2edd6855b11a8a94f812.module">
<sha256 value="462ad38d03b044bf94d8c5273a3fc05d538d3e456af3efa7b3a7d297f91f241b" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
</component>
<component group="com.github.nextcloud" name="android-library" version="e4e8055c505194a84926cf85da1367488cfafce0">
<artifact name="android-library-e4e8055c505194a84926cf85da1367488cfafce0.aar">
<sha256 value="4380a5a5f32d95868a45dc05c7c6f0b26c38bbfe565d6c284c8d0e1a76f4a6a1" origin="Generated by Gradle" reason="Artifact is not signed"/>
Expand Down
12 changes: 12 additions & 0 deletions scripts/wait_for_emulator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,17 @@ until [[ "$bootanim" =~ "stopped" ]]; do
sleep 5
done
echo "($checkcounter) Done"

# Keep the screen awake and unlocked for the whole run. On a headless emulator the
# screen can sleep or keep the keyguard up, which leaves the app window without focus
# and makes Espresso fail with RootViewWithoutFocusException.
adb -e shell svc power stayon true
adb -e shell wm dismiss-keyguard
adb -e shell input keyevent 82

# Disable animations so Espresso does not wait on "not request layout".
adb -e shell settings put global window_animation_scale 0.0
adb -e shell settings put global transition_animation_scale 0.0
adb -e shell settings put global animator_duration_scale 0.0

echo "($checkcounter) Unlocked emulator screen"
Loading