From 70579e887f5f763d5f6b3f3714c73524a6c08eb3 Mon Sep 17 00:00:00 2001 From: atanasovg Date: Mon, 17 Mar 2014 16:08:54 +0200 Subject: [PATCH] Added two new configurations to the BCL project to enable copying of the generated files to the testing projects. --- BCL.csproj | 37 ++++++++++++++++++++++++++++++++++++- BCL.sln | 6 ++++++ Readme.md | 27 +++++++++++++++++++++++---- 3 files changed, 65 insertions(+), 5 deletions(-) diff --git a/BCL.csproj b/BCL.csproj index 4d0f7e070..a3f8428a2 100644 --- a/BCL.csproj +++ b/BCL.csproj @@ -32,6 +32,20 @@ true + + true + bin\ + full + AnyCPU + MinimumRecommendedRules.ruleset + + + true + bin\ + full + AnyCPU + MinimumRecommendedRules.ruleset + @@ -134,6 +148,9 @@ + + + commonjs True @@ -149,9 +166,27 @@ True + + commonjs + True + True + ES5 + + + commonjs + True + True + ES5 + + + + Deploy\xCode\Configuration.xml + - + \ No newline at end of file diff --git a/BCL.sln b/BCL.sln index 4467379ab..ccdf69ebf 100644 --- a/BCL.sln +++ b/BCL.sln @@ -7,12 +7,18 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BCL", "BCL.csproj", "{2313F EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution + Android_Deploy|Any CPU = Android_Deploy|Any CPU Android|Any CPU = Android|Any CPU + iOS_Deploy|Any CPU = iOS_Deploy|Any CPU iOS|Any CPU = iOS|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution + {2313F1BF-1F2D-4F11-806A-87927FA6A7C0}.Android_Deploy|Any CPU.ActiveCfg = Android_Deploy|Any CPU + {2313F1BF-1F2D-4F11-806A-87927FA6A7C0}.Android_Deploy|Any CPU.Build.0 = Android_Deploy|Any CPU {2313F1BF-1F2D-4F11-806A-87927FA6A7C0}.Android|Any CPU.ActiveCfg = Android|Any CPU {2313F1BF-1F2D-4F11-806A-87927FA6A7C0}.Android|Any CPU.Build.0 = Android|Any CPU + {2313F1BF-1F2D-4F11-806A-87927FA6A7C0}.iOS_Deploy|Any CPU.ActiveCfg = iOS_Deploy|Any CPU + {2313F1BF-1F2D-4F11-806A-87927FA6A7C0}.iOS_Deploy|Any CPU.Build.0 = iOS_Deploy|Any CPU {2313F1BF-1F2D-4F11-806A-87927FA6A7C0}.iOS|Any CPU.ActiveCfg = iOS|Any CPU {2313F1BF-1F2D-4F11-806A-87927FA6A7C0}.iOS|Any CPU.Build.0 = iOS|Any CPU EndGlobalSection diff --git a/Readme.md b/Readme.md index 8007d34e0..2e3964319 100644 --- a/Readme.md +++ b/Readme.md @@ -1,9 +1,12 @@ 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` +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. -### Build the BuildTasks solution +### 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](https://github.com/telerik/xPlatCore/tree/master/Build/Tasks) @@ -11,8 +14,24 @@ The output of this project is located at (../bin/) ### Build the BCL project -There are two build configurations - iOS and Android. Depending on the configuration, the custom build task will prepare the `bin/iOS` and `bin/Android` folders -where the files only needed for the specified platform will be copied. +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. iOS
+ This configuration will create a `bin/iOS` folder and output all the iOS-related files there. +3. Android_Deploy
+ [Still working on] +4. 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: + ``` + + + Z:\Kimera\JDBridgeApp\JDBridgeApp\js + + ``` + In order to use this path you will need to map a shared MAC's folder and access it from your PC. ### Useful links