@rock-js/plugin-brownfield-ios 0.12.5 → 0.12.7
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/dist/src/lib/pluginBrownfieldIos.d.ts +1 -1
- package/dist/src/lib/pluginBrownfieldIos.d.ts.map +1 -1
- package/dist/src/lib/pluginBrownfieldIos.js +13 -21
- package/dist/src/lib/pluginBrownfieldIos.js.map +1 -1
- package/package.json +4 -4
- package/src/lib/pluginBrownfieldIos.ts +14 -29
- package/template/package.json +1 -1
|
@@ -5,7 +5,7 @@ export declare const packageIosAction: (args: BuildFlags, { projectRoot, reactNa
|
|
|
5
5
|
projectRoot: string;
|
|
6
6
|
reactNativePath: string;
|
|
7
7
|
reactNativeVersion: string;
|
|
8
|
-
usePrebuiltRNCore:
|
|
8
|
+
usePrebuiltRNCore: boolean | undefined;
|
|
9
9
|
skipCache?: boolean;
|
|
10
10
|
packageDir?: string;
|
|
11
11
|
}, pluginConfig?: IOSProjectConfig) => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pluginBrownfieldIos.d.ts","sourceRoot":"","sources":["../../../src/lib/pluginBrownfieldIos.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAEL,KAAK,UAAU,EAMhB,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"pluginBrownfieldIos.d.ts","sourceRoot":"","sources":["../../../src/lib/pluginBrownfieldIos.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAEL,KAAK,UAAU,EAMhB,MAAM,iCAAiC,CAAC;AAMzC,eAAO,MAAM,gBAAgB,GAC3B,MAAM,UAAU,EAChB,iGAOG;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iBAAiB,EAAE,OAAO,GAAG,SAAS,CAAC;IACvC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,EACD,eAAe,gBAAgB,kBAwFhC,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC7B,eAAe,gBAAgB,MAC/B,KAAK,SAAS,KAAG,YAsBjB,CAAC;AAEJ,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
2
|
import { buildApp, genericDestinations, getBuildOptions, getBuildPaths, getValidProjectConfig, mergeFrameworks, } from '@rock-js/platform-apple-helpers';
|
|
3
|
-
import { colorLink, intro, logger, outro, relativeToCwd
|
|
3
|
+
import { colorLink, intro, logger, outro, relativeToCwd } from '@rock-js/tools';
|
|
4
4
|
import { copyHermesXcframework } from './copyHermesXcframework.js';
|
|
5
5
|
const buildOptions = getBuildOptions({ platformName: 'ios' });
|
|
6
6
|
export const packageIosAction = async (args, { projectRoot, reactNativePath, reactNativeVersion, usePrebuiltRNCore, skipCache, packageDir, }, pluginConfig) => {
|
|
@@ -13,26 +13,18 @@ export const packageIosAction = async (args, { projectRoot, reactNativePath, rea
|
|
|
13
13
|
];
|
|
14
14
|
const buildFolder = args.buildFolder ?? getBuildPaths('ios').derivedDataDir;
|
|
15
15
|
const configuration = args.configuration ?? 'Debug';
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
});
|
|
29
|
-
logger.log(`Build available at: ${colorLink(relativeToCwd(appPath))}`);
|
|
30
|
-
scheme = buildAppResult.scheme;
|
|
31
|
-
}
|
|
32
|
-
catch (error) {
|
|
33
|
-
const message = `Failed to create ${args.archive ? 'archive' : 'build'}`;
|
|
34
|
-
throw new RockError(message, { cause: error });
|
|
35
|
-
}
|
|
16
|
+
const { appPath, scheme } = await buildApp({
|
|
17
|
+
projectRoot,
|
|
18
|
+
projectConfig: iosConfig,
|
|
19
|
+
platformName: 'ios',
|
|
20
|
+
args: { ...args, destination, buildFolder },
|
|
21
|
+
reactNativePath,
|
|
22
|
+
brownfield: true,
|
|
23
|
+
usePrebuiltRNCore,
|
|
24
|
+
pluginConfig,
|
|
25
|
+
skipCache,
|
|
26
|
+
});
|
|
27
|
+
logger.log(`Build available at: ${colorLink(relativeToCwd(appPath))}`);
|
|
36
28
|
// 2) Merge the .framework outputs of the framework target
|
|
37
29
|
const productsPath = path.join(buildFolder, 'Build', 'Products');
|
|
38
30
|
const frameworkTargetOutputDir = packageDir ?? getBuildPaths('ios').packageDir;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pluginBrownfieldIos.js","sourceRoot":"","sources":["../../../src/lib/pluginBrownfieldIos.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAG7B,OAAO,EACL,QAAQ,EAER,mBAAmB,EACnB,eAAe,EACf,aAAa,EACb,qBAAqB,EACrB,eAAe,GAChB,MAAM,iCAAiC,CAAC;AACzC,OAAO,
|
|
1
|
+
{"version":3,"file":"pluginBrownfieldIos.js","sourceRoot":"","sources":["../../../src/lib/pluginBrownfieldIos.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAG7B,OAAO,EACL,QAAQ,EAER,mBAAmB,EACnB,eAAe,EACf,aAAa,EACb,qBAAqB,EACrB,eAAe,GAChB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa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B,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,kDAAkD;QAC/D,MAAM,EAAE,KAAK,EAAE,IAAgB,EAAE,EAAE,CACjC,gBAAgB,CACd,IAAI,EACJ;YACE,WAAW,EAAE,GAAG,CAAC,cAAc,EAAE;YACjC,eAAe,EAAE,GAAG,CAAC,kBAAkB,EAAE;YACzC,kBAAkB,EAAE,GAAG,CAAC,qBAAqB,EAAE;YAC/C,iBAAiB,EAAE,GAAG,CAAC,oBAAoB,EAAE;SAC9C,EACD,YAAY,CACb;QACH,OAAO,EAAE,YAAY;KACtB,CAAC,CAAC;IAEH,OAAO;QACL,IAAI,EAAE,uBAAuB;QAC7B,WAAW,EAAE,iCAAiC;KAC/C,CAAC;AACJ,CAAC,CAAC;AAEJ,eAAe,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rock-js/plugin-brownfield-ios",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.7",
|
|
4
4
|
"description": "Plugin for integrating Rock projects with existing iOS apps",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/src/index.d.ts",
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@react-native-community/cli-config-apple": "^20.0.0",
|
|
24
24
|
"@react-native-community/cli-types": "^20.0.0",
|
|
25
|
-
"@rock-js/tools": "^0.12.
|
|
26
|
-
"@rock-js/platform-apple-helpers": "^0.12.
|
|
25
|
+
"@rock-js/tools": "^0.12.7",
|
|
26
|
+
"@rock-js/platform-apple-helpers": "^0.12.7",
|
|
27
27
|
"tslib": "^2.3.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@rock-js/config": "^0.12.
|
|
30
|
+
"@rock-js/config": "^0.12.7"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
@@ -10,14 +10,7 @@ import {
|
|
|
10
10
|
getValidProjectConfig,
|
|
11
11
|
mergeFrameworks,
|
|
12
12
|
} from '@rock-js/platform-apple-helpers';
|
|
13
|
-
import {
|
|
14
|
-
colorLink,
|
|
15
|
-
intro,
|
|
16
|
-
logger,
|
|
17
|
-
outro,
|
|
18
|
-
relativeToCwd,
|
|
19
|
-
RockError,
|
|
20
|
-
} from '@rock-js/tools';
|
|
13
|
+
import { colorLink, intro, logger, outro, relativeToCwd } from '@rock-js/tools';
|
|
21
14
|
import { copyHermesXcframework } from './copyHermesXcframework.js';
|
|
22
15
|
|
|
23
16
|
const buildOptions = getBuildOptions({ platformName: 'ios' });
|
|
@@ -35,7 +28,7 @@ export const packageIosAction = async (
|
|
|
35
28
|
projectRoot: string;
|
|
36
29
|
reactNativePath: string;
|
|
37
30
|
reactNativeVersion: string;
|
|
38
|
-
usePrebuiltRNCore:
|
|
31
|
+
usePrebuiltRNCore: boolean | undefined;
|
|
39
32
|
skipCache?: boolean;
|
|
40
33
|
packageDir?: string;
|
|
41
34
|
},
|
|
@@ -52,27 +45,19 @@ export const packageIosAction = async (
|
|
|
52
45
|
|
|
53
46
|
const buildFolder = args.buildFolder ?? getBuildPaths('ios').derivedDataDir;
|
|
54
47
|
const configuration = args.configuration ?? 'Debug';
|
|
55
|
-
let scheme;
|
|
56
|
-
|
|
57
|
-
try {
|
|
58
|
-
const { appPath, ...buildAppResult } = await buildApp({
|
|
59
|
-
projectRoot,
|
|
60
|
-
projectConfig: iosConfig,
|
|
61
|
-
platformName: 'ios',
|
|
62
|
-
args: { ...args, destination, buildFolder },
|
|
63
|
-
reactNativePath,
|
|
64
|
-
brownfield: true,
|
|
65
|
-
usePrebuiltRNCore,
|
|
66
|
-
pluginConfig,
|
|
67
|
-
skipCache,
|
|
68
|
-
});
|
|
69
|
-
logger.log(`Build available at: ${colorLink(relativeToCwd(appPath))}`);
|
|
70
48
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
49
|
+
const { appPath, scheme } = await buildApp({
|
|
50
|
+
projectRoot,
|
|
51
|
+
projectConfig: iosConfig,
|
|
52
|
+
platformName: 'ios',
|
|
53
|
+
args: { ...args, destination, buildFolder },
|
|
54
|
+
reactNativePath,
|
|
55
|
+
brownfield: true,
|
|
56
|
+
usePrebuiltRNCore,
|
|
57
|
+
pluginConfig,
|
|
58
|
+
skipCache,
|
|
59
|
+
});
|
|
60
|
+
logger.log(`Build available at: ${colorLink(relativeToCwd(appPath))}`);
|
|
76
61
|
|
|
77
62
|
// 2) Merge the .framework outputs of the framework target
|
|
78
63
|
const productsPath = path.join(buildFolder, 'Build', 'Products');
|