dhis2-android-capture-app icon indicating copy to clipboard operation
dhis2-android-capture-app copied to clipboard

feat: [NO-MERGE] [ANDROSDK-1568] Add expirable cache

Open vgarciabnz opened this issue 3 years ago • 0 comments

Description

Do not merge this PR. It is a prof of concept about the use of an internal cache for expensive operations, such as determining the attribute that should be used as profile picture for a particular event.

ANDROSDK-1568

Solution description

Implement an expirable cache (it is copy/pasted from the SDK) to store an expensive computation result. This result is the same for a particular program as long as the metadata does not change.

Covered unit test cases


Where did you test this issue?

  • [X] Smartphone Emulator
  • [ ] Tablet Emulator
  • [X] Smartphone
  • [ ] Tablet

Which Android versions did you test this issue?

  • [ ] 4.4
  • [ ] 5.X - 6.X
  • [ ] 7.X
  • [ ] 8.X
  • [X] 9.X - 10.X
  • [ ] Other

Checklist

  • [ ] My code follows the style guidelines of this project
  • [ ] I have performed a self-review of my own code

vgarciabnz avatar Aug 30 '22 15:08 vgarciabnz