https://kotlinlang.org logo
#android-architecture
Title
# android-architecture
j

JC

07/30/2020, 6:48 PM
Hello everyone, I'm just looking for a architecture or dessign patterns to handle app based on roles or permissions. For example, I have four different user types, and I want to handle some features enabled for two users and disababled by default. I read something about feature toggle, but I'm not sure if is the best option, because I want to avoid if statements checks in the code. Someone know something about this? Thanks!! 🙂
a

allan.conda

07/31/2020, 2:53 AM
I want to avoid if statements checks in the code.
You can checkout strategy pattern for implementing feature flags. Also read about dynamic feature modules if it fits your use-case.
😁 1
2 Views