From 1ccc79c6f2e279184d9b54e928d4353491edff00 Mon Sep 17 00:00:00 2001
From: SkOODaT <8633932+SkOODaT@users.noreply.github.com>
Date: Wed, 5 Feb 2020 14:57:48 -0500
Subject: [PATCH 1/6] Add Device Names
---
RealDeviceMap-UIControl/DeviceConfig/DeviceIPhoneNormal.swift | 1 +
RealDeviceMap-UIControl/DeviceConfig/DeviceRatio1775.swift | 1 +
2 files changed, 2 insertions(+)
diff --git a/RealDeviceMap-UIControl/DeviceConfig/DeviceIPhoneNormal.swift b/RealDeviceMap-UIControl/DeviceConfig/DeviceIPhoneNormal.swift
index c3c81431..ea2ed921 100644
--- a/RealDeviceMap-UIControl/DeviceConfig/DeviceIPhoneNormal.swift
+++ b/RealDeviceMap-UIControl/DeviceConfig/DeviceIPhoneNormal.swift
@@ -4,6 +4,7 @@
//
// Created by Florian Kostenzer on 19.11.18.
//
+// IPHONE 6/6S/7/8
import Foundation
diff --git a/RealDeviceMap-UIControl/DeviceConfig/DeviceRatio1775.swift b/RealDeviceMap-UIControl/DeviceConfig/DeviceRatio1775.swift
index c05c5f8d..e2a790c5 100644
--- a/RealDeviceMap-UIControl/DeviceConfig/DeviceRatio1775.swift
+++ b/RealDeviceMap-UIControl/DeviceConfig/DeviceRatio1775.swift
@@ -4,6 +4,7 @@
//
// Created by Florian Kostenzer on 18.11.18.
//
+// IPHONE 5S/SE
import Foundation
import XCTest
From c11b7680b962cb0440d9566bd5e8c81531d6dee5 Mon Sep 17 00:00:00 2001
From: SkOODaT <8633932+SkOODaT@users.noreply.github.com>
Date: Wed, 5 Feb 2020 21:14:40 -0500
Subject: [PATCH 2/6] Added Nearby Tracker Tap/Check
---
.../RDMUICManager/BuildController.swift | 11 ++-
Manager/Sources/RDMUICManager/CLI.swift | 17 +++++
Manager/Sources/RDMUICManager/Device.swift | 14 +++-
.../RealDeviceMap-UIControl.xcscheme | 5 ++
RealDeviceMap-UIControl/Config.swift | 2 +
.../DeviceConfig/DeviceConfigProtocol.swift | 4 ++
.../DeviceConfig/DeviceIPhoneNormal.swift | 6 ++
.../DeviceConfig/DeviceRatio1333.swift | 6 ++
.../DeviceConfig/DeviceRatio1775.swift | 6 ++
RealDeviceMap-UIControl/Misc.swift | 13 ++++
.../RealDeviceMap_UIControlUITests.swift | 67 ++++++++++++++++++-
11 files changed, 145 insertions(+), 6 deletions(-)
diff --git a/Manager/Sources/RDMUICManager/BuildController.swift b/Manager/Sources/RDMUICManager/BuildController.swift
index 29221f36..570f0b46 100644
--- a/Manager/Sources/RDMUICManager/BuildController.swift
+++ b/Manager/Sources/RDMUICManager/BuildController.swift
@@ -197,7 +197,7 @@ class BuildController {
"startupLocationLon=\(device.startupLocationLon)", "encounterMaxWait=\(device.encounterMaxWait)",
"encounterDelay=\(device.encounterDelay)", "fastIV=\(device.fastIV)", "ultraIV=\(device.ultraIV)",
"deployEggs=\(device.deployEggs)", "token=\(device.token)", "ultraQuests=\(device.ultraQuests)",
- "attachScreenshots=\(device.attachScreenshots)"
+ "attachScreenshots=\(device.attachScreenshots)", "nearbyTracker=\(device.nearbyTracker)"
)
var contains = true
@@ -274,6 +274,15 @@ class BuildController {
if string!.contains(string: "[STATUS] IV") {
self.setStatus(uuid: device.uuid, status: "Running: IV")
}
+ if string!.contains(string: "[STATUS] NTM Pokemon") {
+ self.setStatus(uuid: device.uuid, status: "Running: NTM Pokemon")
+ }
+ if string!.contains(string: "[STATUS] NTM Raid") {
+ self.setStatus(uuid: device.uuid, status: "Running: NTM Raid")
+ }
+ if string!.contains(string: "[STATUS] NTM IV") {
+ self.setStatus(uuid: device.uuid, status: "Running: NTM IV")
+ }
fullLog.uic(message: string!, all: true)
debugLog.uic(message: string!, all: false)
diff --git a/Manager/Sources/RDMUICManager/CLI.swift b/Manager/Sources/RDMUICManager/CLI.swift
index cecf2698..99ab6ad3 100644
--- a/Manager/Sources/RDMUICManager/CLI.swift
+++ b/Manager/Sources/RDMUICManager/CLI.swift
@@ -168,6 +168,7 @@ class CLI {
Ultra Quests: \(device.ultraQuests.toBool())
Enabled: \(device.enabled.toBool())
AttachScreenshots: \(device.attachScreenshots.toBool())
+ Nearby Tracker: \(device.nearbyTracker.toBool())
"""
print(row + "\n")
@@ -317,6 +318,11 @@ class CLI {
defaultDevice.attachScreenshots = attachScreenshots!.toInt()
}
+ let nearbyTracker = askBool("Nearby Tracker (empty = \(defaultDevice.nearbyTracker.toBool()))")
+ if nearbyTracker != nil {
+ defaultDevice.nearbyTracker = nearbyTracker!.toInt()
+ }
+
do {
try defaultDevice.save()
clear()
@@ -473,6 +479,11 @@ class CLI {
attachScreenshots = defaultDevice.attachScreenshots
}
+ var nearbyTracker = askBool("Nearby Tracker (empty = \(defaultDevice.nearbyTracker.toBool()))")?.toInt()
+ if nearbyTracker == nil {
+ nearbyTracker = defaultDevice.nearbyTracker
+ }
+
device.uuid = uuid
device.name = name
device.backendURL = backendURL
@@ -502,6 +513,7 @@ class CLI {
device.ultraQuests = ultraQuests!
device.enabled = enabled!
device.attachScreenshots = attachScreenshots!
+ device.nearbyTracker = nearbyTracker!
do {
try device.create()
@@ -674,6 +686,11 @@ class CLI {
device.attachScreenshots = attachScreenshots!.toInt()
}
+ let nearbyTracker = askBool("Nearby Tracker (empty = \(device.nearbyTracker.toBool()))")
+ if nearbyTracker != nil {
+ device.nearbyTracker = nearbyTracker!.toInt()
+ }
+
do {
try device.save()
clear()
diff --git a/Manager/Sources/RDMUICManager/Device.swift b/Manager/Sources/RDMUICManager/Device.swift
index b3b3cd22..5c86f266 100644
--- a/Manager/Sources/RDMUICManager/Device.swift
+++ b/Manager/Sources/RDMUICManager/Device.swift
@@ -53,6 +53,7 @@ class Device: SQLiteStORM, Equatable, Hashable {
var ultraQuests: Int
var enabled: Int
var attachScreenshots: Int
+ var nearbyTracker: Int
override init() {
self.uuid = ""
@@ -84,6 +85,7 @@ class Device: SQLiteStORM, Equatable, Hashable {
self.ultraQuests = 0
self.enabled = 1
self.attachScreenshots = 0
+ self.nearbyTracker = 0
super.init()
}
@@ -92,7 +94,7 @@ class Device: SQLiteStORM, Equatable, Hashable {
targetMaxDistance: Double, itemFullCount: Int, questFullCount: Int, itemsPerStop: Int, minDelayLogout: Double,
maxNoQuestCount: Int, maxFailedCount: Int, maxEmptyGMO: Int, startupLocationLat: Double,
startupLocationLon: Double, encounterMaxWait: Int, encounterDelay: Double, fastIV: Int, ultraIV: Int,
- deployEggs: Int, token: String, ultraQuests: Int, enabled: Int, attachScreenshots: Int) {
+ deployEggs: Int, token: String, ultraQuests: Int, enabled: Int, attachScreenshots: Int, nearbyTracker: Int) {
self.uuid = uuid
self.name = name
self.backendURL = backendURL
@@ -122,6 +124,7 @@ class Device: SQLiteStORM, Equatable, Hashable {
self.ultraQuests = ultraQuests
self.enabled = enabled
self.attachScreenshots = attachScreenshots
+ self.nearbyTracker = nearbyTracker
super.init()
}
@@ -156,9 +159,10 @@ class Device: SQLiteStORM, Equatable, Hashable {
ultraIV = this.data["ultraIV"] as? Int ?? 0
deployEggs = this.data["deployEggs"] as? Int ?? 0
token = this.data["token"] as? String ?? ""
- ultraQuests = this.data["ultraQuests"] as? Int ?? 0
+ ultraQuests = this.data["ultraQuests"] as? Int ?? 0
enabled = this.data["enabled"] as? Int ?? 1
attachScreenshots = this.data["attachScreenshots"] as? Int ?? 0
+ nearbyTracker = this.data["nearbyTracker"] as? Int ?? 0
}
static func getAll() -> [Device] {
@@ -213,6 +217,7 @@ class Device: SQLiteStORM, Equatable, Hashable {
var hasUltraQuests = false
var hasEnabled = false
var hasAttachScreenshots = false
+ var hasNearbyTracker = false
let rows = try sqlRows("PRAGMA table_info(\(table()))", params: [String]())
for row in rows {
@@ -235,6 +240,8 @@ class Device: SQLiteStORM, Equatable, Hashable {
hasEnabled = true
} else if name == "attachScreenshots" {
hasAttachScreenshots = true
+ } else if name == "nearbyTracker" {
+ hasNearbyTracker = true
}
}
@@ -265,6 +272,9 @@ class Device: SQLiteStORM, Equatable, Hashable {
if !hasAttachScreenshots {
try sqlExec("ALTER TABLE \(table()) ADD COLUMN attachScreenshots INTEGER DEFAULT 0")
}
+ if !hasNearbyTracker {
+ try sqlExec("ALTER TABLE \(table()) ADD COLUMN nearbyTracker INTEGER DEFAULT 0")
+ }
}
}
diff --git a/RealDeviceMap-UIControl.xcodeproj/xcshareddata/xcschemes/RealDeviceMap-UIControl.xcscheme b/RealDeviceMap-UIControl.xcodeproj/xcshareddata/xcschemes/RealDeviceMap-UIControl.xcscheme
index 6158c29b..e31150ae 100644
--- a/RealDeviceMap-UIControl.xcodeproj/xcshareddata/xcschemes/RealDeviceMap-UIControl.xcscheme
+++ b/RealDeviceMap-UIControl.xcodeproj/xcshareddata/xcschemes/RealDeviceMap-UIControl.xcscheme
@@ -208,6 +208,11 @@
value = "$(attachScreenshots)"
isEnabled = "YES">
+
+
diff --git a/RealDeviceMap-UIControl/Config.swift b/RealDeviceMap-UIControl/Config.swift
index 7982e5a9..ae2baf8f 100644
--- a/RealDeviceMap-UIControl/Config.swift
+++ b/RealDeviceMap-UIControl/Config.swift
@@ -39,6 +39,7 @@ class Config {
var ultraQuests: Bool
var enabled: Bool
var attachScreenshots: Bool
+ var nearbyTracker: Bool
init() {
@@ -74,6 +75,7 @@ class Config {
ultraQuests = enviroment["ultraQuests"]?.toBool() ?? false
enabled = enviroment["enabled"]?.toBool() ?? true
attachScreenshots = enviroment["attachScreenshots"]?.toBool() ?? false
+ nearbyTracker = enviroment["nearbyTracker"]?.toBool() ?? false
}
}
diff --git a/RealDeviceMap-UIControl/DeviceConfig/DeviceConfigProtocol.swift b/RealDeviceMap-UIControl/DeviceConfig/DeviceConfigProtocol.swift
index 10898865..b919bce6 100644
--- a/RealDeviceMap-UIControl/DeviceConfig/DeviceConfigProtocol.swift
+++ b/RealDeviceMap-UIControl/DeviceConfig/DeviceConfigProtocol.swift
@@ -13,6 +13,10 @@ protocol DeviceConfigProtocol {
/** Green pixel in green button of startup popup. */
var startup: DeviceCoordinate { get }
+ /** Nearby Tracker. */
+ var nearby: DeviceCoordinate { get }
+ /** Nearby Tracker Pixel. */
+ var nearbypixel: DeviceCoordinate { get }
// Handling Multiple startup prompts
/* White Pixel (on 3 line prompt) or Greenish-Blue Pixel (on 2 line prompt) bottom right corner of 2line popup */
diff --git a/RealDeviceMap-UIControl/DeviceConfig/DeviceIPhoneNormal.swift b/RealDeviceMap-UIControl/DeviceConfig/DeviceIPhoneNormal.swift
index 258e56ee..49e22de9 100644
--- a/RealDeviceMap-UIControl/DeviceConfig/DeviceIPhoneNormal.swift
+++ b/RealDeviceMap-UIControl/DeviceConfig/DeviceIPhoneNormal.swift
@@ -14,6 +14,12 @@ class DeviceIPhoneNormal: DeviceRatio1775 {
override var startup: DeviceCoordinate {
return DeviceCoordinate(x: 325, y: 960, tapScaler: tapScaler)
}
+ override var nearby: DeviceCoordinate {
+ return DeviceCoordinate(x: 645, y: 1215)
+ }
+ override var nearbypixel: DeviceCoordinate {
+ return DeviceCoordinate(x: 146, y: 310)
+ }
override var startupNewButton: DeviceCoordinate {
return DeviceCoordinate(x: 475, y: 960, tapScaler: tapScaler)
}
diff --git a/RealDeviceMap-UIControl/DeviceConfig/DeviceRatio1333.swift b/RealDeviceMap-UIControl/DeviceConfig/DeviceRatio1333.swift
index 57c48078..7f29dee5 100644
--- a/RealDeviceMap-UIControl/DeviceConfig/DeviceRatio1333.swift
+++ b/RealDeviceMap-UIControl/DeviceConfig/DeviceRatio1333.swift
@@ -29,6 +29,12 @@ class DeviceRatio1333: DeviceConfigProtocol {
var startup: DeviceCoordinate {
return DeviceCoordinate(x: 728, y: 1542, scaler: scaler) //was 1234
}
+ var nearby: DeviceCoordinate {
+ return DeviceCoordinate(x: 0, y: 0, scaler: scaler) // Need Screenshot Cords
+ }
+ var nearbypixel: DeviceCoordinate {
+ return DeviceCoordinate(x: 1387, y: 1873, scaler: scaler)
+ }
var startupLoggedOut: DeviceCoordinate {
return DeviceCoordinate(x: 807, y: 177, scaler: scaler)
}
diff --git a/RealDeviceMap-UIControl/DeviceConfig/DeviceRatio1775.swift b/RealDeviceMap-UIControl/DeviceConfig/DeviceRatio1775.swift
index fd09da85..e77bcb9e 100644
--- a/RealDeviceMap-UIControl/DeviceConfig/DeviceRatio1775.swift
+++ b/RealDeviceMap-UIControl/DeviceConfig/DeviceRatio1775.swift
@@ -33,6 +33,12 @@ class DeviceRatio1775: DeviceConfigProtocol {
var startup: DeviceCoordinate {
return DeviceCoordinate(x: 280, y: 800, scaler: scaler)
}
+ var nearby: DeviceCoordinate {
+ return DeviceCoordinate(x: 550, y: 1040, scaler: scaler)
+ }
+ var nearbypixel: DeviceCoordinate {
+ return DeviceCoordinate(x: 125, y: 265, scaler: scaler)
+ }
var startupLoggedOut: DeviceCoordinate {
return DeviceCoordinate(x: 320, y: 175, scaler: scaler)
}
diff --git a/RealDeviceMap-UIControl/Misc.swift b/RealDeviceMap-UIControl/Misc.swift
index 956d4c49..eee1d8df 100644
--- a/RealDeviceMap-UIControl/Misc.swift
+++ b/RealDeviceMap-UIControl/Misc.swift
@@ -1311,6 +1311,19 @@ extension XCTestCase {
return false
}
+ func checkNearbyPixel(screenshot: XCUIScreenshot?=nil) -> Bool {
+ self.clickPassengerWarning()
+ let screenshotComp = screenshot ?? XCUIScreen.main.screenshot()
+ if screenshotComp.rgbAtLocation(
+ pos: deviceConfig.nearbypixel,
+ min: (red: 0.25, green: 0.40, blue: 0.41),
+ max: (red: 0.27, green: 0.42, blue: 0.43)) {
+ return true
+ } else {
+ return false
+ }
+ }
+
}
extension String {
diff --git a/RealDeviceMap-UIControl/RealDeviceMap_UIControlUITests.swift b/RealDeviceMap-UIControl/RealDeviceMap_UIControlUITests.swift
index b3b48c62..f8cadf4e 100644
--- a/RealDeviceMap-UIControl/RealDeviceMap_UIControlUITests.swift
+++ b/RealDeviceMap-UIControl/RealDeviceMap_UIControlUITests.swift
@@ -40,6 +40,7 @@ class RealDeviceMap_UIControlUITests: XCTestCase {
var encounterDelay = 1.0
var server = Server()
var hasWarning = false
+ var hasnearby = false
var level: Int = 0
var systemAlertMonitorToken: NSObjectProtocol?
@@ -1123,6 +1124,20 @@ class RealDeviceMap_UIControlUITests: XCTestCase {
deviceConfig.startup.toXCUICoordinate(app: app).tap()
app.swipeDown()
}
+
+ if self.config.nearbyTracker {
+ Log.info("STARTUP nearbyTracker \(self.config.nearbyTracker)")
+ self.hasnearby = self.checkNearbyPixel()
+ sleep(2)
+ self.hasnearby = self.checkNearbyPixel()
+ Log.info("STARTUP hasnearby \(self.hasnearby)")
+ if !self.hasnearby {
+ deviceConfig.nearby.toXCUICoordinate(app: app).tap()
+ sleep(1)
+ Log.info("STARTUP Nearby Tap")
+ }
+ }
+
sleep(1 * config.delayMultiplier)
isStartupCompleted = true
@@ -1202,7 +1217,11 @@ class RealDeviceMap_UIControlUITests: XCTestCase {
if let data = result!["data"] as? [String: Any], let action = data["action"] as? String {
self.action = action
if action == "scan_pokemon" {
- print("[STATUS] Pokemon")
+ if self.config.nearbyTracker {
+ print("[STATUS] NTM Pokemon")
+ } else {
+ print("[STATUS] Pokemon")
+ }
if self.hasWarning && self.config.enableAccountManager {
Log.info("Account has a warning and tried to scan for Pokemon. Logging out!")
self.lock.lock()
@@ -1264,9 +1283,24 @@ class RealDeviceMap_UIControlUITests: XCTestCase {
}
self.lock.unlock()
}
+ if self.config.nearbyTracker {
+ self.hasnearby = self.checkNearbyPixel()
+ sleep(2)
+ self.hasnearby = self.checkNearbyPixel()
+ Log.info("POKEMON hasnearby \(self.hasnearby)")
+ if !self.hasnearby {
+ self.deviceConfig.nearby.toXCUICoordinate(app: self.app).tap()
+ sleep(1)
+ Log.info("POKEMON Nearby Tap")
+ }
+ }
} else if action == "scan_raid" {
- print("[STATUS] Raid")
+ if self.config.nearbyTracker {
+ print("[STATUS] NTM Raid")
+ } else {
+ print("[STATUS] Raid")
+ }
if self.hasWarning && self.firstWarningDate != nil &&
Int(Date().timeIntervalSince(self.firstWarningDate!)) >=
self.config.maxWarningTimeRaid && self.config.enableAccountManager {
@@ -1329,6 +1363,18 @@ class RealDeviceMap_UIControlUITests: XCTestCase {
}
self.lock.unlock()
}
+ if self.config.nearbyTracker {
+ self.hasnearby = self.checkNearbyPixel()
+ sleep(2)
+ self.hasnearby = self.checkNearbyPixel()
+ Log.info("RAID hasnearby \(self.hasnearby)")
+ if !self.hasnearby {
+ self.deviceConfig.nearby.toXCUICoordinate(app: self.app).tap()
+ sleep(1)
+ Log.info("RAID Nearby Tap")
+ }
+ }
+
} else if action == "scan_quest" {
print("[STATUS] Quest")
@@ -1553,7 +1599,11 @@ class RealDeviceMap_UIControlUITests: XCTestCase {
self.shouldExit = true
return
} else if action == "scan_iv" {
- print("[STATUS] IV")
+ if self.config.nearbyTracker {
+ print("[STATUS] NTM IV")
+ } else {
+ print("[STATUS] IV")
+ }
if self.hasWarning && self.firstWarningDate != nil &&
Int(Date().timeIntervalSince(self.firstWarningDate!)) >=
self.config.maxWarningTimeRaid && self.config.enableAccountManager {
@@ -1831,6 +1881,17 @@ class RealDeviceMap_UIControlUITests: XCTestCase {
}
}
+ if self.config.nearbyTracker {
+ self.hasnearby = self.checkNearbyPixel()
+ sleep(2)
+ self.hasnearby = self.checkNearbyPixel()
+ Log.info("IV hasnearby \(self.hasnearby)")
+ if self.config.ultraIV && !self.hasnearby {
+ self.deviceConfig.nearby.toXCUICoordinate(app: self.app).tap()
+ sleep(1)
+ Log.info("IV Nearby Tap")
+ }
+ }
} else {
Log.error("Unkown Action: \(action)")
From b323cc21a233fa86e1ce8cbe5fbaca7390f5b012 Mon Sep 17 00:00:00 2001
From: SkOODaT <8633932+SkOODaT@users.noreply.github.com>
Date: Wed, 5 Feb 2020 21:18:40 -0500
Subject: [PATCH 3/6] Lint Fix
---
RealDeviceMap-UIControl/DeviceConfig/DeviceRatio1775.swift | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/RealDeviceMap-UIControl/DeviceConfig/DeviceRatio1775.swift b/RealDeviceMap-UIControl/DeviceConfig/DeviceRatio1775.swift
index e77bcb9e..43545a7d 100644
--- a/RealDeviceMap-UIControl/DeviceConfig/DeviceRatio1775.swift
+++ b/RealDeviceMap-UIControl/DeviceConfig/DeviceRatio1775.swift
@@ -37,7 +37,7 @@ class DeviceRatio1775: DeviceConfigProtocol {
return DeviceCoordinate(x: 550, y: 1040, scaler: scaler)
}
var nearbypixel: DeviceCoordinate {
- return DeviceCoordinate(x: 125, y: 265, scaler: scaler)
+ return DeviceCoordinate(x: 125, y: 265, scaler: scaler)
}
var startupLoggedOut: DeviceCoordinate {
return DeviceCoordinate(x: 320, y: 175, scaler: scaler)
From cada1f978b380e89fd1d0b009c610b5f65fdc6cb Mon Sep 17 00:00:00 2001
From: SkOODaT <8633932+SkOODaT@users.noreply.github.com>
Date: Wed, 5 Feb 2020 21:24:37 -0500
Subject: [PATCH 4/6] Remove Unused
---
RealDeviceMap-UIControl/Misc.swift | 1 -
1 file changed, 1 deletion(-)
diff --git a/RealDeviceMap-UIControl/Misc.swift b/RealDeviceMap-UIControl/Misc.swift
index eee1d8df..9975e66c 100644
--- a/RealDeviceMap-UIControl/Misc.swift
+++ b/RealDeviceMap-UIControl/Misc.swift
@@ -1312,7 +1312,6 @@ extension XCTestCase {
}
func checkNearbyPixel(screenshot: XCUIScreenshot?=nil) -> Bool {
- self.clickPassengerWarning()
let screenshotComp = screenshot ?? XCUIScreen.main.screenshot()
if screenshotComp.rgbAtLocation(
pos: deviceConfig.nearbypixel,
From b8673a16e91849fb3c5c26ae00b362bb7a71d704 Mon Sep 17 00:00:00 2001
From: SkOODaT <8633932+SkOODaT@users.noreply.github.com>
Date: Wed, 5 Feb 2020 21:31:35 -0500
Subject: [PATCH 5/6] Fix DeviceNormal
---
RealDeviceMap-UIControl/DeviceConfig/DeviceIPhoneNormal.swift | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/RealDeviceMap-UIControl/DeviceConfig/DeviceIPhoneNormal.swift b/RealDeviceMap-UIControl/DeviceConfig/DeviceIPhoneNormal.swift
index 49e22de9..5f03f73b 100644
--- a/RealDeviceMap-UIControl/DeviceConfig/DeviceIPhoneNormal.swift
+++ b/RealDeviceMap-UIControl/DeviceConfig/DeviceIPhoneNormal.swift
@@ -15,10 +15,10 @@ class DeviceIPhoneNormal: DeviceRatio1775 {
return DeviceCoordinate(x: 325, y: 960, tapScaler: tapScaler)
}
override var nearby: DeviceCoordinate {
- return DeviceCoordinate(x: 645, y: 1215)
+ return DeviceCoordinate(x: 645, y: 1215, tapScaler: tapScaler)
}
override var nearbypixel: DeviceCoordinate {
- return DeviceCoordinate(x: 146, y: 310)
+ return DeviceCoordinate(x: 146, y: 310, tapScaler: tapScaler)
}
override var startupNewButton: DeviceCoordinate {
return DeviceCoordinate(x: 475, y: 960, tapScaler: tapScaler)
From 50e758030ced4702dc777784cc0064a241de5cc0 Mon Sep 17 00:00:00 2001
From: SkOODaT <8633932+SkOODaT@users.noreply.github.com>
Date: Wed, 5 Feb 2020 21:57:24 -0500
Subject: [PATCH 6/6] Revert Device Names
---
RealDeviceMap-UIControl/DeviceConfig/DeviceIPhoneNormal.swift | 1 -
RealDeviceMap-UIControl/DeviceConfig/DeviceRatio1775.swift | 1 -
2 files changed, 2 deletions(-)
diff --git a/RealDeviceMap-UIControl/DeviceConfig/DeviceIPhoneNormal.swift b/RealDeviceMap-UIControl/DeviceConfig/DeviceIPhoneNormal.swift
index 5f03f73b..b999d8c2 100644
--- a/RealDeviceMap-UIControl/DeviceConfig/DeviceIPhoneNormal.swift
+++ b/RealDeviceMap-UIControl/DeviceConfig/DeviceIPhoneNormal.swift
@@ -4,7 +4,6 @@
//
// Created by Florian Kostenzer on 19.11.18.
//
-// IPHONE 6/6S/7/8
import Foundation
diff --git a/RealDeviceMap-UIControl/DeviceConfig/DeviceRatio1775.swift b/RealDeviceMap-UIControl/DeviceConfig/DeviceRatio1775.swift
index 43545a7d..23b06111 100644
--- a/RealDeviceMap-UIControl/DeviceConfig/DeviceRatio1775.swift
+++ b/RealDeviceMap-UIControl/DeviceConfig/DeviceRatio1775.swift
@@ -4,7 +4,6 @@
//
// Created by Florian Kostenzer on 18.11.18.
//
-// IPHONE 5S/SE
// swiftlint:disable type_body_length file_length
//