catylst 1.0.12 → 1.0.13

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/postinstall.js +18 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catylst",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Generate customized Kotlin Multiplatform projects with an interactive wizard",
5
5
  "keywords": [
6
6
  "kotlin",
package/postinstall.js CHANGED
@@ -124,7 +124,23 @@ function checkJava() {
124
124
  print(green(` ✓ Java ${major}`));
125
125
  }
126
126
 
127
- // ── 2. Clone / update template ───────────────────────────────────────────────
127
+ // ── 2. Check Android SDK ─────────────────────────────────────────────────────
128
+
129
+ function checkAndroidSdk() {
130
+ const androidHome =
131
+ process.env.ANDROID_HOME ||
132
+ process.env.ANDROID_SDK_ROOT ||
133
+ path.join(os.homedir(), "Library", "Android", "sdk");
134
+
135
+ if (fs.existsSync(androidHome)) {
136
+ print(green(` ✓ Android SDK`));
137
+ } else {
138
+ print(yellow(" ⚠ Android SDK not found. Set ANDROID_HOME or add sdk.dir to local.properties."));
139
+ print(dim(" Download Android Studio: https://developer.android.com/studio"));
140
+ }
141
+ }
142
+
143
+ // ── 3. Clone / update template ───────────────────────────────────────────────
128
144
 
129
145
  function setupTemplate() {
130
146
  fs.mkdirSync(CATYLST_DIR, { recursive: true });
@@ -260,6 +276,7 @@ function downloadJar() {
260
276
 
261
277
  (async () => {
262
278
  checkJava();
279
+ checkAndroidSdk();
263
280
  setupTemplate();
264
281
  await downloadJar();
265
282