Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Kotlin Multiplataforma: Compartilhando código entre Android e iOS

Kotlin Multiplataforma: Compartilhando código entre Android e iOS

Apresentada na trilha Kotlin do TDC São Paulo 2019

2dc2a52d38ee8c184deeceaadf9ed6ba?s=128

Rafael Toledo

July 19, 2019
Tweet

More Decks by Rafael Toledo

Other Decks in Programming

Transcript

  1. None
  2. None
  3. None
  4. None
  5. None
  6. None
  7. None
  8. None
  9. None
  10. cross-plataforma

  11. código não relacionado a UI

  12. // Common expect val mainThread: Boolean // Android actual val

    mainThread: Boolean get() = Looper.myLooper() === Looper.getMainLooper() // iOS actual val mainThread: Boolean get() = NSThread.isMainThread()
  13. None
  14. além da standard library do Kotlin

  15. None
  16. None
  17. None
  18. None
  19. None
  20. None
  21. None
  22. None
  23. None
  24. storage de chave-valor para Android e iOS

  25. None
  26. None
  27. algumas barreiras a serem superadas

  28. iOS Swift

  29. XCode? AppCode? Cocoapods?

  30. implica em setup Android SDK / Java para devs iOS

  31. None
  32. None
  33. None
  34. speakerdeck.com/rafaeltoledo