This Hook is made for using multiple environments within a nativescript application.
What it does
First it changes your packageId to whatever you have stated in your
it also copies any files you have suffixed with the name of the environemnt for example :
App_Resources/Android/google-services.staging.json will get copied to
App_Resources/Android/google-services.json before building.
Once you have a initial
environment-rules.json file you can change between the environments using
for example for ios:
tns run ios --env.use.staging
this can also be used with other --env args like:
tns run ios --bundle --env.aot --env.uglify --env.use.release
a basic environment-rules.json file is generated for you it looks like this:
You can tweak this however you want, and add as many environments as you like.
ExtraPaths is Optional, but can add multiple paths within the app. these will follow the same rules for the rules.