Skip to content

Instantly share code, notes, and snippets.

@rakhimoni
rakhimoni / app.js
Created December 28, 2017 06:50
Windows Issue
Hello,
Tested the sample project from here https://propelics.box.com/s/lnu754wgqdloxxifgrm5chvpmzjx70fq .
When I tried to run the project it shows lots of error.
Snapshot1:https://s9.postimg.org/wrnsq1la7/client1232334.png
Project Structure:https://s9.postimg.org/dumf1gfjj/client001.png
Inspite of these I proceed to run but the project falied to build.
@rakhimoni
rakhimoni / index.js
Created December 14, 2017 11:50
Windows: Commandbar Issue
function doClick(e) {
profile = Alloy.createController('profile');
}
var backButton = Ti.UI.Windows.createAppBarButton({
icon: Ti.UI.Windows.SystemIcon.BACK
});
likeButton = Ti.UI.Windows.createAppBarToggleButton({
icon: Ti.UI.Windows.SystemIcon.LIKEDISLIKE
Issue Summary: Its an windows command bar issue.
1.First time the customer provides a project to test . I ran the project and it says om.pmic.components is missing.
I said the customer to send required file. He added the widget.
Again I tested that and then there index file missing error.
[ERROR] : Alloy "app" directory has no "controllers\index.js" file at "C:\Users\APPs\Documents\Appcelerator_Studio_Workspace\testwwww\app\controllers\index.js".
[ERROR] : Alloy compiler failed
@rakhimoni
rakhimoni / results
Last active December 6, 2017 13:02
Test app SDK 6.1, 6.2, 6.3 and 7.0
Tested the sample project on ti SDK 6.1, 6.2, 6.3 and 7.0. Test results are as follows:
Test Environment:
Appcelerator Command-Line Interface, version 6.3.0
Mac OS X 10.13.1
Architecture 64bit
CPUs 4
Memory 8589934592
@rakhimoni
rakhimoni / app.js
Created December 4, 2017 12:17
app in android 7
sample code:
var win = Ti.UI.createWindow({
backgroundColor: 'pink',
});
@rakhimoni
rakhimoni / app.js
Last active November 21, 2017 10:47
Assigning variables to explicitly defined octal numbers
/**
Assigning variables to explicitly defined octal numbers (e.g. 0755) now results in a compilation error. 
This is a relatively minor fix (as we are only using octals in the barcode scanner).
**/
I have tested the issue using barcode module on android device.
The module is working as expected android 5.1 device but provides the following error when we press the button “SCAN CODE”
@rakhimoni
rakhimoni / app.js
Last active November 21, 2017 11:06
Changing view properties directly instead of calling applyProperties:
/**
Issue Description: Changing view properties directly instead of calling applyProperties
(e.g. someProperty = value instead of applyProperties({someProperty: value}) ) results in a crash on Android. 
**/
I have tested the issue and unable to reproduce the issue using SDK 6.3.0.GA with the sample code provided below.
Test Environment:
@rakhimoni
rakhimoni / app.js
Last active November 21, 2017 10:57
Titanium view usning Animation
/**
Issue Description: Ti.UI.createView returns a View without an animate function on iOS.
This is causing some abrupt UI changes to the user, but more worryingly is throwing a script error in the background,
which will eventually result in a crash.
**/
/////////////////////////////////
@rakhimoni
rakhimoni / Console Logs
Created November 8, 2017 05:38
OS_IOS assigned to a variable
[INFO] : Finished building the application in 16s 741ms
[INFO] : Launching iOS Simulator
[INFO] : ttttt/1.0 (6.2.2.42c7196)
[INFO] : ANIMATED true
@rakhimoni
rakhimoni / alloy.js
Last active November 1, 2017 08:33
iOS - functions declared in alloy.js are not globally visible
function test() {
Ti.API.info("Hello!");
}