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
// InvalidFragmentVersionForActivityResult: https://issuetracker.google.com/issues/182388985 | |
@SuppressLint("InvalidFragmentVersionForActivityResult") | |
@ExperimentalCoroutinesApi | |
private fun setupGoogleContinueButton() { | |
activity?.let { fragmentActivity -> | |
oneTapClient = Identity.getSignInClient(fragmentActivity) | |
signInRequest = createBeginSignInRequest(fragmentActivity) | |
val intentSender: ActivityResultLauncher<IntentSenderRequest> = | |
getGoogleActivityResultLauncher() |
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
// https://stackoverflow.com/questions/46640981/how-to-import-csv-or-json-to-firebase-cloud-firestore | |
const admin = require('../functions/node_modules/firebase-admin'); | |
const serviceAccount = require("./service-key.json"); | |
admin.initializeApp({ | |
credential: admin.credential.cert(serviceAccount), | |
databaseURL: "https://<your-database-name>.firebaseio.com" | |
}); |
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
/build |