-
Notifications
You must be signed in to change notification settings - Fork 78
/
plugin.xml
65 lines (50 loc) · 2.4 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
<?xml version="1.0" encoding="utf-8" ?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-instagram-plugin" version="0.6.2">
<name>Instagram</name>
<description
>Share the content of a canvas element or a dataUrl encoded image using the Instagram application for iOS and Android.</description>
<license>MIT</license>
<dependency id="cordova-clipboard" version="^1.3.0" />
<js-module src="www/CDVInstagramPlugin.js" name="InstagramPlugin">
<clobbers target="Instagram" />
</js-module>
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<!-- android -->
<platform name="android">
<framework src="com.android.support:support-v4:26.+" />
<!-- android specific elements -->
<config-file target="res/xml/config.xml" parent="/*">
<feature name="Instagram">
<param name="android-package" value="com.vladstirbu.cordova.CDVInstagramPlugin" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<provider android:authorities="${applicationId}.provider" android:exported="false" android:grantUriPermissions="true" android:name="com.vladstirbu.cordova.plugin.utils.AssetProvider">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/instagramplugin_provider_paths" />
</provider>
</config-file>
<source-file src="src/android/xml/instagramplugin_provider_paths.xml" target-dir="res/xml" />
<source-file src="src/android/CDVInstagramPlugin.java" target-dir="src/com/vladstirbu/cordova" />
<source-file src="src/android/utils/AssetProvider.java" target-dir="src/com/vladstirbu/cordova" />
</platform>
<!-- ios -->
<platform name="ios">
<!-- ios specific elements -->
<config-file target="config.xml" parent="/*">
<feature name="Instagram">
<param name="ios-package" value="CDVInstagramPlugin" />
</feature>
</config-file>
<!-- custom URLs need to be white listed on iOS 9 -->
<config-file target="*-Info.plist" parent="LSApplicationQueriesSchemes">
<array>
<string>instagram</string>
</array>
</config-file>
<header-file src="src/ios/CDVInstagramPlugin.h" target-dir="CDVInstagramPlugin" />
<source-file src="src/ios/CDVInstagramPlugin.m" target-dir="CDVInstagramPlugin" />
</platform>
</plugin>