package io.particle.android.sdk;

import android.app.Application;

import com.segment.analytics.Analytics;
import com.segment.analytics.android.integrations.firebase.FirebaseIntegration;
import com.segment.analytics.android.integrations.intercom.IntercomIntegration;


public class ReleaseBuildAppInitializer {

    public static void onApplicationCreated(Application app) {
        String fakeKey = "lolnope12345";  // FIXME: use real key
        Analytics.setSingletonInstance(new Analytics.Builder(app, fakeKey)
                .use(FirebaseIntegration.FACTORY)
                .use(IntercomIntegration.FACTORY)
                .build()
        );
    }

}

@@ -368,16 +368,18 @@
  app) %7B%0A
+//
         
@@ -435,16 +435,74 @@
 eal key%0A
+        // Disable, even in prod, until we have the key%0A//
         
@@ -568,16 +568,18 @@
 akeKey)%0A
+//
         
@@ -612,32 +612,34 @@
 ration.FACTORY)%0A
+//
                 
@@ -672,16 +672,18 @@
 ACTORY)%0A
+//
         
@@ -699,16 +699,18 @@
 build()%0A
+//
         

Disable Segment entirely for now