[K/N] Warn if the inferred main package of a framework is root

This commit is contained in:
Ilya Matveev
2021-09-20 20:27:48 +07:00
committed by Space
parent bfe336b0db
commit f93d5604aa
2 changed files with 35 additions and 20 deletions
@@ -5486,20 +5486,8 @@ if (isAppleTarget(project)) {
def currentTarget = project.target.name
enabled = currentTarget.startsWith("mac")
konanArtifacts {
library("frameworkBundleIdLib", targets: [target.name]) {
srcFiles("framework/bundle_id/lib.kt")
delegate.getByTarget(target.name).configure{
UtilsKt.dependsOnDist(it)
}
}
}
framework("Foo") {
sources = ["framework/bundle_id/main.kt"]
library = "frameworkBundleIdLib"
def exportedLib = konanArtifacts[library].getArtifactByTarget(target.name)
opts = ["-Xexport-library=$exportedLib"]
sources = ["framework/bundle_id/main.kt", "framework/bundle_id/lib.kt"]
}
swiftSources = []