Last active
August 24, 2019 08:38
-
-
Save PetkevichPavel/9e398f32c71f835590d85f132d3c6516 to your computer and use it in GitHub Desktop.
AN_Cloud Function: Code example.
This file contains hidden or 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
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