cordova-admob-tomitank 1.0.1 → 1.0.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.
- package/README.md +2 -2
- package/esm/index.d.ts +2 -1
- package/esm/index.js +2 -1
- package/esm/index.js.map +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/src/ios/AMBBanner.swift +9 -10
- package/src/www/index.ts +2 -1
- package/www/admob.js +1 -0
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# [Cordova AdMob tomitank]
|
|
2
2
|
|
|
3
3
|
Based on AdMob Plus Cordova with updated SDK-s
|
|
4
|
-
Android: 22.0.0
|
|
5
|
-
iOS: 10.
|
|
4
|
+
- Android: 22.0.0
|
|
5
|
+
- iOS: 10.6.0
|
|
6
6
|
|
|
7
7
|
[](https://github.com/sponsors/tomitank)
|
|
8
8
|
|
package/esm/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import InterstitialAd from './interstitial';
|
|
|
4
4
|
import NativeAd, { NativeAdOptions } from './native';
|
|
5
5
|
import RewardedAd, { RewardedAdOptions, ServerSideVerificationOptions } from './rewarded';
|
|
6
6
|
import RewardedInterstitialAd, { RewardedInterstitialAdOptions } from './rewarded-interstitial';
|
|
7
|
-
import { AdMobConfig, Events, RequestConfig, TrackingAuthorizationStatus } from './shared';
|
|
7
|
+
import { AdMobConfig, Events, RequestConfig, AdSizeType, TrackingAuthorizationStatus } from './shared';
|
|
8
8
|
export * from './api';
|
|
9
9
|
export { AppOpenAd, BannerAd, BannerAdOptions, InterstitialAd, NativeAd, NativeAdOptions, RewardedAd, RewardedAdOptions, RewardedInterstitialAd, RewardedInterstitialAdOptions, ServerSideVerificationOptions, };
|
|
10
10
|
export declare class AdMob {
|
|
@@ -14,6 +14,7 @@ export declare class AdMob {
|
|
|
14
14
|
readonly NativeAd: typeof NativeAd;
|
|
15
15
|
readonly RewardedAd: typeof RewardedAd;
|
|
16
16
|
readonly RewardedInterstitialAd: typeof RewardedInterstitialAd;
|
|
17
|
+
readonly AdSizeType: typeof AdSizeType;
|
|
17
18
|
readonly Events: typeof Events;
|
|
18
19
|
readonly TrackingAuthorizationStatus: typeof TrackingAuthorizationStatus;
|
|
19
20
|
configure(config: AdMobConfig): Promise<unknown>;
|
package/esm/index.js
CHANGED
|
@@ -40,7 +40,7 @@ import InterstitialAd from './interstitial';
|
|
|
40
40
|
import NativeAd from './native';
|
|
41
41
|
import RewardedAd from './rewarded';
|
|
42
42
|
import RewardedInterstitialAd from './rewarded-interstitial';
|
|
43
|
-
import { Events, execAsync, NativeActions, start, TrackingAuthorizationStatus, } from './shared';
|
|
43
|
+
import { Events, execAsync, NativeActions, start, AdSizeType, TrackingAuthorizationStatus, } from './shared';
|
|
44
44
|
export * from './api';
|
|
45
45
|
export { AppOpenAd, BannerAd, InterstitialAd, NativeAd, RewardedAd, RewardedInterstitialAd, };
|
|
46
46
|
var AdMob = /** @class */ (function () {
|
|
@@ -51,6 +51,7 @@ var AdMob = /** @class */ (function () {
|
|
|
51
51
|
this.NativeAd = NativeAd;
|
|
52
52
|
this.RewardedAd = RewardedAd;
|
|
53
53
|
this.RewardedInterstitialAd = RewardedInterstitialAd;
|
|
54
|
+
this.AdSizeType = AdSizeType;
|
|
54
55
|
this.Events = Events;
|
|
55
56
|
this.TrackingAuthorizationStatus = TrackingAuthorizationStatus;
|
|
56
57
|
}
|
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/www/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,SAAS,MAAM,YAAY,CAAA;AAClC,OAAO,QAA6B,MAAM,UAAU,CAAA;AACpD,OAAO,cAAc,MAAM,gBAAgB,CAAA;AAC3C,OAAO,QAA6B,MA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ewardedAd, { RewardedAdOptions, ServerSideVerificationOptions } from './rewarded';
|
|
6
6
|
import RewardedInterstitialAd, { RewardedInterstitialAdOptions } from './rewarded-interstitial';
|
|
7
|
-
import { AdMobConfig, Events, RequestConfig, TrackingAuthorizationStatus } from './shared';
|
|
7
|
+
import { AdMobConfig, Events, RequestConfig, AdSizeType, TrackingAuthorizationStatus } from './shared';
|
|
8
8
|
export * from './api';
|
|
9
9
|
export { AppOpenAd, BannerAd, BannerAdOptions, InterstitialAd, NativeAd, NativeAdOptions, RewardedAd, RewardedAdOptions, RewardedInterstitialAd, RewardedInterstitialAdOptions, ServerSideVerificationOptions, };
|
|
10
10
|
export declare class AdMob {
|
|
@@ -14,6 +14,7 @@ export declare class AdMob {
|
|
|
14
14
|
readonly NativeAd: typeof NativeAd;
|
|
15
15
|
readonly RewardedAd: typeof RewardedAd;
|
|
16
16
|
readonly RewardedInterstitialAd: typeof RewardedInterstitialAd;
|
|
17
|
+
readonly AdSizeType: typeof AdSizeType;
|
|
17
18
|
readonly Events: typeof Events;
|
|
18
19
|
readonly TrackingAuthorizationStatus: typeof TrackingAuthorizationStatus;
|
|
19
20
|
configure(config: AdMobConfig): Promise<unknown>;
|
package/lib/index.js
CHANGED
|
@@ -76,6 +76,7 @@ var AdMob = /** @class */ (function () {
|
|
|
76
76
|
this.NativeAd = native_1.default;
|
|
77
77
|
this.RewardedAd = rewarded_1.default;
|
|
78
78
|
this.RewardedInterstitialAd = rewarded_interstitial_1.default;
|
|
79
|
+
this.AdSizeType = shared_1.AdSizeType;
|
|
79
80
|
this.Events = shared_1.Events;
|
|
80
81
|
this.TrackingAuthorizationStatus = shared_1.TrackingAuthorizationStatus;
|
|
81
82
|
}
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/www/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C/B,OAAO,IAAA,kBAAS,EAAC,sBAAa,CAAC,YAAY,EAAE,CAAC,KAAK,CAAC,CAAC,CAAA;IACvD,CAAC;IAEM,qBAAK,GAAZ;QACE,OAAO,IAAA,cAAK,GAAE,CAAA;IAChB,CAAC;IAEY,4CAA4B,GAAzC;;;;;;6BAGM,CAAA,OAAO,CAAC,UAAU,8BAAkB,CAAA,EAApC,wBAAoC;wBAC5B,qBAAM,IAAA,kBAAS,EAAC,sBAAa,CAAC,4BAA4B,CAAC,EAAA;;wBAA/D,CAAC,GAAG,SAA2D;wBACrE,IAAI,CAAC,KAAK,KAAK,EAAE;4BACf,sBAAO,oCAA2B,CAChC,oCAA2B,CAAC,CAAW,CAAC,CACzC,EAAA;yBACF;;4BAEH,sBAAO,KAAK,EAAA;;;;KACb;IACH,YAAC;AAAD,CAAC,AA5CD,IA4CC;AA5CY,sBAAK;AAkDlB,kBAAe,KAAK,CAAA"}
|
package/package.json
CHANGED
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<plugin id="cordova-admob-tomitank" version="1.0.
|
|
2
|
+
<plugin id="cordova-admob-tomitank" version="1.0.3"
|
|
3
3
|
xmlns="http://apache.org/cordova/ns/plugins/1.0"
|
|
4
4
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
|
5
5
|
<name>cordova-admob-tomitank</name>
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
<source url="https://cdn.cocoapods.org/" />
|
|
315
315
|
</config>
|
|
316
316
|
<pods use-frameworks="true">
|
|
317
|
-
<pod name="Google-Mobile-Ads-SDK" spec="~> 10.
|
|
317
|
+
<pod name="Google-Mobile-Ads-SDK" spec="~> 10.6.0" />
|
|
318
318
|
</pods>
|
|
319
319
|
</podspec>
|
|
320
320
|
</platform>
|
package/src/ios/AMBBanner.swift
CHANGED
|
@@ -271,6 +271,7 @@ class AMBBanner: AMBAdBase, GADBannerViewDelegate, GADAdSizeDelegate {
|
|
|
271
271
|
|
|
272
272
|
private func addBannerView(_ offset: CGFloat) {
|
|
273
273
|
let rootView = Self.rootView
|
|
274
|
+
let guide = rootView.safeAreaLayoutGuide
|
|
274
275
|
bannerView.translatesAutoresizingMaskIntoConstraints = false
|
|
275
276
|
rootView.addSubview(bannerView)
|
|
276
277
|
rootView.bringSubviewToFront(bannerView)
|
|
@@ -278,16 +279,14 @@ class AMBBanner: AMBAdBase, GADBannerViewDelegate, GADAdSizeDelegate {
|
|
|
278
279
|
bannerView.centerXAnchor.constraint(equalTo: rootView.centerXAnchor)
|
|
279
280
|
]
|
|
280
281
|
switch position {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
constant: offset * -1)
|
|
290
|
-
]
|
|
282
|
+
case AMBBannerPosition.top:
|
|
283
|
+
constraints += [
|
|
284
|
+
bannerView.topAnchor.constraint(equalTo: guide.topAnchor, constant: offset)
|
|
285
|
+
]
|
|
286
|
+
default:
|
|
287
|
+
constraints += [
|
|
288
|
+
bannerView.bottomAnchor.constraint(equalTo: guide.bottomAnchor, constant: offset * -1)
|
|
289
|
+
]
|
|
291
290
|
}
|
|
292
291
|
NSLayoutConstraint.activate(constraints)
|
|
293
292
|
}
|
package/src/www/index.ts
CHANGED
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
Platforms,
|
|
18
18
|
RequestConfig,
|
|
19
19
|
start,
|
|
20
|
+
AdSizeType,
|
|
20
21
|
TrackingAuthorizationStatus,
|
|
21
22
|
} from './shared'
|
|
22
23
|
|
|
@@ -42,7 +43,7 @@ export class AdMob {
|
|
|
42
43
|
public readonly NativeAd = NativeAd
|
|
43
44
|
public readonly RewardedAd = RewardedAd
|
|
44
45
|
public readonly RewardedInterstitialAd = RewardedInterstitialAd
|
|
45
|
-
|
|
46
|
+
public readonly AdSizeType = AdSizeType
|
|
46
47
|
public readonly Events = Events
|
|
47
48
|
public readonly TrackingAuthorizationStatus = TrackingAuthorizationStatus
|
|
48
49
|
|
package/www/admob.js
CHANGED
|
@@ -616,6 +616,7 @@ var AdMob = /** @class */ (function () {
|
|
|
616
616
|
this.NativeAd = NativeAd;
|
|
617
617
|
this.RewardedAd = RewardedAd;
|
|
618
618
|
this.RewardedInterstitialAd = RewardedInterstitialAd;
|
|
619
|
+
this.AdSizeType = AdSizeType;
|
|
619
620
|
this.Events = Events;
|
|
620
621
|
this.TrackingAuthorizationStatus = TrackingAuthorizationStatus;
|
|
621
622
|
}
|