Skip to content

Instantly share code, notes, and snippets.

@PetkevichPavel
Last active August 24, 2019 08:38
Show Gist options
  • Save PetkevichPavel/9e398f32c71f835590d85f132d3c6516 to your computer and use it in GitHub Desktop.
Save PetkevichPavel/9e398f32c71f835590d85f132d3c6516 to your computer and use it in GitHub Desktop.
AN_Cloud Function: Code example.
fetchAndActivate().addOnCompleteListener { task ->
task.isSuccessful.takeIf { it }?.apply {
context.saveFile(getString(RemoteConfigConstants.RC_JSON_PARAM_NAME).toByteArray(),
LOCAL_RC_JSON)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment