basher
01/10/2019, 2:34 AMbasher
01/10/2019, 2:35 AMJonas Bark
01/10/2019, 6:43 AMbasher
01/10/2019, 6:52 AMJonas Bark
01/10/2019, 7:24 AMbasher
01/10/2019, 5:51 PMafterEvaluate
so that I could have typed access to those generated link tasks. If there's a better way, please comment! This is my first major custom gradle taskalec
01/10/2019, 5:52 PMalec
01/10/2019, 5:53 PMalec
01/10/2019, 5:53 PMapply plugin "kotlin-cocoapods"
alec
01/10/2019, 5:53 PMalec
01/10/2019, 5:53 PMbasher
01/10/2019, 7:22 PMbasher
01/10/2019, 7:26 PMkotlin {
targets {
// create targets for iOS sim and device
fromPreset(presets.iosX64, 'iosSim') {
compilations.main.outputKinds('FRAMEWORK')
}
fromPreset(presets.iosArm64, 'iosDevice') {
compilations.main.outputKinds('FRAMEWORK')
}
}
sourceSets {
iosSimMain {
kotlin.srcDirs += 'src/iosMain'
}
iosSimTest {
kotlin.srcDirs += 'src/iosTest'
}
iosDeviceMain {
kotlin.srcDirs += 'src/iosMain'
}
iosDeviceTest {
kotlin.srcDirs += 'src/iosTest'
}
}
}
Would be nice if the mpp plugin let you specify multiple archs for platforms where building for multiple archs is common (i.e. ios, android native)basher
01/10/2019, 7:31 PMJonas Bark
01/10/2019, 10:03 PMalec
01/14/2019, 1:21 PMalec
01/14/2019, 2:05 PMpbxproj
doesnt reflect the user_target_xcconfig
(though maybe thats not whats supposed to happen)basher
01/14/2019, 3:28 PMbasher
01/14/2019, 3:30 PMuser_target_xcconfig
is that we have to setup the framework/linker flags ourselves because the podspec is building the framework (i.e. can't lean on spec.vendored_frameworks
, which would generate the flags for us)basher
01/14/2019, 3:33 PMalec
01/14/2019, 4:07 PMbasher
01/14/2019, 5:49 PMbasher
01/14/2019, 5:51 PMbasher
01/14/2019, 6:10 PM