cordova-plugin-smart-adserver
Version:
Ultimate Cordova Plugin for Smart AdServer to monetize hybrid apps. Show mobile Ad with single line of JavaScript. Compatible with Cordova CLI, PhoneGap Build, Intel XDK/Crosswalk, Google ChromeApp, Ionic, Meteor, etc.
79 lines (67 loc) • 3.17 kB
text/xml
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-smart-adserver"
version="1.1.1">
<name>Smart Ad Server</name>
<description>Cordova/PhoneGap Plugin for Smart Ad Server</description>
<author>Liming Xie</author>
<license>MIT</license>
<keywords>rjfun,ad,smart</keywords>
<repo>https://github.com/floatinghotpot/cordova-smart-adserver.git</repo>
<issue>https://github.com/floatinghotpot/cordova-smart-adserver/issues</issue>
<engines>
<engine name="cordova" version=">=4.0" />
</engines>
<js-module src="www/SmartAdServer.js" name="SmartAdServer">
<clobbers target="window.plugins.SmartAdServer" />
</js-module>
<dependency id="cordova-plugin-extension" />
<dependency id="cordova-plugin-cocoapod-support" />
<!-- android -->
<platform name="android">
<framework src="com.google.android.gms:play-services-ads:+" />
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:name="com.google.android.gms.ads.AdActivity"
android:theme="@android:style/Theme.Translucent" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
</config-file>
<config-file target="res/xml/config.xml" parent="/*">
<feature name="SmartAdServer">
<param name="android-package" value="com.rjfun.cordova.smartadserver.SmartAdServerPlugin"/>
<param name="onload" value="true" />
</feature>
</config-file>
<source-file src="src/android/SmartAdServerPlugin.java" target-dir="src/com/rjfun/cordova/smartadserver" />
<framework src="src/android/smartadserver.gradle" custom="true" type="gradleReference" />
<!-- source-file src="src/android/SmartAdServer-Android-SDK-6.10.1.aar" target-dir="libs" / -->
</platform>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="SmartAdServer">
<param name="ios-package" value="SmartAdServerPlugin" />
</feature>
</config-file>
<config-file target="*-Info.plist" parent="CFBundleAllowMixedLocalizations">
<true/>
</config-file>
<config-file target="*-Info.plist" parent="NSAppTransportSecurity">
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
</config-file>
<config-file target="*-Info.plist" parent="LSApplicationQueriesSchemes">
<array>
<string>youtube</string>
</array>
</config-file>
<pod name="Smart-Display-SDK" />
</platform>
</plugin>