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

Hyperloop: Android - requiring certain classes throws an error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Hyperloop 2.2.0
    • Component/s: Hyperloop
    • Labels:
    • Environment:

      Titanium CLI version 5.0.10
      Hyperloop 1.2.8

      Description

      There is an error trying to require e.g. GoogleApiClient from Google Play Services

      [TRACE] [Hyperloop] JS Wrapper for class com.google.android.gms.common.api.Api$zzh created...
      [TRACE] [Hyperloop] JS Wrapper for class com.google.android.gms.common.api.Batch created...

      C:\ProgramData\Titanium\plugins\hyperloop\1.2.8\node_modules\async\lib\async.js:319
      iterator(obj[key], key, only_once(function (err) {
      ^
      TypeError: packageArray.push is not a function
      at C:\ProgramData\Titanium\plugins\hyperloop\1.2.8\hooks\android\metabase\generate.js:202:16
      at C:\ProgramData\Titanium\plugins\hyperloop\1.2.8\node_modules\async\lib\async.js:181:20
      at replenish (C:\ProgramData\Titanium\plugins\hyperloop\1.2.8\node_modules\async\lib\async.js:319:21)
      at C:\ProgramData\Titanium\plugins\hyperloop\1.2.8\node_modules\async\lib\async.js:326:29
      at C:\ProgramData\Titanium\plugins\hyperloop\1.2.8\node_modules\async\lib\async.js:44:16
      at C:\ProgramData\Titanium\plugins\hyperloop\1.2.8\hooks\android\metabase\generate.js:219:5
      at C:\ProgramData\Titanium\mobilesdk\win32\5.5.1.GA\node_modules\graceful-fs\graceful-fs.js:43:10
      at FSReqWrap.oncomplete (fs.js:82:15)

      Reproduce:
      Create a sample alloy project with hyperloop enabled for android
      Insert play-services-base-9.8.0.aar and play-services-basement-9.8.0.aar from android sdk repository in app/platform/android

      Insert "var Api = require("com.google.android.gms.common.api.GoogleApiClient");" in index.js

      Build

      Additional info: "var ConnectionResult = require("com.google.android.gms.common.ConnectionResult");" for example throws no error

        Attachments

          Activity

            People

            • Assignee:
              jvennemann Jan Vennemann
              Reporter:
              pstueven pstueven
              Reviewer:
              Christopher Williams
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-10285
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code