This repository was archived by the owner on Jun 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 487
EOL - default stats (EXPOSUREAPP-14836) #5864
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7f47ac7
EOL - default stats
mtwalli d3cce0a
Lint
mtwalli e2e556b
Merge branch 'release/3.2.x' into feature/14836-default-stats
mtwalli 7e734d8
Update StatisticsCacheTest.kt
mtwalli 7beb9a4
Merge branch 'release/3.2.x' into feature/14836-default-stats
mtwalli 9442708
Merge branch 'release/3.2.x' into feature/14836-default-stats
mtwalli 2cb8adc
Merge branch 'release/3.2.x' into feature/14836-default-stats
mtwalli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
Corona-Warn-App/src/main/assets/default_stats/default_stats.bin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
1 | ||
�ҟ�%https://corona-pandemieradar.de/:lang | ||
|
1 change: 1 addition & 0 deletions
1
Corona-Warn-App/src/main/assets/default_stats/default_stats.sha256
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9c965a43d7bb263b4cb26c3dac32ec6fb51e210215b2e903ca98bd0635586e03 |
16 changes: 16 additions & 0 deletions
16
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/statistics/source/DefaultStatsSource.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package de.rki.coronawarnapp.statistics.source | ||
|
||
import android.content.Context | ||
import dagger.Reusable | ||
import de.rki.coronawarnapp.util.di.AppContext | ||
import javax.inject.Inject | ||
|
||
@Reusable | ||
class DefaultStatsSource @Inject constructor( | ||
@AppContext private val context: Context, | ||
) { | ||
|
||
fun getDefaultStats(): ByteArray { | ||
return context.assets.open("default_stats/default_stats.bin").readBytes() | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.