playmusicexporter/playmusicexporter/src/main/java/re/jcg/playmusicexporter/PlayMusicExporter.java
Jan Christian Grünhage 204829ac5b
Fixes for #30 and #25, as well as some other little things:
- Disabled JACK Toolchain, moved to native Java 8 support instead.
 - Updated gradle plugin from 2.3 to 2.4-alpha6
 - Removed the paragraph about bithub from the README
 - Rephrased some things about why 5.0 is minimum
 - Made analytics opt-in on first launch
 - Extracted strings from the intro
 - Added [LeakCanary](https://github.com/square/leakcanary)
2017-04-22 15:40:29 +02:00

25 lines
656 B
Java

package re.jcg.playmusicexporter;
import android.app.Application;
import com.squareup.leakcanary.LeakCanary;
/**
* Android Application.
* Normally, we would not need to extend this, but it is required for
* the leak detection library we use.
* See {@link LeakCanary}
*/
public class PlayMusicExporter extends Application {
@Override public void onCreate() {
super.onCreate();
if (LeakCanary.isInAnalyzerProcess(this)) {
// This process is dedicated to LeakCanary for heap analysis.
// You should not init your app in this process.
return;
}
LeakCanary.install(this);
}
}