Skip to content

Conversation

@sis0k0
Copy link
Contributor

@sis0k0 sis0k0 commented Jun 26, 2018

These checks are no longer needed. They also cause the CLI to rebuild the .aar files on every change when using tns run android --bundle.

  • The first check:
    The CLI watches the App_Resources folder and will execute the logic
    for preparing them whenever there's a change.

  • The second check:
    The CLI will try to detect changes in node_modules by comparing the
    timestamps of every file there on every change. When there's a change,
    it will set the modulesChanged flag to true. Therefore, the bundle flag is not needed.

fixes #3707

These checks are no longer needed. They also cause the CLI to
rebuild the .aar files on every change when using `tns run android
--bundle`.

- The first check:
The CLI watches the `App_Resources` folder and will execute the logic
for preparing them whenever there's a change.

- The second check:
The CLI will try to detect changes in node_modules by comparing the
timestamps of every file there on every change. When there's a change,
it will set the `modulesChanged` flag to true. Therefore, the `bundle` flag is not needed.

fixes #3707
@sis0k0 sis0k0 self-assigned this Jun 26, 2018
@sis0k0 sis0k0 merged commit e4c14c2 into master Jul 2, 2018
@sis0k0 sis0k0 deleted the sis0k0/prepare-native-bundle-checks branch July 2, 2018 07:21
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.

CLI generates aar files on changes in app/ (livesync with webpack)

3 participants