This PR bundles together a few things I've been working on today:
Increases kotlin version, gradle plugin version and various other dependencies as recommended by AS.
Adds a very basic (but still better than nothing!) sample app implementation.
Doing 2 ☝️ I found that the approach of logging saved state in onStop was flawed because on newer (some?) versions of Android, specifically on the emulator I was using, onStop is called before state is saved. I've fixed this problem by letting state be logged in onStop or onDestroy for both fragments and activities. It's possible that this will resolve issue #18.
This PR bundles together a few things I've been working on today:
onStop
was flawed because on newer (some?) versions of Android, specifically on the emulator I was using,onStop
is called before state is saved. I've fixed this problem by letting state be logged inonStop
oronDestroy
for both fragments and activities. It's possible that this will resolve issue #18.