JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q60790F
  • License Apache Public License v2

Check all Appcelerator Titanium project and/or global modules for 64-bit iOS support.

Package Exports

  • ti-64

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ti-64) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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