
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
nativescript-dev-multiple-env
Advanced tools
A Hook For Nativescript to allow multiple Environments
This Hook is made for using multiple environments within a nativescript application.
First it changes your packageId to whatever you have stated in your environment-rules.json
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 --env.use.ENV_NAME
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:
{
"version": "1.0.0",
"default": "staging",
"extraPaths": [
'app/environments'
],
"environments": [
{
name: "staging",
packageId: "org.nativescript.appName.staging",
copyRule: "(.*\\.staging\\..*)"
},
{
name: "release",
packageId: "org.nativescript.appName.release",
copyRule: "(.*\\.release\\..*)"
}
]
}
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.
FAQs
A Hook For Nativescript to allow multiple Environments
The npm package nativescript-dev-multiple-env receives a total of 1 weekly downloads. As such, nativescript-dev-multiple-env popularity was classified as not popular.
We found that nativescript-dev-multiple-env demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.