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
| func separateNumbers(s: String) -> Void { | |
| guard s.count > 1 else { | |
| print("NO") | |
| return | |
| } | |
| let s = Array(s) | |
| guard s.count > 2 else { | |
| let leftNum = s.first?.wholeNumberValue ?? 0 | |
| let rightNum = s.last?.wholeNumberValue ?? 0 |
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
| [ | |
| { | |
| "id": "Rd02Xfwdo", | |
| "name": "Weekly Deliverables", | |
| "description": "SAP", | |
| "approver": "Jack Nelson" | |
| }, | |
| { | |
| "id": "Yd05sfDdP", | |
| "name": "Monthly Deliverables", |
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
| <activity android:name="SettingsActivity" ... > | |
| <intent-filter> | |
| <action android:name="android.intent.action.MANAGE_NETWORK_USAGE" /> | |
| <category android:name="android.intent.category.DEFAULT" /> | |
| </intent-filter> | |
| </activity> |
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
| BUILD_APP_DIR=${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app | |
| if [ "$CONFIGURATION" == "Release" ]; then | |
| rm -Rf $BUILD_APP_DIR/Settings.bundle | |
| fi |
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
| let preferred = Service.preferredEnvironment() | |
| let url = Service.enviromentUrl(preferred) |
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
| enum Environment: String { | |
| case production | |
| case homologation | |
| case development | |
| case custom | |
| } | |
| static func preferredEnvironment() -> Environment { | |
| if let env = UserDefaults.standard.string(forKey: "environment") { | |
| return Environment(rawValue: env)! |