Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-27204

CLI: apiversion validation always fails for native modules installed via npm

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: Release 8.1.0, Release 8.2.0
    • Fix Version/s: Release 8.1.0
    • Component/s: Android, CLI, iOS
    • Labels:
      None
    • Environment:

      SDK: 8.1.0.v20190701132634, 8.2.0.v20190628101943

    • Story Points:
      3
    • Sprint:
      2019 Sprint 14

      Description

      Description

      When installing a module from npm and building, the apiversion fails even if the apiversion is correct. This is because the apiversion passed in from the SDK is a string, whereas the version from the version we get from the module is a number. We should parseInt both of these before using them.

      Steps to reproduce

      1. In the root of your titanium project alongside tiapp.xml, run npm init -y and then npm i @titanium/imagefactory
      2. Add <module>ti.imagefactory</module> to your modules section in the tiapp
      3. Build for Android or iOS (iOS will require TIMOB-27203 to be fixed first)

      Actual

      Build errors with [ERROR] Found incompatible Titanium Modules:

      Expected

      No error as everything is valid

        Attachments

          Activity

            People

            • Assignee:
              eharris Ewan Harris
              Reporter:
              eharris Ewan Harris
              Reviewer:
              Christopher Williams
              Tester:
              Samir Mohammed
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code