@simplysm/sd-cli 12.16.13 → 12.16.14
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.
|
@@ -18,7 +18,6 @@ export declare class SdCliCapacitor {
|
|
|
18
18
|
private _createCapacitorConfigAsync;
|
|
19
19
|
private _managePlatformsAsync;
|
|
20
20
|
private _managePluginsAsync;
|
|
21
|
-
private _isCapacitorPlugin;
|
|
22
21
|
private _setupAndroidSignAsync;
|
|
23
22
|
private _setupIconAndSplashScreenAsync;
|
|
24
23
|
private _createCenteredImageAsync;
|
|
@@ -74,11 +74,11 @@ export class SdCliCapacitor {
|
|
|
74
74
|
dependencies: {
|
|
75
75
|
"@capacitor/core": "^7.0.0",
|
|
76
76
|
"@capacitor/app": "^7.0.0",
|
|
77
|
+
...this._platforms.toObject((item) => `@capacitor/${item}`, () => "^7.0.0"),
|
|
77
78
|
},
|
|
78
79
|
devDependencies: {
|
|
79
80
|
"@capacitor/cli": "^7.0.0",
|
|
80
81
|
"@capacitor/assets": "^3.0.0",
|
|
81
|
-
...this._platforms.toObject((item) => `@capacitor/${item}`, () => "^7.0.0"),
|
|
82
82
|
},
|
|
83
83
|
};
|
|
84
84
|
await FsUtils.writeJsonAsync(path.resolve(capacitorPath, "package.json"), pkgJson, {
|
|
@@ -153,18 +153,24 @@ export class SdCliCapacitor {
|
|
|
153
153
|
const usePlugins = Object.keys(this._opt.config.plugins ?? {});
|
|
154
154
|
const currentDeps = pkgJson.dependencies ?? {};
|
|
155
155
|
let changed = false;
|
|
156
|
+
const prevPlugins = Object.keys(currentDeps).filter(item => ![
|
|
157
|
+
"@capacitor/core",
|
|
158
|
+
"@capacitor/android",
|
|
159
|
+
"@capacitor/ios",
|
|
160
|
+
"@capacitor/app",
|
|
161
|
+
].includes(item));
|
|
156
162
|
// 사용하지 않는 플러그인 제거
|
|
157
|
-
for (const
|
|
158
|
-
if (
|
|
159
|
-
delete currentDeps[
|
|
163
|
+
for (const prevPlugin of prevPlugins) {
|
|
164
|
+
if (!usePlugins.includes(prevPlugin)) {
|
|
165
|
+
delete currentDeps[prevPlugin];
|
|
160
166
|
changed = true;
|
|
161
|
-
SdCliCapacitor._logger.debug(`플러그인 제거: ${
|
|
167
|
+
SdCliCapacitor._logger.debug(`플러그인 제거: ${prevPlugin}`);
|
|
162
168
|
}
|
|
163
169
|
}
|
|
164
170
|
// 새 플러그인 추가
|
|
165
171
|
for (const plugin of usePlugins) {
|
|
166
172
|
if (!(plugin in currentDeps)) {
|
|
167
|
-
const version = mainDeps[plugin] ?? "
|
|
173
|
+
const version = mainDeps[plugin] ?? "*";
|
|
168
174
|
currentDeps[plugin] = version;
|
|
169
175
|
changed = true;
|
|
170
176
|
SdCliCapacitor._logger.debug(`플러그인 추가: ${plugin}@${version}`);
|
|
@@ -180,18 +186,6 @@ export class SdCliCapacitor {
|
|
|
180
186
|
// 변경 없으면 아무것도 안 함 → 오프라인 OK
|
|
181
187
|
return false;
|
|
182
188
|
}
|
|
183
|
-
_isCapacitorPlugin(dep) {
|
|
184
|
-
// 기본 패키지 제외
|
|
185
|
-
const corePackages = [
|
|
186
|
-
"@capacitor/core",
|
|
187
|
-
"@capacitor/android",
|
|
188
|
-
"@capacitor/ios",
|
|
189
|
-
"@capacitor/app",
|
|
190
|
-
];
|
|
191
|
-
if (corePackages.includes(dep))
|
|
192
|
-
return false;
|
|
193
|
-
return dep.startsWith("@capacitor/") || dep.includes("capacitor-plugin");
|
|
194
|
-
}
|
|
195
189
|
// 5. 안드로이드 서명 설정
|
|
196
190
|
async _setupAndroidSignAsync(capacitorPath) {
|
|
197
191
|
const keystorePath = path.resolve(capacitorPath, this._KEYSTORE_FILE_NAME);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simplysm/sd-cli",
|
|
3
|
-
"version": "12.16.
|
|
3
|
+
"version": "12.16.14",
|
|
4
4
|
"description": "심플리즘 패키지 - CLI",
|
|
5
5
|
"author": "김석래",
|
|
6
6
|
"repository": {
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"@angular/compiler-cli": "^20.3.15",
|
|
18
18
|
"@anthropic-ai/sdk": "^0.71.2",
|
|
19
19
|
"@electron/rebuild": "^4.0.2",
|
|
20
|
-
"@simplysm/sd-core-common": "12.16.
|
|
21
|
-
"@simplysm/sd-core-node": "12.16.
|
|
22
|
-
"@simplysm/sd-service-server": "12.16.
|
|
23
|
-
"@simplysm/sd-storage": "12.16.
|
|
20
|
+
"@simplysm/sd-core-common": "12.16.14",
|
|
21
|
+
"@simplysm/sd-core-node": "12.16.14",
|
|
22
|
+
"@simplysm/sd-service-server": "12.16.14",
|
|
23
|
+
"@simplysm/sd-storage": "12.16.14",
|
|
24
24
|
"browserslist": "^4.28.1",
|
|
25
25
|
"cordova": "^13.0.0",
|
|
26
26
|
"electron": "^33.4.11",
|
|
@@ -102,15 +102,15 @@ export class SdCliCapacitor {
|
|
|
102
102
|
dependencies: {
|
|
103
103
|
"@capacitor/core": "^7.0.0",
|
|
104
104
|
"@capacitor/app": "^7.0.0",
|
|
105
|
-
},
|
|
106
|
-
devDependencies: {
|
|
107
|
-
"@capacitor/cli": "^7.0.0",
|
|
108
|
-
"@capacitor/assets": "^3.0.0",
|
|
109
105
|
...this._platforms.toObject(
|
|
110
106
|
(item) => `@capacitor/${item}`,
|
|
111
107
|
() => "^7.0.0",
|
|
112
108
|
),
|
|
113
109
|
},
|
|
110
|
+
devDependencies: {
|
|
111
|
+
"@capacitor/cli": "^7.0.0",
|
|
112
|
+
"@capacitor/assets": "^3.0.0",
|
|
113
|
+
},
|
|
114
114
|
};
|
|
115
115
|
await FsUtils.writeJsonAsync(path.resolve(capacitorPath, "package.json"), pkgJson, {
|
|
116
116
|
space: 2,
|
|
@@ -216,19 +216,26 @@ export class SdCliCapacitor {
|
|
|
216
216
|
|
|
217
217
|
let changed = false;
|
|
218
218
|
|
|
219
|
+
const prevPlugins = Object.keys(currentDeps).filter(item => ![
|
|
220
|
+
"@capacitor/core",
|
|
221
|
+
"@capacitor/android",
|
|
222
|
+
"@capacitor/ios",
|
|
223
|
+
"@capacitor/app",
|
|
224
|
+
].includes(item));
|
|
225
|
+
|
|
219
226
|
// 사용하지 않는 플러그인 제거
|
|
220
|
-
for (const
|
|
221
|
-
if (
|
|
222
|
-
delete currentDeps[
|
|
227
|
+
for (const prevPlugin of prevPlugins) {
|
|
228
|
+
if (!usePlugins.includes(prevPlugin)) {
|
|
229
|
+
delete currentDeps[prevPlugin];
|
|
223
230
|
changed = true;
|
|
224
|
-
SdCliCapacitor._logger.debug(`플러그인 제거: ${
|
|
231
|
+
SdCliCapacitor._logger.debug(`플러그인 제거: ${prevPlugin}`);
|
|
225
232
|
}
|
|
226
233
|
}
|
|
227
234
|
|
|
228
235
|
// 새 플러그인 추가
|
|
229
236
|
for (const plugin of usePlugins) {
|
|
230
237
|
if (!(plugin in currentDeps)) {
|
|
231
|
-
const version = mainDeps[plugin] ?? "
|
|
238
|
+
const version = mainDeps[plugin] ?? "*";
|
|
232
239
|
currentDeps[plugin] = version;
|
|
233
240
|
changed = true;
|
|
234
241
|
SdCliCapacitor._logger.debug(`플러그인 추가: ${plugin}@${version}`);
|
|
@@ -246,19 +253,6 @@ export class SdCliCapacitor {
|
|
|
246
253
|
return false;
|
|
247
254
|
}
|
|
248
255
|
|
|
249
|
-
private _isCapacitorPlugin(dep: string): boolean {
|
|
250
|
-
// 기본 패키지 제외
|
|
251
|
-
const corePackages = [
|
|
252
|
-
"@capacitor/core",
|
|
253
|
-
"@capacitor/android",
|
|
254
|
-
"@capacitor/ios",
|
|
255
|
-
"@capacitor/app",
|
|
256
|
-
];
|
|
257
|
-
if (corePackages.includes(dep)) return false;
|
|
258
|
-
|
|
259
|
-
return dep.startsWith("@capacitor/") || dep.includes("capacitor-plugin");
|
|
260
|
-
}
|
|
261
|
-
|
|
262
256
|
// 5. 안드로이드 서명 설정
|
|
263
257
|
private async _setupAndroidSignAsync(capacitorPath: string) {
|
|
264
258
|
const keystorePath = path.resolve(capacitorPath, this._KEYSTORE_FILE_NAME);
|