Michael Pohl
06/04/2020, 5:00 PMWaseef Akhtar
06/04/2020, 5:29 PMconst val
if it’s used in other classes as well, else private const val
Cody Engel
06/04/2020, 5:45 PMConstants
object in the past and after seeing it evolve over a year and a half I really grew to dislike that as it was easy to delete the classes where that constant was used but never delete the constant value itself.
@Waseef Akhtar I haven't tried const top level within a file so I'm curious what techniques you've used. That sounds like a pretty good approach as well but I'm curious if you've ran into trouble with discoverability or if it's forced you into slightly more descriptive names?Waseef Akhtar
06/04/2020, 6:25 PMConstants
object as well, but it eventually grew pretty large. My current approach seems to be working better for me so far. Would love to hear from others as well though!Michael Pohl
06/04/2020, 6:27 PMpsh
06/04/2020, 9:19 PMbuild.gradle
file per build type, product flavor or build variant so that they end up on your BuildConfig
file.Michael Pohl
06/05/2020, 5:15 AM