Skip to content

Instantly share code, notes, and snippets.

@Maxim-Kolmogorov
Created January 6, 2021 13:41
Show Gist options
  • Save Maxim-Kolmogorov/a94f4036e4ab77f9828622b2b1266873 to your computer and use it in GitHub Desktop.
Save Maxim-Kolmogorov/a94f4036e4ab77f9828622b2b1266873 to your computer and use it in GitHub Desktop.
Tutorial: Cordova plugin in Swift. Part 3. Modern plugin.xml
<?xml version='1.0' encoding='utf-8'?>
<plugin id="maxim-kolmogorov-echo-test" version="0.0.1" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>EchoTest</name>
<js-module name="EchoTest" src="www/EchoTest.js">
<clobbers target="echotest" />
</js-module>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="EchoTest">
<param name="ios-package" value="EchoTest" />
</feature>
</config-file>
<source-file src="src/ios/EchoTest.swift" />
</platform>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment