Fix(project template) Force bindings regen, if out dir empty.#595
Fix(project template) Force bindings regen, if out dir empty.#595
Conversation
Running `tns build ... --bundle` runs the clean gradle target and we can end up deleting bindings *.dex files while the presence of *.txt files in the generator dir will prevent us from regenerating them. The fix checks the output dir and forces regeneration if it has no files.
|
Related to NativeScript/nativescript-cli#2110 |
|
Ping @Plamen5kov |
|
💚 |
|
Looks 👍 for invalidating the gradle's up-to-date status. A definite fix to the problem with SBG not triggering when project's been cleared can be to |
|
@hdeshev I think a better solution would be to make our clean command take care of deleting the generated file in |
|
IMO the "right" solution to this problem is to generate all bindings-related I did a half-hearted attempt at getting that to run, but couldn't get it to work in reasonable time. Perhaps somebody who knows the gradle infrastructure better than me can have a shot. |
|
I'll take a look. |
|
closing in favor of: #598 |
Running
tns build ... --bundleruns thecleangradle target andwe can end up deleting bindings *.dex files while the presence of
*.txt files in the generator dir will prevent us from regenerating
them.
The fix checks the output dir and forces regeneration if it has no
files.