This file contains 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
xcodebuild -exportArchive -archivePath <PATH_TO_MY.xcarchive> -exportPath <PATH_TO_EXPORTED_IPA> -exportFormat ipa -exportProvisioningProfile "<PROFILE_NAME>" |
This file contains 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
# start app uninstall intent on device | |
adb shell am start -a android.intent.action.DELETE -d package:<PACKAGENAME> | |
# uninstall app instantly from device per cli | |
adb uninstall <PACKAGENAME> |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<color name="actionbar_opaque">#66000000</color> | |
<color name="statusBar">#9C9C9C</color> | |
<color name="primaryDark">#9C9C9C</color> | |
<color name="primary">#b2b2b2</color> | |
<color name="activated">#ef0000</color> | |
<color name="textPrimary">#ffffff</color> |
This file contains 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
adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > ~/Downloads/adb.screenshot.png |
This file contains 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
// map: an instance of GMap3 | |
// latlng: an array of instances of GLatLng | |
var mapBounds = new google.maps.LatLngBounds(); | |
latlng.each(function(n) { | |
mapBounds.extend(n); | |
return; | |
}); |
This file contains 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
<style name="MyTheme" parent="Theme.AppCompat.Light"> | |
<item name="actionBarTheme">@style/MyApp.ActionBarTheme</item> | |
<!-- color for widget theming, eg EditText. Doesn't effect ActionBar. --> | |
<item name="colorControlNormal">@color/MY_AWESOME_COLOR</item> | |
</style> | |
<style name="MyApp.ActionBarTheme" parent="@style/ThemeOverlay.AppCompat.ActionBar"> |
This file contains 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
Q: Why lock at the Android Activity level, isn’t adding the Alloy style enough? | |
A: Unfortunately no. The Alloy style is applied after the window is created. So | |
if the device is held in a landscape orientation you will see the window open and | |
turn. Locking at the Android Activity level stops this behavior. | |
Q: Does this mean all of my Ti.UI.Window object will be locked in portrait? | |
A: Yes, this locks both at the Android Activity and Titanium object levels. | |
Q: Can I later change the orientation by updating my Ti.UI.Window orientation? | |
A: No, orientation is locked at the Android Activity level as well. |
This file contains 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
xcrun simctl erase all |
This file contains 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
xcrun simctl uninstall booted <BUNDLE_IDENTIFIER> |
OlderNewer