-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from stather/master
Now works as cordova plugin with cordova command line
- Loading branch information
Showing
5 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.DS_Store | ||
/nbproject/private/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
config.folder=${file.reference.TelephoneNumberPlugin-config} | ||
file.reference.TelephoneNumberPlugin-config=config | ||
file.reference.TelephoneNumberPlugin-test=test | ||
file.reference.TelephoneNumberPlugin-www=www | ||
files.encoding=UTF-8 | ||
site.root.folder=${file.reference.TelephoneNumberPlugin-www} | ||
test.folder=${file.reference.TelephoneNumberPlugin-test} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://www.netbeans.org/ns/project/1"> | ||
<type>org.netbeans.modules.web.clientproject</type> | ||
<configuration> | ||
<data xmlns="http://www.netbeans.org/ns/clientside-project/1"> | ||
<name>TelephoneNumberPlugin</name> | ||
</data> | ||
</configuration> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?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="com.simonmacdonald.telephonenumber" | ||
version="1.0.0"> | ||
<engines> | ||
<engine name="cordova-android" version=">=3.0.0"/> | ||
</engines> | ||
|
||
<name>TelephoneNumber</name> | ||
<description>This plugin allows your to get hold of the telephone number from an android device</description> | ||
<author>Simon MacDonald, updated to Cordova 3 by Russell Stather</author> | ||
<keywords>android, phone number</keywords> | ||
<license>MIT</license> | ||
<asset src="www/telephonenumber.js" target="telephonenumber.js" /> | ||
|
||
<platform name="android"> | ||
<source-file src="src/com/simonmacdonald/cordova/plugins/TelephoneNumber.java" target-dir="src/com/simonmacdonald/cordova/plugins" /> | ||
<config-file target="res/xml/config.xml" parent="/*"> | ||
<feature name="TelephoneNumber" > | ||
<param name="android-package" value="com.simonmacdonald.cordova.plugins.TelephoneNumber"/> | ||
</feature> | ||
</config-file> | ||
|
||
<config-file target="AndroidManifest.xml" parent="/manifest"> | ||
<uses-permission android:name="android.permission.READ_PHONE_STATE" /> | ||
</config-file> | ||
|
||
|
||
</platform> | ||
|
||
</plugin> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters