Skip to content

Commit

Permalink
Merge pull request #152 from DP-3T/develop
Browse files Browse the repository at this point in the history
Version 0.5.6
  • Loading branch information
simonroesch authored Jun 12, 2020
2 parents 7fe17d1 + dd5fdb9 commit 5c7f1f8
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 11 deletions.
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 0.5.6 (12.6.2020)

- increased time delta check to 10min

## Version 0.5.5 (11.6.2020)

- improve history logging
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.dpppt.android.calibration.util.NotificationUtil;
import org.dpppt.android.calibration.util.PreferencesUtil;
import org.dpppt.android.sdk.DP3T;
import org.dpppt.android.sdk.internal.backend.BackendBucketRepository;
import org.dpppt.android.sdk.internal.logger.LogLevel;
import org.dpppt.android.sdk.internal.logger.Logger;
import org.dpppt.android.sdk.models.ApplicationInfo;
Expand Down Expand Up @@ -58,7 +57,6 @@ public static void initDP3T(Context context) {
.build();
DP3T.setCertificatePinner(certificatePinner);
}
BackendBucketRepository.BATCH_LENGTH = 5 * 60 * 1000L;

String userAgent = BuildConfig.APPLICATION_ID + ";" +
BuildConfig.VERSION_NAME + ";" +
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 55
versionName "0.5.5"
versionCode 56
versionName "0.5.6"
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 @@ -64,7 +64,6 @@ public enum ErrorState {
SYNC_ERROR_SERVER(R.string.dp3t_sdk_service_notification_error_sync_server),
SYNC_ERROR_NETWORK(R.string.dp3t_sdk_service_notification_error_sync_network),
SYNC_ERROR_SSLTLS(R.string.dp3t_sdk_service_notification_error_sync_ssltls),
SYNC_ERROR_DATABASE(R.string.dp3t_sdk_service_notification_error_sync_database),
SYNC_ERROR_TIMING(R.string.dp3t_sdk_service_notification_error_sync_timing),
SYNC_ERROR_SIGNATURE(R.string.dp3t_sdk_service_notification_error_sync_signature),
SYNC_ERROR_API_EXCEPTION(R.string.dp3t_sdk_service_notification_error_sync_api);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ public static synchronized void doSync(Context context) throws Exception {
} else if (e instanceof StatusCodeException) {
syncError = ErrorState.SYNC_ERROR_SERVER;
syncError.setErrorCode("ASST" + ((StatusCodeException) e).getCode());
} else if (e instanceof SQLiteException) {
syncError = ErrorState.SYNC_ERROR_DATABASE;
} else if (e instanceof ApiException) {
syncError = ErrorState.SYNC_ERROR_API_EXCEPTION;
syncError.setErrorCode("AGAEN" + ((ApiException) e).getStatusCode());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@

public class BackendBucketRepository implements Repository {

public static long BATCH_LENGTH = 2 * 60 * 60 * 1000L;

private BucketService bucketService;

public BackendBucketRepository(@NonNull Context context, @NonNull String bucketBaseUrl, @NonNull PublicKey publicKey) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

public class TimingVerificationInterceptor implements Interceptor {

private static final long ALLOWED_SERVER_TIME_DIFF = 60 * 1000L;
private static final long ALLOWED_SERVER_TIME_DIFF = 10 * 60 * 1000L;

private static final String TAG = "TimingVerification";

Expand Down
1 change: 0 additions & 1 deletion dp3t-sdk/sdk/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
<string name="dp3t_sdk_service_notification_error_sync_server">failed to load new infection data (server error)</string>
<string name="dp3t_sdk_service_notification_error_sync_network">failed to load new infection data (network error)</string>
<string name="dp3t_sdk_service_notification_error_sync_ssltls">failed to load new infection data (ssl/tls error)</string>
<string name="dp3t_sdk_service_notification_error_sync_database">failed to load new infection data (database error)</string>
<string name="dp3t_sdk_service_notification_error_sync_timing">device time does not match server time</string>
<string name="dp3t_sdk_service_notification_error_sync_signature">failed to load new infection data (invalid signature)</string>
<string name="dp3t_sdk_service_notification_error_sync_api">failed to load new infection data</string>
Expand Down

0 comments on commit 5c7f1f8

Please sign in to comment.