status fix, mailto added, acra limiter fix, translations #168

Merged
s416204 merged 1 commits from statusFix into develop 2019-01-14 20:54:40 +01:00
5 changed files with 9 additions and 4 deletions
Showing only changes of commit 56f03bc5fe - Show all commits

View File

@ -29,7 +29,7 @@
</value> </value>
</option> </option>
</component> </component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8 (1)" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" /> <output url="file://$PROJECT_DIR$/build/classes" />
</component> </component>
<component name="ProjectType"> <component name="ProjectType">

View File

@ -10,7 +10,7 @@ android {
applicationId "com.uam.wmi.findmytutor" applicationId "com.uam.wmi.findmytutor"
minSdkVersion 22 minSdkVersion 22
targetSdkVersion 27 targetSdkVersion 27
versionCode 67 versionCode 69
versionName "1.0.0" versionName "1.0.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true vectorDrawables.useSupportLibrary = true

Binary file not shown.

View File

@ -14,6 +14,7 @@ import org.acra.annotation.AcraLimiter;
import org.acra.annotation.AcraNotification; import org.acra.annotation.AcraNotification;
import org.acra.config.CoreConfigurationBuilder; import org.acra.config.CoreConfigurationBuilder;
import org.acra.config.HttpSenderConfigurationBuilder; import org.acra.config.HttpSenderConfigurationBuilder;
import org.acra.config.LimiterConfigurationBuilder;
import org.acra.config.ToastConfigurationBuilder; import org.acra.config.ToastConfigurationBuilder;
import org.acra.data.StringFormat; import org.acra.data.StringFormat;
import org.acra.sender.HttpSender; import org.acra.sender.HttpSender;
@ -36,13 +37,13 @@ import static org.acra.ReportField.USER_CRASH_DATE;
@AcraNotification(resText = R.string.notification_text, @AcraNotification(resText = R.string.notification_text,
resTitle = R.string.notification_title, resTitle = R.string.notification_title,
resChannelName = R.string.notification_channel) resChannelName = R.string.notification_channel)
@AcraLimiter(failedReportLimit = 2) //@AcraLimiter(failedReportLimit = 2)
public class FindMyTutor extends Application { public class FindMyTutor extends Application {
@Override @Override
protected void attachBaseContext(Context base) { protected void attachBaseContext(Context base) {
super.attachBaseContext(base); super.attachBaseContext(base);
//super.attachBaseContext(LocaleHelper.onAttach(base)); //super.attachBaseConteattachBaseContextxt(LocaleHelper.onAttach(base));
// ACRA core // ACRA core
CoreConfigurationBuilder builder = new CoreConfigurationBuilder(this) CoreConfigurationBuilder builder = new CoreConfigurationBuilder(this)
@ -73,6 +74,10 @@ public class FindMyTutor extends Application {
.setHttpHeaders(header) .setHttpHeaders(header)
.setEnabled(true); .setEnabled(true);
// builder.getPluginConfigurationBuilder(LimiterConfigurationBuilder.class)
// .setFailedReportLimit(2)
// .setEnabled(true);
ACRA.init(this, builder); ACRA.init(this, builder);
//Shared preferences //Shared preferences
ACRA.getErrorReporter().putCustomData("USER_ID", sharedPreferences.getString("USER_ID", "no user id")); ACRA.getErrorReporter().putCustomData("USER_ID", sharedPreferences.getString("USER_ID", "no user id"));