Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Felix Foertsch
Luca Android
Commits
1f21347d
Commit
1f21347d
authored
Jun 28, 2021
by
Ulrich Scheller
Browse files
Release 1.8.5
parent
b8307a3f
Changes
3
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
1f21347d
# Release 1.8.5
-
Bug fix
This update includes a bugfix related to the import of vaccination certificates.
# Release 1.8.4
-
Bug fix
...
...
Luca/app/build.gradle
View file @
1f21347d
...
...
@@ -10,8 +10,8 @@ android {
applicationId
"de.culture4life.luca"
minSdkVersion
21
targetSdkVersion
30
versionCode
7
2
versionName
"1.8.
4
"
versionCode
7
3
versionName
"1.8.
5
"
testInstrumentationRunner
"androidx.test.runner.AndroidJUnitRunner"
}
signingConfigs
{
...
...
Luca/app/src/main/java/de/culture4life/luca/document/provider/DocumentProvider.java
View file @
1f21347d
...
...
@@ -3,6 +3,8 @@ package de.culture4life.luca.document.provider;
import
de.culture4life.luca.document.DocumentVerificationException
;
import
de.culture4life.luca.registration.RegistrationData
;
import
javax.annotation.Nonnull
;
import
androidx.annotation.NonNull
;
import
io.reactivex.rxjava3.core.Completable
;
import
io.reactivex.rxjava3.core.Single
;
...
...
@@ -28,12 +30,15 @@ public abstract class DocumentProvider<DocumentType extends ProvidedDocument> {
public
Completable
validate
(
@NonNull
DocumentType
document
,
@NonNull
RegistrationData
registrationData
)
{
return
Completable
.
fromAction
(()
->
{
if
(!
registrationData
.
getFirstName
().
equalsIgnoreCase
(
document
.
getDocument
().
getFirstName
()))
{
throw
new
DocumentVerificationException
(
NAME_MISMATCH
);
}
else
if
(!
registrationData
.
getLastName
().
equalsIgnoreCase
(
document
.
getDocument
().
getLastName
()))
{
throw
new
DocumentVerificationException
(
NAME_MISMATCH
);
}
compareTrimmedAndIgnoreCase
(
registrationData
.
getFirstName
(),
document
.
getDocument
().
getFirstName
());
compareTrimmedAndIgnoreCase
(
registrationData
.
getLastName
(),
document
.
getDocument
().
getLastName
());
});
}
private
void
compareTrimmedAndIgnoreCase
(
@NonNull
String
s1
,
@Nonnull
String
s2
)
throws
DocumentVerificationException
{
if
(!
s1
.
trim
().
equalsIgnoreCase
(
s2
.
trim
()))
{
throw
new
DocumentVerificationException
(
NAME_MISMATCH
);
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment