Files
NativeScript/tns-core-modules-widgets/DevelopmentWorkflow.md
SvetoslavTsenov 9cb73e9b9d Add 'tns-core-modules-widgets/' from commit '4d29082e49a85187f50ede98fb634e6ae6f6ef46'
git-subtree-dir: tns-core-modules-widgets
git-subtree-mainline: e6486f6c0f621210a6086801abc36c693cf31884
git-subtree-split: 4d29082e49a85187f50ede98fb634e6ae6f6ef46
2019-03-20 09:54:33 +02:00

1.9 KiB

Development Workflow

Prerequisites

Install your native toolchain and NativeScript as described in the docs: https://docs.nativescript.org/setup/quick-setup. In order to open the native Android and iOS project, you need Android Studio and Xcode respectively.

How to Build the Package

On macOS you can execute:

$ ./build.sh

This script builds both Android and iOS, assembles the package at ./dist/package and packs it as ./dist/tns-core-modules-widgets-*.tgz.

How to Build Android

On Unix-like operating systems you can execute:

$ ./build.android.sh

This script builds only the Android project, assembles the package at ./dist/package and packs it as ./dist/tns-core-modules-widgets-*.tgz. The output file is available at ./android/widgets/build/outputs/aar/widgets-release.aar.

NOTE: To run bash script on Windows you can install GIT SCM and use Git Bash.

How to Build iOS

On macOS you can execute:

$ ./build.ios.sh

This script builds only the Xcode project, assembles the package at ./dist/package and packs it as ./dist/tns-core-modules-widgets-*.tgz. The output native iOS framework is available at ./ios/TNSWidgets/build/TNSWidgets.framework.

How to Use in an Application

You could link the tns-core-modules-widgets plugin package to your application through the steps listed below.

In the ./dist/package folder execute:

npm link

In your application project folder execute:

npm link tns-core-modules-widgets

Build the plugin with the above-mentioned commands after each change you would like to test.