This repository has been archived by the owner on Jan 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added global search and ACRA (crash reports send)
- Loading branch information
1 parent
c002539
commit a466f9b
Showing
23 changed files
with
346 additions
and
84 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Binary file not shown.
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,33 @@ | ||
package v.blade; | ||
|
||
import android.app.Application; | ||
import android.content.Context; | ||
import android.widget.Toast; | ||
import org.acra.ACRA; | ||
import org.acra.config.CoreConfigurationBuilder; | ||
import org.acra.config.HttpSenderConfigurationBuilder; | ||
import org.acra.config.ToastConfigurationBuilder; | ||
import org.acra.data.StringFormat; | ||
import org.acra.sender.HttpSender; | ||
|
||
public class BladeApplication extends Application | ||
{ | ||
@Override | ||
protected void attachBaseContext(Context base) | ||
{ | ||
super.attachBaseContext(base); | ||
CoreConfigurationBuilder builder = new CoreConfigurationBuilder(this); | ||
builder.setBuildConfigClass(BuildConfig.class) | ||
.setReportFormat(StringFormat.JSON); | ||
builder.getPluginConfigurationBuilder(ToastConfigurationBuilder.class) | ||
.setResText(R.string.oncrash) | ||
.setLength(Toast.LENGTH_LONG).setEnabled(true); | ||
builder.getPluginConfigurationBuilder(HttpSenderConfigurationBuilder.class) | ||
.setUri("http://valou3433.fr:5984/acra-blade/_design/acra-storage/_update/report") | ||
.setBasicAuthLogin("REPORTER") | ||
.setBasicAuthPassword("thereporterpassword") | ||
.setHttpMethod(HttpSender.Method.PUT) | ||
.setEnabled(true); | ||
ACRA.init(this, builder); | ||
} | ||
} |
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
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
Oops, something went wrong.