Skip to content

Instantly share code, notes, and snippets.

@poemsk
Last active May 2, 2020 10:29
Show Gist options
  • Save poemsk/d777b9d60a567f4e770be3ca5af6c1f7 to your computer and use it in GitHub Desktop.
Save poemsk/d777b9d60a567f4e770be3ca5af6c1f7 to your computer and use it in GitHub Desktop.
Building Android Library From Scratch
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