@javascriptcommon/react-native-google-mobile-ads 16.3.3 → 16.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsNativeModule.kt +1 -1
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsRewardedInterstitialModule.kt +1 -1
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsRewardedModule.kt +1 -1
- package/lib/commonjs/version.js +1 -1
- package/lib/module/version.js +1 -1
- package/lib/typescript/index.d.ts +1 -1
- package/lib/typescript/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsNativeModule.kt
CHANGED
|
@@ -56,7 +56,7 @@ class ReactNativeGoogleMobileAdsNativeModule(reactContext: ReactApplicationConte
|
|
|
56
56
|
request,
|
|
57
57
|
object : NativeAdLoaderCallback {
|
|
58
58
|
override fun onNativeAdLoaded(nativeAd: NativeAd) {
|
|
59
|
-
val responseId = nativeAd.
|
|
59
|
+
val responseId = nativeAd.getResponseInfo()?.responseId ?: ""
|
|
60
60
|
nativeAds[responseId] = nativeAd
|
|
61
61
|
attachEventCallback(nativeAd, responseId)
|
|
62
62
|
promise.resolve(serializeNativeAd(nativeAd, responseId))
|
|
@@ -92,7 +92,7 @@ class ReactNativeGoogleMobileAdsRewardedInterstitialModule(reactContext: ReactAp
|
|
|
92
92
|
ReactNativeGoogleMobileAdsEvent.GOOGLE_MOBILE_ADS_EVENT_REWARDED_LOADED,
|
|
93
93
|
requestId,
|
|
94
94
|
adUnitId,
|
|
95
|
-
buildRewardPayload(ad.
|
|
95
|
+
buildRewardPayload(ad.getRewardItem()))
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
override fun showAd(
|
|
@@ -86,7 +86,7 @@ class ReactNativeGoogleMobileAdsRewardedModule(reactContext: ReactApplicationCon
|
|
|
86
86
|
ReactNativeGoogleMobileAdsEvent.GOOGLE_MOBILE_ADS_EVENT_REWARDED_LOADED,
|
|
87
87
|
requestId,
|
|
88
88
|
adUnitId,
|
|
89
|
-
buildRewardPayload(ad.
|
|
89
|
+
buildRewardPayload(ad.getRewardItem()))
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
override fun showAd(
|
package/lib/commonjs/version.js
CHANGED
package/lib/module/version.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "16.3.
|
|
1
|
+
export declare const SDK_VERSION = "16.3.4";
|
|
2
2
|
export { default, MobileAds } from './MobileAds';
|
|
3
3
|
export { AdsConsentDebugGeography, AdsConsentInfo, AdsConsentInfoOptions, AdsConsentInterface, AdsConsentPrivacyOptionsRequirementStatus, AdsConsentStatus, AdsConsentUserChoices, } from './specs/modules/NativeConsentModule';
|
|
4
4
|
export { AdsConsentPurposes } from './AdsConsentPurposes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "16.3.
|
|
1
|
+
export declare const version = "16.3.4";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@javascriptcommon/react-native-google-mobile-ads",
|
|
3
|
-
"version": "16.3.
|
|
3
|
+
"version": "16.3.4",
|
|
4
4
|
"author": "Invertase <oss@invertase.io> (http://invertase.io)",
|
|
5
5
|
"description": "Fork of react-native-google-mobile-ads migrated to the GMA Next-Gen SDK on Android (iOS keeps the classic Google Mobile Ads SDK). Banner, interstitial and app-open supported; native ads and rewarded are not migrated on Android.",
|
|
6
6
|
"main": "lib/commonjs/index.js",
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '16.3.
|
|
2
|
+
export const version = '16.3.4';
|