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

Hyperloop Android - Wrapper not generated for v4 class

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: Release 6.0.1
    • Fix Version/s: None
    • Component/s: Hyperloop
    • Environment:

      Hyperloop 2.0.0
      SDK 6.0.1.GA

    • Story Points:
      1
    • Sprint:
      2019 Sprint 16, 2019 Sprint 17, 2019 Sprint 18, 2019 Sprint 19, 2019 Sprint 20, 2019 Sprint 21, 2019 Sprint 22, 2019 Sprint 23, 2019 Sprint 24, 2019 Sprint 25

      Description

      How to reproduce:

      • Import the attached jars and aar to your hyperloop project, under the app/platform/android folder.
      • Add the following activity declaration in the tiapp.xml file:

        <manifest>
            <application android:theme="@style/MaterialTheme">
                <activity android:name="au.com.orangedigital.smileseeker.GameActivity" android:theme="@style/GameTheme" android:screenOrientation="nosensor" android:configChanges="screenSize|orientation|keyboardHidden"/>
            </application>
        </manifest>
        

      • Create a custom_theme.xml file under /app/platform/android/res/values. Put this in its content:

      <resources>
          <style name="GameTheme" parent="Theme.AppCompat.Light.NoActionBar">
              <!-- Customize your theme here. -->
              <item name="colorPrimary">#9adacc</item>
              <item name="colorPrimaryDark">#89beb6</item>
              <item name="colorAccent">#89beb6</item>
          </style>
      </resources>
      

      • Use the following code in any window:

        var GameActivity = require('au.com.orangedigital.smileseeker.GameActivity');
        var intent = Ti.Android.createIntent({
            className: 'au.com.orangedigital.smileseeker.GameActivity',
        });
                
        Ti.Android.currentActivity.startActivity(intent);
        

      • Build the project.
      • An exception will be thrown:

      Uncaught Error: Requested module not found: android.support.v4.app.BaseFragmentActivityHoneycomb
      

      The JS wrapper for this native class is not generated.
      My native class extends from AppCompatActivity, which extends from FragmentActivity, which extends from BaseFragmentActivityJB, which extends from BaseFragmentActivityHoneycomb. The last are abstract classes. I believe Hyperloop doesn't generate JS wrappers for that.

      I just want to launch my native activity without having to import all the support libraries with Hyperloop. Is there a way to achieve this without having to go through all this headache??

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rdperottoni Rodolfo Perottoni
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration