mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-20 12:49:02 +00:00
fix launch crash
This commit is contained in:
parent
9fa6dbf821
commit
d89da9664a
4 changed files with 10 additions and 5 deletions
|
|
@ -2,7 +2,7 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
package="com.habitrpg.android.habitica"
|
||||
android:versionCode="190"
|
||||
android:versionCode="1891"
|
||||
android:versionName="1.1"
|
||||
android:screenOrientation="portrait"
|
||||
android:installLocation="auto" >
|
||||
|
|
|
|||
|
|
@ -120,7 +120,6 @@ public abstract class HabiticaBaseApplication extends MultiDexApplication {
|
|||
}
|
||||
setupRealm();
|
||||
setupDagger();
|
||||
crashlyticsProxy.init(this);
|
||||
setupLeakCanary();
|
||||
setupFacebookSdk();
|
||||
createBillingAndCheckout();
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ package com.habitrpg.android.habitica.modules;
|
|||
import com.habitrpg.android.habitica.proxy.CrashlyticsProxy;
|
||||
import com.habitrpg.android.habitica.proxy.implementation.EmptyCrashlyticsProxy;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import javax.inject.Singleton;
|
||||
|
||||
import dagger.Module;
|
||||
|
|
@ -14,7 +16,7 @@ import dagger.Provides;
|
|||
public class DeveloperModule {
|
||||
@Provides
|
||||
@Singleton
|
||||
protected CrashlyticsProxy provideCrashlyticsProxy() {
|
||||
protected CrashlyticsProxy provideCrashlyticsProxy(Context context) {
|
||||
return new EmptyCrashlyticsProxy();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,9 +5,13 @@ import com.habitrpg.android.habitica.modules.DeveloperModule;
|
|||
import com.habitrpg.android.habitica.proxy.CrashlyticsProxyImpl;
|
||||
import com.habitrpg.android.habitica.proxy.CrashlyticsProxy;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
//change debug proxy here by override methods
|
||||
public class ReleaseDeveloperModule extends DeveloperModule {
|
||||
@Override protected CrashlyticsProxy provideCrashlyticsProxy() {
|
||||
return new CrashlyticsProxyImpl();
|
||||
@Override protected CrashlyticsProxy provideCrashlyticsProxy(Context context) {
|
||||
CrashlyticsProxy crashlyticsProxy = new CrashlyticsProxyImpl();
|
||||
crashlyticsProxy.init(context);
|
||||
return crashlyticsProxy;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue