Skip to content

Inconsistency between GoogleMobileAds version requirements in Package.swift and 5.3.0 changelogΒ #264

@simone-smith

Description

@simone-smith

Description

There appears to be an inconsistency between the GoogleMobileAds version requirements specified in the Package.swift file and what's noted in the changelog for version 5.3.0.

The Package.swift file restricts GoogleMobileAds to versions between 11.2.0 and 12.0.0:

.package(
    name: googleMobileAdsModuleName,
    url: "https://github.com/googleads/swift-package-manager-google-mobile-ads.git",
    "11.2.0" ..< "12.0.0"
),

However, the changelog for Teads 5.3.0 states:

Bump GAM version to v12.2.0

This creates a dependency resolution conflict when trying to use Teads 5.3.0 with GoogleMobileAds 12.2.0, as the Package.swift constraints prevent using any GoogleMobileAds version >=12.0.0.

Impact

This issue is blocking our ability to update to the newest version of Teads SDK (5.3.0) while also using GoogleMobileAds 12.2.0 as mentioned in the changelog. Our build is failing with errors about missing types like MediationBannerAdConfiguration, MediationNativeAdEventDelegate, etc., which suggests the Teads adapter is expecting GoogleMobileAds v12.x APIs but is constrained to use v11.x.

Steps to Reproduce

  1. Update Teads SDK to version 5.3.0 in an iOS project
  2. Try to set GoogleMobileAds dependency to version 12.2.0
  3. Attempt to resolve dependencies

Expected Behaviour

The Package.swift file should allow GoogleMobileAds versions up to at least 12.2.0 to match what's stated in the changelog.

Actual Behaviour

Dependency resolution fails with the following error:

Failed to resolve dependencies
Dependencies could not be resolved because root depends on 'swift-package-manager-google-mobile-ads' 12.2.0..<20.0.0 and root depends on 'teadssdk-ios' 5.1.3..<20.0.0.
'teadssdk-ios' >= 5.1.3 practically depends on 'swift-package-manager-google-mobile-ads' 11.2.0..<12.0.0 because 'teadssdk-ios' 5.2.0 depends on 'swift-package-manager-google-mobile-ads' 11.2.0..<12.0.0 and 'teadssdk-ios' 5.3.0 depends on 'swift-package-manager-google-mobile-ads' 11.2.0..<12.0.0.

Possible Solution

Update the Package.swift file to allow GoogleMobileAds versions up to at least 12.2.0:

.package(
    name: googleMobileAdsModuleName,
    url: "https://github.com/googleads/swift-package-manager-google-mobile-ads.git",
    "11.2.0" ..< "13.0.0"  // Allow v12.x.x versions
),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions