How to build an Android app using Native-script?
First of all you need to open native android studio and create a .jks file key. Please store your .jks file in safe location so that you can use for next update. For the every update you have to use .jks file. In case you lose , you need build an app with new package name and create a new .jks file.
Please refer to https://developer.android.com/studio/publish/app-signing for creating .jks file.
The below are the three options to release an Android App to production in Nativescript.
1) .apk
tns build android --release --key-store-path [your key path to .jks file] --key-store-password [your key password] --key-store-alias [your key alias] --key-store-alias-password [your key store password]
2) .abb file . It is good for app size reduction.
tns run android --release --key-store-path [your key path to .jks file] --key-store-password [your key password] --key-store-alias [your key alias] --key-store-alias-password [your key store password] --aab
3) .abb file with customisation
tns run android --bundle --env.uglify --env.aot --env.snapshot --release --key-store-path [your key path to .jks file] --key-store-password [your key password] --key-store-alias [your key alias] --key-store-alias-password [your key store password] --aab --copy-to app1.aab
Kindly note that Blank NativeScript projects for Android are ~12MB by default because they include three copies of the NativeScript runtime built for different Android CPU architectures.
No comments:
Post a Comment