appcelerator/titanium_mobile — pull request #5675 by srahim (2014-05-12 22:22:53+00:00)
Title: [TIMOB-16914]Implementing BuildType for iOS

__Testing instruction.__

Pull down the changes from this PR.
Scons the SDK.
Place the following lines inside
```
KrollBridege.m (around line 71:)
[APSAnalytics setDebug:YES];
[APSAnalytics setSessionTimeout:2];
```

This is to enable debugging and make it easier for testing.

Through cli create any app using the newly build SDK.

build it for device using the following command. :
```
ti build -p ios -T device --build-type something -C deviceID
```

Install on device and start app.
Check console log for analytics output in enroll or foreground event
look for `buildtype` variable in the payload

Sample Payload

```
{
"mid":"A5878AB7-7000-42F1-84F4-96F2C6DD668D",
"id":"7058BE88-1C32-4A9E-BB4C-2F6CCEDE81D5",
"ts":"2014-05-12T22:07:39.789+0000",
"data":{
"ostype":"32bit",
"app_id":"com.appcelerator.buildTYpe",
"oscpu":2,
"buildtype":"testing",
"tz":-420,
"platform":"iphone",
"nettype":"WIFI",
"os":"iphone",
"app_name":"testingAnalyticsChanges",
"sdkver":"ti.3.3.0",
"osarch":"arm64",
"deploytype":"test",
"model":"iPhone6,1",
"app_version":"1.0.0.1399932439159",
"osver":"7.1"
},
"ver":"3",
"sid":"40986273-0358-4D29-BFB6-7668BF3A1EB4",
"event":"ti.foreground",
"aguid":"8936393f-748f-4e85-bac6-97e2ae77e1fb",
"seq":1
}
```