cordova-android/spec/fixtures/org.test.plugins.dummyplugin/plugin.xml
Jule- 8a4ae311ce Rewrite install dir resolution for legacy plugins (#589)
* Improve target-dir restriction for detecting new android project structure used in plugin.xml. (#575)

* Clarify old source-file declaration way from the new one and improve ambiguous code.

* Better check `src/main` forms.

* Replace path search with RegExp vars.

* Fix RegExp in order to match `/` or `EOL`.

* Remove template strings for NodeJS 4 support (wanted in case we port these changes to `7.1.x` at some point).

* Add pointer to deprecation plan in GH-580.
2018-11-28 06:46:45 -05:00

92 lines
3.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2013 Anis Kadri
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<plugin xmlns="http://cordova.apache.org/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="org.test.plugins.dummyplugin"
version="0.6.0">
<!-- new requirement: NO SPACES -->
<name>dummyplugin</name>
<!-- These are going to be required by plugman-registry -->
<description>my description</description>
<author>Jackson Badman</author>
<keywords>dummy,plugin</keywords>
<license>BSD</license>
<!-- end plugman-registry requirements -->
<asset src="www/dummyplugin.js" target="dummyplugin.js" />
<asset src="www/dummyplugin" target="dummyplugin" />
<config-file target="config.xml" parent="/*">
<access origin="build.phonegap.com" />
<access origin="s3.amazonaws.com" />
</config-file>
<!-- android -->
<platform name="android">
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:name="DummyPlugin.org.test.plugins.dummyplugin"
android:label="@string/app_name">
<intent-filter>
</intent-filter>
</activity>
</config-file>
<framework src="plugin-lib" custom="true" />
<framework src="plugin-lib2" custom="true" parent="plugin-lib" />
<framework src="extras/android/support/v7/appcompat" />
<framework src="extra.gradle" type="gradleReference" />
<resource-file src="android-resource.xml" target="res/xml/dummy.xml" />
<!-- CDV < 2.0 -->
<config-file target="res/xml/plugins.xml" parent="/plugins">
<plugin name="org.test.plugins.dummyplugin"
value="DummyPlugin.org.test.plugins.dummyplugin"/>
</config-file>
<!-- CDV 2.0+ (for now) -->
<config-file target="res/xml/config.xml" parent="/cordova/plugins">
<plugin name="org.test.plugins.dummyplugin"
value="DummyPlugin.org.test.plugins.dummyplugin"/>
</config-file>
<source-file src="src/android/DummyPlugin.java"
target-dir="src/com/phonegap/plugins/dummyplugin" />
<source-file src="src/android/DummyPlugin2.java"
target-dir="app/src/main/src/com/phonegap/plugins/dummyplugin" />
<source-file src="src/android/TestLib.jar"
target-dir="app/libs" />
<source-file src="src/android/TestAar.aar"
target-dir="app/libs" />
<source-file src="src/android/mysettings.xml" target-dir="res/xml" />
<source-file src="src/android/other.extension" target-dir="res/values" />
<source-file src="src/android/myapi.aidl" target-dir="src/com/mytest" />
<source-file src="src/android/testaar2.aar" target-dir="libs" />
<source-file src="src/android/testjar2.jar" target-dir="libs" />
<source-file src="src/android/jniLibs/x86/libnative.so" target-dir="libs/x86" />
<source-file src="src/android/DummyPlugin2.java"
target-dir="src/com/appco" />
<source-file src="src/android/DummyPlugin2.java"
target-dir="appco/src" />
<lib-file src="src/android/TestLib.jar" />
</platform>
</plugin>