/*
 * Copyright (c) 2015-present, Parse, LLC.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights can be found in the PATENTS file in the same directory.
 */
package com.reiyu.sleepin;

import android.app.Application;

import com.parse.Parse;
import com.parse.ParseACL;
import com.parse.ParseInstallation;
import com.parse.ParseUser;


public class StarterApplication extends Application {

  @Override
  public void onCreate() {
    super.onCreate();

    // Enable Local Datastore.
    Parse.enableLocalDatastore(this);

    // Add your initialization code here
    Parse.initialize(this, "@string/parse_app_id", "@string/parse_client_key");

    ParseUser.enableAutomaticUser();
    ParseACL defaultACL = new ParseACL();
    // Optionally enable public read access.
    // defaultACL.setPublicReadAccess(true);
    ParseACL.setDefaultACL(defaultACL, true);

    ParseInstallation.getCurrentInstallation().saveInBackground();
  }
}

@@ -414,44 +414,8 @@
 CL;%0A
-import com.parse.ParseInstallation;%0A
 impo
@@ -438,16 +438,16 @@
 seUser;%0A
+
 %0A%0Apublic
@@ -697,60 +697,8 @@
 this
-, %22@string/parse_app_id%22, %22@string/parse_client_key%22
 );%0A%0A
@@ -866,16 +866,16 @@
 (true);%0A
+
     Pars
@@ -915,76 +915,8 @@
 ue);
-%0A%0A    ParseInstallation.getCurrentInstallation().saveInBackground();
 %0A  %7D

remove unnecessary initialization and successfully done push notification