@@ -19,7 +19,7 @@ var spawn = require('child_process').spawn,
1919
2020
2121/**
22- * return the configured SDK path
22+ * Returns the configured SDK path
2323 */
2424function getSDKPath ( sdkType , callback ) {
2525 exec ( '/usr/bin/xcrun --sdk ' + sdkType + ' --show-sdk-path' , function ( err , stdout ) {
@@ -29,7 +29,7 @@ function getSDKPath (sdkType, callback) {
2929}
3030
3131/**
32- * convert an apple style version (9.0) to a semver compatible version
32+ * Converts an Apple style version (9.0) to a semver compatible version
3333 */
3434function appleVersionToSemver ( ver ) {
3535 var v = String ( ver ) . split ( '.' ) ;
@@ -43,7 +43,7 @@ function appleVersionToSemver (ver) {
4343}
4444
4545/**
46- * return a parsed plist for a given framework
46+ * Returns a parsed plist for a given framework
4747 */
4848function getPlistForFramework ( info , callback ) {
4949 if ( fs . existsSync ( info ) ) {
@@ -203,7 +203,7 @@ class ModuleMetadata {
203203 }
204204
205205 /**
206- * Prases a plain object received from JSON data and converts it back to a
206+ * Parses a plain object received from JSON data and converts it back to a
207207 * module metadata instance.
208208 *
209209 * @param {Object } json Object containing data from JSON
@@ -221,7 +221,7 @@ class ModuleMetadata {
221221}
222222
223223/**
224- * generate system framework includes mapping
224+ * Generates system framework includes mapping
225225 */
226226function generateSystemFrameworks ( sdkPath , iosMinVersion , callback ) {
227227 const frameworksPath = path . resolve ( path . join ( sdkPath , 'System/Library/Frameworks' ) ) ;
@@ -260,7 +260,7 @@ function generateSystemFrameworks (sdkPath, iosMinVersion, callback) {
260260 * mapped to the parent framework.
261261 *
262262 * @param {String } frameworkName Name of the framework
263- * @param {String } frameworkPath Full path to the framwork
263+ * @param {String } frameworkPath Full path to the framework
264264 * @param {Object } includes Object with all include mappings
265265 */
266266function extractImplementationsFromFramework ( frameworkName , frameworkPath , includes ) {
@@ -276,7 +276,7 @@ function extractImplementationsFromFramework(frameworkName, frameworkPath, inclu
276276 * Iterates over a framework's Headers directory and any nested frameworks to
277277 * collect the paths to all available header files of a framework.
278278 *
279- * @param {String } frameworkPath Full path to the framwork
279+ * @param {String } frameworkPath Full path to the framework
280280 * @return {Array } List with paths to all found header files
281281 */
282282function collectFrameworkHeaders ( frameworkPath ) {
@@ -300,11 +300,11 @@ function collectFrameworkHeaders(frameworkPath) {
300300}
301301
302302/**
303- * generate a metabase
303+ * Generates a metabase
304304 *
305305 * @param {String } buildDir cache directory to write the files
306- * @param {String } sdk the sdk type such as iphonesimulator
307- * @param {String } sdk path the path to the SDK
306+ * @param {String } sdk the SDK type such as iphonesimulator
307+ * @param {String } sdkPath the path to the SDK
308308 * @param {String } iosMinVersion the min version such as 9.0
309309 * @param {Array } includes array of header paths (should be absolute paths)
310310 * @param {Boolean } excludeSystem if true, will exclude any system libraries in the generated output
@@ -413,7 +413,7 @@ function generateMetabase (buildDir, sdk, sdkPath, iosMinVersion, includes, excl
413413}
414414
415415/**
416- * return the system frameworks mappings as JSON for a given sdkType and minVersion
416+ * Returns the system frameworks mappings as JSON for a given sdkType and minVersion
417417 */
418418function getSystemFrameworks ( cacheDir , sdkType , minVersion , callback ) {
419419 var fn = 'metabase-mappings-' + sdkType + '-' + minVersion + '.json' ;
@@ -456,7 +456,7 @@ function recursiveReadDir (dir, result) {
456456}
457457
458458/**
459- * for an array of directories, return all validate header files
459+ * For an array of directories, returns all validate header files
460460 */
461461function getAllHeaderFiles ( directories ) {
462462 var files = [ ] ;
@@ -861,7 +861,7 @@ function getBuiltProductsRootPath (basePath, configurationName, sdkType) {
861861 * Gets JSON encoded data from a cache file.
862862 *
863863 * @param {String } cacheDir Path to the cache directory
864- * @param {String } cacheToken Hash to identifiy the required cache file
864+ * @param {String } cacheToken Hash to identify the required cache file
865865 * @return {Object } The CocoaPods metabase mappings
866866 */
867867function readFromCache ( cachePathAndFilename ) {
@@ -939,7 +939,7 @@ function readModulesMetadataFromCache(cachePathAndFilename) {
939939
940940
941941/**
942- * handle buffer output
942+ * Handles buffer output
943943 */
944944function createLogger ( obj , fn ) {
945945 return ( function ( ) {
@@ -965,7 +965,7 @@ function createLogger (obj, fn) {
965965}
966966
967967/**
968- * run the ibtool
968+ * Runs the ibtool
969969 */
970970function runIBTool ( runDir , args , callback ) {
971971 var spawn = require ( 'child_process' ) . spawn ,
@@ -1132,7 +1132,7 @@ function runCocoaPodsBuild (basedir, builder, callback) {
11321132}
11331133
11341134/**
1135- * parse the xcconfig file
1135+ * Parses the xcconfig file
11361136 */
11371137function parseCocoaPodXCConfig ( fn ) {
11381138 var config = { } ;
@@ -1148,7 +1148,7 @@ function parseCocoaPodXCConfig (fn) {
11481148}
11491149
11501150/**
1151- * generate a map of xcode settings for CocoaPods
1151+ * Generates a map of Xcode settings for CocoaPods
11521152 */
11531153function getCocoaPodsXCodeSettings ( basedir ) {
11541154 var podDir = path . join ( basedir , 'Pods' ) ;
0 commit comments