明壁幕府忍法帳 > Aptana Index > Home > Titanium SDK > Titanium SDK Guide > Hyperloop > Hyperloop Sample Apps

2018.03.15 Ver.9 (2018.5.4)

Hyperloop Sample Apps

Introduction

There are many Hyperloop open source projects on Github already. Make sure to check the following sample apps to get started with native app-development and Hyperloop.

Cross-platform example app

Our cross-platform example app can be found in this Github repo: https://github.com/appcelerator/hyperloop-examples

  • A large sample app that demonstrates native APIs for all three platforms (iOS, Android & Windows), including CocoaPods and Android .aar packages
  • Examples for the UICollectionView, Beacons, Android Bottom Navigation View, native Android XML layouts, iOS storyboards, XIB's, and so on.

Requirements

  • Titanium 7.0.0+
  • Alloy 1.10.0+

Running this app

BEFORE attempting to run this application, ensure that you have downloaded and followed the instructions from the appropriate guide below. There are specific prerequisites that must be first met before this application will run properly.

This sample application only runs on the simulator because it uses a demo application GUID. If you would like to run this application on device, you need to import the application into your own platform account using appc new ---import.

Hyperloop examples organization on Github

We have an organization on Github hosting a number of Hyperloop "modules". These are good examples of wrapping native APIs in Javascript and showcase how you can use Hyperloop to provide APIs that previously would have required writing native modules (in Objective-C, C#, or C++).

Github repo: https://github.com/hyperloop-modules

Here are a few of them, but be sure to check out the organization on Github for the latest and full listing.

There are more samples in development right now, so stay tuned and ensure to get in touch with the community on TiSlack in the #hyperloop channel!

3 コメント

  1. The following application demonstrates using Hyperloop for direct native API access.

    After this line, should be a link to the hyperloop-examples url. Examples Application

    And I'm thinking if the examples application should just be on the homepage of labs.

    http://labs.appcelerator.com

    thoughts? Bert Grantges

    1. I rewrote that opening sentence to just be a summary of the page's contents.

  2. This sample application only runs on the simulator because it uses a demo application GUID.

    Remove that and mention the platform-requirement only.

    If you’d like to use Hyperloop in a new or existing Titanium project, you will need to install the Hyperloop module and plugin. You can download the distribution (the distribution includes support for both Android and iOS) from https://s3-us-west-2.amazonaws.com/appc-labsserver/downloads/hyperloop-1.0.1b.zip.

    That file is outdated and should not be linked. People should receive Hyperloop using the platform-integration in Studio only.

    <run-on-main-thread>true</run-on-main-thread>

    This flag has been replaced with <property name="run-on-main-thread" type="bool">true</property> in 5.4.0 and later.