Skip to content

Do not delete values dirs #641

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 13, 2015
Merged

Conversation

rosen-vladimirov
Copy link
Contributor

During project preparation, we should not delete values directories as they contain specific information, which is important for android builds (strings.xml file for example).

NOTE: This fix is mandatory for integration of {N} inside AppBuilder

@rosen-vladimirov rosen-vladimirov self-assigned this Jul 13, 2015
@rosen-vladimirov rosen-vladimirov added this to the 1.2.0 milestone Jul 13, 2015
@ns-bot
Copy link

ns-bot commented Jul 13, 2015

@@ -185,9 +185,9 @@ class AndroidProjectService implements IPlatformProjectService {
public prepareAppResources(appResourcesDirectoryPath: string): IFuture<void> {
return (() => {
let resourcesDirPath = path.join(appResourcesDirectoryPath, this.platformData.normalizedPlatformName);
let resourcesDirs = this.$fs.readDirectory(resourcesDirPath).wait();
let resourcesDirs = this.$fs.readDirectory(resourcesDirPath).wait().filter(resDir => !resDir.match(/^values/));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can move the regexp outside the lambda, but not a merge stopper

@teobugslayer
Copy link
Contributor

👍

During project preparation, we should not delete values directories as they contain specific information, which is important for android builds (strings.xml file for example).
@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/fix-values-dir branch from 60961c2 to bcba5fb Compare July 13, 2015 20:01
@ns-bot
Copy link

ns-bot commented Jul 13, 2015

rosen-vladimirov added a commit that referenced this pull request Jul 13, 2015
@rosen-vladimirov rosen-vladimirov merged commit 0157f2e into release Jul 13, 2015
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-values-dir branch July 13, 2015 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants