Skip to content

Commit

Permalink
fix: task dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmed Moussa <[email protected]>
  • Loading branch information
hamada147 committed May 23, 2024
1 parent e6bf4c3 commit 660c1af
Showing 1 changed file with 7 additions and 32 deletions.
39 changes: 7 additions & 32 deletions apollo/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -841,17 +841,23 @@ afterEvaluate {
)
}
tasks.getByName<Delete>("clean") {
// dependsOn(cleanEd25519Bip32)
dependsOn(cleanEd25519Bip32)
}
tasks.withType<KtLintCheckTask> {
// dependsOn(buildEd25519Bip32Task)
}
tasks.getByName("androidDebugSourcesJar").dependsOn(copyEd25519Bip32GeneratedTask)
tasks.getByName("androidReleaseSourcesJar").dependsOn(copyEd25519Bip32GeneratedTask)

tasks.getByName("mergeDebugJniLibFolders").dependsOn(buildEd25519Bip32Task)
tasks.getByName("mergeReleaseJniLibFolders").dependsOn(buildEd25519Bip32Task)

tasks.getByName("packageDebugResources").dependsOn(buildEd25519Bip32Task)
tasks.getByName("packageReleaseResources").dependsOn(buildEd25519Bip32Task)

tasks.getByName("extractDeepLinksForAarDebug").dependsOn(buildEd25519Bip32Task)
tasks.getByName("extractDeepLinksForAarRelease").dependsOn(buildEd25519Bip32Task)

tasks.getByName("mergeDebugResources").dependsOn(buildEd25519Bip32Task)
tasks.getByName("mergeReleaseResources").dependsOn(buildEd25519Bip32Task)

Expand All @@ -867,37 +873,6 @@ afterEvaluate {
dependsOn(tasks.withType<Sign>())
}

tasks.withType<KotlinCompile> {
dependsOn(
":iOSLibs:buildIOHKCryptoKitIphoneos",
":iOSLibs:buildIOHKCryptoKitIphonesimulator",
":iOSLibs:buildIOHKCryptoKitMacosx",
":iOSLibs:buildIOHKSecureRandomGenerationIphoneos",
":iOSLibs:buildIOHKSecureRandomGenerationIphonesimulator",
":iOSLibs:buildIOHKSecureRandomGenerationMacosx"
)
}
tasks.withType<ProcessResources> {
dependsOn(
":iOSLibs:buildIOHKCryptoKitIphoneos",
":iOSLibs:buildIOHKCryptoKitIphonesimulator",
":iOSLibs:buildIOHKCryptoKitMacosx",
":iOSLibs:buildIOHKSecureRandomGenerationIphoneos",
":iOSLibs:buildIOHKSecureRandomGenerationIphonesimulator",
":iOSLibs:buildIOHKSecureRandomGenerationMacosx"
)
}
tasks.withType<CInteropProcess> {
dependsOn(
":iOSLibs:buildIOHKCryptoKitIphoneos",
":iOSLibs:buildIOHKCryptoKitIphonesimulator",
":iOSLibs:buildIOHKCryptoKitMacosx",
":iOSLibs:buildIOHKSecureRandomGenerationIphoneos",
":iOSLibs:buildIOHKSecureRandomGenerationIphonesimulator",
":iOSLibs:buildIOHKSecureRandomGenerationMacosx"
)
}

// Disable publish of targets
if (tasks.findByName("publishIosX64PublicationToSonatypeRepository") != null) {
tasks.named("publishIosX64PublicationToSonatypeRepository") {
Expand Down

0 comments on commit 660c1af

Please sign in to comment.