package com.manoj.dlt;

import android.app.Application;
import android.widget.Toast;

import com.crashlytics.android.Crashlytics;
import com.manoj.dlt.features.DeepLinkHistoryFeature;
import com.manoj.dlt.features.LinkQueueHandler;
import com.manoj.dlt.utils.Utilities;
import io.fabric.sdk.android.Fabric;

public class DeepLinkTestApplication extends Application
{
    @Override
    public void onCreate()
    {
        super.onCreate();
        if(Constants.ENVIRONMENT.equals(Constants.CONFIG.PRODUCTION))
        {
            Fabric.with(this, new Crashlytics());
        } else
        {
            Toast.makeText(getApplicationContext(),"In Testing mode",Toast.LENGTH_LONG).show();
        }
        DeepLinkHistoryFeature.getInstance(getApplicationContext());
        Utilities.initializeAppRateDialog(getApplicationContext());
        LinkQueueHandler.getInstance(getApplicationContext()).runQueueListener();
    }
}

@@ -225,16 +225,62 @@
 andler;%0A
+import com.manoj.dlt.features.ProfileFeature;%0A
 import c
@@ -605,24 +605,113 @@
 hlytics());%0A
+            Crashlytics.setUserIdentifier(ProfileFeature.getInstance(this).getUserId());%0A
         %7D el

set user identifier with crashlytics