Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved the js-module blocks into the platform blocks #2

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@
<author>Sylvain Brejeon</author>
<keywords>cordova,device,name</keywords>
<license>MIT</license>

<js-module src="www/device-name.js" name="DeviceName">
<clobbers target="cordova.plugins.deviceName" />
</js-module>

<!-- android -->
<platform name="android">
<js-module src="www/device-name.js" name="DeviceName">
<clobbers target="cordova.plugins.deviceName" />
</js-module>
<config-file target='AndroidManifest.xml' parent='/manifest'>
<uses-permission android:name="android.permission.BLUETOOTH" />
</config-file>
Expand All @@ -29,6 +28,9 @@

<!-- ios -->
<platform name="ios">
<js-module src="www/device-name.js" name="DeviceName">
<clobbers target="cordova.plugins.deviceName" />
</js-module>
<config-file target="config.xml" parent="/*">
<feature name="DeviceName">
<param name="ios-package" value="CDVDeviceName"/>
Expand All @@ -38,4 +40,4 @@
<header-file src="src/ios/CDVDeviceName.h" />
<source-file src="src/ios/CDVDeviceName.m" />
</platform>
</plugin>
</plugin>