I'd like to have a repository class that provides ...
# android
i
I'd like to have a repository class that provides data based on JSON stored inside the
assets
folder. Is there a way to access it without
context
? Or what approach would you recommend?
not kotlin but kotlin colored 2
🫡 1
c
Image from iOS.jpg
v
Considering you would be putting cross-cutting elements inside the
assets
folder needed across the whole application (and thus during its entire lifecycle), there is nothing wrong with passing it the
ApplicationContext
👍 1
i
Thank you @Vladimir 🙂