From d6f9e5d0d0e229f62c3d851f216830b7b2268120 Mon Sep 17 00:00:00 2001 From: russell stather Date: Fri, 18 Oct 2013 11:25:24 +0100 Subject: [PATCH] Now works as cordova plugin with cordova command line Updated for latest android API --- .gitignore | 1 + nbproject/project.properties | 7 ++++ nbproject/project.xml | 9 +++++ plugin.xml | 34 +++++++++++++++++++ .../cordova/plugins/TelephoneNumber.java | 6 ++-- 5 files changed, 54 insertions(+), 3 deletions(-) create mode 100644 nbproject/project.properties create mode 100644 nbproject/project.xml create mode 100644 plugin.xml diff --git a/.gitignore b/.gitignore index e43b0f9..1a3b8bd 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .DS_Store +/nbproject/private/ \ No newline at end of file diff --git a/nbproject/project.properties b/nbproject/project.properties new file mode 100644 index 0000000..2be147e --- /dev/null +++ b/nbproject/project.properties @@ -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} diff --git a/nbproject/project.xml b/nbproject/project.xml new file mode 100644 index 0000000..cdbb05c --- /dev/null +++ b/nbproject/project.xml @@ -0,0 +1,9 @@ + + + org.netbeans.modules.web.clientproject + + + TelephoneNumberPlugin + + + diff --git a/plugin.xml b/plugin.xml new file mode 100644 index 0000000..1e4498b --- /dev/null +++ b/plugin.xml @@ -0,0 +1,34 @@ + + + + + + + + TelephoneNumber + This plugin allows your to get hold of the telephone number from an android device + Simon MacDonald, updated to Cordova 3 by Russell Stather + android, phone number + MIT + + + + + + + + + + + + + + + + + + + diff --git a/src/com/simonmacdonald/cordova/plugins/TelephoneNumber.java b/src/com/simonmacdonald/cordova/plugins/TelephoneNumber.java index 9ad2cfc..1cd495c 100644 --- a/src/com/simonmacdonald/cordova/plugins/TelephoneNumber.java +++ b/src/com/simonmacdonald/cordova/plugins/TelephoneNumber.java @@ -1,8 +1,8 @@ package com.simonmacdonald.cordova.plugins; -import org.apache.cordova.api.CallbackContext; -import org.apache.cordova.api.CordovaPlugin; -import org.apache.cordova.api.PluginResult; +import org.apache.cordova.CallbackContext; +import org.apache.cordova.CordovaPlugin; +import org.apache.cordova.PluginResult; import org.json.JSONArray; import android.content.Context;