Coder Social home page Coder Social logo

Support for SDK 8.x? about titaniumifier HOT 5 OPEN

smclab avatar smclab commented on May 18, 2024
Support for SDK 8.x?

from titaniumifier.

Comments (5)

yuchi avatar yuchi commented on May 18, 2024 1

@Robbe92 can you please a look at this? (@chmiiller sorry for the delay)

from titaniumifier.

chmiiller avatar chmiiller commented on May 18, 2024 1

No problems, thanks for having a look at this.
We made some progress and it appears that loading modules from a function scope is the problem on Android and something in Titanium 8.x has changed with how modules are scoped and what kind of objects they can reference.

Here is what a colleague of mine found out so far:

Doing something like:

(function(bla) {
var tiws = require('net.iamyellow.tiws');
}());

Leads to problems on Android, when loading native Titanium modules.
This is really weird, because in Node.js loading modules from function scopes work fine,
as well as on iOS/Titanium.

I have managed to fix that problem by manually editing the ti-simple-xmpp.js file, take that require() statement line from the
function scope, and moving it to the top of the file, effectively putting it in the global scope.
With this modified version, the app starts properly and no longer crashes on startup.

It might be something to start with ¯_(ツ)_/¯

from titaniumifier.

Robbe92 avatar Robbe92 commented on May 18, 2024

Thanks Carlos,
very interesting bug and solution!
Did you open issue to axway?

from titaniumifier.

chmiiller avatar chmiiller commented on May 18, 2024

It is still not working, and I'm not sure if this is something that Axway can help me with but I've sent it all to an Axway developer, let's see if he has something to add to it later

from titaniumifier.

chmiiller avatar chmiiller commented on May 18, 2024

Update: Jan from Axway found out that the code from Titaniumifier produces require() with a second argument, true, which is causing the problem somehow. Here is what he's found so far:
https://jira.appcelerator.org/browse/TIMOB-27633

from titaniumifier.

Related Issues (20)

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.