8000 feat(types-ios): 18.x sdk types (#10629) · CatchABus/NativeScript@a2aa261 · GitHub
[go: up one dir, main page]

Skip to content

Commit a2aa261

Browse files
authored
feat(types-ios): 18.x sdk types (NativeScript#10629)
1 parent ec7fa5d commit a2aa261

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+21635
-12325
lines changed

apps/automated/project.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
},
4444
"configurations": {}
4545
},
46+
"clean": {
47+
"executor": "@nativescript/nx:clean",
48+
"options": {}
49+
},
4650
"lint": {
4751
"executor": "@nx/eslint:lint",
4852
"options": {

apps/automated/src/ui/layouts/safe-area-tests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class SafeAreaTests extends testModule.UITest<any> {
7777

7878
const view: UIView = layout.page.actionBar.nativeViewProtected;
7979
// use the action bar position and size instead of the status bar and action bar heights as those are unreliable on iOS 16+
80-
const topInset = round(dipToDp(view.frame.origin.y + view.frame.size.height));
80+
const topInset = Math.round(dipToDp(view.frame.origin.y + view.frame.size.height));
8181

8282
const insets = layout.getSafeAreaInsets();
8383
equal(insets.top, topInset, `${layout}.topInset - actual:${insets.top}; expected: ${topInset}`);
@@ -87,7 +87,7 @@ export class SafeAreaTests extends testModule.UITest<any> {
8787
const keyWindow = Utils.ios.getWindow();
8888
// const statusBarHeight = round(dipToDp(app.statusBarFrame.size.height));
8989
// use window inset instead of status bar frame as that's unreliable on iOS 16+
90-
const topInset = round(dipToDp(keyWindow ? keyWindow.safeAreaInsets.top : UIApplication.sharedApplication.keyWindow.safeAreaInsets.top));
90+
const topInset = Math.round(dipToDp(keyWindow ? keyWindow.safeAreaInsets.top : UIApplication.sharedApplication.keyWindow.safeAreaInsets.top));
9191

9292
const insets = layout.getSafeAreaInsets();
9393
equal(insets.top, topInset, `${layout}.topInset - actual:${insets.top}; expected: ${topInset}`);

apps/automated/src/ui/scroll-view/scroll-view-safe-area-tests.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ScrollLayoutSafeAreaTest extends UITest<ScrollView> {
2424
waitUntilTestElementLayoutIsValid(ui.root);
2525
test(ui);
2626
},
27-
pageOptions
27+
pageOptions,
2828
);
2929
}
3030

@@ -70,7 +70,7 @@ class ScrollLayoutSafeAreaTest extends UITest<ScrollView> {
7070
({ root }) => {
7171
this.scroll_view_in_full_screen(root, pageOptions);
7272
},
73-
pageOptions
73+
pageOptions,
7474
);
7575
}
7676

@@ -194,11 +194,11 @@ class ScrollLayoutSafeAreaTest extends UITest<ScrollView> {
194194
isBelowWith(root, childFirst, insets.top);
195195
isRightWith(childFirst, root, insets.right);
196196

197-
const scrollViewContentHeight = round(dipToDp(root.nativeViewProtected.contentSize.height));
197+
const scrollViewContentHeight = Math.round(dipToDp(root.nativeViewProtected.contentSize.height));
198198
const sumOfNestedLabelHeightsAndInsets = height(childFirst) * stack.getChildrenCount() + insets.top + insets.bottom;
199199
equal(scrollViewContentHeight, sumOfNestedLabelHeightsAndInsets, `scroll view content height<${scrollViewContentHeight}> sum of nested label height and insets <${sumOfNestedLabelHeightsAndInsets}>`);
200200
},
201-
pageOptions
201+
pageOptions,
202202
);
203203
}
204204

@@ -426,7 +426,7 @@ class ScrollLayoutSafeAreaTest extends UITest<ScrollView> {
426426
const sumOfNestedScrollViewWidths = width(cells[1][0]) + width(cells[1][1]) + width(cells[1][2]);
427427
equal(width(grid), sumOfNestedScrollViewWidths, `grid width<${width(grid)}> sum of nested scroll views width <${sumOfNestedScrollViewWidths}>`);
428428
},
429-
pageOptions
429+
pageOptions,
430430
);
431431
}
432432

apps/toolbox/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"dependencies": {
1010
"@nativescript/core": "file:../../packages/core",
11-
"@nativescript/imagepicker": "^3.2.1",
11+
"@nativescript/imagepicker": "^4.1.0",
1212
"nativescript-theme-core": "file:../../node_modules/nativescript-theme-core"
1313
},
1414
"devDependencies": {

apps/toolbox/project.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
},
4444
"configurations": {}
4545
},
46+
"clean": {
47+
"executor": "@nativescript/nx:clean",
48+
"options": {}
49+
},
4650
"lint": {
4751
"executor": "@nx/eslint:lint",
4852
"options": {

0 commit comments

Comments
 (0)
0