-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugin.xml
95 lines (76 loc) · 4.72 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?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-admob-tencent" version="1.0.15">
<name>Tencent AdMob</name>
<description>Cordova Plugin for Tencent GDT Ads</description>
<author>Michael LYX</author>
<keywords>cordova,admob,tencent,gdt,ads</keywords>
<license>MIT</license>
<repo>https://github.com/liangyongxiong/cordova-plugin-admob-tencent.git</repo>
<issue>https://github.com/liangyongxiong/cordova-plugin-admob-tencent/issues</issue>
<js-module name="tencentadmob" src="www/tencentadmob.js">
<clobbers target="cordova.TencentAdMob" />
</js-module>
<!-- android -->
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="TencentAdMob">
<param name="android-package" value="cn.liangyongxiong.cordova.plugin.admob.tencent.TencentAdMob" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<!-- 请开发者注意字母的大小写,ADActivity,而不是AdActivity -->
<activity android:name="com.qq.e.ads.ADActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenSize"/>
<!-- 声明SDK所需要的组件 -->
<service android:name="com.qq.e.comm.DownloadService" android:exported="false"/>
<!-- targetSDKVersion >= 24时才需要添加这个provider -->
<provider android:name="android.support.v4.content.FileProvider" android:authorities="${applicationId}.fileprovider"
android:exported="false" android:grantUriPermissions="true">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/gdt_file_path" />
</provider>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<!-- 如果需要精确定位的话请加上此权限 -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
</config-file>
<framework src="com.android.support:support-v4:26.0.0-alpha1" />
<resource-file src="src/android/xml/gdt_file_path.xml" target="res/xml/gdt_file_path.xml" />
<source-file src="src/android/libs/GDTUnionSDK.4.15.559.min.jar" target-dir="libs" />
<source-file src="src/android/TencentAdMob.java" target-dir="src/cn/liangyongxiong/cordova/plugin/admob/tencent" />
<source-file src="src/android/TencentAdMobBannerFragment.java" target-dir="src/cn/liangyongxiong/cordova/plugin/admob/tencent" />
<source-file src="src/android/TencentAdMobInterstitialFragment.java" target-dir="src/cn/liangyongxiong/cordova/plugin/admob/tencent" />
<source-file src="src/android/TencentAdMobSplashFragment.java" target-dir="src/cn/liangyongxiong/cordova/plugin/admob/tencent" />
</platform>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="TencentAdMob">
<param name="ios-package" value="TencentAdMob"/>
</feature>
</config-file>
<source-file src="src/ios/TencentAdMob.m" />
<header-file src="src/ios/TencentAdMob.h" />
<header-file src="src/ios/libs/GDTMobBannerView.h" />
<header-file src="src/ios/libs/GDTMobInterstitial.h" />
<header-file src="src/ios/libs/GDTNativeAd.h" />
<header-file src="src/ios/libs/GDTNativeExpressAd.h" />
<header-file src="src/ios/libs/GDTNativeExpressAdView.h" />
<header-file src="src/ios/libs/GDTSDKConfig.h" />
<header-file src="src/ios/libs/GDTSplashAd.h" />
<header-file src="src/ios/libs/GDTTrack.h" />
<source-file src="src/ios/libs/libGDTMobSDK.a" framework="true" />
<framework src="CoreLocation.framework" />
<framework src="QuartzCore.framework" />
<framework src="SystemConfiguration.framework" />
<framework src="CoreTelephony.framework" />
<framework src="Security.framework" />
<framework src="StoreKit.framework" />
<framework src="libz.tbd" />
</platform>
</plugin>