Skip to content

Commit

Permalink
Support GMA SDK 11.12.0 (#1062)
Browse files Browse the repository at this point in the history
* feat: support GMA SDK 11.12.0

* feat: replace xcpretty with xcbeautify
  • Loading branch information
OlenaPostindustria authored Nov 12, 2024
1 parent a20b62e commit 1759b68
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class PrebidAdMobMediationBaseAdapter: NSObject, GADMediationAdapter {

// Added for tests
static func latestTestedGMAVersion() -> GADVersionNumber {
return GADVersionNumber(majorVersion: 11, minorVersion: 10, patchVersion: 0)
return GADVersionNumber(majorVersion: 11, minorVersion: 12, patchVersion: 0)
}

required public override init() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class GAMUtils: NSObject {

// Added for tests
static func latestTestedGMAVersion() -> GADVersionNumber {
return GADVersionNumber(majorVersion: 11, minorVersion: 10, patchVersion: 0)
return GADVersionNumber(majorVersion: 11, minorVersion: 12, patchVersion: 0)
}

// MARK: Private Methods
Expand Down
16 changes: 8 additions & 8 deletions Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
PODS:
- Alamofire (4.9.1)
- AppLovinSDK (13.0.0)
- AppLovinSDK (13.0.1)
- Eureka (5.5.0)
- Google-Mobile-Ads-SDK (11.10.0):
- Google-Mobile-Ads-SDK (11.12.0):
- GoogleUserMessagingPlatform (>= 1.1)
- GoogleAds-IMA-iOS-SDK (3.23.0)
- GoogleUserMessagingPlatform (2.6.0)
- RxSwift (6.7.1)
- GoogleUserMessagingPlatform (2.7.0)
- RxSwift (6.8.0)
- SVProgressHUD (2.3.1):
- SVProgressHUD/Core (= 2.3.1)
- SVProgressHUD/Core (2.3.1)
Expand All @@ -33,12 +33,12 @@ SPEC REPOS:

SPEC CHECKSUMS:
Alamofire: 85e8a02c69d6020a0d734f6054870d7ecb75cf18
AppLovinSDK: c0ecb434df24008b6ecdd7f1e5b8587bc45ff381
AppLovinSDK: fdae6a4361c9c9b09f8d7d18ede792368221d987
Eureka: 1c18c7fcd8f772cc2ca42d6be36292dffa77eecb
Google-Mobile-Ads-SDK: 13e6e98edfd78ad8d8a791edb927658cc260a56f
Google-Mobile-Ads-SDK: 3a76704456669fbed2057efc8bdb99050ad0e3fb
GoogleAds-IMA-iOS-SDK: ee2a68ed7a1a17c7bb81bdb1b81590b35a3fc8f3
GoogleUserMessagingPlatform: 0c3a08353e53ce8c2feab7addd0b652cde522450
RxSwift: b9a93a26031785159e11abd40d1a55bcb8057e52
GoogleUserMessagingPlatform: a8b56893477f67212fbc8411c139e61d463349f5
RxSwift: 4e28be97cbcfeee614af26d83415febbf2bf6f45
SVProgressHUD: 4837c74bdfe2e51e8821c397825996a8d7de6e22

PODFILE CHECKSUM: bae4436ed691a1d2217fde386d8881d6e7e06963
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import Foundation
class PrebidGAMVersionChecker {

var latestTestedGMAVersion: (Int, Int, Int) {
(11, 10, 0)
(11, 12, 0)
}

var currentGMAVersion: (Int, Int, Int)?
Expand Down
12 changes: 6 additions & 6 deletions scripts/testPrebidMobile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ echo -e "\n\n${GREEN}INSTALL PODS${NC}\n\n"

cd ..

gem install xcpretty --user-install
brew install xcbeautify

export PATH="/Users/distiller/.gem/ruby/2.7.0/bin:$PATH"
gem install cocoapods
Expand All @@ -43,7 +43,7 @@ then
-workspace PrebidMobile.xcworkspace \
-scheme "PrebidMobileTests" \
-destination 'platform=iOS Simulator,name=iPhone 11 Pro Max,OS=13.7' \
-only-testing PrebidMobileTests/RequestBuilderTests/testPostData | xcpretty --color --test
-only-testing PrebidMobileTests/RequestBuilderTests/testPostData | xcbeautify

if [[ ${PIPESTATUS[0]} == 0 ]]; then
echo "✅ unit tests for iOS 13 Passed"
Expand All @@ -59,7 +59,7 @@ xcodebuild test \
-workspace PrebidMobile.xcworkspace \
-retry-tests-on-failure \
-scheme "PrebidMobileTests" \
-destination 'platform=iOS Simulator,name=iPhone 15 Pro,OS=latest' | xcpretty --color --test
-destination 'platform=iOS Simulator,name=iPhone 15 Pro,OS=latest' | xcbeautify



Expand All @@ -74,7 +74,7 @@ echo -e "\n${GREEN}Running PrebidMobileGAMEventHandlers unit tests${NC} \n"
xcodebuild test \
-workspace PrebidMobile.xcworkspace \
-scheme "PrebidMobileGAMEventHandlersTests" \
-destination 'platform=iOS Simulator,name=iPhone 15 Pro,OS=latest' | xcpretty --color --test
-destination 'platform=iOS Simulator,name=iPhone 15 Pro,OS=latest' | xcbeautify

if [[ ${PIPESTATUS[0]} == 0 ]]; then
echo "✅ PrebidMobileGAMEventHandlers Unit Tests Passed"
Expand All @@ -84,7 +84,7 @@ else
fi

echo -e "\n${GREEN}Running PrebidMobileAdMobAdapters unit tests${NC} \n"
xcodebuild test -workspace PrebidMobile.xcworkspace -scheme "PrebidMobileAdMobAdaptersTests" -destination 'platform=iOS Simulator,name=iPhone 15 Pro,OS=latest' | xcpretty -f `xcpretty-travis-formatter` --color --test
xcodebuild test -workspace PrebidMobile.xcworkspace -scheme "PrebidMobileAdMobAdaptersTests" -destination 'platform=iOS Simulator,name=iPhone 15 Pro,OS=latest' | xcbeautify

if [[ ${PIPESTATUS[0]} == 0 ]]; then
echo "✅ PrebidMobileAdMobAdapters Unit Tests Passed"
Expand All @@ -94,7 +94,7 @@ else
fi

echo -e "\n${GREEN}Running PrebidMobileMAXAdapters unit tests${NC} \n"
xcodebuild test -workspace PrebidMobile.xcworkspace -scheme "PrebidMobileMAXAdaptersTests" -destination 'platform=iOS Simulator,name=iPhone 15 Pro,OS=latest' | xcpretty -f `xcpretty-travis-formatter` --color --test
xcodebuild test -workspace PrebidMobile.xcworkspace -scheme "PrebidMobileMAXAdaptersTests" -destination 'platform=iOS Simulator,name=iPhone 15 Pro,OS=latest' | xcbeautify

if [[ ${PIPESTATUS[0]} == 0 ]]; then
echo "✅ PrebidMobileMAXAdapters Unit Tests Passed"
Expand Down

0 comments on commit 1759b68

Please sign in to comment.