I need help figuring out the issue when building my app with R8. I have a service that performs a job and then terminates. However when I use R8 instead of Proguard, the service never terminates. The only way to make the R8 build work is to leave in the android.util.Log class, specifically comment out the bit:
-assumenosideeffects class android.util.Log {
public static *** v(...);
public static *** d(...);
public static *** i(...);
public static *** w(...);
public static *** e(...);
}
Can anyone shed some light on what it is R8 is doing that is causing this behavior or to steer me in the right direction? Or is the issue with the assumenosideeffects snippet?