stovmascript/react-native-version

Change version for a specific IOS target

chenop opened this issue · 0 comments

My workspace include 2 apps, one target for each app, I would like to change the versions only for the specific target I'm now going to deploy.

I've digged in the code and its seems today there is a filter waiting for this issue:

function getPlistFilenames(xcode) {
	return unique(
		flattenDeep(
			xcode.document.projects.map(project => {
				return project.targets.filter(Boolean).map(target => {
					return target.buildConfigurationsList.buildConfigurations.map(
						config => {
							return config.ast.value.get("buildSettings").get("INFOPLIST_FILE")
								.text;
						}
					);
				});
			})
		)
	);
}

So I think change needed is approximately:

return project.targets.filter(target => target === SPECIFIC_XCODE_TARGET).map(target => {