This repository has been archived by the owner on Jun 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 492
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EOL - default stats (EXPOSUREAPP-14836) (#5864)
* EOL - default stats * Lint * Update StatisticsCacheTest.kt
- Loading branch information
Showing
6 changed files
with
31 additions
and
5 deletions.
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 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 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 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 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 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 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