Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.0.2 #185

Merged
merged 3 commits into from
Jul 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog for DP3T-SDK Android

## version 1.0.2 (17.7.2020)

- fix logic for when a sync is considered successfull in HistoryDatabase (only if no errors)

## version 1.0.1 (16.7.2020)

- less frequent error notifications (only once per error while errors persist, wait 5min for GPS/Bluetooth state changes, wait 24h before showing EN API Errors)
Expand Down
4 changes: 2 additions & 2 deletions dp3t-sdk/sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ android {
defaultConfig {
minSdkVersion 23
targetSdkVersion 29
versionCode 101
versionName "1.0.1"
versionCode 102
versionName "1.0.2"
testInstrumentationRunnerArgument 'androidx.benchmark.suppressErrors', 'EMULATOR,LOW-BATTERY,ACTIVITY-MISSING,DEBUGGABLE,UNLOCKED,UNSUSTAINED-ACTIVITY-MISSING'
testInstrumentationRunner "androidx.benchmark.junit4.AndroidBenchmarkRunner"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ private void doSyncInternal(Context context) throws Exception {
String.valueOf((char) (base + numInstantErrors)) + (char) (base + numDelayedErrors) +
(char) (base + numSuccesses);
HistoryDatabase.getInstance(context).addEntry(
new HistoryEntry(HistoryEntryType.SYNC, historyStatus, lastException == null, System.currentTimeMillis()));
new HistoryEntry(HistoryEntryType.SYNC, historyStatus, numInstantErrors == 0 && numDelayedErrors == 0,
System.currentTimeMillis()));
}

if (lastException != null) {
Expand Down