@craft-native/ios 0.0.175 → 0.0.177
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -3
- package/dist/cli.js +7 -1
- package/dist/index.d.ts +19 -0
- package/dist/index.js +7 -1
- package/dist/testing.d.ts +5 -0
- package/package.json +1 -1
- package/templates/CraftApp.swift +51 -1
- package/templates/CraftCrashReporter.swift +1010 -0
- package/templates/CraftHybrid.swift +10 -0
- package/templates/CraftNativeActions.swift +49 -1
- package/templates/CraftNativeFlatList.swift +30 -28
- package/templates/CraftNativeMutation.swift +1 -1
- package/templates/CraftNativeScreen.swift +559 -86
- package/templates/project.yml.template +1 -0
- package/templates/testing/DriverTests.swift.template +8 -0
|
@@ -286,6 +286,14 @@ final class DriverTests: XCTestCase {
|
|
|
286
286
|
case "left": app.swipeLeft()
|
|
287
287
|
default: app.swipeRight()
|
|
288
288
|
}
|
|
289
|
+
case "edge":
|
|
290
|
+
// The system back-swipe: a drag in from the left edge (or the
|
|
291
|
+
// right one with `edge right`), which a centred swipe never is.
|
|
292
|
+
let fromRight = arg == "right"
|
|
293
|
+
let start = app.coordinate(withNormalizedOffset: CGVector(dx: fromRight ? 0.995 : 0.005, dy: 0.5))
|
|
294
|
+
let end = app.coordinate(withNormalizedOffset: CGVector(dx: fromRight ? 0.15 : 0.85, dy: 0.5))
|
|
295
|
+
start.press(forDuration: 0.05, thenDragTo: end)
|
|
296
|
+
note("edge \(fromRight ? "right" : "left"): ok")
|
|
289
297
|
case "audit":
|
|
290
298
|
var issues: [String] = []
|
|
291
299
|
do {
|