Skip to content

Conversation

@Fatme
Copy link
Contributor

@Fatme Fatme commented Jul 19, 2014

We need this refactoring in order to reuse code for iOSProjectService

@Fatme
Copy link
Contributor Author

Fatme commented Jul 21, 2014

@ligaz @tailsu

Copy link
Contributor

Choose a reason for hiding this comment

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

action shouldn't be any. Rather, it should be, let's say, action: (...args: any[]) => void.

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 simplify the signature for args by using open-ended arguments: ...args: any[]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree :) It looks better

@Fatme
Copy link
Contributor Author

Fatme commented Jul 21, 2014

@tailsu @ligaz

Copy link
Contributor

Choose a reason for hiding this comment

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

This is odd. Isn't options.release a boolean value? Why would it have the value --release ?

Copy link
Contributor

Choose a reason for hiding this comment

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

This method can be made private in the implementation. The installSafe method can be renamed to just install, then.

@Fatme
Copy link
Contributor Author

Fatme commented Jul 22, 2014

@tailsu

@tailsu
Copy link
Contributor

tailsu commented Jul 22, 2014

👍

Copy link

Choose a reason for hiding this comment

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

You can move this after the other public method in this class.

@Fatme
Copy link
Contributor Author

Fatme commented Jul 23, 2014

@ligaz I did the folowings:

  • moved all logic from PlatformProjectService to PlatformService,
  • removed PlatformProjectService and IPlatformProjectService,
  • renamed IPlatformSpecificProjectService to IPlatformProjectService .

lib/constants.ts Outdated
Copy link

Choose a reason for hiding this comment

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

We are already using the FOLDER_NAME convention so it looks better to name this PROJECT_FRAMEWORK_FOLDER_NAME.

@ligaz
Copy link

ligaz commented Jul 23, 2014

Yes, it looks much better after this refactoring. Good job 😉

@ligaz
Copy link

ligaz commented Jul 24, 2014

👍 well done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants