6700 proguard update (#6718)

* [android] - include net package in proguard config, added the default EnclosingMethod disable warning and fixed up typo.

* update test app dependency leak canary to do a proguard release build, replaced keep support lib classes by dontwarn following Google guidelines, remove outdated/obsolete square configuration
This commit is contained in:
Tobrun
2016-10-17 14:50:25 +02:00
committed by GitHub
parent bda0e94af2
commit d22d8a6c9b
4 changed files with 19 additions and 10 deletions

View File

@@ -11,12 +11,18 @@ public class MapboxApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
MapboxAccountManager.start(getApplicationContext(), getString(R.string.mapbox_access_token));
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);
StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
.detectDiskReads()
.detectDiskWrites()
.detectNetwork() // or .detectAll() for all detectable problems
.detectNetwork()
.penaltyLog()
.build());
StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
@@ -24,5 +30,7 @@ public class MapboxApplication extends Application {
.penaltyLog()
.penaltyDeath()
.build());
MapboxAccountManager.start(getApplicationContext(), getString(R.string.mapbox_access_token));
}
}