@akanjs/cli 2.4.0-rc.6 → 2.4.0-rc.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.
- package/incrementalBuilder.proc.js +22 -3
- package/index.js +22 -3
- package/package.json +2 -2
|
@@ -722,7 +722,6 @@ var SSR_RUNTIME_PACKAGES = ["react", "react-dom", "react-server-dom-webpack"];
|
|
|
722
722
|
var NATIVE_RUNTIME_PACKAGES = ["sharp"];
|
|
723
723
|
var DEFAULT_BACKEND_RUNTIME_PACKAGES = ["croner"];
|
|
724
724
|
var MOBILE_RUNTIME_PACKAGES = [
|
|
725
|
-
"firebase",
|
|
726
725
|
"@capacitor/cli",
|
|
727
726
|
"@capacitor/core",
|
|
728
727
|
"@capacitor/ios",
|
|
@@ -730,7 +729,6 @@ var MOBILE_RUNTIME_PACKAGES = [
|
|
|
730
729
|
"@capacitor/assets"
|
|
731
730
|
];
|
|
732
731
|
var MOBILE_APP_CAPACITOR_PLUGINS = [
|
|
733
|
-
"@capacitor-community/fcm",
|
|
734
732
|
"@capacitor/app",
|
|
735
733
|
"@capacitor/browser",
|
|
736
734
|
"@capacitor/camera",
|
|
@@ -14198,7 +14196,7 @@ function parseSimctlDevices(output) {
|
|
|
14198
14196
|
try {
|
|
14199
14197
|
const json = JSON.parse(output);
|
|
14200
14198
|
const devices = json.devices ?? {};
|
|
14201
|
-
return Object.values(devices).
|
|
14199
|
+
return Object.values(devices).flat().filter(isRecord2).flatMap((device) => {
|
|
14202
14200
|
const id = firstString(device.udid, device.UDID, device.identifier);
|
|
14203
14201
|
const name = firstString(device.name, device.displayName);
|
|
14204
14202
|
const isAvailable = device.isAvailable !== false && device.availabilityError === undefined;
|
|
@@ -14376,6 +14374,16 @@ function getAdbDeviceStateIssues(output) {
|
|
|
14376
14374
|
return [];
|
|
14377
14375
|
});
|
|
14378
14376
|
}
|
|
14377
|
+
var ANDROID_MIN_SDK_VERSION = 26;
|
|
14378
|
+
function raiseGradleMinSdkVersion(content, floor = ANDROID_MIN_SDK_VERSION) {
|
|
14379
|
+
const match = content.match(/minSdkVersion\s*=\s*(\d+)/);
|
|
14380
|
+
if (!match?.[1])
|
|
14381
|
+
return null;
|
|
14382
|
+
const current = Number.parseInt(match[1], 10);
|
|
14383
|
+
if (Number.isNaN(current) || current >= floor)
|
|
14384
|
+
return null;
|
|
14385
|
+
return content.replace(/(minSdkVersion\s*=\s*)\d+/, `$1${floor}`);
|
|
14386
|
+
}
|
|
14379
14387
|
var mergeAllowNavigation = (configured, localIp) => {
|
|
14380
14388
|
const values = Array.isArray(configured) ? configured.filter((value) => typeof value === "string") : [];
|
|
14381
14389
|
if (localIp)
|
|
@@ -14692,6 +14700,7 @@ ${error.message}`;
|
|
|
14692
14700
|
await this.#prepareTargetAssets();
|
|
14693
14701
|
await this.#prepareExternalFiles("android");
|
|
14694
14702
|
await this.#applyAndroidMetadata();
|
|
14703
|
+
await this.#applyAndroidMinSdkVersion();
|
|
14695
14704
|
await this.#applyPermissions({ operation, env });
|
|
14696
14705
|
await this.#applyDeepLinks("android", { operation, env });
|
|
14697
14706
|
await this.project.commit();
|
|
@@ -14907,6 +14916,16 @@ ${error.message}`;
|
|
|
14907
14916
|
await this.project.android.setVersionCode(this.target.buildNum);
|
|
14908
14917
|
await this.project.android.setAppName(this.target.appName);
|
|
14909
14918
|
}
|
|
14919
|
+
async#applyAndroidMinSdkVersion() {
|
|
14920
|
+
const variablesGradlePath = path42.join(this.app.cwdPath, this.androidRootPath, "variables.gradle");
|
|
14921
|
+
if (!await Bun.file(variablesGradlePath).exists())
|
|
14922
|
+
return;
|
|
14923
|
+
const updated = raiseGradleMinSdkVersion(await Bun.file(variablesGradlePath).text());
|
|
14924
|
+
if (!updated)
|
|
14925
|
+
return;
|
|
14926
|
+
await writeFile3(variablesGradlePath, updated);
|
|
14927
|
+
this.app.verbose(`Raised Android minSdkVersion to ${ANDROID_MIN_SDK_VERSION} in variables.gradle`);
|
|
14928
|
+
}
|
|
14910
14929
|
async#applyPermissions({ operation, env }) {
|
|
14911
14930
|
const plugins = await this.app.collectPlugins();
|
|
14912
14931
|
const nativePlugins = new Map;
|
package/index.js
CHANGED
|
@@ -720,7 +720,6 @@ var SSR_RUNTIME_PACKAGES = ["react", "react-dom", "react-server-dom-webpack"];
|
|
|
720
720
|
var NATIVE_RUNTIME_PACKAGES = ["sharp"];
|
|
721
721
|
var DEFAULT_BACKEND_RUNTIME_PACKAGES = ["croner"];
|
|
722
722
|
var MOBILE_RUNTIME_PACKAGES = [
|
|
723
|
-
"firebase",
|
|
724
723
|
"@capacitor/cli",
|
|
725
724
|
"@capacitor/core",
|
|
726
725
|
"@capacitor/ios",
|
|
@@ -728,7 +727,6 @@ var MOBILE_RUNTIME_PACKAGES = [
|
|
|
728
727
|
"@capacitor/assets"
|
|
729
728
|
];
|
|
730
729
|
var MOBILE_APP_CAPACITOR_PLUGINS = [
|
|
731
|
-
"@capacitor-community/fcm",
|
|
732
730
|
"@capacitor/app",
|
|
733
731
|
"@capacitor/browser",
|
|
734
732
|
"@capacitor/camera",
|
|
@@ -14196,7 +14194,7 @@ function parseSimctlDevices(output) {
|
|
|
14196
14194
|
try {
|
|
14197
14195
|
const json = JSON.parse(output);
|
|
14198
14196
|
const devices = json.devices ?? {};
|
|
14199
|
-
return Object.values(devices).
|
|
14197
|
+
return Object.values(devices).flat().filter(isRecord2).flatMap((device) => {
|
|
14200
14198
|
const id = firstString(device.udid, device.UDID, device.identifier);
|
|
14201
14199
|
const name = firstString(device.name, device.displayName);
|
|
14202
14200
|
const isAvailable = device.isAvailable !== false && device.availabilityError === undefined;
|
|
@@ -14374,6 +14372,16 @@ function getAdbDeviceStateIssues(output) {
|
|
|
14374
14372
|
return [];
|
|
14375
14373
|
});
|
|
14376
14374
|
}
|
|
14375
|
+
var ANDROID_MIN_SDK_VERSION = 26;
|
|
14376
|
+
function raiseGradleMinSdkVersion(content, floor = ANDROID_MIN_SDK_VERSION) {
|
|
14377
|
+
const match = content.match(/minSdkVersion\s*=\s*(\d+)/);
|
|
14378
|
+
if (!match?.[1])
|
|
14379
|
+
return null;
|
|
14380
|
+
const current = Number.parseInt(match[1], 10);
|
|
14381
|
+
if (Number.isNaN(current) || current >= floor)
|
|
14382
|
+
return null;
|
|
14383
|
+
return content.replace(/(minSdkVersion\s*=\s*)\d+/, `$1${floor}`);
|
|
14384
|
+
}
|
|
14377
14385
|
var mergeAllowNavigation = (configured, localIp) => {
|
|
14378
14386
|
const values = Array.isArray(configured) ? configured.filter((value) => typeof value === "string") : [];
|
|
14379
14387
|
if (localIp)
|
|
@@ -14690,6 +14698,7 @@ ${error.message}`;
|
|
|
14690
14698
|
await this.#prepareTargetAssets();
|
|
14691
14699
|
await this.#prepareExternalFiles("android");
|
|
14692
14700
|
await this.#applyAndroidMetadata();
|
|
14701
|
+
await this.#applyAndroidMinSdkVersion();
|
|
14693
14702
|
await this.#applyPermissions({ operation, env });
|
|
14694
14703
|
await this.#applyDeepLinks("android", { operation, env });
|
|
14695
14704
|
await this.project.commit();
|
|
@@ -14905,6 +14914,16 @@ ${error.message}`;
|
|
|
14905
14914
|
await this.project.android.setVersionCode(this.target.buildNum);
|
|
14906
14915
|
await this.project.android.setAppName(this.target.appName);
|
|
14907
14916
|
}
|
|
14917
|
+
async#applyAndroidMinSdkVersion() {
|
|
14918
|
+
const variablesGradlePath = path42.join(this.app.cwdPath, this.androidRootPath, "variables.gradle");
|
|
14919
|
+
if (!await Bun.file(variablesGradlePath).exists())
|
|
14920
|
+
return;
|
|
14921
|
+
const updated = raiseGradleMinSdkVersion(await Bun.file(variablesGradlePath).text());
|
|
14922
|
+
if (!updated)
|
|
14923
|
+
return;
|
|
14924
|
+
await writeFile3(variablesGradlePath, updated);
|
|
14925
|
+
this.app.verbose(`Raised Android minSdkVersion to ${ANDROID_MIN_SDK_VERSION} in variables.gradle`);
|
|
14926
|
+
}
|
|
14908
14927
|
async#applyPermissions({ operation, env }) {
|
|
14909
14928
|
const plugins = await this.app.collectPlugins();
|
|
14910
14929
|
const nativePlugins = new Map;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/cli",
|
|
3
|
-
"version": "2.4.0-rc.
|
|
3
|
+
"version": "2.4.0-rc.8",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@langchain/openai": "^1.4.6",
|
|
35
35
|
"@tailwindcss/node": "^4.3.0",
|
|
36
36
|
"@trapezedev/project": "^7.1.4",
|
|
37
|
-
"akanjs": "2.4.0-rc.
|
|
37
|
+
"akanjs": "2.4.0-rc.8",
|
|
38
38
|
"chalk": "^5.6.2",
|
|
39
39
|
"commander": "^14.0.3",
|
|
40
40
|
"daisyui": "5.5.23",
|