To run the example project, clone the repo, and run pod install
from the Example directory first. Then open
up the .workspace in the Example/ directory
Run tests in XCode with cmd + u
In order to install in your iOS application open your Package.swift
file, add the following to dependencies
.
.package(
url: "https://github.com/muxinc/mux-stats-google-ima",
.upToNextMajor(from: "0.14.0")
),
Swift Package Manager does not support installation of Google IMA packages for both iOS GoogleAds-IMA-iOS-SDK
and tvOS GoogleAds-IMA-tvOS-SDK
at the same time because they cannot be disambiguated at the time of package resolution. This is a known issue with Google IMA tracked here.
As a workaround, if installing for just tvOS, add the following binary target to your Package.swift
file.
.binaryTarget(
name: "MuxStatsGoogleIMAPluginTVOS",
url: "https://github.com/muxinc/mux-stats-google-ima/releases/download/v0.14.0/MuxStatsGoogleIMAPluginTVOS.xcframework.zip",
checksum: "c0a0499a471a20803e29e3133d51a45ed81d53152e6a19e9e7e4f611662505ce"
)
The Mux Google IMA plugin is available through CocoaPods. To install it, add the following line to your Podfile:
pod 'Mux-Stats-Google-IMA'
- Depending on the platforms your application is targeting, download and integrate
GoogleAds-IMA-iOS-SDK
orGoogleAds-IMA-tvOS-SDK
. - Navigate to the most recent release listed here.
- For iOS applications download
MuxStatsGoogleIMAPlugin.xcframework.zip
- For tvOS applications download
MuxStatsGoogleIMAPluginTVOS.xcframework.zip
- Unzip the xcframework and add to your Xcode project
- Checkout a new release branch named releases/vX.Y.Z where X, Y, and Z are the major, minor, and patch versions of the released SDK.
- Update Mux-Stats-Google-IMA.podspec with new major, minor, and patch versions.
- Update marketing version with new major, minor, and patch versions in Xcode project files in
FrameworkProject/MuxStatsGoogleIMAPlugin
andFrameworkProject/MuxStatsGoogleIMAPluginTVOS
- create a PR against master for your
releaes/v*
branch - merge PR after release notes pop in (check them for spelling/grammar/tone)
- wait for PR comment to appear with a link to a draft release
- attach the
MuxStatsGoogleIMAPlugin.xcframework.zip
ancMuxStatsGoogleIMAPluginTVOS.xcframework.zip
file to that release - Create the release
- From up-to-date
master
:pod trunk push Mux-Stats-Google-IMA.podspec --allow-warnings