org.acra.config.CoreConfiguration Java Examples

The following examples show how to use org.acra.config.CoreConfiguration. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CustomHttpSenderFactory.java    From mosmetro-android with GNU General Public License v3.0 5 votes vote down vote up
@NonNull
@Override
public ReportSender create(@NonNull Context context, @NonNull CoreConfiguration config) {
    return new CustomHttpSender(
            config,
            Method.POST,
            StringFormat.JSON, 
            "https://collector.tracepot.com/" + BuildConfig.TRACEPOT_ID
    );
}
 
Example #2
Source File: ApplicationExFilter.java    From tracker-control-android with GNU General Public License v3.0 4 votes vote down vote up
@Override
public boolean shouldSendReport(@NonNull Context context, @NonNull CoreConfiguration config, @NonNull CrashReportData crashReportData) {
    return !crashReportData.getString(ReportField.STACK_TRACE).contains("Context.startForegroundService() did not then call Service.startForeground()");
}
 
Example #3
Source File: MySenderFactory.java    From NClientV2 with Apache License 2.0 4 votes vote down vote up
@NonNull
@Override
public ReportSender create(@NonNull Context context, @NonNull CoreConfiguration config){
    return new MySender();
}
 
Example #4
Source File: MySenderFactory.java    From NClientV2 with Apache License 2.0 4 votes vote down vote up
@Override
public boolean enabled(@NonNull CoreConfiguration config){
    return true;
}
 
Example #5
Source File: AppCenterCollector.java    From J2ME-Loader with Apache License 2.0 4 votes vote down vote up
@Override
public void collect(@NonNull Context context, @NonNull CoreConfiguration config,
					@NonNull ReportBuilder reportBuilder, @NonNull CrashReportData crashReportData) {
	String log = createCrashLog(crashReportData, reportBuilder.getException());
	crashReportData.put(APPCENTER_LOG, log);
}
 
Example #6
Source File: AppCenterSenderFactory.java    From J2ME-Loader with Apache License 2.0 4 votes vote down vote up
@NonNull
@Override
public ReportSender create(@NonNull Context context, @NonNull CoreConfiguration config) {
	return new AppCenterSender();
}
 
Example #7
Source File: AppCenterSenderFactory.java    From J2ME-Loader with Apache License 2.0 4 votes vote down vote up
@Override
public boolean enabled(@NonNull CoreConfiguration config) {
	return true;
}
 
Example #8
Source File: CustomHttpSenderFactory.java    From mosmetro-android with GNU General Public License v3.0 4 votes vote down vote up
@Override
public boolean enabled(@NonNull CoreConfiguration coreConfiguration) {
    return true;
}
 
Example #9
Source File: CustomHttpSender.java    From mosmetro-android with GNU General Public License v3.0 4 votes vote down vote up
public CustomHttpSender(CoreConfiguration config, Method method, StringFormat type, String formUri) {
    super(config, method, type, formUri);
}
 
Example #10
Source File: CustomHttpSender.java    From mosmetro-android with GNU General Public License v3.0 4 votes vote down vote up
public CustomHttpSender(CoreConfiguration config, Method method, StringFormat type) {
    super(config, method, type);
}