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
//SOURCE: https://developers.google.com/maps/documentation/ios-sdk/urlscheme | |
func startNavigation(dropLocation: CLLocation, startLocation: CLLocation?) { | |
let dCoordinate = dropLocation.coordinate | |
let dLatitude = dCoordinate.latitude | |
let dLogitude = dCoordinate.longitude | |
let baseURL = "comgooglemaps-x-callback://" | |
var navigationURL: String? |
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
react-native bundle --entry-file index.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios |
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
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ | |
cd android && ./gradlew assembleDebug |
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
watchman watch-del-all | |
rm -rf node_modules && npm install | |
rm -rf $TMPDIR/react-* | |
rm -rf $TMPDIR/haste-map-react-native-packager-* | |
react-native link |
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
rm node_modules/react-native/local-cli/core/__fixtures__/files/package.json |
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
#---------------------------------------------------------------- | |
# PREVENT YOUR CODEBASE GETTING SPOILED BY DEVELOPERS | |
# - YOU NEED TO THIS pre-commit file (without any extension) | |
# at ".git/hooks/" folder. | |
# - THEN TRY TO PUT WRONG STYLED/LINT CODE | |
#---------------------------------------------------------------- | |
branch="$(git rev-parse --abbrev-ref HEAD)" | |
#---------------------------------------------------------------- |
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
branch="$(git rev-parse --abbrev-ref HEAD)" | |
#---------------------------------------------------------------- | |
# RESTRICT BRANCHES FROM DIRECT PUSH | |
#---------------------------------------------------------------- | |
if [ "$branch" = "master" ] || [ "$branch" = "release" ]; then | |
echo "You can't commit directly to $branch" | |
exit 1 | |
fi |
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
import UIKit | |
/// CREDIT: https://stackoverflow.com/a/40957338/2666902 | |
/// GradientView is an IBDesignable Class. It will help you to put two gradient in a View | |
/// Even you can set whether the gradient will be put horizontally or vertically. | |
/// Instructions to use: | |
/// 1. set Class Name of the UIView to `GradientView` in storyboard (identity inspector) | |
/// 2. set specific colors/properties in attribute inspector |
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
default_platform :ios | |
platform :ios do | |
desc "Submit a new Beta Build to Hockey App" | |
lane :beta do | |
if !is_ci? | |
changelog = prompt(text: "Please enter what's changed in one sentenence: ") | |
end |
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
let navigationController: UINavigationController | |
private static let storyboardName: String = <#Module Storyboard Name#> | |
private let httpService: <#HTTP Service Type#> | |
private let storyBoard = UIStoryboard(name: storyboardName, bundle: nil) | |
lazy var rootViewController: <#View Controller#> = { | |
if let lvc = self.storyBoard.instantiateViewController( | |
withIdentifier: <#View Controller#>.className | |
) as? <#View Controller#> { |
OlderNewer