forked from Nexus/nexus
fix android builds in devshell
This commit is contained in:
parent
f106db5948
commit
7b542d8d1e
1 changed files with 13 additions and 1 deletions
|
|
@ -23,4 +23,16 @@ plugins {
|
||||||
id("org.jetbrains.kotlin.android") version "2.4.10" apply false
|
id("org.jetbrains.kotlin.android") version "2.4.10" apply false
|
||||||
}
|
}
|
||||||
|
|
||||||
include(":app")
|
include(":app")
|
||||||
|
|
||||||
|
// Flutter's plugin loader includes dev dependency plugins like integration_test as projects even in
|
||||||
|
// release builds (where they're never linked in). integration_test lives in the Flutter SDK, which
|
||||||
|
// is read-only under Nix, and Gradle 9+ refuses to configure a project whose directory isn't writable.
|
||||||
|
findProject(":integration_test")?.let { project ->
|
||||||
|
if (!project.projectDir.canWrite()) {
|
||||||
|
val copy = file("../build/integration_test_android")
|
||||||
|
copy.deleteRecursively()
|
||||||
|
project.projectDir.copyRecursively(copy)
|
||||||
|
project.projectDir = copy
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue