@react-native-community/cli-platform-apple
Advanced tools
Comparing version 13.3.0 to 13.4.0
@@ -48,2 +48,3 @@ "use strict"; | ||
var _supportedPlatforms = require("../../config/supportedPlatforms"); | ||
var _openApp = _interopRequireDefault(require("./openApp")); | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
@@ -115,3 +116,11 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
if (platformName === 'macos') { | ||
(0, _buildProject.buildProject)(xcodeProject, platformName, undefined, mode, scheme, args); | ||
const buildOutput = await (0, _buildProject.buildProject)(xcodeProject, platformName, undefined, mode, scheme, args); | ||
(0, _openApp.default)({ | ||
buildOutput, | ||
xcodeProject, | ||
mode, | ||
scheme, | ||
target: args.target, | ||
binaryPath: args.binaryPath | ||
}); | ||
return; | ||
@@ -118,0 +127,0 @@ } |
import { BuildSettings } from './getBuildSettings'; | ||
export declare function getBuildPath(buildSettings: BuildSettings, isCatalyst?: boolean): Promise<string>; | ||
import { ApplePlatform } from '../../types'; | ||
export declare function getBuildPath(buildSettings: BuildSettings, platform?: ApplePlatform, isCatalyst?: boolean): Promise<string>; | ||
//# sourceMappingURL=getBuildPath.d.ts.map |
@@ -22,3 +22,3 @@ "use strict"; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
async function getBuildPath(buildSettings, isCatalyst = false) { | ||
async function getBuildPath(buildSettings, platform = 'ios', isCatalyst = false) { | ||
const targetBuildDir = buildSettings.TARGET_BUILD_DIR; | ||
@@ -38,2 +38,4 @@ const executableFolderPath = buildSettings.EXECUTABLE_FOLDER_PATH; | ||
return _path().default.join(targetBuildDir, '-maccatalyst', executableFolderPath); | ||
} else if (platform === 'macos') { | ||
return _path().default.join(targetBuildDir, fullProductName); | ||
} else { | ||
@@ -40,0 +42,0 @@ return _path().default.join(targetBuildDir, executableFolderPath); |
import { IOSProjectInfo } from '@react-native-community/cli-types'; | ||
import { ApplePlatform } from '../../types'; | ||
type Options = { | ||
buildOutput: any; | ||
buildOutput: string; | ||
xcodeProject: IOSProjectInfo; | ||
@@ -10,5 +11,6 @@ mode: string; | ||
binaryPath?: string; | ||
platform?: ApplePlatform; | ||
}; | ||
export default function installApp({ buildOutput, xcodeProject, mode, scheme, target, udid, binaryPath, }: Options): Promise<void>; | ||
export default function installApp({ buildOutput, xcodeProject, mode, scheme, target, udid, binaryPath, platform, }: Options): Promise<void>; | ||
export {}; | ||
//# sourceMappingURL=installApp.d.ts.map |
@@ -52,3 +52,4 @@ "use strict"; | ||
udid, | ||
binaryPath | ||
binaryPath, | ||
platform | ||
}) { | ||
@@ -61,7 +62,4 @@ let appPath = binaryPath; | ||
if (!appPath) { | ||
appPath = await (0, _getBuildPath.getBuildPath)(buildSettings); | ||
appPath = await (0, _getBuildPath.getBuildPath)(buildSettings, platform); | ||
} | ||
if (!buildSettings) { | ||
throw new (_cliTools().CLIError)('Failed to get build settings for your project'); | ||
} | ||
const targetBuildDir = buildSettings.TARGET_BUILD_DIR; | ||
@@ -68,0 +66,0 @@ const infoPlistPath = buildSettings.INFOPLIST_PATH; |
@@ -48,3 +48,3 @@ "use strict"; | ||
} | ||
const appPath = await (0, _getBuildPath.getBuildPath)(buildSettings, true); | ||
const appPath = await (0, _getBuildPath.getBuildPath)(buildSettings, platform, true); | ||
const appProcess = _child_process().default.spawn(`${appPath}/${scheme}`, [], { | ||
@@ -63,3 +63,3 @@ detached: true, | ||
} | ||
appPath = await (0, _getBuildPath.getBuildPath)(buildSettings); | ||
appPath = await (0, _getBuildPath.getBuildPath)(buildSettings, platform); | ||
} else { | ||
@@ -66,0 +66,0 @@ appPath = args.binaryPath; |
@@ -54,3 +54,3 @@ "use strict"; | ||
(0, _installApp.default)({ | ||
buildOutput, | ||
buildOutput: buildOutput ?? '', | ||
xcodeProject, | ||
@@ -57,0 +57,0 @@ mode, |
{ | ||
"name": "@react-native-community/cli-platform-apple", | ||
"version": "13.3.0", | ||
"version": "13.4.0", | ||
"license": "MIT", | ||
@@ -10,3 +10,3 @@ "main": "build/index.js", | ||
"dependencies": { | ||
"@react-native-community/cli-tools": "13.3.0", | ||
"@react-native-community/cli-tools": "13.4.0", | ||
"chalk": "^4.1.2", | ||
@@ -19,3 +19,3 @@ "execa": "^5.0.0", | ||
"devDependencies": { | ||
"@react-native-community/cli-types": "13.3.0", | ||
"@react-native-community/cli-types": "13.4.0", | ||
"@types/glob": "^7.1.1", | ||
@@ -36,3 +36,3 @@ "@types/lodash": "^4.14.149", | ||
}, | ||
"gitHead": "148f4d7220fba7a55e1f0b7def417c6c96ea6d9c" | ||
"gitHead": "13e37351f1959b9cc96f325d938e3930895049dd" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
267635
165
2767
+ Added@react-native-community/cli-tools@13.4.0(transitive)
- Removed@react-native-community/cli-tools@13.3.0(transitive)