Hey there I have a kotlin MPP (android and ios) an...
# kotlin-native
c
Hey there I have a kotlin MPP (android and ios) and I have
ios32
and
ios64
presets. The 32 preset defines a
cinterops
. Is there a way for the 64 to 'inherit` the preset definition or do I have to duplicate the
cinterops
bloc and the others into my 64 preset ? Ideally something like ?
Copy code
fromPreset(presets.iosArm32, 'myIOS') {
  compilations.main.cinterops {
  [...]
}

fromPreset(presets.myIOS, 'iOS64'){
}
d
With some groovy incantation, I think you can do
Copy code
fromPreset(presets.iosArm32, 'myIOS') {
}
fromPreset(presets.myIOS, 'iOS64'){
}

configure(targets.myIOS, targets.iOS64) {
compilations.main.cinterops {
  [...]
}
c
Where I am suppose to call configure from ?I tried unsuccessfully from
Copy code
kotlin {
    targets {
       configure...
      }
   }
}
kotlin {
    targets { }
    configure...
   }
}
d
Anywhere, best in the
kotlin
block.
Also how is it unsuccessful? What's the output?
c
it was my bad I copy pasted your line:
configure(targets.myIOS, targets.iOS64)
where actually the type should have been a list
configure([targets.myIOS, targets.iOS64])
. My bad, all good now thank you.
d
Ah, I forgot about that. No problem.