UNPKG

cordova-plugin-mmedia

Version:

Cordova plugin for MillennialMedia Ads, support Banner, Interstitial and Video Ad

88 lines (74 loc) 3.76 kB
<?xml version="1.0" encoding="UTF-8"?> <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-mmedia" version="2.2.0"> <name>MillennialMedia Ad</name> <description>Cordova plugin for MillennialMedia Ads, support Banner, Interstitial and Video Ad</description> <author>Liming Xie</author> <license>MIT</license> <keywords>ad,millennial,mmedia,rjfun</keywords> <repo>https://github.com/floatinghotpot/cordova-plugin-mmedia.git</repo> <issue>https://github.com/floatinghotpot/cordova-plugin-mmedia/issues</issue> <engines> <engine name="cordova" version=">=3.0" /> </engines> <js-module src="www/mMedia.js" name="mMedia"> <clobbers target="window.mMedia" /> </js-module> <dependency id="cordova-plugin-extension"/> <!-- android --> <platform name="android"> <config-file target="res/xml/config.xml" parent="/*"> <feature name="mMedia"> <param name="android-package" value="com.rjfun.cordova.mmedia.mMediaAdPlugin"/> </feature> </config-file> <source-file src="src/android/mMediaAdPlugin.java" target-dir="src/com/rjfun/cordova/mmedia" /> <config-file target="AndroidManifest.xml" parent="/manifest/application"> <activity android:name="com.millennialmedia.android.MMActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar" android:configChanges="keyboardHidden|orientation|keyboard" ></activity> </config-file> <config-file target="AndroidManifest.xml" parent="/*"> <uses-permission android:name="android.permission.RECORD_AUDIO" /> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-feature android:name="android.hardware.microphone" android:required="false" /> </config-file> <source-file src="src/android/MMSDK.jar" target-dir="libs" /> <source-file src="src/android/nmdp_speech_kit.jar" target-dir="libs" /> <source-file src="src/android/armeabi/libnmsp_speex.so" target-dir="libs/armeabi" /> <framework src="com.google.android.gms:play-services-ads:+" /> </platform> <!-- ios --> <platform name="ios"> <config-file target="config.xml" parent="/*"> <feature name="mMedia"> <param name="ios-package" value="mMediaAdPlugin" /> </feature> </config-file> <header-file src="src/ios/mMediaAdPlugin.h"/> <source-file src="src/ios/mMediaAdPlugin.m"/> <framework src="src/ios/MillennialMedia.framework" custom="true"/> <framework src="src/ios/SpeechKit.framework" custom="true"/> <framework src="AdSupport.framework"/> <framework src="AudioToolbox.framework"/> <framework src="AVFoundation.framework"/> <framework src="CFNetwork.framework"/> <framework src="CoreGraphics.framework"/> <framework src="CoreLocation.framework"/> <framework src="EventKit.framework"/> <framework src="Foundation.framework"/> <framework src="MediaPlayer.framework"/> <framework src="MobileCoreServices.framework"/> <framework src="PassKit.framework"/> <framework src="QuartzCore.framework"/> <framework src="Security.framework"/> <framework src="Social.framework"/> <framework src="StoreKit.framework"/> <framework src="SystemConfiguration.framework"/> <framework src="UIKit.framework"/> </platform> </plugin>