-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugin.xml
66 lines (55 loc) · 3.29 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?xml version='1.0' encoding='utf-8'?>
<plugin id="com-artemisoftnian-plugins-unityads2" version="0.0.1" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>UnityAds2</name>
<hook type="after_prepare" src="afterPrepareScript.js" />
<js-module name="UnityAds2" src="www/UnityAds2.js">
<clobbers target="unityads2" />
</js-module>
<platform name="android">
<config-file target="config.xml" parent="/*">
<feature name="UnityAds2">
<param name="android-package" value="com.artemisoftnian.plugin.UnityAds2"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity
android:name="com.unity3d.ads.adunit.AdUnitActivity"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"
android:hardwareAccelerated="true"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />
<activity
android:name="com.unity3d.ads.adunit.AdUnitTransparentActivity"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"
android:hardwareAccelerated="true"
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
<activity
android:name="com.unity3d.ads.adunit.AdUnitTransparentSoftwareActivity"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"
android:hardwareAccelerated="false"
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
<activity
android:name="com.unity3d.ads.adunit.AdUnitSoftwareActivity"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"
android:hardwareAccelerated="false"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />
</config-file>
<source-file src="src/android/com/artemisoftnian/plugin/UnityAds2.java" target-dir="src/com/artemisoftnian/plugin" />
<!--resource-file src="libs/unity-ads.aar" target="/libs/unity-ads.aar" /-->
<lib-file src="src/android/libs/classes.jar" />
<framework src="src/android/unityads2.gradle" custom="true" type="gradleReference" />
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="UnityAds2">
<param name="ios-package" value="UnityAds2" />
</feature>
</config-file>
<dependency id="cordova-plugin-add-swift-support" version="1.7.0" />
<framework src="src/ios/UnityAds.framework" custom="true" />
<source-file src="src/ios/UnityAds2.swift" />
</platform>
</plugin>