mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-20 02:58:45 +00:00
Make the stopship task more reliable.
This commit is contained in:
@@ -3,6 +3,7 @@ import kotlinx.coroutines.Dispatchers
|
|||||||
import kotlinx.coroutines.async
|
import kotlinx.coroutines.async
|
||||||
import kotlinx.coroutines.awaitAll
|
import kotlinx.coroutines.awaitAll
|
||||||
import kotlinx.coroutines.runBlocking
|
import kotlinx.coroutines.runBlocking
|
||||||
|
import java.io.FileNotFoundException
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
alias(libs.plugins.android.application) apply false
|
alias(libs.plugins.android.application) apply false
|
||||||
@@ -143,8 +144,12 @@ tasks.register("checkStopship") {
|
|||||||
runBlocking {
|
runBlocking {
|
||||||
allFiles.map { file ->
|
allFiles.map { file ->
|
||||||
scope.async {
|
scope.async {
|
||||||
if (file.readText().contains("STOPSHIP")) {
|
try {
|
||||||
stopshipFiles += file.relativeTo(cachedProjectDir).path
|
if (file.readText().contains("STOPSHIP")) {
|
||||||
|
stopshipFiles += file.relativeTo(cachedProjectDir).path
|
||||||
|
}
|
||||||
|
} catch (e: FileNotFoundException) {
|
||||||
|
// Ignore
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user