Last active
May 2, 2020 10:29
-
-
Save poemsk/d777b9d60a567f4e770be3ca5af6c1f7 to your computer and use it in GitHub Desktop.
Building Android Library From Scratch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Configuration(val context: Context, val key: String) { | |
var environment: String = "dev" | |
} | |
public ExampleClient(Context context, Configuration config) { | |
} | |
//initialisation | |
val config = Configuration(context, key) | |
config.environment = "prod" | |
val client = ExampleClient(config) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment