react-native-google-mobile-ads 15.8.1 → 15.8.3
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.
|
@@ -84,6 +84,11 @@ RCT_EXPORT_METHOD(
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
NSString *responseId = nativeAd.responseInfo.responseIdentifier;
|
|
87
|
+
if (responseId == nil) {
|
|
88
|
+
reject(@"ERROR_LOAD", @"Failed to get a valid response ID from the loaded ad.", nil);
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
|
|
87
92
|
[_adHolders setValue:adHolder forKey:responseId];
|
|
88
93
|
|
|
89
94
|
resolve(@{
|
|
@@ -109,8 +114,10 @@ RCT_EXPORT_METHOD(
|
|
|
109
114
|
|
|
110
115
|
RCT_EXPORT_METHOD(destroy
|
|
111
116
|
: (NSString *)responseId {
|
|
112
|
-
|
|
113
|
-
|
|
117
|
+
if (responseId) {
|
|
118
|
+
[[_adHolders valueForKey:responseId] dispose];
|
|
119
|
+
[_adHolders removeObjectForKey:responseId];
|
|
120
|
+
}
|
|
114
121
|
});
|
|
115
122
|
|
|
116
123
|
- (GADNativeAd *)nativeAdForResponseId:(NSString *)responseId {
|
|
@@ -280,7 +287,7 @@ RCT_EXPORT_METHOD(destroy
|
|
|
280
287
|
[self emitAdEvent:@"video_unmuted"];
|
|
281
288
|
}
|
|
282
289
|
|
|
283
|
-
- (void)emitAdEvent:(NSString *)type withData:(NSDictionary *)data {
|
|
290
|
+
- (void)emitAdEvent:(nonnull NSString *)type withData:(NSDictionary *)data {
|
|
284
291
|
if (_nativeModule == nil || _nativeAd == nil) {
|
|
285
292
|
return;
|
|
286
293
|
}
|
|
@@ -290,7 +297,8 @@ RCT_EXPORT_METHOD(destroy
|
|
|
290
297
|
[payload addEntriesFromDictionary:data];
|
|
291
298
|
}
|
|
292
299
|
|
|
293
|
-
|
|
300
|
+
NSString *responseId = _nativeAd.responseInfo.responseIdentifier;
|
|
301
|
+
payload[@"responseId"] = responseId ?: [NSNull null];
|
|
294
302
|
payload[@"type"] = type;
|
|
295
303
|
|
|
296
304
|
#ifdef RCT_NEW_ARCH_ENABLED
|
package/lib/commonjs/version.js
CHANGED
package/lib/module/version.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "15.8.
|
|
1
|
+
export declare const SDK_VERSION = "15.8.3";
|
|
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 = "15.8.
|
|
1
|
+
export declare const version = "15.8.3";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-google-mobile-ads",
|
|
3
|
-
"version": "15.8.
|
|
3
|
+
"version": "15.8.3",
|
|
4
4
|
"author": "Invertase <oss@invertase.io> (http://invertase.io)",
|
|
5
5
|
"description": "React Native Google Mobile Ads is an easy way to monetize mobile apps with targeted, in-app advertising.",
|
|
6
6
|
"main": "lib/commonjs/index.js",
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
]
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
|
+
"postinstallDev": "yarn prepare",
|
|
68
69
|
"prepare": "yarn build && yarn build:plugin",
|
|
69
70
|
"build": "genversion --es6 --semi src/version.ts && bob build",
|
|
70
71
|
"build:clean": "rimraf android/build && rimraf ios/build && rimraf lib && rimraf plugin/build",
|
|
@@ -83,7 +84,7 @@
|
|
|
83
84
|
"tests:jest": "jest",
|
|
84
85
|
"tests:jest-watch": "jest --watch",
|
|
85
86
|
"tests:jest-coverage": "jest --coverage",
|
|
86
|
-
"tests:install": "cd RNGoogleMobileAdsExample && yarn",
|
|
87
|
+
"tests:install": "cd RNGoogleMobileAdsExample && yarn && yarn postinstallDev",
|
|
87
88
|
"tests:packager": "cd RNGoogleMobileAdsExample && yarn react-native start",
|
|
88
89
|
"tests:packager:reset-cache": "cd RNGoogleMobileAdsExample && yarn react-native start --reset-cache",
|
|
89
90
|
"tests:android:build": "cd RNGoogleMobileAdsExample && yarn detox build --configuration android.emu.debug",
|
|
@@ -108,7 +109,7 @@
|
|
|
108
109
|
"tests:ios:test-cover": "cd RNGoogleMobileAdsExample && ./node_modules/.bin/nyc yarn detox test --configuration ios.sim.debug",
|
|
109
110
|
"tests:ios:test-cover-reuse": "cd RNGoogleMobileAdsExample && node_modules/.bin/nyc yarn detox test --configuration ios.sim.debug --reuse --loglevel warn",
|
|
110
111
|
"tests:ios:pod:install": "cd RNGoogleMobileAdsExample && cd ios && rm -rf RNGoogleMobileAdsExample.xcworkspace && rm -f Podfile.lock && pod install --repo-update && cd ..",
|
|
111
|
-
"package:update": "yarn upgrade
|
|
112
|
+
"package:update": "yarn upgrade-interactive"
|
|
112
113
|
},
|
|
113
114
|
"dependencies": {
|
|
114
115
|
"@iabtcf/core": "^1.5.3",
|
|
@@ -118,12 +119,12 @@
|
|
|
118
119
|
"@babel/core": "^7.25.2",
|
|
119
120
|
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
120
121
|
"@react-native/babel-preset": "^0.76.2",
|
|
121
|
-
"@semantic-release/changelog": "^6.0.
|
|
122
|
-
"@semantic-release/commit-analyzer": "^
|
|
122
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
123
|
+
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
123
124
|
"@semantic-release/git": "^10.0.1",
|
|
124
|
-
"@semantic-release/github": "^
|
|
125
|
-
"@semantic-release/npm": "^
|
|
126
|
-
"@semantic-release/release-notes-generator": "^
|
|
125
|
+
"@semantic-release/github": "^12.0.0",
|
|
126
|
+
"@semantic-release/npm": "^13.1.1",
|
|
127
|
+
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
127
128
|
"@testing-library/react-native": "^11.5.0",
|
|
128
129
|
"@types/jest": "^29.2.0",
|
|
129
130
|
"@types/node": "^18.11.7",
|
|
@@ -132,7 +133,8 @@
|
|
|
132
133
|
"@typescript-eslint/parser": "^5.41.0",
|
|
133
134
|
"babel-jest": "^29.2.2",
|
|
134
135
|
"clang-format": "1.8.0",
|
|
135
|
-
"conventional-changelog
|
|
136
|
+
"conventional-changelog": "^7.1.1",
|
|
137
|
+
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
136
138
|
"eslint": "^8.26.0",
|
|
137
139
|
"eslint-config-prettier": "^8.5.0",
|
|
138
140
|
"eslint-plugin-jest": "^27.1.3",
|
|
@@ -150,7 +152,7 @@
|
|
|
150
152
|
"react-native-builder-bob": "^0.20.0",
|
|
151
153
|
"react-test-renderer": "^18.3.1",
|
|
152
154
|
"rimraf": "^3.0.2",
|
|
153
|
-
"semantic-release": "^
|
|
155
|
+
"semantic-release": "^25.0.1",
|
|
154
156
|
"spellchecker-cli": "^6.1.1",
|
|
155
157
|
"typescript": "^5.5.3"
|
|
156
158
|
},
|
|
@@ -179,5 +181,6 @@
|
|
|
179
181
|
"android": {
|
|
180
182
|
"javaPackageName": "io.invertase.googlemobileads"
|
|
181
183
|
}
|
|
182
|
-
}
|
|
184
|
+
},
|
|
185
|
+
"packageManager": "yarn@4.10.3"
|
|
183
186
|
}
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '15.8.
|
|
2
|
+
export const version = '15.8.3';
|