@hanwha-ss1/plugin 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
package com.plugin.
|
|
1
|
+
package com.plugin.contact;
|
|
2
2
|
|
|
3
3
|
import android.app.Activity;
|
|
4
4
|
import android.content.Intent;
|
|
@@ -6,7 +6,7 @@ import android.provider.ContactsContract;
|
|
|
6
6
|
import android.util.Log;
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
public class
|
|
9
|
+
public class Contact {
|
|
10
10
|
|
|
11
11
|
public String echo(String value) {
|
|
12
12
|
Log.i("Echo", value);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
package com.plugin.
|
|
1
|
+
package com.plugin.contact;
|
|
2
2
|
|
|
3
3
|
import com.getcapacitor.JSObject;
|
|
4
4
|
import com.getcapacitor.Plugin;
|
|
@@ -7,9 +7,9 @@ import com.getcapacitor.PluginMethod;
|
|
|
7
7
|
import com.getcapacitor.annotation.CapacitorPlugin;
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
@CapacitorPlugin(name = "
|
|
10
|
+
@CapacitorPlugin(name = "Contact")
|
|
11
11
|
public class ContactPlugin extends Plugin{
|
|
12
|
-
private
|
|
12
|
+
private Contact implementation = new Contact();
|
|
13
13
|
|
|
14
14
|
@PluginMethod
|
|
15
15
|
public void echo(PluginCall call) {
|
|
@@ -28,7 +28,7 @@ public class ContactPlugin extends Plugin{
|
|
|
28
28
|
String department = call.getString("dept");
|
|
29
29
|
String email = call.getString("email");
|
|
30
30
|
if(implementation == null) {
|
|
31
|
-
implementation = new
|
|
31
|
+
implementation = new Contact();
|
|
32
32
|
}
|
|
33
33
|
implementation.save(getActivity(), name, email, mobile, phone, department);
|
|
34
34
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanwha-ss1/plugin",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "Plugin",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"prepublishOnly": "npm run build"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@capacitor/android": "
|
|
48
|
-
"@capacitor/core": "
|
|
47
|
+
"@capacitor/android": "^4.0.0",
|
|
48
|
+
"@capacitor/core": "^4.0.0",
|
|
49
49
|
"@capacitor/docgen": "0.0.18",
|
|
50
|
-
"@capacitor/ios": "
|
|
50
|
+
"@capacitor/ios": "^4.0.0",
|
|
51
51
|
"@ionic/eslint-config": "0.3.0",
|
|
52
52
|
"@ionic/prettier-config": "1.0.1",
|
|
53
53
|
"@ionic/swiftlint-config": "1.1.2",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"typescript": "4.0.3"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"@capacitor/core": "
|
|
63
|
+
"@capacitor/core": "^4.0.0"
|
|
64
64
|
},
|
|
65
65
|
"prettier": "@ionic/prettier-config",
|
|
66
66
|
"swiftlint": "@ionic/swiftlint-config",
|