mirror of
https://github.com/playmusicexporter/playmusicexporter
synced 2024-05-03 22:56:42 +00:00
Jan Christian Grünhage
204829ac5b
- 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)
25 lines
656 B
Java
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);
|
|
}
|
|
}
|