-
-
Notifications
You must be signed in to change notification settings - Fork 151
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
feat(android, sdks)!: update to the latest gms:play-services-ads:20.5.0 #32
Conversation
To view this pull requests documentation preview, visit the following URL: docs.page/invertase/react-native-google-ads~32 Documentation is deployed and generated using docs.page. |
Codecov Report
@@ Coverage Diff @@
## main #32 +/- ##
=======================================
Coverage 19.70% 19.70%
=======================================
Files 21 21
Lines 665 665
Branches 167 167
=======================================
Hits 131 131
Misses 415 415
Partials 119 119 |
Oh fantastic! That was next up on the todo list and it appears you have nailed it! Is this a breaking change? I did not see any changes to the javsascript layer so this appears to be all on the native side. Is that a correct guess? I have not reviewed though - just skimmed really quickly before approving the CI run Can you sign the CLA agreement as well? Excited to move quickly on this one, and I really appreciate that you posted this |
|
@RodolfoGS check the underlying SDK docs for reference https://developers.google.com/admob/android/migration |
Mmm yes, I see, Leave application callback removal. Ok, thanks for the clarification! |
no problem - I have not read it much myself so I was not actually sure, but I had the link handy ;-). Cheers |
I marked this as a breaking change (with a title update on the PR including It seems like this one might simply be: BREAKING CHANGE: onAdLeftApplication is removed from the underlying SDK, there is no replacement |
@Mikenso also needs a bump to compileSdkVersion to 31 (that will be in the example app https://github.com/invertase/react-native-google-ads/blob/0770c96714a84725084acf4130e3c6a40b6d079d/example/android/build.gradle#L8 - unfortunately this means we also need to encourage use of JDK11 as compileSdkVersion 31 has internal compiler errors on JDK8)
BREAKING CHANGE: compileSdkVersion now 31, change your app android build.gradle to 31 if you have not already. Note that JDK11 is required for stable compilation on compileSdkVersion 31, JDK8 has internal compiler errors with SDK31 |
@Mikenso run google java formatter locally and commit the result, it will fix the lint errors:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- lint errors
- example app update to compileSdkVersion 31
- needs a crystal clear description of all breaking changes, to help app developers deal with the changes
I think that also here setting testDevices has to move to the overall configuration instead of per ad. And so it has to be set in: https://github.com/invertase/react-native-google-ads/blob/9569b98768cacd3f0d3e95b7b44d15d20e59681a/android/src/main/java/io/invertase/googleads/ReactNativeGoogleAdsModule.java Besides that the key "testDevices" became: "testDeviceIdentifiers". So this PR should match with setting test devices as follow: |
Agreed with Dylan's comment on making sure the test device stuff is in harmony with iOS changes as mentioned, thanks for the review Dylan |
Hi @mikehardy, @dylancom, thanks for review Where do I need to specify breaking changes? BREAKING CHANGES:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Starting to look good - I still need to do a deeper look (in progress) but here's the results of a surface level scan - simple item of annotation style
android/src/main/java/io/invertase/googleads/ReactNativeGoogleAdsBannerAdViewManager.java
Outdated
Show resolved
Hide resolved
android/src/main/java/io/invertase/googleads/ReactNativeGoogleAdsBannerAdViewManager.java
Outdated
Show resolved
Hide resolved
android/src/main/java/io/invertase/googleads/ReactNativeGoogleAdsInterstitialModule.java
Outdated
Show resolved
Hide resolved
android/src/main/java/io/invertase/googleads/ReactNativeGoogleAdsInterstitialModule.java
Outdated
Show resolved
Hide resolved
android/src/main/java/io/invertase/googleads/ReactNativeGoogleAdsInterstitialModule.java
Outdated
Show resolved
Hide resolved
Looks like it needs either
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looked good - I confirmed smart banners were gone on ios side as well, and left-app event was also gone on ios, so API is now consistent across platforms with both up to date on SDKs
This looks like a solid forward port, thank you
## [3.0.0](v2.0.1...v3.0.0) (2021-12-12) ### ⚠ BREAKING CHANGES * android SDK updated to underlying SDK 20 * **android, sdks:** update to the latest v20 android admob sdk (#32) ### Features * android SDK updated to underlying SDK 20 ([56c6058](56c6058)) * **android, sdks:** update to the latest v20 android admob sdk ([#32](#32)) ([291e504](291e504))
🎉 This PR is included in version 3.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [3.0.0](invertase/react-native-google-mobile-ads@v2.0.1...v3.0.0) (2021-12-12) ### ⚠ BREAKING CHANGES * android SDK updated to underlying SDK 20 * **android, sdks:** update to the latest v20 android admob sdk (#32) ### Features * android SDK updated to underlying SDK 20 ([56c6058](invertase/react-native-google-mobile-ads@56c6058)) * **android, sdks:** update to the latest v20 android admob sdk ([#32](invertase/react-native-google-mobile-ads#32)) ([291e504](invertase/react-native-google-mobile-ads@291e504))
Description
Android Update Banner, Interstitial, Rewarded add to be compatible with com.google.android.gms:play-services-ads:20.5.0
BREAKING CHANGES:
Please refer to upstream guides for suggestions on new usage. https://developers.google.com/admob/ios/migration and https://developers.google.com/admob/android/migration