A thin wrapper around the InMobi 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: 6.2.1
- Android: 6.2.4
-
Add the
InMobi.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"/> <uses-permission android:name="com.google.android.gms.permission.ACTIVITY_RECOGNITION" /> <!-- Optionally used by InMobi --> <!-- GET_TASKS only needed for API 14 and lower --> <uses-permission android:name="android.permission.GET_TASKS" /> <!-- Optionally used by InMobi --> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <!-- Optionally used by InMobi --> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <!-- Optionally used by InMobi --> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <!-- Optionally used by InMobi --> <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> <!-- Optionally used by InMobi --> <uses-permission android:name="android.permission.READ_CALENDAR" /> <!-- Optionally used by InMobi --> <uses-permission android:name="android.permission.RECORD_AUDIO" /> <!-- Optionally used by InMobi --> <uses-permission android:name="android.permission.VIBRATE" /> <!-- Optionally used by InMobi --> <uses-permission android:name="android.permission.WRITE_CALENDAR" /> <!-- Optionally used by InMobi --> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!-- InMobi --> <activity android:name="com.inmobi.rendering.InMobiAdActivity" android:configChanges="keyboardHidden|orientation|keyboard|smallestScreenSize|screenSize" android:theme="@android:style/Theme.Translucent.NoTitleBar" android:hardwareAccelerated="true" /> <receiver android:name="com.inmobi.commons.core.utilities.uid.ImIdShareBroadCastReceiver" android:enabled="true" android:exported="true" > <intent-filter> <action android:name="com.inmobi.share.id" /> </intent-filter> </receiver> <service android:name="com.inmobi.signals.activityrecognition.ActivityRecognitionManager" android:enabled="true" />
-
If not done automatically, add the follow extension context to your application descriptor:
<extensions> <extensionID>com.heyzap.sdk.extensions.inmobi</extensionID> </extensions>
For iOS:
- Replace
InMobiSDK.framework
inios/Vendor
with a newer version.
For Android:
- Replace
InMobi.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
- 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/InMobi.ane
.