Coder Social home page Coder Social logo

tidev / hyperloop.next Goto Github PK

View Code? Open in Web Editor NEW
7.0 17.0 4.0 12.1 MB

Hyperloop Next version (we forgot the version number at this point)

License: Other

JavaScript 30.33% Java 8.60% Shell 0.56% Objective-C 13.43% Swift 0.02% C 19.24% C++ 24.60% Objective-C++ 0.48% EJS 2.75%
javascript native titanium hyperloop ios sdk android tidev

hyperloop.next's People

Contributors

ashcoding avatar caspahouzer avatar cb1kenobi avatar cheekiatng avatar dependabot[bot] avatar ewanharris avatar fokkezb avatar garymathews avatar hansemannn avatar infosia avatar janvennemann avatar jhaynie avatar jquick-axway avatar lokeshchdhry avatar m1ga avatar pec1985 avatar sgtcoolguy avatar ssjsamir avatar vijaysingh-axway avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hyperloop.next's Issues

master and 1_2_X are not odd with each other

After branching 1_2_X, we merged some PR's that have not been backported. We need to clean that up to not loose track of certain PR's. As both repos should still be 1.2.X, I would rebase 1_2_X with master now and keep track of all backports after #48 is merged. @cheekiatng fyi

should /tools/build.sh modify /android/build.properties ? It currently does not.

./build.sh fails. One trivial change that probably should be made is in /android/build.properties
the first line reads
titanium.platform=${user.home}/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.v20151116164440/android

It should probably use 5.2.0.GA instead.

On to the bigger point. After /tools/build.sh is ran, it does not line up with /android/build.properties.
Either there needs to be documentation in the README to modify build.properties, or ./tools/build.sh should modify the build.properties.

Otherwise you run into the following issue:

    [mkdir] Created dir: /var/folders/sk/vh0m10155lb3j7rt0_6vxdh00000gn/T/andrewmcelroy/hyperloop-android-generated
     [copy] Copying 75 files to /var/folders/sk/vh0m10155lb3j7rt0_6vxdh00000gn/T/andrewmcelroy/hyperloop-android-generated

BUILD FAILED
/Users/andrewmcelroy/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.GA/module/android/build.xml:348: The following error occurred while executing this line:
/Users/andrewmcelroy/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.GA/module/android/build.xml:303: Execute failed: java.io.IOException: Cannot run program "/Users/andrewmcelroy/Library/android-ndk-r10e/ndk-build" (in directory "/var/folders/sk/vh0m10155lb3j7rt0_6vxdh00000gn/T/andrewmcelroy/hyperloop-android-generated"): error=2, No such file or directory
    at java.lang.ProcessBuilder.processException(ProcessBuilder.java:478)

/Users/andrewmcelroy/Library/android-ndk-r10e does not exist.

For now, I can just modify but not commit the build.properties, but we might want to make a note of this.

Publish to NPM?

Is this a new repository for https://www.npmjs.com/package/hyperloop ? If so, why hasn't it been updated since v0.1.3 in 2014?

I have no idea how to install hyperloop updates, unless I'm not supposed to be able to.

EDIT: I think I understand now that I can download a release and place it in the global Titanium modules folder, though I found that I already have the latest installed. I just needed to change the hyperloop version in my tiapp.xml file:

<module version="7.0.4">hyperloop</module>

Still not sure why this is published on npm but not updated with the latest releases.

Can't use hyperloop for Titanium Windows

Using hyperloop for Titanium Windows fails with following error even when we have modules entry in tiapp.xml.

  • Titanium Windows
  • Titanium CLI 5.0.9
  • Titanium SDK 6.0.1.
> appc ti build -p windows --target wp-device -l trace
    [ERROR] :  Hyperloop is currently configured but the module has not be installed.
    [ERROR] :  Add the following to your tiapp.xml:
    [ERROR] :  
    [ERROR] :      <modules>
    [ERROR] :          <module platform="windows">hyperloop</module>
    [ERROR] :      </modules>

Xcode 15: cannot figure out objc return result

Issue for some Slack users:

Hyperloop, Xcode 15 (Beta 8 was working)

Error: cannot figure out objc return result
    at Object.getObjCReturnResult (/Users/user/Library/Application Support/Titanium/modules/iphone/hyperloop/7.0.5/hooks/generate/util.js:626:8)
    at /Users/user/Library/Application Support/Titanium/modules/iphone/hyperloop/7.0.5/hooks/generate/block.js:113:31
    at Array.forEach (<anonymous>)
    at Object.generateBlockWrapper (/Users/BatMan/Library/Application Support/Titanium/modules/iphone/hyperloop/7.0.5/hooks/generate/block.js:109:19)
    at /Users/user/Library/Application Support/Titanium/modules/iphone/hyperloop/7.0.5/hooks/generate/index.js:290:39
    at Array.forEach (<anonymous>)
    at /Users/user/Library/Application Support/Titanium/modules/iphone/hyperloop/7.0.5/hooks/generate/index.js:289:18
    at Array.forEach (<anonymous>)
    at /Users/user/Library/Application Support/Titanium/modules/iphone/hyperloop/7.0.5/hooks/generate/index.js:282:43
    at /Users/user/Library/Application Support/Titanium/modules/iphone/hyperloop/7.0.5/hooks/node_modules/async/dist/async.js:473:16

Place is:

throw new Error("cannot figure out objc return result");

return value:

{
  encoding: '{?=qiIq}',
  name: 'actualTime',
  type: 'record',
  value: 'CMTime'
}

Issue with native UIView

The following code draws some shapes using Hyperloop and add them to a view. If I add and remove the shapes a couple of times, the app suddenly crashes. I do not see any error on the console.

Tested with both simulator and physical iPad with iOS 15.
Ti SDK 10.1.0.GA

import {
    UIView,
    UIColor,
    UIBezierPath,
} from 'UIKit';

import {
    CoreGraphics
} from 'CoreGraphics';

import {
    CAShapeLayer
} from 'QuartzCore';

function createView() {
    const SIZE = 50;

    var bezier = UIBezierPath.alloc().init();
    bezier.moveToPoint(CoreGraphics.CGPointMake(Math.round(SIZE / 2), 0));
    bezier.addLineToPoint(CoreGraphics.CGPointMake(0, SIZE));
    bezier.addLineToPoint(CoreGraphics.CGPointMake(SIZE, SIZE));
    bezier.closePath();

    var shape = CAShapeLayer.layer();
    shape.fillColor = UIColor.redColor.CGColor;
    shape.path = bezier.CGPath;

    var view = Ti.UI.createView({width: SIZE, height: SIZE, left: 20, top: 20})
    var nativeView = UIView.cast(view);
    nativeView.layer.addSublayer(shape);

    return view;
}

var win = Ti.UI.createWindow();

var addButton = Ti.UI.createButton({top: 50, left: 100, title: 'Add'});
win.add(addButton);

var removeButton = Ti.UI.createButton({top: 50, right: 100, title: 'Remove'});
win.add(removeButton);

var container = Ti.UI.createView({
    top: 100, bottom: 0, width: Ti.UI.FILL,
    backgroundColor: 'green', layout: 'horizontal',
});
win.add(container);

addButton.addEventListener('click', function() {
    for (var i=0; i < 100; i++) {
        container.add(createView());
    }
});

removeButton.addEventListener('click', function() {
    container.removeAllChildren();
});

win.open();

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.