Kotlin Multiplatform by Tutorials: Build Native Apps Faster by Sharing Code Across Platforms. 2 Ed

Kotlin Multiplatform by Tutorials: Build Native Apps Faster by Sharing Code Across Platforms. 2 Ed

Kotlin Multiplatform by Tutorials: Build Native Apps Faster by Sharing Code Across Platforms. 2 Ed

Автор: Carlos Mota , Kevin D. Moore , Kodeco Team , Saeed Taheri
Дата выхода: 2023
Издательство: Kodeco Inc
Количество страниц: 488
Размер файла: 36,6 МБ
Тип файла: PDF
Добавил: codelibs
 Проверить на вирусы

Book License.......................................................................... 11
Before You Begin.................................................................... 12
What You Need...................................................................... 13
Book Source Code & Forums ................................................... 14
Introduction.......................................................................... 18
Section I: Beginning Kotlin Multiplatform................................... 21
Chapter 1: Introduction........................................................... 22
Chapter 2: Getting Started ..................................................... 44
Chapter 3: Developing UI: Android Jetpack Compose.................. 71
Chapter 4: Developing UI: iOS SwiftUI ................................... 112
Chapter 5: Developing UI: Compose Multiplatform.................... 136
Section II: Kotlin Multiplatform: Intermediate.......................... 164
Chapter 6: Connecting to Platform-Specific API ....................... 165
Chapter 7: App Architecture.................................................. 192
Chapter 8: Testing................................................................ 218
Chapter 9: Dependency Injection .......................................... 240
Chapter 10: Data Persistence................................................ 259
Section III: Kotlin Multiplatform: Advanced ............................ 285
Chapter 11: Serialization...................................................... 286
Chapter 12: Networking....................................................... 312
Chapter 13: Concurrency..................................................... 345
Chapter 14: Creating Your KMP Library.................................. 381
Conclusion ........................................................................ 416
Section IV: Appendices ...................................................... 417
Appendix A: Kotlin: A Primer for Swift Developers ................. 418
Appendix B: Debugging Your Shared Code From
Xcode ...............................................................................440
Appendix C: Sharing Your Compose UI Across
Multiple Platforms.............................................................. 449
 

 Application developers have to often repeat the same code across multiple platforms, which is not only time-consuming but also error-prone. Most documentation targets only specific use cases but misses out on the nuances essential to sharing code effectively across platforms.

 Kotlin Multiplatform by Tutorials will help you efficiently implement real-world apps for different platforms by sharing common code.

Who This Book is For

 This book is for mobile developers and managers who want to explore how they can use Kotlin Multiplatform to share code across Android, iOS and desktop apps. If you want to reduce development and testing time by writing certain parts of your apps only once, this book will help.

 

 Topics Covered in Kotlin Multiplatform by Tutorials

  • Jetpack Compose Android: Use Android's latest UI toolkit to quickly spin up the UI for different screens of your Android app.

  • Compose Multiplatform: Use the concepts you learned in Jetpack Compose Android to develop the UI for desktop apps.

  • SwiftUI: Learn how to develop the UI for iOS and macOS apps entirely in Swift.

  • Testing: Make your code reliable by writing tests for both common code as well as platform-specific code.

  • Koin: Learn about dependency injection and how you can use Koin to implement dependency injection in multiplatform apps.

  • SQLDelight: Create a common persistence layer for your multiplatform apps while also getting the benefits of compile-time safety for schemas, statements and migrations.

  • Serialization: Learn about different serialization formats and how you can use them to parse JSON data fetched from the Internet.

  • Ktor: Implement a common networking layer with support for platform-specific HTTP clients.

  • Coroutines: Learn about structures concurrency and the considerations to keep in mind while using coroutines on different platforms.

 One thing you can count on: After reading this book, you’ll be prepared to create modules where you can write your code only once but target multiple platforms.


Похожее:

Список отзывов:

Нет отзывов к книге.