[Gradle] Remove workarounds for KT-57483 from tests
^KT-57483 ^KT-58316 Verification Pending
This commit is contained in:
committed by
Space Team
parent
a1eff2cd85
commit
6e6659fc2a
-20
@@ -36,7 +36,6 @@ class AppleFrameworkIT : BaseGradleIT() {
|
|||||||
@Test
|
@Test
|
||||||
fun `assemble AppleFrameworkForXcode tasks for IosArm64`() {
|
fun `assemble AppleFrameworkForXcode tasks for IosArm64`() {
|
||||||
with(Project("sharedAppleFramework")) {
|
with(Project("sharedAppleFramework")) {
|
||||||
val currentGradleVersion = chooseWrapperVersionOrFinishTest()
|
|
||||||
val options: BuildOptions = defaultBuildOptions().copy(
|
val options: BuildOptions = defaultBuildOptions().copy(
|
||||||
customEnvironmentVariables = mapOf(
|
customEnvironmentVariables = mapOf(
|
||||||
"CONFIGURATION" to "debug",
|
"CONFIGURATION" to "debug",
|
||||||
@@ -45,10 +44,6 @@ class AppleFrameworkIT : BaseGradleIT() {
|
|||||||
"TARGET_BUILD_DIR" to "no use",
|
"TARGET_BUILD_DIR" to "no use",
|
||||||
"FRAMEWORKS_FOLDER_PATH" to "no use"
|
"FRAMEWORKS_FOLDER_PATH" to "no use"
|
||||||
),
|
),
|
||||||
).suppressDeprecationWarningsSinceGradleVersion(
|
|
||||||
TestVersions.Gradle.G_7_4,
|
|
||||||
currentGradleVersion,
|
|
||||||
"Workaround for KT-57483"
|
|
||||||
)
|
)
|
||||||
build("assembleDebugAppleFrameworkForXcodeIosArm64", options = options) {
|
build("assembleDebugAppleFrameworkForXcodeIosArm64", options = options) {
|
||||||
assertSuccessful()
|
assertSuccessful()
|
||||||
@@ -69,7 +64,6 @@ class AppleFrameworkIT : BaseGradleIT() {
|
|||||||
@Test
|
@Test
|
||||||
fun `assemble fat AppleFrameworkForXcode tasks for Arm64 and X64 simulators`() {
|
fun `assemble fat AppleFrameworkForXcode tasks for Arm64 and X64 simulators`() {
|
||||||
with(Project("sharedAppleFramework")) {
|
with(Project("sharedAppleFramework")) {
|
||||||
val currentGradleVersion = chooseWrapperVersionOrFinishTest()
|
|
||||||
val options: BuildOptions = defaultBuildOptions().copy(
|
val options: BuildOptions = defaultBuildOptions().copy(
|
||||||
customEnvironmentVariables = mapOf(
|
customEnvironmentVariables = mapOf(
|
||||||
"CONFIGURATION" to "Release",
|
"CONFIGURATION" to "Release",
|
||||||
@@ -78,10 +72,6 @@ class AppleFrameworkIT : BaseGradleIT() {
|
|||||||
"TARGET_BUILD_DIR" to "no use",
|
"TARGET_BUILD_DIR" to "no use",
|
||||||
"FRAMEWORKS_FOLDER_PATH" to "no use"
|
"FRAMEWORKS_FOLDER_PATH" to "no use"
|
||||||
),
|
),
|
||||||
).suppressDeprecationWarningsSinceGradleVersion(
|
|
||||||
TestVersions.Gradle.G_7_4,
|
|
||||||
currentGradleVersion,
|
|
||||||
"Workaround for KT-57483"
|
|
||||||
)
|
)
|
||||||
build("assembleReleaseAppleFrameworkForXcode", options = options) {
|
build("assembleReleaseAppleFrameworkForXcode", options = options) {
|
||||||
assertSuccessful()
|
assertSuccessful()
|
||||||
@@ -97,7 +87,6 @@ class AppleFrameworkIT : BaseGradleIT() {
|
|||||||
@Test
|
@Test
|
||||||
fun `check that macOS framework has symlinks`() {
|
fun `check that macOS framework has symlinks`() {
|
||||||
with(Project("sharedAppleFramework")) {
|
with(Project("sharedAppleFramework")) {
|
||||||
val currentGradleVersion = chooseWrapperVersionOrFinishTest()
|
|
||||||
val options: BuildOptions = defaultBuildOptions().copy(
|
val options: BuildOptions = defaultBuildOptions().copy(
|
||||||
customEnvironmentVariables = mapOf(
|
customEnvironmentVariables = mapOf(
|
||||||
"CONFIGURATION" to "debug",
|
"CONFIGURATION" to "debug",
|
||||||
@@ -107,10 +96,6 @@ class AppleFrameworkIT : BaseGradleIT() {
|
|||||||
"TARGET_BUILD_DIR" to workingDir.absolutePath,
|
"TARGET_BUILD_DIR" to workingDir.absolutePath,
|
||||||
"FRAMEWORKS_FOLDER_PATH" to "${projectName}/build/xcode-derived"
|
"FRAMEWORKS_FOLDER_PATH" to "${projectName}/build/xcode-derived"
|
||||||
)
|
)
|
||||||
).suppressDeprecationWarningsSinceGradleVersion(
|
|
||||||
TestVersions.Gradle.G_7_4,
|
|
||||||
currentGradleVersion,
|
|
||||||
"Workaround for KT-57483"
|
|
||||||
)
|
)
|
||||||
build(":shared:embedAndSignAppleFrameworkForXcode", options = options) {
|
build(":shared:embedAndSignAppleFrameworkForXcode", options = options) {
|
||||||
assertSuccessful()
|
assertSuccessful()
|
||||||
@@ -211,7 +196,6 @@ class AppleFrameworkIT : BaseGradleIT() {
|
|||||||
@Test
|
@Test
|
||||||
fun `check that static framework for Arm64 is built but is not embedded`() {
|
fun `check that static framework for Arm64 is built but is not embedded`() {
|
||||||
with(Project("sharedAppleFramework")) {
|
with(Project("sharedAppleFramework")) {
|
||||||
val currentGradleVersion = chooseWrapperVersionOrFinishTest()
|
|
||||||
val options: BuildOptions = defaultBuildOptions().copy(
|
val options: BuildOptions = defaultBuildOptions().copy(
|
||||||
customEnvironmentVariables = mapOf(
|
customEnvironmentVariables = mapOf(
|
||||||
"CONFIGURATION" to "debug",
|
"CONFIGURATION" to "debug",
|
||||||
@@ -220,10 +204,6 @@ class AppleFrameworkIT : BaseGradleIT() {
|
|||||||
"TARGET_BUILD_DIR" to "no use",
|
"TARGET_BUILD_DIR" to "no use",
|
||||||
"FRAMEWORKS_FOLDER_PATH" to "no use"
|
"FRAMEWORKS_FOLDER_PATH" to "no use"
|
||||||
),
|
),
|
||||||
).suppressDeprecationWarningsSinceGradleVersion(
|
|
||||||
TestVersions.Gradle.G_7_4,
|
|
||||||
currentGradleVersion,
|
|
||||||
"Workaround for KT-57483"
|
|
||||||
)
|
)
|
||||||
setupWorkingDir()
|
setupWorkingDir()
|
||||||
projectDir.resolve("shared/build.gradle.kts").modify {
|
projectDir.resolve("shared/build.gradle.kts").modify {
|
||||||
|
|||||||
-7
@@ -1138,16 +1138,9 @@ class CocoaPodsIT : BaseGradleIT() {
|
|||||||
fun testPodPublishing() {
|
fun testPodPublishing() {
|
||||||
//test that manually created frameworks are not included into cocoapods xcframework
|
//test that manually created frameworks are not included into cocoapods xcframework
|
||||||
project.gradleBuildScript().appendToKotlinBlock("iosX64(\"iOS\") {binaries.framework{}}")
|
project.gradleBuildScript().appendToKotlinBlock("iosX64(\"iOS\") {binaries.framework{}}")
|
||||||
|
|
||||||
val currentGradleVersion = project.chooseWrapperVersionOrFinishTest()
|
|
||||||
project.build(
|
project.build(
|
||||||
":podPublishXCFramework",
|
":podPublishXCFramework",
|
||||||
"-Pkotlin.native.cocoapods.generate.wrapper=true",
|
"-Pkotlin.native.cocoapods.generate.wrapper=true",
|
||||||
options = defaultBuildOptions().suppressDeprecationWarningsSinceGradleVersion(
|
|
||||||
TestVersions.Gradle.G_7_4,
|
|
||||||
currentGradleVersion,
|
|
||||||
"Workaround for KT-57483",
|
|
||||||
).copy(warningMode = WarningMode.Fail)
|
|
||||||
) {
|
) {
|
||||||
assertSuccessful()
|
assertSuccessful()
|
||||||
|
|
||||||
|
|||||||
-7
@@ -295,15 +295,8 @@ class GeneralNativeIT : BaseGradleIT() {
|
|||||||
transformNativeTestProjectWithPluginDsl("frameworks", directoryPrefix = "native-binaries")
|
transformNativeTestProjectWithPluginDsl("frameworks", directoryPrefix = "native-binaries")
|
||||||
) {
|
) {
|
||||||
fun assemble(check: CompiledProject.() -> Unit) {
|
fun assemble(check: CompiledProject.() -> Unit) {
|
||||||
val currentGradleVersion = chooseWrapperVersionOrFinishTest()
|
|
||||||
build(
|
build(
|
||||||
"assemble",
|
"assemble",
|
||||||
options = defaultBuildOptions()
|
|
||||||
.suppressDeprecationWarningsSinceGradleVersion(
|
|
||||||
TestVersions.Gradle.G_7_4,
|
|
||||||
currentGradleVersion,
|
|
||||||
"Workaround for KT-57483"
|
|
||||||
).copy(warningMode = WarningMode.Fail),
|
|
||||||
check = check
|
check = check
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user