A thin wrapper around the Facebook Audience Network 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: 4.25.0
- Android: 4.25.0
-
Add the
FacebookAudienceNetwork.ane
to your Adobe Flex Builder or Adobe Flash project. -
If on Android, follow the integration instructions on Heyzap or add the following permissions and activities to your Android Manifest in your application descriptor:
<uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<activity android:name="com.facebook.ads.AudienceNetworkActivity" android:configChanges="keyboardHidden|orientation|screenSize" />
-
If not done automatically, add the follow extension context to your application descriptor:
<extensions> <extensionID>com.heyzap.sdk.extensions.facebook.audiencenetwork</extensionID> </extensions>
For iOS:
- Replace
FBAudienceNetwork.framework
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 theFacebookANE.xcodeproj
project in XCode under the Vendor group.
For Android:
- Replace
AudienceNetwork.jar
inandroid/libs
with a newer version. Get the newer version from an.aar
by unzipping it and renamingclasses.jar
toAudienceNetwork.jar
. - 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 8 (as of FAN 4.23.0, 7 is not supported)
- Apache Ant
- AIR SDK
- Make a
build.config
by copyingbuild.config.dist
(your local config file) - 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/FacebookAudienceNetwork.ane
.