[MOD-2594] iOS: "ti.crypto" Example needs updating
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2020-06-15T12:03:53.000+0000 |
Affected Version/s | Release 9.0.0 |
Fix Version/s | n/a |
Components | Crypto |
Labels | 2020-Q2 |
Reporter | Samir Mohammed |
Assignee | Anil Shukla |
Created | 2020-04-07T09:15:25.000+0000 |
Updated | 2020-06-15T12:03:53.000+0000 |
Description
ti.crypto includesti.include
which has now been removed in titanium and replaced with .require
.
[ERROR] TiExceptionHandler: (main) [1540,1540] /app.js:23
[INFO] I/ti.crypto.app: Waiting for a blocking GC ProfileSaver
[ERROR] TiExceptionHandler: Ti.include('ui.js');
[ERROR] TiExceptionHandler: ^
[ERROR] TiExceptionHandler: TypeError: Ti.include is not a function
[ERROR] TiExceptionHandler: at /app.js:23:4
[ERROR] TiExceptionHandler: at Module._runScript (ti:/module.js:587:9)
[ERROR] TiExceptionHandler: at Module.load (ti:/module.js:106:7)
[ERROR] TiExceptionHandler: at Module.loadJavascriptText (ti:/module.js:436:9)
[ERROR] TiExceptionHandler: at Module.loadAsFile (ti:/module.js:488:15)
[ERROR] TiExceptionHandler: at Module.loadAsFileOrDirectory (ti:/module.js:410:20)
[ERROR] TiExceptionHandler: at Module.require (ti:/module.js:239:23)
*+Test Steps:+*
Download module from (https://github.com/appcelerator-modules/ti.crypto)
Build module
Copy the the code from the example
Paste the code into a Titanium application
Add module to app
Run Titanium application
*Expected result* Application should not crash and run without issues. *Actual result* Application throws above error *To be done:* Update the example code with fixes done in Android here... https://github.com/appcelerator-modules/ti.crypto/pull/13 After adding fixes done for Android module, iOS gives error which need to be fixed. [TRACE] [ERROR] Script Error { [TRACE] [ERROR] column = 8; [TRACE] [ERROR] line = 25; [TRACE] [ERROR] message = "Maximum call stack size exceeded."; [TRACE] [ERROR] sourceURL = "file:///Users/axwayroot/Library/Developer/CoreSimulator/Devices/30071698-1263-4D45-A7A3-1BD6F3CE40C8/data/Containers/Bundle/Application/99E17B7A-7D07-4C1F-8DA7-3F4C3EC1AD78/crypto.app/app.js"; [TRACE] [ERROR] stack = " at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code])"; [TRACE] [ERROR] toJSON = "Attachments
File | Date | Size |
---|---|---|
MOD-2594_android_log.txt | 2020-06-15T12:03:30.000+0000 | 85930 |
MOD-2594_ios_log.txt | 2020-06-15T12:03:33.000+0000 | 1810316 |