Skip to content

Conversation

@kroikie
Copy link
Contributor

@kroikie kroikie commented May 7, 2020

Add snippets for Firebase Remote Config.

@kroikie kroikie requested a review from samtstern May 7, 2020 01:28
function addNewCondition(template) {
template.conditions.push({
name: 'android_en',
expression: 'device.os == \'android\' && device.country in [\'us\', \'uk\']',
Copy link
Contributor

@samtstern samtstern May 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you use " for the string you won't have to escape the ':

"device.os == 'android' && device.country in ['us', 'uk']"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ESLint is yelling at me, should I ignore it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe using ` instead of " will make it stop yelling?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is still angry 22:17 error Strings must use singlequote quotes

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eh ok not worth fighting more, but thats strange

"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check out the package.json for some of the other modules. You should:

  1. Make sure this is included in lerna.json
  2. Get rid of the test script that failes
  3. Add a compile script like the others

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, this should have been in there. Thanks for pointing it out. I'll add it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@kroikie kroikie merged commit d391cd8 into master May 7, 2020
@morganchen12 morganchen12 deleted the add-config-snippets branch November 6, 2025 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants