forked from avivais/phonegap-parse-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from jarseneault/crash_fix
Crash fix
- Loading branch information
Showing
204 changed files
with
35,307 additions
and
33,104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.apache.cordova.core; | ||
|
||
import android.app.Application; | ||
import android.content.Context; | ||
|
||
import com.parse.Parse; | ||
import com.parse.ParseInstallation; | ||
import com.parse.PushService; | ||
|
||
import <%=app.id%>.MainActivity; | ||
|
||
public class ParseApplication extends Application | ||
{ | ||
private static ParseApplication instance = new ParseApplication(); | ||
|
||
public ParseApplication() { | ||
instance = this; | ||
} | ||
|
||
public static Context getContext() { | ||
return instance; | ||
} | ||
|
||
@Override | ||
public void onCreate() { | ||
super.onCreate(); | ||
// register device for parse | ||
Parse.initialize(this, "<%=app.parse.app_id%>", "<%=app.parse.client_key%>"); | ||
PushService.setDefaultPushCallback(this, MainActivity.class); | ||
ParseInstallation.getCurrentInstallation().saveInBackground(); | ||
} | ||
} |
109 changes: 0 additions & 109 deletions
109
src/android/parse/Parse-1.3.8-javadoc/allclasses-frame.html
This file was deleted.
Oops, something went wrong.
109 changes: 0 additions & 109 deletions
109
src/android/parse/Parse-1.3.8-javadoc/allclasses-noframe.html
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.