Skip to content

Commit e27dc18

Browse files
authored
chore(lib): update current version (#388)
1 parent 303fbec commit e27dc18

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

CapacitorCommunityAdmob.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ Pod::Spec.new do |s|
1515
s.swift_version = '5.1'
1616
s.static_framework = true
1717
s.dependency 'Capacitor'
18-
s.dependency 'Google-Mobile-Ads-SDK', '12.7.0'
18+
s.dependency 'Google-Mobile-Ads-SDK', '12.12.0'
1919
s.dependency 'GoogleUserMessagingPlatform', '3.0.0'
2020
end

android/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ext {
44
androidxCoordinatorLayoutVersion = project.hasProperty('androidxCoordinatorLayoutVersion') ? rootProject.ext.androidxCoordinatorLayoutVersion : '1.3.0'
55
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.2.1'
66
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.6.1'
7-
playServicesAdsVersion = project.hasProperty('playServicesAdsVersion') ? rootProject.ext.playServicesAdsVersion : '24.4.+'
7+
playServicesAdsVersion = project.hasProperty('playServicesAdsVersion') ? rootProject.ext.playServicesAdsVersion : '24.7.+'
88
userMessagingPlatformVersion = project.hasProperty('userMessagingPlatformVersion') ? rootProject.ext.userMessagingPlatformVersion : '3.1.0'
99
androidxCoreKTXVersion = project.hasProperty('androidxCoreKTXVersion') ? rootProject.ext.androidxCoreKTXVersion : '1.15.0'
1010
}
@@ -79,7 +79,6 @@ dependencies {
7979
// androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
8080
// androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
8181

82-
// after 20.5.0, require minCompileSdk (31)
8382
implementation "com.google.android.gms:play-services-ads:$playServicesAdsVersion"
8483
implementation "com.google.android.ump:user-messaging-platform:$userMessagingPlatformVersion"
8584
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"

android/src/test/java/com/getcapacitor/community/admob/interstitial/InterstitialAdStub.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,12 @@ internal class InterstitialAdStub: InterstitialAd() {
4343
TODO("Not yet implemented")
4444
}
4545

46+
override fun getPlacementId(): Long {
47+
return 0L
48+
}
49+
50+
override fun setPlacementId(p0: Long) {
51+
TODO("Not yet implemented")
52+
}
53+
4654
}

ios/Sources/AdMobPlugin/Banner/BannerExecutor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class BannerExecutor: NSObject, BannerViewDelegate {
136136
attribute: self.adPosition == "TOP_CENTER" ? .top : .bottom,
137137
multiplier: 1,
138138
constant: CGFloat(Int(self.Margin) * -1)),
139-
NSLayoutConstraint(item: bannerView,
139+
NSLayoutConstraint(item: bannerView,
140140
attribute: .centerX,
141141
relatedBy: .equal,
142142
toItem: rootViewController.view,

ios/Sources/AdMobPlugin/Consent/ConsentExecutor.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class ConsentExecutor: NSObject {
3838
guard let rootViewController = plugin?.getRootVC() else {
3939
return call.reject("No ViewController")
4040
}
41-
41+
4242
Task {
4343
do {
4444
try await ConsentForm.presentPrivacyOptionsForm(from: rootViewController)
@@ -92,7 +92,7 @@ class ConsentExecutor: NSObject {
9292
return "UNKNOWN"
9393
}
9494
}
95-
95+
9696
func getPrivacyOptionsRequirementStatus(_ requirementStatus: PrivacyOptionsRequirementStatus) -> String {
9797
switch requirementStatus {
9898
case PrivacyOptionsRequirementStatus.required:

0 commit comments

Comments
 (0)