-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Titaniumifier –– library for Titanium #2
Comments
Hi Rainer, |
Now I have rebuilt with repo from juni. https://github.com/AppWerft/TiBaqend |
Hi, just type |
I have installed all depencies by npm. But I have still not tested in a Am 29/11/15 um 14:18 schrieb Florian Bücklers:
Dipl.-Ing. Rainer Schleevoigt
22303 Hamburg |
Its true that the newer version is a little bit larger, but the main reason of the very large size is, that the titaniumfier shims the entiered node 0.10 enviroment which we do not need at all. browserify have a option to prevent this, but i do not know how you can prevent this in titaniumfier. |
Yes I know, it is possible the useless parts. Now comes: [ERROR] : TiExceptionHandler: (main) [1573,1573] ----- Titanium I think I need an other method to do this. Am 29/11/15 um 14:25 schrieb Florian Bücklers:
Dipl.-Ing. Rainer Schleevoigt
22303 Hamburg |
Hm, i'am not sure why this error raise. Our sdk runs also in ie9 and ie10 and in safari as well... |
It seams that packaging is not really required anymore for Appcelerator. Look at the documentation of the common Module usage of Appcelerator: https://wiki.appcelerator.org/display/guides2/CommonJS+Modules+in+Titanium |
In most cases nodeJS uses native components like net or http. In your I will see. Am 29/11/15 um 15:35 schrieb Florian Bücklers:
Dipl.-Ing. Rainer Schleevoigt
22303 Hamburg |
The issue is happening in node-uuid. You are using getRandomValues(). Cheers! Am 29/11/15 um 15:35 schrieb Florian Bücklers:
Dipl.-Ing. Rainer Schleevoigt
22303 Hamburg |
My plan: replace lib/util/index.js:exports.uuid = require('node-uuid').v4; with require('tit-uuid'). In this (my) module I'am using a native functioj to get the deviceID. Do you see more problems with Titanium? Am 29/11/15 um 15:35 schrieb Florian Bücklers:
Dipl.-Ing. Rainer Schleevoigt
22303 Hamburg |
Maybe you will be fine with that, we will see. The SDK itself has not many external dependencies. |
Currently I substitude in lib/util/index.js Am 29/11/15 um 16:56 schrieb Florian Bücklers:
Dipl.-Ing. Rainer Schleevoigt
22303 Hamburg |
Hi Florian: var DB = require('tibaqend'); ready don't come in … How can I debug why? Am 29/11/15 um 16:56 schrieb Florian Bücklers:
Dipl.-Ing. Rainer Schleevoigt
22303 Hamburg |
You can use a second callback or the promise style notation to catch all errors.
|
Am 29/11/15 um 17:31 schrieb Florian Bücklers:
I see a little probelm: On iOS we have no methode Dipl.-Ing. Rainer Schleevoigt
22303 Hamburg |
this runs awesome: exports.uuid = Ti.Platform.createUUID(); Am 29/11/15 um 17:31 schrieb Florian Bücklers:
Dipl.-Ing. Rainer Schleevoigt
22303 Hamburg |
Thanks for your hint with the catch node: ERROR: {"message":"Handling the Response for GET /schema: But in onload node on xhr I see: [INFO] : Am 29/11/15 um 17:31 schrieb Florian Bücklers:
Dipl.-Ing. Rainer Schleevoigt
22303 Hamburg |
It seems that the status code is not returned correctly. It will be checked before the response is parsed and handled |
And to work around the getAllResponseHeaders you can use the xhr logic:
|
Hi Florian the DB connect answers with 200 and [INFO] : { headers: {}, The catch node shows: [ERROR] : {"message":"Handling the Response for GET /schema: I think the problem is the transport of response to caller. How do you Am 29/11/15 um 18:34 schrieb Florian Bücklers:
Dipl.-Ing. Rainer Schleevoigt
22303 Hamburg |
Renaming statusCode to status should do the trick ;-) |
Your are incredible awesome. [INFO] : { source:
Dipl.-Ing. Rainer Schleevoigt
22303 Hamburg |
Is there still an issue? If you are not logged in this error is expected and the sdk should be ready. |
I have to register a user -- stupide question? OK, next week I will implement websockets. Am 29/11/15 um 22:08 schrieb Florian Bücklers:
Dipl.-Ing. Rainer Schleevoigt
22303 Hamburg |
No, you can just ignore the error, if you don’t need authentication. |
Hi,
I tried to build ti.Module by titaniumifier and cloned this branch to my machine.
In the root I started:
and got:
Its right there is no jahcode in the repo. How can I fix it?
The text was updated successfully, but these errors were encountered: