Getting ready

We are going to implement the Android instrumented test case in order to verify the effect of a class serialization and deserialization in actionTo make use of the Android KTX library, we need to add it to the project dependencies. In our case, we will need it in the android-test module. We can add it with the following declaration:

androidTestImplementation 'androidx.core:core-ktx:1.0.+'

In order to make use of the Kotlin Android Extensions plugin, we need to enable it in the Android project module-level build.gradle script by adding the following declaration:

apply plugin: 'kotlin-android-extensions'

You can examine the implementation and configuration of recipes related to the Android framework in the AndroidSamples project available in the book's GitHub repository: https://github.com/PacktPublishing/Kotlin-Standard-Library-Cookbook/. To follow Android-related recipes, you just need to create a new project in Android Studio.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.180.124