Skip to content

alvsgithub/NativeScript

Repository files navigation

Steps to build the BCL solution:

The BCL solution relies on a custom build task used to filter and rename the compiled javascript files by platform. E.g. the file application.android.js, containing the actual platform-specific implementation will become application.js. The BCL itself uses a pre-built copy of the task, residing in the Build/lib folder.

BuildTasks solution

In case you want to change the custom build task you will need to rebuild the solution and copy the newly generated assembly to the Build/lib folder.

BuildTasks

The output of this project is located at (../bin/)

Build the BCL project

There are four different configurations of the project:

  1. Android
    This configuration will create a bin/Android folder and output all the Android-related files there.
  2. Android_Deploy
    Same as the Android configuration plus the generated javascript is copied to the tns_modules folder in the targeted Eclipse project. The path to the project is taken from the BCL/Deploy/Eclipse/Configuration.xml file. The expected XML structure is:
<?xml version="1.0" encoding="utf-8" ?>
<JSFolder>
  <Path>C:\Work\Git\xPlatCore\Applications\Android\UnitTestApp\assets\tns_modules</Path>
</JSFolder>
  1. Android_Tests
    Same as Android_Deploy plus the Tests folder in the BCL is copied to the output directory.

  2. iOS
    This configuration will create a bin/iOS folder and output all the iOS-related files there.

  3. iOS_Deploy
    Same as the iOS configuration plus the generated javascript is copied to the JS folder in the testing xCode project. The path to the project is taken from the BCL/Deploy/xCode/Configuration.xml file. The expected XML structure is:

<?xml version="1.0" encoding="utf-8" ?>
<JSFolder>
  <Path>Z:\Kimera\JDBridgeApp\JDBridgeApp\js</Path>
</JSFolder>

In order to use this path you will need to map a shared MAC's folder and access it from your PC.

  1. iOS_Tests
    Same as iOS_Deploy plus the Tests folder in the BCL is copied to the output directory.

UnitTestApp - Ready to run

<?xml version="1.0" encoding="utf-8" ?>
<JSFolder>
  <Path>C:\Work\Git\xPlatCore\Applications\Android\UnitTestApp\assets\tns_modules</Path>
</JSFolder> 

Useful links

VSCommands

Adds the option to "Group Items" (DependentUpon tag) within the Visual Studio Solution Explorer. Select several items, right-click -> Group Items.

About

Open Source framework for building cross-platform truly native iOS, Android and Windows mobile apps using JavaScript.

Resources

License

Unknown, Apache-2.0 licenses found

Licenses found

Unknown
LICENSE
Apache-2.0
LICENSE.md

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • TypeScript 83.8%
  • JavaScript 16.0%
  • Other 0.2%