Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐛] admob_delay_app_measurement_init wrongly typed in json schema #5295

Closed
2 of 10 tasks
DoctorJohn opened this issue May 12, 2021 · 7 comments · Fixed by #5297
Closed
2 of 10 tasks

[🐛] admob_delay_app_measurement_init wrongly typed in json schema #5295

DoctorJohn opened this issue May 12, 2021 · 7 comments · Fixed by #5297
Labels
tools: typings TypeScript / Flow type: bug New bug report

Comments

@DoctorJohn
Copy link
Contributor

Issue

I used "$schema":"./node_modules/@react-native-firebase/app/firebase-schema.json" in my firebase.json file to use the editor Intellisense. Doing so I noticed that admob_delay_app_measurement_init is expected to be a string. However docs and code tell a different story. Am I missing something?


Project Files

Javascript

Click To Expand

package.json:

# N/A

firebase.json for react-native-firebase v6:

{
  "$schema":"./node_modules/@react-native-firebase/app/firebase-schema.json",
  "react-native": {
    "admob_delay_app_measurement_init": true
  }
}

iOS

Click To Expand

ios/Podfile:

  • I'm not using Pods
  • I'm using Pods and my Podfile looks like:
# N/A

AppDelegate.m:

// N/A


Android

Click To Expand

Have you converted to AndroidX?

  • my application is an AndroidX application?
  • I am using android/gradle.settings jetifier=true for Android compatibility?
  • I am using the NPM package jetifier for react-native compatibility?

android/build.gradle:

// N/A

android/app/build.gradle:

// N/A

android/settings.gradle:

// N/A

MainApplication.java:

// N/A

AndroidManifest.xml:

<!-- N/A -->


Environment

Click To Expand

react-native info output:

 OUTPUT GOES HERE
  • Platform that you're experiencing the issue on:
    • iOS
    • Android
    • iOS but have not tested behavior on Android
    • Android but have not tested behavior on iOS
    • Both
  • react-native-firebase version you're using that has this issue:
    • 11.4.1
  • Firebase module(s) you're using that has the issue:
    • admob, app
  • Are you using TypeScript?
    • Y & 4.2.4


@DoctorJohn DoctorJohn added help: needs-triage Issue needs additional investigation/triaging. type: bug New bug report labels May 12, 2021
@mikehardy
Copy link
Collaborator

Looks like it should be a boolean - yes - does that work for you locally? Seems it should

#5297 to resolve - thanks for noticing this and reporting it, much appreciated

@DoctorJohn
Copy link
Contributor Author

It appears to be working for me with a boolean.

@mikehardy
Copy link
Collaborator

Major ecosystem earthquakes rumbling through firebase-land at the moment with breaking changes in the underlying native SDKs so I can't promise when this will be released - it might be in an hour or it might be a few days, so safest bet might be to use patch-package to resolve this locally just for now - it's quick and painless if you've never used it before, I use it everywhere for items like this

@mikehardy mikehardy added Resolution: Solution Provided tools: typings TypeScript / Flow and removed help: needs-triage Issue needs additional investigation/triaging. labels May 12, 2021
@DoctorJohn
Copy link
Contributor Author

Thanks for the tip, I did not know about patch-package before!

@mikehardy
Copy link
Collaborator

I hold patch-package in such high regard I made a workflow just to generate patches in it's format in our CI for PRs :-) - helps close the loop for submitters / interested testers since otherwise it's hard for interested parties to check results for a monorepo setup like react-native-firebase, and will only get worse as a typescript conversion is in the future meaning there will be a compile step as well - for instance check the artifact here on the linked PR

https://github.com/invertase/react-native-firebase/actions/runs/835852849

It accrues all the unreleased changes on main branch + plus the PR since last release.

@DoctorJohn
Copy link
Contributor Author

This is pretty awesome! I already was concerned that sooner or later I would have to build custom versions locally and make them available via a private registry. Thanks again for letting me know

@mikehardy
Copy link
Collaborator

Yeah - I hadn't thought of it, but I suppose even if you proposed something that was critical for you but not for us you could post a PR and get a patch set 😆 - you can see we'll merge just about anything sensible though. If you ever want to do development on the native stuff here to bend it to your will, the tests app in the repo (and it's README) will get you going pretty quickly. It's surprisingly less painful than I thought it would be, when I started.

androidIsForVivek pushed a commit to androidIsForVivek/react-native-firebase that referenced this issue Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tools: typings TypeScript / Flow type: bug New bug report
Projects
None yet
3 participants
@mikehardy @DoctorJohn and others