A thin wrapper around the Unity Ads Android and iOS SDK for use on Heyzap's mediation.
The latest release can be found in Releases.
Pull requests and issues are welcome.
- iOS: 1.4.5
- Android: 1.45
-
Add the
UnityAds.ane
to your Adobe Flex Builder or Adobe Flash project. -
If not done automatically, add the follow extension context to your application descriptor:
<extensions> <extensionID>com.heyzap.sdk.extensions.unityads</extensionID> </extensions>
For iOS:
- Replace
UnityAds.framework
andUnityAds.bundle
inios/Vendor
with a newer version. - Update
ios/platform.xml
with any new iOS frameworks that the newer version might be dependent on. Built-in iOS SDK frameworks can be added within the linkerOptions tag. Custom iOS frameworks can be added under the packagedDependencies tag and their respective.framework
directories can be added toios/Vendor
. Drag and drop these.framework
directories into theUnityAdsANE.xcodeproj
project in XCode under the Vendor group.
For Android:
- Replace
unity-ads.jar
inandroid/libs
with a newer version. - Update
android/platform.xml
with any new android libraries that the newer version might be dependent on. Android libraries can be added under the packagedDependencies tag. The actual.jar
files can be added to theandorid/libs
directory.
After making the necessary modifications, build the new ANE by following the building instructions below.
- Mac OS X
- XCode
- Apache Ant
- AIR SDK
- Add the path to your AIR SDK in
build.config
(underair.sdk
) - From the root of the repository, run
ant
.
After build completes, the native extension will be in bin/UnityAds.ane
.