// Copyright (c) 2015, Wojciech Adam Koszek <wojciech@koszek.com>
// All rights reserved.

package com.barvoy.sensorama;


import android.app.Application;
import android.content.Context;

import com.parse.Parse;
import com.parse.ParseAnalytics;
import com.parse.ParseCrashReporting;
import com.barvoy.sensorama.SRAPIPerms;

public class SRApp extends Application {
    private static Context context;

    public void onCreate(){
        super.onCreate();
        ParseCrashReporting.enable(this);

        Parse.enableLocalDatastore(this);
        Parse.initialize(this,
                SRAPIPerms.parseAPIID,
                SRAPIPerms.parseCLIID
        );
        SRApp.context = getApplicationContext();
    }

    public static Context getAppContext() {
        return SRApp.context;
    }
}

@@ -114,16 +114,56 @@
 sorama;%0A
+import com.barvoy.sensorama.BuildConfig;
 %0A%0Aimport
@@ -271,95 +271,22 @@
 arse
-Analytics;%0Aimport com.parse.ParseCrashReporting;%0Aimport com.barvoy.sensorama.SRAPIPerms
+CrashReporting
 ;%0A%0Ap
@@ -552,66 +552,72 @@
     
-SRAPIPerms.parseAPIID,%0A                SRAPIPerms.parseCLI
+BuildConfig.PARSE_API_ID,%0A                BuildConfig.PARSE_API_
 ID%0A 

Fix the API/CLIENT API keys.