ti-64

2.1.6 • Public • Published

Ti-64 Dependencies

Check all Appcelerator Titanium iOS modules you have installed in a project or global for 64-bit iOS support.

Apple requires new apps to include 64-bit support starting Feb 1, while updated have until June 1.

Follow these simple steps to update your own and OSS modules to support 64-bit.

screenshot

Install NPM version

As global CLI:

$ npm install -g ti-64

As module:

$ npm install ti-64 --save

Usage

CLI

Check local and global modules required in a project's tiapp.xml:

~/project $ ti-64
$ ti-64 --project-dir ~/project

Check all global modules:

$ ti-64 --global

Check all lib*.*.a files under a given path:

$ ti-64 .

Check a specific lib*.*.a file:

$ ti-64 build/libmy.module.a

Get the output as JSON:

$ ti-64 --output json

{
  "err": null,
  "res": {
    "analytics.google": {
      "name": "analytics.google",
      "has64": false,
      "versions": [
        {
          "name": "analytics.google",
          "version": "1.0",
          "path": "/path/to/analytics.google/1.0",
          "global": true,
          "architectures": [
            "armv7",
            "i386"
          ],
          "has64": false
        }
      ]
    }
  }
}

Module

var ti64 = require('ti-64');

ti64({
    projectDir: './project',
    // global: true,
    // path: './build/my.module.a'

}, function handle(err, res) {

  if (err) {
    console.error(err);

  } else {

    for (var module in res) {
      console[module.has64 ? 'log' : 'error'](module.name);

      for (var version in module.version) {
        console[version.has64 ? 'log' : 'error'](version.version + ' (' + (version.project ? 'project' : 'global') + ') ' + (version.error || version.architectures.join(' ')));
      }

    }

  }

});

Changelog

  • 2.1.0: Adds checking a given or all lib*.a files for a given path
  • 2.0.0: Adds JSON output, Groups results by module, Improves error when ran outside of project, Adds update notification
  • 1.1.0: Improved module API, Fixes #2, Fixes -g still requiring to be run in project
  • 1.0.0: Initial version

Package Sidebar

Install

npm i ti-64

Weekly Downloads

2

Version

2.1.6

License

Apache Public License v2

Last publish

Collaborators

  • fokkezb