@hanwha-ss1/plugin 0.4.7 → 0.4.9
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.
- package/android/build.gradle +1 -0
- package/android/src/main/java/com/plugin/linker/LinkerPlugin.java +12 -1
- package/android/src/main/java/com/plugin/openbrowser/OpenBrowser.java +2 -1
- package/android/src/main/java/com/plugin/openbrowser/OpenBrowserPlugin.java +2 -1
- package/android/src/main/java/com/plugin/openbrowser/WebViewActivity.java +121 -0
- package/android/src/main/java/com/plugin/opencamera/OpenCamera.java +30 -0
- package/dist/esm/definitions.d.ts +8 -0
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/web.d.ts +2 -0
- package/dist/esm/web.js +3 -0
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +3 -0
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +3 -0
- package/dist/plugin.js.map +1 -1
- package/package.json +1 -1
package/android/build.gradle
CHANGED
|
@@ -57,6 +57,7 @@ dependencies {
|
|
|
57
57
|
testImplementation "junit:junit:$junitVersion"
|
|
58
58
|
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
59
59
|
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
60
|
+
implementation 'com.google.code.gson:gson:2.8.9' //
|
|
60
61
|
|
|
61
62
|
implementation 'androidx.biometric:biometric:1.1.0'
|
|
62
63
|
}
|
|
@@ -8,6 +8,7 @@ import com.getcapacitor.annotation.CapacitorPlugin;
|
|
|
8
8
|
import com.plugin.bio.Bio;
|
|
9
9
|
import com.plugin.contact.Contact;
|
|
10
10
|
import com.plugin.openbrowser.OpenBrowser;
|
|
11
|
+
import com.plugin.opencamera.OpenCamera;
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
@CapacitorPlugin(name = "Plugin")
|
|
@@ -16,6 +17,7 @@ public class LinkerPlugin extends Plugin{
|
|
|
16
17
|
private Bio bioImplementation = new Bio();
|
|
17
18
|
private Contact contactImplementation = new Contact();
|
|
18
19
|
private OpenBrowser openBrowserImplementation = new OpenBrowser();
|
|
20
|
+
private OpenCamera openCameraImplementation = new OpenCamera();
|
|
19
21
|
|
|
20
22
|
@PluginMethod
|
|
21
23
|
public void echo(PluginCall call) {
|
|
@@ -111,9 +113,18 @@ public class LinkerPlugin extends Plugin{
|
|
|
111
113
|
boolean isExternal = Boolean.TRUE.equals(call.getBoolean("ext"));
|
|
112
114
|
boolean hasClose = Boolean.TRUE.equals(call.getBoolean("isCloseBtn"));
|
|
113
115
|
boolean clear = Boolean.TRUE.equals(call.getBoolean("clear"));
|
|
116
|
+
String token = call.getString("token");
|
|
114
117
|
if(openBrowserImplementation == null) {
|
|
115
118
|
openBrowserImplementation = new OpenBrowser();
|
|
116
119
|
}
|
|
117
|
-
openBrowserImplementation.open(getActivity(), url, isExternal, hasClose, clear);
|
|
120
|
+
openBrowserImplementation.open(getActivity(), url, isExternal, hasClose, clear, token);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@PluginMethod
|
|
124
|
+
public void openCamera(PluginCall call) {
|
|
125
|
+
if(openCameraImplementation == null) {
|
|
126
|
+
openCameraImplementation = new OpenCamera();
|
|
127
|
+
}
|
|
128
|
+
openCameraImplementation.openCamera(getActivity());
|
|
118
129
|
}
|
|
119
130
|
}
|
|
@@ -21,7 +21,7 @@ public class OpenBrowser {
|
|
|
21
21
|
* @param url
|
|
22
22
|
* @param isExternal
|
|
23
23
|
*/
|
|
24
|
-
public void open(AppCompatActivity activity, String url, boolean isExternal, boolean hasClose, boolean clear) {
|
|
24
|
+
public void open(AppCompatActivity activity, String url, boolean isExternal, boolean hasClose, boolean clear, String token) {
|
|
25
25
|
if(activity != null && url != null && !url.isEmpty()) {
|
|
26
26
|
Intent intent;
|
|
27
27
|
if(isExternal) {
|
|
@@ -31,6 +31,7 @@ public class OpenBrowser {
|
|
|
31
31
|
intent.putExtra("url", url);
|
|
32
32
|
intent.putExtra("hasClose", hasClose);
|
|
33
33
|
intent.putExtra("clear", clear);
|
|
34
|
+
intent.putExtra("token", token);
|
|
34
35
|
|
|
35
36
|
}
|
|
36
37
|
activity.startActivity(intent);
|
|
@@ -26,9 +26,10 @@ public class OpenBrowserPlugin extends Plugin {
|
|
|
26
26
|
boolean isExternal = Boolean.TRUE.equals(call.getBoolean("ext"));
|
|
27
27
|
boolean hasClose = Boolean.TRUE.equals(call.getBoolean("isCloseBtn"));
|
|
28
28
|
boolean clear = Boolean.TRUE.equals(call.getBoolean("clear"));
|
|
29
|
+
String token = call.getString("token");
|
|
29
30
|
if(implementation == null) {
|
|
30
31
|
implementation = new OpenBrowser();
|
|
31
32
|
}
|
|
32
|
-
implementation.open(getActivity(), url, isExternal, hasClose, clear);
|
|
33
|
+
implementation.open(getActivity(), url, isExternal, hasClose, clear, token);
|
|
33
34
|
}
|
|
34
35
|
}
|
|
@@ -2,8 +2,11 @@ package com.plugin.openbrowser;
|
|
|
2
2
|
|
|
3
3
|
import android.app.Activity;
|
|
4
4
|
import android.content.Intent;
|
|
5
|
+
import android.content.SharedPreferences;
|
|
5
6
|
import android.net.Uri;
|
|
6
7
|
import android.os.Bundle;
|
|
8
|
+
import android.preference.PreferenceManager;
|
|
9
|
+
import android.util.Log;
|
|
7
10
|
import android.view.View;
|
|
8
11
|
import android.webkit.CookieManager;
|
|
9
12
|
import android.webkit.ValueCallback;
|
|
@@ -19,12 +22,28 @@ import androidx.activity.result.ActivityResultLauncher;
|
|
|
19
22
|
import androidx.activity.result.contract.ActivityResultContracts;
|
|
20
23
|
import androidx.appcompat.app.AppCompatActivity;
|
|
21
24
|
|
|
25
|
+
import com.google.gson.Gson;
|
|
26
|
+
|
|
27
|
+
import org.json.JSONObject;
|
|
28
|
+
|
|
29
|
+
import java.io.OutputStream;
|
|
30
|
+
import java.net.HttpURLConnection;
|
|
31
|
+
import java.net.URI;
|
|
32
|
+
import java.net.URISyntaxException;
|
|
33
|
+
import java.net.URL;
|
|
34
|
+
import java.nio.charset.StandardCharsets;
|
|
35
|
+
import java.util.HashMap;
|
|
36
|
+
import java.util.Map;
|
|
37
|
+
import java.util.Scanner;
|
|
38
|
+
|
|
22
39
|
public class WebViewActivity extends AppCompatActivity {
|
|
23
40
|
|
|
24
41
|
private WebView webView;
|
|
25
42
|
|
|
26
43
|
private ValueCallback mFilePathCallback;;
|
|
27
44
|
|
|
45
|
+
private String token;
|
|
46
|
+
|
|
28
47
|
@Override
|
|
29
48
|
protected void onCreate(Bundle savedInstanceState) {
|
|
30
49
|
super.onCreate(savedInstanceState);
|
|
@@ -34,6 +53,7 @@ public class WebViewActivity extends AppCompatActivity {
|
|
|
34
53
|
String url = getIntent().getStringExtra("url");
|
|
35
54
|
boolean hasClose = getIntent().getBooleanExtra("hasClose", true);
|
|
36
55
|
boolean clear = getIntent().getBooleanExtra("clear", false);
|
|
56
|
+
token = getIntent().getStringExtra("token");
|
|
37
57
|
initLayout(hasClose, clear);
|
|
38
58
|
|
|
39
59
|
openUrl(url);
|
|
@@ -114,11 +134,112 @@ public class WebViewActivity extends AppCompatActivity {
|
|
|
114
134
|
intent.setData(Uri.parse(url));
|
|
115
135
|
startActivity(intent);
|
|
116
136
|
return true;
|
|
137
|
+
} else if(url.startsWith("viewer://")) {
|
|
138
|
+
Map<String, String> param = parseViewerParam(url);
|
|
139
|
+
if(param != null) {
|
|
140
|
+
getViewURL(param, token);
|
|
141
|
+
}
|
|
142
|
+
return true;
|
|
117
143
|
} else {
|
|
118
144
|
return super.shouldOverrideUrlLoading(view, url);
|
|
119
145
|
}
|
|
120
146
|
}
|
|
121
147
|
});
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* OneBill 시스템 파일 뷰어 프로세스
|
|
154
|
+
*
|
|
155
|
+
* @param uriString ex: //viewer://
|
|
156
|
+
* serviceid=onebill&
|
|
157
|
+
* file= https%3A%2F%2Fone-erp.com%3Flang%3Dkor%26manager%3D%EC%86%8C%EB%8B%A4%EB%A7%9B%EC%82%AC%ED%83%95&
|
|
158
|
+
* filetype=uri&
|
|
159
|
+
* extension=pdf
|
|
160
|
+
* @return file 주소
|
|
161
|
+
*/
|
|
162
|
+
private Map<String, String> parseViewerParam(String uriString) {
|
|
163
|
+
try {
|
|
164
|
+
URI uri = new URI(uriString);
|
|
165
|
+
String query = uri.getRawSchemeSpecificPart().split("\\?")[1];
|
|
166
|
+
Map<String, String> params = new HashMap<>();
|
|
167
|
+
Map<String, String> parsedParams = new HashMap<>();
|
|
168
|
+
|
|
169
|
+
String[] pairs = query.split("&");
|
|
170
|
+
for (String pair : pairs) {
|
|
171
|
+
String[] keyValue = pair.split("=");
|
|
172
|
+
if (keyValue.length > 1) {
|
|
173
|
+
String key = keyValue[0];
|
|
174
|
+
String value = java.net.URLDecoder.decode(keyValue[1], "UTF-8");
|
|
175
|
+
params.put(key, value);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
parsedParams.put("serviceId", params.get("serviceid"));
|
|
180
|
+
parsedParams.put("downloadUrl", params.get("file"));
|
|
181
|
+
parsedParams.put("fileExtension", params.get("extension"));
|
|
182
|
+
return parsedParams;
|
|
183
|
+
} catch (URISyntaxException | java.io.UnsupportedEncodingException e) {
|
|
184
|
+
return null;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
private void getViewURL(Map<String, String> params, String token) {
|
|
189
|
+
String urlString = "https://mhanwha.cleverse.kr/mapi/cofile/ext/getViewerURL";
|
|
190
|
+
JSONObject responseJson;
|
|
191
|
+
HttpURLConnection urlConnection = null;
|
|
192
|
+
Gson gson = new Gson();
|
|
193
|
+
|
|
194
|
+
try {
|
|
195
|
+
URL url = new URL(urlString);
|
|
196
|
+
urlConnection = (HttpURLConnection) url.openConnection();
|
|
197
|
+
|
|
198
|
+
// 요청 설정
|
|
199
|
+
urlConnection.setRequestMethod("POST");
|
|
200
|
+
urlConnection.setRequestProperty("Content-Type", "application/json; utf-8");
|
|
201
|
+
urlConnection.setRequestProperty("Accept", "application/json");
|
|
202
|
+
|
|
203
|
+
if (token != null && !token.isEmpty()) {
|
|
204
|
+
urlConnection.setRequestProperty("Authorization", token);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
urlConnection.setDoOutput(true);
|
|
208
|
+
|
|
209
|
+
String jsonInputString = gson.toJson(params);
|
|
210
|
+
try (OutputStream os = urlConnection.getOutputStream()) {
|
|
211
|
+
byte[] input = jsonInputString.getBytes(StandardCharsets.UTF_8);
|
|
212
|
+
os.write(input, 0, input.length);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// 응답 코드 확인
|
|
216
|
+
int code = urlConnection.getResponseCode();
|
|
217
|
+
if (code == HttpURLConnection.HTTP_OK) {
|
|
218
|
+
// 응답 데이터를 JSON 객체로 변환
|
|
219
|
+
try (Scanner scanner = new Scanner(urlConnection.getInputStream())) {
|
|
220
|
+
scanner.useDelimiter("\\A");
|
|
221
|
+
String response = scanner.hasNext() ? scanner.next() : "";
|
|
222
|
+
responseJson = new JSONObject(response); // 응답을 JSON 객체로 변환
|
|
223
|
+
|
|
224
|
+
if(responseJson.has("iframeURL")) {
|
|
225
|
+
String iframeURL = responseJson.getString("iframeURL");
|
|
226
|
+
openUrl(iframeURL);
|
|
227
|
+
} else {
|
|
228
|
+
String errorMessage = responseJson.getString("errorMessage");
|
|
229
|
+
Log.e("OpenBrowser", "getViewerURL Fail: " + errorMessage);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
} else {
|
|
233
|
+
System.out.println("Error: " + code);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
} catch (Exception e) {
|
|
237
|
+
Log.e("OpenBrowser", e.getLocalizedMessage());
|
|
238
|
+
} finally {
|
|
239
|
+
if (urlConnection != null) {
|
|
240
|
+
urlConnection.disconnect();
|
|
241
|
+
}
|
|
242
|
+
}
|
|
122
243
|
}
|
|
123
244
|
|
|
124
245
|
private void openUrl(String url) {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
package com.plugin.opencamera;
|
|
2
|
+
|
|
3
|
+
import android.content.Intent;
|
|
4
|
+
import android.net.Uri;
|
|
5
|
+
import android.provider.MediaStore;
|
|
6
|
+
import android.util.Log;
|
|
7
|
+
|
|
8
|
+
import androidx.appcompat.app.AppCompatActivity;
|
|
9
|
+
|
|
10
|
+
import com.plugin.openbrowser.WebViewActivity;
|
|
11
|
+
|
|
12
|
+
public class OpenCamera {
|
|
13
|
+
|
|
14
|
+
public String echo(String value) {
|
|
15
|
+
Log.i("Echo", value);
|
|
16
|
+
return value;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* 카메라앱 실행
|
|
21
|
+
*
|
|
22
|
+
* @param activity
|
|
23
|
+
*/
|
|
24
|
+
public void openCamera(AppCompatActivity activity) {
|
|
25
|
+
if(activity != null) {
|
|
26
|
+
Intent intent = new Intent(MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA);
|
|
27
|
+
activity.startActivity(intent);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -50,6 +50,7 @@ export interface Plugin {
|
|
|
50
50
|
ext: boolean;
|
|
51
51
|
isCloseBtn?: boolean;
|
|
52
52
|
clear?: boolean;
|
|
53
|
+
token?: string;
|
|
53
54
|
}): Promise<{
|
|
54
55
|
value: string;
|
|
55
56
|
}>;
|
|
@@ -62,4 +63,11 @@ export interface Plugin {
|
|
|
62
63
|
}): Promise<{
|
|
63
64
|
value: string;
|
|
64
65
|
}>;
|
|
66
|
+
/**
|
|
67
|
+
* 카메라앱 열기
|
|
68
|
+
* @see default false
|
|
69
|
+
*/
|
|
70
|
+
openCamera(): Promise<{
|
|
71
|
+
value: string;
|
|
72
|
+
}>;
|
|
65
73
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface Plugin {\n /**\n * 앱 실행\n * @param options package : 패키지명\n */\n executeApp(options: {\n package: string;\n }): Promise<{ value: string }>;\n\n /**\n * 연락처 저장\n * @param options name : 성명\n * @param options phone : 전화번호\n * @param options email : 이메일\n * @param options dept : 소속\n * @param options ext : 내선번호\n */\n addContact(options: {\n name: string;\n phone: string;\n email: string;\n dept: string;\n ext: string;\n }): Promise<{ value: string }>;\n\n /**\n * TouchID, FaceID\n */\n auth(): Promise<{ value: string }>;\n\n /**\n * 시스템에 설정된 지역이 서울인지 확인\n */\n checkSeoulTimeZone(): Promise<{ value: string }>;\n\n timezone(): Promise<{ value: string }>;\n\n /**\n *\n * @param options url : \"웹 페이지 주소\"\n * @param options ext : false(내부 웹뷰), true(외부 브라우저)\n */\n open(options: { url: string; ext: boolean; isCloseBtn?: boolean; clear?: boolean }): Promise<{ value: string }>;\n\n /**\n * EdgeSwipe 허용\n * @see default false\n */\n edgeSwipe(options: {on: boolean}): Promise<{ value: string }>;\n}\n\n"]}
|
|
1
|
+
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface Plugin {\n /**\n * 앱 실행\n * @param options package : 패키지명\n */\n executeApp(options: {\n package: string;\n }): Promise<{ value: string }>;\n\n /**\n * 연락처 저장\n * @param options name : 성명\n * @param options phone : 전화번호\n * @param options email : 이메일\n * @param options dept : 소속\n * @param options ext : 내선번호\n */\n addContact(options: {\n name: string;\n phone: string;\n email: string;\n dept: string;\n ext: string;\n }): Promise<{ value: string }>;\n\n /**\n * TouchID, FaceID\n */\n auth(): Promise<{ value: string }>;\n\n /**\n * 시스템에 설정된 지역이 서울인지 확인\n */\n checkSeoulTimeZone(): Promise<{ value: string }>;\n\n timezone(): Promise<{ value: string }>;\n\n /**\n *\n * @param options url : \"웹 페이지 주소\"\n * @param options ext : false(내부 웹뷰), true(외부 브라우저)\n */\n open(options: { url: string; ext: boolean; isCloseBtn?: boolean; clear?: boolean; token?: string;}): Promise<{ value: string }>;\n\n /**\n * EdgeSwipe 허용\n * @see default false\n */\n edgeSwipe(options: {on: boolean}): Promise<{ value: string }>;\n\n\n /**\n * 카메라앱 열기\n * @see default false\n */\n openCamera(): Promise<{ value: string }>;\n}\n\n"]}
|
package/dist/esm/web.d.ts
CHANGED
|
@@ -11,8 +11,10 @@ export declare class PluginWeb extends WebPlugin implements Plugin {
|
|
|
11
11
|
ext: boolean;
|
|
12
12
|
isCloseBtn?: boolean;
|
|
13
13
|
clear?: boolean;
|
|
14
|
+
token?: string;
|
|
14
15
|
}): Promise<any>;
|
|
15
16
|
edgeSwipe(_options: {
|
|
16
17
|
on: boolean;
|
|
17
18
|
}): Promise<any>;
|
|
19
|
+
openCamera(): Promise<any>;
|
|
18
20
|
}
|
package/dist/esm/web.js
CHANGED
package/dist/esm/web.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,OAAO,EAAC,SAAS,EAAE,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAGrD,MAAM,OAAO,SAAU,SAAQ,SAAS;IAEtC,KAAK,CAAC,UAAU;QACd,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,UAAU;QACd,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,IAAI;QACR,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,kBAAkB;QACtB,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,QAAQ;QACZ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,OAAO,EAAC,SAAS,EAAE,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAGrD,MAAM,OAAO,SAAU,SAAQ,SAAS;IAEtC,KAAK,CAAC,UAAU;QACd,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,UAAU;QACd,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,IAAI;QACR,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,kBAAkB;QACtB,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,QAAQ;QACZ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,QAA6F;QACtG,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,QAAyB;QACvC,IAAI,SAAS,CAAC,WAAW,EAAE,KAAK,KAAK,EAAE;YACrC,OAAO,OAAO,CAAC,MAAM,CAAC,qCAAqC,CAAC,CAAC;SAC9D;QACD,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,UAAU;QACd,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IACzB,CAAC;CACF","sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\nimport {Capacitor, WebPlugin} from '@capacitor/core';\nimport type {Plugin} from './definitions';\n\nexport class PluginWeb extends WebPlugin implements Plugin {\n\n async executeApp(): Promise<any> {\n return { results: {} };\n }\n\n async addContact(): Promise<any> {\n return { results: {} };\n }\n\n async auth(): Promise<any> {\n return { results: {} };\n }\n\n async checkSeoulTimeZone(): Promise<any> {\n return { results: {} };\n }\n\n async timezone(): Promise<any> {\n return { results: {} };\n }\n\n async open(_options: { url: string, ext: boolean, isCloseBtn?: boolean; clear?: boolean; token?: string}): Promise<any> {\n return { results: {} };\n }\n\n async edgeSwipe(_options: { on: boolean }): Promise<any> {\n if (Capacitor.getPlatform() !== 'ios') {\n return Promise.reject('edgeSwipe is only supported on iOS.');\n }\n return { results: {} };\n }\n\n async openCamera(): Promise<any> {\n return { results: {} };\n }\n}\n"]}
|
package/dist/plugin.cjs.js
CHANGED
package/dist/plugin.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst HanwhaPlugin = registerPlugin('Plugin', {\n web: () => import('./web').then(m => new m.PluginWeb()),\n});\nexport * from './definitions';\nexport { HanwhaPlugin };\n//# sourceMappingURL=index.js.map","/* eslint-disable @typescript-eslint/no-unused-vars */\nimport { Capacitor, WebPlugin } from '@capacitor/core';\nexport class PluginWeb extends WebPlugin {\n async executeApp() {\n return { results: {} };\n }\n async addContact() {\n return { results: {} };\n }\n async auth() {\n return { results: {} };\n }\n async checkSeoulTimeZone() {\n return { results: {} };\n }\n async timezone() {\n return { results: {} };\n }\n async open(_options) {\n return { results: {} };\n }\n async edgeSwipe(_options) {\n if (Capacitor.getPlatform() !== 'ios') {\n return Promise.reject('edgeSwipe is only supported on iOS.');\n }\n return { results: {} };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin","Capacitor"],"mappings":";;;;;;AACK,MAAC,YAAY,GAAGA,mBAAc,CAAC,QAAQ,EAAE;AAC9C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,SAAS,EAAE,CAAC;AAC3D,CAAC;;ACHD;AAEO,MAAM,SAAS,SAASC,cAAS,CAAC;AACzC,IAAI,MAAM,UAAU,GAAG;AACvB,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AAC/B,KAAK;AACL,IAAI,MAAM,UAAU,GAAG;AACvB,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AAC/B,KAAK;AACL,IAAI,MAAM,IAAI,GAAG;AACjB,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AAC/B,KAAK;AACL,IAAI,MAAM,kBAAkB,GAAG;AAC/B,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AAC/B,KAAK;AACL,IAAI,MAAM,QAAQ,GAAG;AACrB,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AAC/B,KAAK;AACL,IAAI,MAAM,IAAI,CAAC,QAAQ,EAAE;AACzB,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AAC/B,KAAK;AACL,IAAI,MAAM,SAAS,CAAC,QAAQ,EAAE;AAC9B,QAAQ,IAAIC,cAAS,CAAC,WAAW,EAAE,KAAK,KAAK,EAAE;AAC/C,YAAY,OAAO,OAAO,CAAC,MAAM,CAAC,qCAAqC,CAAC,CAAC;AACzE,SAAS;AACT,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AAC/B,KAAK;AACL;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst HanwhaPlugin = registerPlugin('Plugin', {\n web: () => import('./web').then(m => new m.PluginWeb()),\n});\nexport * from './definitions';\nexport { HanwhaPlugin };\n//# sourceMappingURL=index.js.map","/* eslint-disable @typescript-eslint/no-unused-vars */\nimport { Capacitor, WebPlugin } from '@capacitor/core';\nexport class PluginWeb extends WebPlugin {\n async executeApp() {\n return { results: {} };\n }\n async addContact() {\n return { results: {} };\n }\n async auth() {\n return { results: {} };\n }\n async checkSeoulTimeZone() {\n return { results: {} };\n }\n async timezone() {\n return { results: {} };\n }\n async open(_options) {\n return { results: {} };\n }\n async edgeSwipe(_options) {\n if (Capacitor.getPlatform() !== 'ios') {\n return Promise.reject('edgeSwipe is only supported on iOS.');\n }\n return { results: {} };\n }\n async openCamera() {\n return { results: {} };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin","Capacitor"],"mappings":";;;;;;AACK,MAAC,YAAY,GAAGA,mBAAc,CAAC,QAAQ,EAAE;AAC9C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,SAAS,EAAE,CAAC;AAC3D,CAAC;;ACHD;AAEO,MAAM,SAAS,SAASC,cAAS,CAAC;AACzC,IAAI,MAAM,UAAU,GAAG;AACvB,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AAC/B,KAAK;AACL,IAAI,MAAM,UAAU,GAAG;AACvB,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AAC/B,KAAK;AACL,IAAI,MAAM,IAAI,GAAG;AACjB,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AAC/B,KAAK;AACL,IAAI,MAAM,kBAAkB,GAAG;AAC/B,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AAC/B,KAAK;AACL,IAAI,MAAM,QAAQ,GAAG;AACrB,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AAC/B,KAAK;AACL,IAAI,MAAM,IAAI,CAAC,QAAQ,EAAE;AACzB,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AAC/B,KAAK;AACL,IAAI,MAAM,SAAS,CAAC,QAAQ,EAAE;AAC9B,QAAQ,IAAIC,cAAS,CAAC,WAAW,EAAE,KAAK,KAAK,EAAE;AAC/C,YAAY,OAAO,OAAO,CAAC,MAAM,CAAC,qCAAqC,CAAC,CAAC;AACzE,SAAS;AACT,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AAC/B,KAAK;AACL,IAAI,MAAM,UAAU,GAAG;AACvB,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AAC/B,KAAK;AACL;;;;;;;;;"}
|
package/dist/plugin.js
CHANGED
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst HanwhaPlugin = registerPlugin('Plugin', {\n web: () => import('./web').then(m => new m.PluginWeb()),\n});\nexport * from './definitions';\nexport { HanwhaPlugin };\n//# sourceMappingURL=index.js.map","/* eslint-disable @typescript-eslint/no-unused-vars */\nimport { Capacitor, WebPlugin } from '@capacitor/core';\nexport class PluginWeb extends WebPlugin {\n async executeApp() {\n return { results: {} };\n }\n async addContact() {\n return { results: {} };\n }\n async auth() {\n return { results: {} };\n }\n async checkSeoulTimeZone() {\n return { results: {} };\n }\n async timezone() {\n return { results: {} };\n }\n async open(_options) {\n return { results: {} };\n }\n async edgeSwipe(_options) {\n if (Capacitor.getPlatform() !== 'ios') {\n return Promise.reject('edgeSwipe is only supported on iOS.');\n }\n return { results: {} };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin","Capacitor"],"mappings":";;;AACK,UAAC,YAAY,GAAGA,mBAAc,CAAC,QAAQ,EAAE;IAC9C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,SAAS,EAAE,CAAC;IAC3D,CAAC;;ICHD;IAEO,MAAM,SAAS,SAASC,cAAS,CAAC;IACzC,IAAI,MAAM,UAAU,GAAG;IACvB,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IAC/B,KAAK;IACL,IAAI,MAAM,UAAU,GAAG;IACvB,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IAC/B,KAAK;IACL,IAAI,MAAM,IAAI,GAAG;IACjB,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IAC/B,KAAK;IACL,IAAI,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IAC/B,KAAK;IACL,IAAI,MAAM,QAAQ,GAAG;IACrB,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IAC/B,KAAK;IACL,IAAI,MAAM,IAAI,CAAC,QAAQ,EAAE;IACzB,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IAC/B,KAAK;IACL,IAAI,MAAM,SAAS,CAAC,QAAQ,EAAE;IAC9B,QAAQ,IAAIC,cAAS,CAAC,WAAW,EAAE,KAAK,KAAK,EAAE;IAC/C,YAAY,OAAO,OAAO,CAAC,MAAM,CAAC,qCAAqC,CAAC,CAAC;IACzE,SAAS;IACT,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IAC/B,KAAK;IACL;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst HanwhaPlugin = registerPlugin('Plugin', {\n web: () => import('./web').then(m => new m.PluginWeb()),\n});\nexport * from './definitions';\nexport { HanwhaPlugin };\n//# sourceMappingURL=index.js.map","/* eslint-disable @typescript-eslint/no-unused-vars */\nimport { Capacitor, WebPlugin } from '@capacitor/core';\nexport class PluginWeb extends WebPlugin {\n async executeApp() {\n return { results: {} };\n }\n async addContact() {\n return { results: {} };\n }\n async auth() {\n return { results: {} };\n }\n async checkSeoulTimeZone() {\n return { results: {} };\n }\n async timezone() {\n return { results: {} };\n }\n async open(_options) {\n return { results: {} };\n }\n async edgeSwipe(_options) {\n if (Capacitor.getPlatform() !== 'ios') {\n return Promise.reject('edgeSwipe is only supported on iOS.');\n }\n return { results: {} };\n }\n async openCamera() {\n return { results: {} };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin","Capacitor"],"mappings":";;;AACK,UAAC,YAAY,GAAGA,mBAAc,CAAC,QAAQ,EAAE;IAC9C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,SAAS,EAAE,CAAC;IAC3D,CAAC;;ICHD;IAEO,MAAM,SAAS,SAASC,cAAS,CAAC;IACzC,IAAI,MAAM,UAAU,GAAG;IACvB,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IAC/B,KAAK;IACL,IAAI,MAAM,UAAU,GAAG;IACvB,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IAC/B,KAAK;IACL,IAAI,MAAM,IAAI,GAAG;IACjB,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IAC/B,KAAK;IACL,IAAI,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IAC/B,KAAK;IACL,IAAI,MAAM,QAAQ,GAAG;IACrB,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IAC/B,KAAK;IACL,IAAI,MAAM,IAAI,CAAC,QAAQ,EAAE;IACzB,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IAC/B,KAAK;IACL,IAAI,MAAM,SAAS,CAAC,QAAQ,EAAE;IAC9B,QAAQ,IAAIC,cAAS,CAAC,WAAW,EAAE,KAAK,KAAK,EAAE;IAC/C,YAAY,OAAO,OAAO,CAAC,MAAM,CAAC,qCAAqC,CAAC,CAAC;IACzE,SAAS;IACT,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IAC/B,KAAK;IACL,IAAI,MAAM,UAAU,GAAG;IACvB,QAAQ,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IAC/B,KAAK;IACL;;;;;;;;;;;;;;;;;"}
|