bruno.aybar
07/17/2018, 3:35 PMMark Gilchrist
07/17/2018, 5:17 PMbruno.aybar
07/17/2018, 5:37 PMianbrandt
07/18/2018, 2:56 AMobject Utils
instead of object Constants
?
E.g.:
Let’s say you define a field inside an object / companion object in Kotlin:
object Constants {
val PERMISSIONS = listOf("Internet", "Location")
}
If you try to invoke that function from Java, you would have to write:
Utils.INSTANCE.getPERMISSIONS()
bruno.aybar
07/18/2018, 4:46 AMDennis Cornwell
07/20/2018, 12:27 AMbruno.aybar
07/20/2018, 1:18 AM