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

Review Notes/Suggestions #2

Closed
Salakar opened this issue Sep 3, 2021 · 7 comments
Closed

Review Notes/Suggestions #2

Salakar opened this issue Sep 3, 2021 · 7 comments
Labels
enhancement New feature or request

Comments

@Salakar
Copy link
Member

Salakar commented Sep 3, 2021

I know this repo is initially just a lift and shift of original code from RNFirebase to get it moved out and working separately but I had some notes/ideas/suggestions for future improvements/cleanup:

Not to say we need to block this for any of the above, just FYI / feedback. Thanks for getting this moved over also 🎉

@Salakar Salakar added the enhancement New feature or request label Sep 3, 2021
@mikehardy
Copy link
Collaborator

  • agreed on name change, it is not admob anymore no
  • I like the idea of using app.json a lot! I haven't done the config hook-up yet (just raw lift+shift so far as you noted - not working) so this is easy to switch right now
  • I intended to remove any reference to RNFB or Firebase in general, I'm sweeping all files via grep as I go
  • I wanted to do TS as well and still want to but I'm planning 3 phases, first is raw lift-and-shift with just eradication of FB/Firebase + making truly common stuff generic and release, second is update to current SDK (this is the point where community is unblocked), third is more re-factoring, like switch to TS/Kotlin/Swift etc
  • Normal detox testing is definitely the future, I'm not going to use the chrome debugger in this repo as I bring testing up, since that apparently has no future in the ecosystem

@mikehardy
Copy link
Collaborator

  • I just pushed a commit that makes the name react-native-google-ads / RNGoogleAds etc everywhere
  • commit includes switch to app.json for config

Pending:

@dylancom
Copy link
Collaborator

dylancom commented Dec 28, 2021

@Salakar @mikehardy I would consider renaming the package to: react-native-google-mobile-ads or react-native-mobile-ads as the SDK is called the "Mobile Ads SDK". To initialize the SDK on the native side you'd call: MobileAds.initialize()

See:
https://developers.google.com/admob/android/sdk
https://developers.google.com/admob/android/quick-start#initialize_the_mobile_ads_sdk

Schermafbeelding 2021-12-28 om 13 40 17

@mikehardy
Copy link
Collaborator

@Salakar this is totally up to you, I'm pretty agnostic about naming other than being sort of lazy about it (thus having no motivation to change it myself, sorry to all involved). @dylancom you appear to feel pretty strongly "mobile" should be in the package name, you've mentioned it more than once. I do hear you

Would be nice to have a slightly shorter name if it were renamed, not sure what can be done about that while still having "react-native". If it were to change perhaps pulling it from @invertase namespace on npmjs would be nice, e.g. https://www.npmjs.com/package/react-native-google-mobile-ads (which is not taken at the moment).

@dylancom
Copy link
Collaborator

dylancom commented Dec 31, 2021 via email

@dylancom
Copy link
Collaborator

dylancom commented Mar 4, 2022

@mikehardy I think we can close this?

@mikehardy
Copy link
Collaborator

Yeah pretty much rolled through and either did exactly this or similar enough

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants