Skip to content

Commit

Permalink
make root module the 'core' child module
Browse files Browse the repository at this point in the history
  • Loading branch information
pm47 committed Oct 28, 2024
1 parent 0537e61 commit 1b46ff1
Show file tree
Hide file tree
Showing 355 changed files with 25 additions and 24 deletions.
24 changes: 5 additions & 19 deletions build.gradle.kts → core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,6 @@ plugins {
`maven-publish`
}

allprojects {
group = "fr.acinq.lightning"
version = "1.8.5-SNAPSHOT"

repositories {
// using the local maven repository with Kotlin Multi Platform can lead to build errors that are hard to diagnose.
// uncomment this only if you need to experiment with snapshot dependencies that have not yet be published.
// mavenLocal()
maven("https://oss.sonatype.org/content/repositories/snapshots")
mavenCentral()
google()
}
}

val currentOs = org.gradle.internal.os.OperatingSystem.current()

kotlin {
Expand Down Expand Up @@ -54,7 +40,7 @@ kotlin {
compilations["main"].cinterops.create("PhoenixCrypto") {
val platform = "Iphonesimulator"
val interopTask = tasks[interopProcessingTaskName]
interopTask.dependsOn(":PhoenixCrypto:buildCrypto$platform")
interopTask.dependsOn(":lightning-kmp-ios-crypto:buildCrypto$platform")
includeDirs.headerFilterOnly("$rootDir/PhoenixCrypto/build/Release-${platform.lowercase()}/include")
}
}
Expand All @@ -63,7 +49,7 @@ kotlin {
compilations["main"].cinterops.create("PhoenixCrypto") {
val platform = "Iphoneos"
val interopTask = tasks[interopProcessingTaskName]
interopTask.dependsOn(":PhoenixCrypto:buildCrypto$platform")
interopTask.dependsOn(":lightning-kmp-ios-crypto:buildCrypto$platform")
includeDirs.headerFilterOnly("$rootDir/PhoenixCrypto/build/Release-${platform.lowercase()}/include")
}
}
Expand All @@ -72,7 +58,7 @@ kotlin {
compilations["main"].cinterops.create("PhoenixCrypto") {
val platform = "Iphonesimulator"
val interopTask = tasks[interopProcessingTaskName]
interopTask.dependsOn(":PhoenixCrypto:buildCrypto$platform")
interopTask.dependsOn(":lightning-kmp-ios-crypto:buildCrypto$platform")
includeDirs.headerFilterOnly("$rootDir/PhoenixCrypto/build/Release-${platform.lowercase()}/include")
}
}
Expand Down Expand Up @@ -281,12 +267,12 @@ afterEvaluate {

/** Electrum integration test environment + tasks configuration */
val dockerTestEnv by tasks.creating(Exec::class) {
workingDir = projectDir.resolve("docker-local-test")
workingDir = rootDir.resolve("testing")
commandLine("bash", "env.sh", "remove", "net-create", "btc-create", "elx-create", "btc-start", "elx-start")
}

val dockerCleanup by tasks.creating(Exec::class) {
workingDir = projectDir.resolve("docker-local-test")
workingDir = rootDir.resolve("testing")
commandLine("bash", "env.sh", "elx-stop", "btc-stop", "remove")
}

Expand Down
Loading

0 comments on commit 1b46ff1

Please sign in to comment.