Our great sponsors
-
Mockey
Mockey is a tool for testing application interactions over http, with a focus on testing web services, specifically web or native applications that consume XML, JSON, and HTML. Mockey's purpose is to be a simple front end to writing mock-test-responses to the file system for persistence to git.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
We generated a FatFramework so that it will work on both simulator & device, but discovered that the FatFramework task provided by gradle doesn't copy resources. However our framework requires moko resources to be packaged and the task they provided didn't work for us.
We rely heavily on Mockey to mock our api responses for testing and one of the first interceptor we ported to work with Ktor client. Below is sample code of our interceptor. We toggle the use of interceptor using debug preferences.
To manage common preferences across android & iOS, we use this great library by Touchlab
Related posts
- KMMT : Kotlin Multiplatform Mobile Template - Updated to multi module structure and new features
- Updated to Kotlin 1.5.0 : KMMT : Kotlin Multiplatform Mobile Development Simplified
- Updated to Kotlin 1.5.0 : KMMT : Kotlin Multiplatform Mobile Development Simplified
- KMMT : Kotlin Multiplatform Mobile Template ( Kotlin Multiplatform Mobile Development Simplified )
- Background service in Kotlin