July 2018
Intermediate to advanced
242 pages
8h 6m
English
In order to 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.+'
We are going to implement the Android instrumented test case in order to verify the effects of the operations we'll perform on SharedPreferences. You can examine the implementation and configuration of recipes related to the Android framework in the AndroidSamples project available in the 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.
Read now
Unlock full access