guardian / toolargetool

A tool to help you debug TransactionTooLargeExceptions on Android 7+
MIT License
1.12k stars 105 forks source link

Updating dependencies + fixes #26

Closed maxspencer closed 5 years ago

maxspencer commented 5 years ago

This PR bundles together a few things I've been working on today:

  1. Increases kotlin version, gradle plugin version and various other dependencies as recommended by AS.
  2. Adds a very basic (but still better than nothing!) sample app implementation.
  3. 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.