@simplysm/capacitor-plugin-auto-update 12.16.9 → 12.16.11

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.
@@ -39,7 +39,7 @@ export class AutoUpdate {
39
39
  }
40
40
  static async _checkPermissionAsync(log, targetHref) {
41
41
  if (!navigator.userAgent.toLowerCase().includes("android")) {
42
- throw new Error(`안드로이드만 지원합니다.`);
42
+ throw new Error("안드로이드만 지원합니다.");
43
43
  }
44
44
  try {
45
45
  if (!(await ApkInstaller.hasPermissionManifest())) {
@@ -123,7 +123,9 @@ export class AutoUpdate {
123
123
  const autoUpdateServiceClient = opt.serviceClient.getService("SdAutoUpdateService");
124
124
  const serverVersionInfo = await autoUpdateServiceClient.getLastVersion("android");
125
125
  if (!serverVersionInfo) {
126
- throw new Error("서버에서 최신버전 정보를 가져오지 못했습니다.");
126
+ // throw new Error("서버에서 최신버전 정보를 가져오지 못했습니다.");
127
+ console.log("서버에서 최신버전 정보를 가져오지 못했습니다.");
128
+ return;
127
129
  }
128
130
  opt.log(`권한 확인 중...`);
129
131
  await this._checkPermissionAsync(opt.log, opt.serviceClient.hostUrl + serverVersionInfo.downloadPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simplysm/capacitor-plugin-auto-update",
3
- "version": "12.16.9",
3
+ "version": "12.16.11",
4
4
  "description": "심플리즘 패키지 - Capacitor Plugin Auto Update",
5
5
  "author": "김석래",
6
6
  "repository": {
@@ -19,10 +19,10 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@capacitor/core": "^7.4.4",
22
- "@simplysm/capacitor-plugin-file-system": "12.16.9",
23
- "@simplysm/sd-core-common": "12.16.9",
24
- "@simplysm/sd-service-client": "12.16.9",
25
- "@simplysm/sd-service-common": "12.16.9",
22
+ "@simplysm/capacitor-plugin-file-system": "12.16.11",
23
+ "@simplysm/sd-core-common": "12.16.11",
24
+ "@simplysm/sd-service-client": "12.16.11",
25
+ "@simplysm/sd-service-common": "12.16.11",
26
26
  "semver": "^7.7.3"
27
27
  },
28
28
  "devDependencies": {
package/src/AutoUpdate.ts CHANGED
@@ -48,7 +48,7 @@ export abstract class AutoUpdate {
48
48
  targetHref?: string,
49
49
  ) {
50
50
  if (!navigator.userAgent.toLowerCase().includes("android")) {
51
- throw new Error(`안드로이드만 지원합니다.`);
51
+ throw new Error("안드로이드만 지원합니다.");
52
52
  }
53
53
 
54
54
  try {
@@ -143,7 +143,9 @@ export abstract class AutoUpdate {
143
143
 
144
144
  const serverVersionInfo = await autoUpdateServiceClient.getLastVersion("android");
145
145
  if (!serverVersionInfo) {
146
- throw new Error("서버에서 최신버전 정보를 가져오지 못했습니다.");
146
+ // throw new Error("서버에서 최신버전 정보를 가져오지 못했습니다.");
147
+ console.log("서버에서 최신버전 정보를 가져오지 못했습니다.");
148
+ return;
147
149
  }
148
150
 
149
151
  opt.log(`권한 확인 중...`);