This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // include our reusable component | |
| // | |
| var BeerRow = require('BeerRow'); | |
| // | |
| // create our rows | |
| // | |
| for (var i in beers) { | |
| var newRow = new BeerRow(beers[i]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var MyModule = {}; | |
| // auth info | |
| MyModule.somevariable = 'http://www.google.com/'; | |
| MyModule.someFunction = function(...) { | |
| ... | |
| } | |
| module.exports = MyModule; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <ios> | |
| <min-ios-ver>4.3</min-ios-ver> | |
| <plist> | |
| <dict> | |
| <key>UISupportedInterfaceOrientations</key> | |
| <array> | |
| <string>UIInterfaceOrientationPortrait</string> | |
| </array> | |
| <key>UISupportedInterfaceOrientations~ipad</key> | |
| <array> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| followMeSwtichCheckbox.eventOverride = false; | |
| followMeSwtichCheckbox.addEventListener('change', function(e) { | |
| if (!followMeSwtichCheckbox.eventOverride) { | |
| if (checkSOSactive() === false) { | |
| alert('SOS inactive.'); | |
| } else { | |
| followMeSwtichCheckbox.eventOverride = true; | |
| followMeSwtichCheckbox.value = !followMeSwtichCheckbox.value; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [INFO] : model: "SPH-M840" | |
| [INFO] : Android: {"osname":"android","bubbleParent":true,"batteryState":0,"name":"android","version":"4.1.2","netmask":"255.255.255.0","locale":"en-US","processorCount":1,"manufacturer":"samsung","username":"se.infra","batteryLevel":-1,"address":"192.168.12.128","model":"SPH-M840","runtime":"v8","architecture":"ARMv7 Processor rev 2 (v7l)","batteryMonitoring":false,"displayCaps":{"bubbleParent":true,"ydpi":211.6666717529297,"xdpi":217.7142791748047,"logicalDensityFactor":1.5,"density":"high","platformWidth":480,"dpi":240,"platformHeight":800,"apiName":"Ti.Platform.DisplayCaps"},"macaddress":"10:D5:42:EA:B9:BF","availableMemory":2428648,"apiName":"Ti.Platform.Android","ostype":"32bit","id":"32a36719e34a63d9","physicalSizeCategory":2} | |
| [INFO] : displayCaps: {"bubbleParent":true,"ydpi":211.6666717529297,"xdpi":217.7142791748047,"logicalDensityFactor":1.5,"density":"high","platformWidth":480,"dpi":240,"platformHeight":800,"apiName":"Ti.Platform.DisplayCaps"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (OS_ANDROID) { | |
| // Somehow, only in alloy.js we can get the data (URL) that opened the app | |
| Alloy.Globals.url = Ti.Android.currentActivity.intent.data; | |
| Ti.API.info('launch data: '+Ti.Android.currentActivity.intent.data); | |
| Ti.Android.currentActivity.addEventListener('newintent',function(e){ | |
| Ti.API.info('newintent ' + JSON.stringify(e.intent.data)); | |
| }); | |
| Ti.Android.currentActivity.onCreate = function(e){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * LinkedIn account authentfication library / module | |
| * by Miroslav Magda, blog.ejci.net, | |
| * | |
| * | |
| * Copyright 2012 Miroslav Magda | |
| * | |
| * All code is open source and dual licensed under GPL and MIT. Check the individual licenses for more information. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*! | |
| * Parse JavaScript SDK | |
| * Version: 1.3.4 | |
| * Built: Fri Jan 23 2015 12:45:28 | |
| * http://parse.com | |
| * | |
| * Copyright 2015 Parse, Inc. | |
| * The Parse JavaScript SDK is freely distributable under the MIT license. | |
| * | |
| * Includes: Underscore.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function main(args) { | |
| return new Promise( async (resolve, reject) => { | |
| console.log('current max is '+totalChars); | |
| var options = { | |
| uri: 'https://www.comicvine.com/api/characters', | |
| qs: { | |
| api_key: key, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo "$BUDDYBUILD_BRANCH branch, preparing for BugSnag..." | |
| echo "generating sourcemap" | |
| cd $BUDDYBUILD_WORKSPACE | |
| react-native bundle --platform ios --entry-file index.ios.js --dev false --bundle-output ./ios/main.jsbundle --sourcemap-output ./ios/main.jsbundle.map | |
| echo -e "\n[BugSnag] Uploading sourcemap\n" | |
| curl https://upload.bugsnag.com/ -F apiKey=$BUGSNAG_KEY -F appVersion=$APP_VER -F minifiedUrl="main.jsbundle" -F sourceMap=@$BUDDYBUILD_WORKSPACE/ios/main.jsbundle.map -F minifiedFile=@$BUDDYBUILD_WORKSPACE/ios/main.jsbundle -F overwrite=true -F /workspace/app/index.ios.js=@$BUDDYBUILD_WORKSPACE/index.ios.js | |
| echo -e "\n[BugSnag] Done uploading sourcemap\n" |