https://kotlinlang.org logo
#announcements
Title
# announcements
a

Antanas A.

06/25/2019, 8:29 AM
Hi, I'm trying to update from kotlin 1.3.31 to kotlin 1.3.40, and noticed that:
Copy code
Starting from 1.3.40, the compilations.outputKinds is no longer supported, please use the binaries API instead.
Can anyone help me to convert this line of gradle into "binaries API"?
Copy code
fromPreset(project.hasProperty('iosDevice') ? presets.iosArm64 : presets.iosX64, 'ios') {
            compilations.main.outputKinds 'framework'
        }
a

Artyom Degtyarev [JB]

06/25/2019, 8:35 AM
You need to write something like in this example, https://github.com/JetBrains/kotlin-native/blob/master/FAQ.md#q-how-do-i-specify-a-custom-objective-c-prefixname-for-my-kotlin-framework
Copy code
fromPreset(project.hasProperty('iosDevice') ? presets.iosArm64 : presets.iosX64, 'ios') {
            binaries.framework()
        }
a

Antanas A.

06/25/2019, 8:38 AM
Thanks!
2 Views