@react-native-community/cli-config-apple
Advanced tools
Comparing version
@@ -43,2 +43,2 @@ "use strict"; | ||
//# sourceMappingURL=/Users/thymikee/Developer/oss/rncli/packages/cli-config-apple/build/config/findAllPodfilePaths.js.map | ||
//# sourceMappingURL=/Users/thymikee/Developer/rnccli/packages/cli-config-apple/build/config/findAllPodfilePaths.js.map |
@@ -21,2 +21,2 @@ "use strict"; | ||
//# sourceMappingURL=/Users/thymikee/Developer/oss/rncli/packages/cli-config-apple/build/config/findPbxprojFile.js.map | ||
//# sourceMappingURL=/Users/thymikee/Developer/rnccli/packages/cli-config-apple/build/config/findPbxprojFile.js.map |
@@ -77,2 +77,2 @@ "use strict"; | ||
//# sourceMappingURL=/Users/thymikee/Developer/oss/rncli/packages/cli-config-apple/build/config/findPodfilePath.js.map | ||
//# sourceMappingURL=/Users/thymikee/Developer/rnccli/packages/cli-config-apple/build/config/findPodfilePath.js.map |
@@ -41,2 +41,2 @@ "use strict"; | ||
//# sourceMappingURL=/Users/thymikee/Developer/oss/rncli/packages/cli-config-apple/build/config/findPodspec.js.map | ||
//# sourceMappingURL=/Users/thymikee/Developer/rnccli/packages/cli-config-apple/build/config/findPodspec.js.map |
@@ -49,2 +49,2 @@ "use strict"; | ||
//# sourceMappingURL=/Users/thymikee/Developer/oss/rncli/packages/cli-config-apple/build/config/findXcodeProject.js.map | ||
//# sourceMappingURL=/Users/thymikee/Developer/rnccli/packages/cli-config-apple/build/config/findXcodeProject.js.map |
@@ -111,2 +111,2 @@ "use strict"; | ||
//# sourceMappingURL=/Users/thymikee/Developer/oss/rncli/packages/cli-config-apple/build/config/index.js.map | ||
//# sourceMappingURL=/Users/thymikee/Developer/rnccli/packages/cli-config-apple/build/config/index.js.map |
@@ -15,2 +15,2 @@ "use strict"; | ||
//# sourceMappingURL=/Users/thymikee/Developer/oss/rncli/packages/cli-config-apple/build/config/supportedPlatforms.js.map | ||
//# sourceMappingURL=/Users/thymikee/Developer/rnccli/packages/cli-config-apple/build/config/supportedPlatforms.js.map |
export { getDependencyConfig, getProjectConfig, findPodfilePaths, } from './config'; | ||
export { default as runCodegen } from './tools/runCodegen'; | ||
export { default as installPods } from './tools/installPods'; | ||
@@ -3,0 +4,0 @@ export { default as resolvePods } from './tools/pods'; |
@@ -48,2 +48,8 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "runCodegen", { | ||
enumerable: true, | ||
get: function () { | ||
return _runCodegen.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "supportedPlatforms", { | ||
@@ -56,2 +62,3 @@ enumerable: true, | ||
var _config = require("./config"); | ||
var _runCodegen = _interopRequireDefault(require("./tools/runCodegen")); | ||
var _installPods = _interopRequireDefault(require("./tools/installPods")); | ||
@@ -64,2 +71,2 @@ var _pods = _interopRequireDefault(require("./tools/pods")); | ||
//# sourceMappingURL=/Users/thymikee/Developer/oss/rncli/packages/cli-config-apple/build/index.js.map | ||
//# sourceMappingURL=/Users/thymikee/Developer/rnccli/packages/cli-config-apple/build/index.js.map |
@@ -69,3 +69,3 @@ "use strict"; | ||
_cliTools().logger.error(stderr); | ||
throw new (_cliTools().CLIError)(`Looks like your iOS environment is not properly set. Please go to ${_cliTools().link.docs('environment-setup', 'ios', { | ||
throw new (_cliTools().CLIError)(`Looks like your iOS environment is not properly set. Please go to ${_cliTools().link.docs('set-up-your-environment', 'ios', { | ||
guide: 'native' | ||
@@ -144,2 +144,2 @@ })} and follow the React Native CLI QuickStart guide for macOS and iOS.`); | ||
//# sourceMappingURL=/Users/thymikee/Developer/oss/rncli/packages/cli-config-apple/build/tools/installPods.js.map | ||
//# sourceMappingURL=/Users/thymikee/Developer/rnccli/packages/cli-config-apple/build/tools/installPods.js.map |
@@ -14,4 +14,4 @@ import { DependencyConfig } from '@react-native-community/cli-types'; | ||
export declare function compareMd5Hashes(hash1?: string, hash2?: string): boolean; | ||
export default function resolvePods(root: string, sourceDir: string, nativeDependencies: NativeDependencies, platformName: ApplePlatform, options?: ResolvePodsOptions): Promise<void>; | ||
export default function resolvePods(root: string, sourceDir: string, nativeDependencies: NativeDependencies, platformName: ApplePlatform, reactNativePath: string, options?: ResolvePodsOptions): Promise<void>; | ||
export {}; | ||
//# sourceMappingURL=pods.d.ts.map |
@@ -47,2 +47,3 @@ "use strict"; | ||
var _installPods = _interopRequireDefault(require("./installPods")); | ||
var _runCodegen = _interopRequireDefault(require("./runCodegen")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -86,5 +87,10 @@ function getPackageJson(root) { | ||
} | ||
async function install(packageJson, cachedDependenciesHash, currentDependenciesHash, iosFolderPath) { | ||
async function install(packageJson, cachedDependenciesHash, currentDependenciesHash, iosFolderPath, platform, root, reactNativePath) { | ||
const loader = (0, _cliTools().getLoader)('Installing CocoaPods...'); | ||
try { | ||
await (0, _runCodegen.default)({ | ||
root, | ||
platform, | ||
reactNativePath | ||
}); | ||
await (0, _installPods.default)(loader, { | ||
@@ -101,3 +107,3 @@ skipBundleInstall: !!cachedDependenciesHash, | ||
} | ||
async function resolvePods(root, sourceDir, nativeDependencies, platformName, options) { | ||
async function resolvePods(root, sourceDir, nativeDependencies, platformName, reactNativePath, options) { | ||
const packageJson = getPackageJson(root); | ||
@@ -120,3 +126,3 @@ const podfilePath = _path().default.join(sourceDir, 'Podfile'); // sourceDir is calculated based on Podfile location, see getProjectConfig() | ||
if (options === null || options === void 0 ? void 0 : options.forceInstall) { | ||
await install(packageJson, cachedDependenciesHash, currentDependenciesHash, platformFolderPath); | ||
await install(packageJson, cachedDependenciesHash, currentDependenciesHash, platformFolderPath, platformName, root, reactNativePath); | ||
} else if (arePodsInstalled && compareMd5Hashes(currentDependenciesHash, cachedDependenciesHash) && compareMd5Hashes(currentPodfileHash, cachedPodfileHash) && compareMd5Hashes(currentPodfileLockChecksum, cachedPodfileLockChecksum)) { | ||
@@ -147,2 +153,2 @@ _cliTools().cacheManager.set(packageJson.name, 'dependencies', currentDependenciesHash); | ||
//# sourceMappingURL=/Users/thymikee/Developer/oss/rncli/packages/cli-config-apple/build/tools/pods.js.map | ||
//# sourceMappingURL=/Users/thymikee/Developer/rnccli/packages/cli-config-apple/build/tools/pods.js.map |
@@ -29,3 +29,3 @@ "use strict"; | ||
_cliTools().logger.error(error.stderr || error.stdout); | ||
throw new (_cliTools().CLIError)(`Looks like your iOS environment is not properly set. Please go to ${_cliTools().link.docs('environment-setup', 'ios', { | ||
throw new (_cliTools().CLIError)(`Looks like your iOS environment is not properly set. Please go to ${_cliTools().link.docs('set-up-your-environment', 'ios', { | ||
guide: 'native' | ||
@@ -39,2 +39,2 @@ })} and follow the React Native CLI QuickStart guide for macOS and iOS.`); | ||
//# sourceMappingURL=/Users/thymikee/Developer/oss/rncli/packages/cli-config-apple/build/tools/runBundleInstall.js.map | ||
//# sourceMappingURL=/Users/thymikee/Developer/rnccli/packages/cli-config-apple/build/tools/runBundleInstall.js.map |
"use strict"; | ||
//# sourceMappingURL=/Users/thymikee/Developer/oss/rncli/packages/cli-config-apple/build/types.js.map | ||
//# sourceMappingURL=/Users/thymikee/Developer/rnccli/packages/cli-config-apple/build/types.js.map |
{ | ||
"name": "@react-native-community/cli-config-apple", | ||
"version": "19.0.0-alpha.0", | ||
"version": "19.0.0-alpha.2", | ||
"license": "MIT", | ||
@@ -10,3 +10,3 @@ "main": "build/index.js", | ||
"dependencies": { | ||
"@react-native-community/cli-tools": "19.0.0-alpha.0", | ||
"@react-native-community/cli-tools": "19.0.0-alpha.2", | ||
"chalk": "^4.1.2", | ||
@@ -17,3 +17,3 @@ "execa": "^5.0.0", | ||
"devDependencies": { | ||
"@react-native-community/cli-types": "19.0.0-alpha.0", | ||
"@react-native-community/cli-types": "19.0.0-alpha.2", | ||
"ora": "^5.4.1" | ||
@@ -32,3 +32,3 @@ }, | ||
}, | ||
"gitHead": "dca22ec83b810bb88cc8960e8dc6cddbf7d75220" | ||
"gitHead": "2e720f98bd0c2267971fd1a66f5ee567fde1b4e0" | ||
} |
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
81302
5.61%57
7.55%873
7.25%7
16.67%+ Added
- Removed