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.13.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.13.0/MuxStatsGoogleIMAPluginTVOS.xcframework.zip",
checksum: "bb71f2120ebff9160f8aeae82d7a7c19ddde3e396c42852d01a04ae2f5fda6e8"
)
The Mux Google IMA plugin is available through CocoaPods. To install it, add the following line to your Podfile:
pod 'Mux-Stats-Google-IMA'
GoogleAds-IMA-iOS-SDK
or GoogleAds-IMA-tvOS-SDK
.MuxStatsGoogleIMAPlugin.xcframework.zip
MuxStatsGoogleIMAPluginTVOS.xcframework.zip
FrameworkProject/MuxStatsGoogleIMAPlugin
and FrameworkProject/MuxStatsGoogleIMAPluginTVOS
pod install
(this will install the updated version into the example app)releaes/v*
branchMuxStatsGoogleIMAPlugin.xcframework.zip
anc MuxStatsGoogleIMAPluginTVOS.xcframework.zip
file to that releasemaster
: pod trunk push Mux-Stats-Google-IMA.podspec --allow-warnings