Quote module name in the generated modulemap
This fixes an issue where Kotlin projects named "umbrella" or "framework" produce unimportable framework modules. ^KT-66565
This commit is contained in:
committed by
Space Team
parent
4ab5c3b74b
commit
9295f44eda
+2
-2
@@ -50,7 +50,7 @@ class AppleFrameworkIT : KGPBaseTest() {
|
||||
assertDirectoryInProjectExists("shared/build/builtProductsDir/sdk.framework.dSYM")
|
||||
assertFileInProjectContains(
|
||||
"shared/build/builtProductsDir/sdk.framework/Modules/module.modulemap",
|
||||
"framework module sdk",
|
||||
"framework module \"sdk\"",
|
||||
)
|
||||
assertDirectoryInProjectDoesNotExist("shared/build/xcode-frameworks/sdk.framework")
|
||||
}
|
||||
@@ -103,7 +103,7 @@ class AppleFrameworkIT : KGPBaseTest() {
|
||||
assertDirectoryInProjectExists("shared/build/xcode-frameworks/Release/iphonesimulator/sdk.framework.dSYM")
|
||||
assertFileInProjectContains(
|
||||
"shared/build/xcode-frameworks/Release/iphonesimulator/sdk.framework/Modules/module.modulemap",
|
||||
"framework module sdk",
|
||||
"framework module \"sdk\"",
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -370,7 +370,7 @@ internal constructor(
|
||||
|
||||
private fun createModuleFile(outputFile: File, frameworkName: String) {
|
||||
outputFile.writeText("""
|
||||
framework module $frameworkName {
|
||||
framework module "$frameworkName" {
|
||||
umbrella header "$frameworkName.h"
|
||||
|
||||
export *
|
||||
|
||||
Reference in New Issue
Block a user