Project: appceleratorstudio
Issue TISTUD-6308: MobileWeb: Analytics - wrong deploy type executing the packaged app
While testing mobile web analytics, I encountered the wrong deploy type in the console output. h5. To reproduce 1. Create the default 2 tab app 2. Change label text (e.g I am a Window2) to test:Ti.App.deployType 3. Package the app for MobileWeb 4. Run it on the device h5. Actual result 4. Label's text is "development" Analytics: {code} {"city":"San Francisco","region_code":"CA","country_code":"US","country_name":"United States","postal_code":"","latitude":37.774898529053,"longitude":-122.41940307617,"area_code":415,"continent_code":"NA","ip_address":"38.110.144.252","region_name":"California","id":"6A04AF7D-6C78-4C89-A9D3-F26CF9CACA0D","mid":"2BA27B22-254B-4AF0-94EC-1364EB50459F","rdu":null,"type":"ti.start","aguid":"dafd5792-d568-4e72-a809-dddaef152db6","event":"ti.start","seq":1,"ver":"2","deploytype":"development","sid":"1FEBE79A-921D-46DB-9749-5543EEC2278F","ts":"2014-04-08T17:18:17.028+0000","data":{"tz":420,"deploytype":"development","os":"mobileweb","osver":"Linux armv7l","version":"3.2.3","platform":"mobileweb","model":"Mozilla\/5.0 (Linux; Android 4.2.2; en-us; SAMSUNG-SGH-I337 Build\/JDQ39) AppleWebKit\/535.19 (KHTML, like Gecko) Version\/1.0 Chrome\/18.0.1025.308 Mobile Safari\/535.19","un":null,"app_version":"1.0","nettype":null}} {code} It is a Studio issue, as i ran the CLI command {code} ti build --platform mobileweb --deploy-type production {code} and it shows the correct deploy type in the device's browser. Here is the command from Studio log {code} Process: "/usr/local/bin/titanium" "--no-colors" "--no-progress-bars" "--no-prompt" "--no-banner" "build" "--platform" "mobileweb" "--sdk" "3.2.3.v20140403105720" "--build-type" "production" "--log-level" "trace" "--project-dir" "/Users/oromero/Documents/Appcelerator_Studio_Workspace2/testdeploy" "--skip-js-minify" {code} showing "--build-type"? instead of --deploy-type h5.Expected 4. Should be production
Story points: 5