Skip to content

Livesync ignores aar file changes inside a plugin #3610

Closed
@tgpetrov

Description

@tgpetrov

Tell us about the problem

I’d like to be able to refresh the demo app of a plugin when the plugin’s native android code is changed. Currently I am able to build a new aar file from an android project when some of its files is changed. Then I can copy the aar that has just been built in src/platforms/android hoping that it will cause a restart of the running demo app. However nothing happens. I can force the restart of the app by changing any other file in src/platforms.android which doesn’t end with aar. The similar approach on iOS (replacing the ios framework in src/platforms/ios) behaves as expected - the app is restarted with the new framework taken into account.

Which platform(s) does your issue occur on?

Android

Please provide the following version numbers that your issue occurs with:

  • CLI: 4.0.2
  • Cross-platform modules: 4.0.1
  • Runtime(s): 4.0.1

Please tell us how to recreate the issue in as much detail as possible.

  1. Run any plugin's demo app. For example: https://github.com/NativeScript/nativescript-camera
  2. Paste an aar file inside src/platforms/android to see that the app will NOT restart
  3. Paste a file of any other type to see that the app will restart

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions