UpdateServiceTest needs app-full-debug.apk to work

see 3fa5e98fc4 in !1135
This commit is contained in:
Hans-Christoph Steiner 2023-03-16 14:16:54 +01:00
parent 29e69fcf1d
commit 034de8e7f9
No known key found for this signature in database
GPG Key ID: 3E177817BA1B9BFA
1 changed files with 12 additions and 0 deletions

View File

@ -200,3 +200,15 @@ dependencies {
androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0'
androidTestImplementation 'androidx.work:work-testing:2.7.1'
}
// org.fdroid.fdroid.updater.UpdateServiceTest needs app-full-debug.apk
android.productFlavors.all { flavor ->
if (flavor.name.equals("full")) {
project.afterEvaluate { project ->
def dep = tasks.getByName("assembleFullDebug")
project.tasks.withType(Test) { task ->
task.dependsOn dep
}
}
}
}