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
{ | |
"aps" : { | |
"alert" : { | |
"title" : "Test Title Message", | |
"body" : "Yunus TEK" | |
}, | |
"badge" : 1, | |
"sound": "default", | |
"mutable-content":1 |
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
{ | |
"aps" : { | |
"alert" : { | |
"title" : "Test Title Message", | |
"body" : "Yunus TEK" | |
}, | |
"badge" : 1, | |
"sound": "default" | |
} | |
} |
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 UserNotifications | |
class NotificationService: UNNotificationServiceExtension { | |
var contentHandler: ((UNNotificationContent) -> Void)? | |
var bestAttemptContent: UNMutableNotificationContent? | |
override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) { | |
self.contentHandler = contentHandler | |
bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent) |
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
// NSStringMask Mask Patern for Phone Number Format String | |
// - --- --- -- -- | |
(\d{1}) (\d{3}) (\d{3}) (\d{2}) (\d{2}) | |
// NSStringMask Mask Patern for Phone Number Format String | |
// - (---) --- -- -- | |
(\d{1}) \((\d{3})\) (\d{3}) (\d{2}) (\d{2}) |
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
Install Appium | |
1. brew install node | |
2. npm install | |
3. npm install -g appium | |
4. npm install -g appium-doctor | |
5. npm install wd | |
6. brew install libimobiledevice --HEAD | |
7. brew install ideviceinstaller | |
8. npm install -g ios-deploy | |
9. sudo gem install xcpretty |
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
EarlGrey.select(elementWithMatcher: grey_accessibilityID("Username")).perform(grey_typeText("<Text>")) |
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
EarlGrey.select(elementWithMatcher: grey_accessibilityID("Add")).perform(grey_tap()) |
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
EarlGrey.select(elementWithMatcher: grey_text("Welcome")) |
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
func testExample() { | |
EarlGrey.selectElement(with: grey_keyWindow()) | |
.assert(grey_sufficientlyVisible()) | |
} |
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 EarlGrey | |
class MyFirstEarlGreyTest: XCTestCase { | |
func testExample() { | |
// Test aksiyonlarınız burada olacak | |
} | |
} |