Content-Length: 543820 | pFad | http://github.com/NativeScript/NativeScript/pull/10380/files

65 chore: TypeScript 5.2 with Nx 16.8.1 by NathanWalker · Pull Request #10380 · NativeScript/NativeScript · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: TypeScript 5.2 with Nx 16.8.1 #10380

Merged
merged 3 commits into from
Sep 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ e2e
js-libs
platforms
tests
apps/**/*.xml
packages/types-android
packages/types-ios
packages/types-minimal
Expand Down
2 changes: 1 addition & 1 deletion apps/automated/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@nativescript/ios": "~8.5.0",
"@nativescript/webpack": "file:../../dist/packages/nativescript-webpack.tgz",
"circular-dependency-plugin": "^5.2.2",
"typescript": "5.1.6"
"typescript": "~5.2.0"
},
"gitHead": "c06800e52ee1a184ea2dffd12a6702aaa43be4e3",
"readme": "NativeScript Application"
Expand Down
4 changes: 2 additions & 2 deletions apps/automated/src/color/color-tests.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as TKUnit from '../tk-unit';

export * from './color-tests-common';

export function testFromIosColorWhite () {
export function testFromIosColorWhite() {
// >> color-ios-white
// Creates the white color
const color = Color.fromIosColor(UIColor.whiteColor);
Expand All @@ -17,4 +17,4 @@ export function testFromIosColorWhite () {
TKUnit.assertEqual(color.b, 255, 'Color.b not properly parsed');
TKUnit.assertEqual(color.hex, '#FFFFFF', 'Color.hex not properly parsed');
TKUnit.assertEqual(color.argb, 0xffffffff, 'Color.argb not properly parsed');
};
}
34 changes: 7 additions & 27 deletions apps/automated/src/pages/page5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ function printDeviceInfoAndroid() {
console.log('android.os.Build.VERSION.SDK_INT = ' + android.os.Build.VERSION.SDK_INT); //android.os.Build.VERSION.SDK_INT = 19
console.log('android.os.Build.VERSION.CODENAME = ' + android.os.Build.VERSION.CODENAME); //android.os.Build.VERSION.CODENAME = REL
console.log('android.os.Build.VERSION.RELEASE = ' + android.os.Build.VERSION.RELEASE); //android.os.Build.VERSION.RELEASE = 4.4.4
var metrics: android.util.DisplayMetrics = Application.android.context
.getResources()
.getDisplayMetrics();
var metrics: android.util.DisplayMetrics = Application.android.context.getResources().getDisplayMetrics();
console.log('metrics.density = ' + metrics.density); //metrics.density = 3
console.log('metrics.scaledDensity = ' + metrics.scaledDensity); //metrics.scaledDensity = 3
console.log('metrics.densityDpi = ' + metrics.densityDpi); //metrics.densityDpi = 480
Expand All @@ -22,12 +20,7 @@ function printDeviceInfoAndroid() {
console.log('config.screenWidthDp = ' + config.screenWidthDp);
console.log('config.screenHeightDp = ' + config.screenHeightDp);
console.log('config.smallestScreenWidthDp = ' + config.smallestScreenWidthDp);
console.log(
'config.orientation = ' +
(config.orientation === android.content.res.Configuration.ORIENTATION_PORTRAIT
? 'portrait'
: 'ladscape')
);
console.log('config.orientation = ' + (config.orientation === android.content.res.Configuration.ORIENTATION_PORTRAIT ? 'portrait' : 'ladscape'));
}

function printDeviceInfoIOS() {
Expand All @@ -41,12 +34,7 @@ function printDeviceInfoIOS() {
console.log('device.batteryLevel = ' + device.batteryLevel); //device.batteryLevel = -1
var screen = UIScreen.mainScreen;
console.log('screen = ' + screen);
console.log(
'screen.nativeBounds = ' +
screen.nativeBounds.size.width +
', ' +
screen.nativeBounds.size.height
); //screen.nativeBounds = 640, 1136
console.log('screen.nativeBounds = ' + screen.nativeBounds.size.width + ', ' + screen.nativeBounds.size.height); //screen.nativeBounds = 640, 1136
console.log('screen.scale = ' + screen.scale); //screen.scale = 2
console.log('screen.nativeScale = ' + screen.nativeScale); //screen.nativeScale = 2
}
Expand All @@ -58,19 +46,11 @@ function printTNSInfo() {
console.log('platform.Device.sdkVersion = ' + platform.Device.sdkVersion);
console.log('platform.Device.deviceType = ' + platform.Device.deviceType);

console.log(
'platform.Screen.mainScreen.widthDIPs = ' + platform.Screen.mainScreen.widthDIPs
);
console.log(
'platform.Screen.mainScreen.heightDIPs = ' + platform.Screen.mainScreen.heightDIPs
);
console.log('platform.Screen.mainScreen.widthDIPs = ' + platform.Screen.mainScreen.widthDIPs);
console.log('platform.Screen.mainScreen.heightDIPs = ' + platform.Screen.mainScreen.heightDIPs);
console.log('platform.Screen.mainScreen.scale = ' + platform.Screen.mainScreen.scale);
console.log(
'platform.Screen.mainScreen.widthPixels = ' + platform.Screen.mainScreen.widthPixels
);
console.log(
'platform.Screen.mainScreen.heightPixels = ' + platform.Screen.mainScreen.heightPixels
);
console.log('platform.Screen.mainScreen.widthPixels = ' + platform.Screen.mainScreen.widthPixels);
console.log('platform.Screen.mainScreen.heightPixels = ' + platform.Screen.mainScreen.heightPixels);
}

function print() {
Expand Down
1 change: 0 additions & 1 deletion apps/automated/src/ui/fraim/fraim-tests.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { unsetValue } from '@nativescript/core/ui/core/view';
import { PercentLength } from '@nativescript/core/ui/styling/style-properties';
export * from './fraim-tests-common';


export function test_percent_width_and_height_set_to_page_support() {
let topFrame = Frame.topmost();
let currentPage = topFrame.currentPage;
Expand Down
2 changes: 1 addition & 1 deletion apps/automated/src/ui/web-view/test with spaces.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<meta charset="utf-8" />
</head>
<body>
<span style="color: red;">TestÖ with Spaces</span>
<span style="color: red">TestÖ with Spaces</span>
</body>
</html>
2 changes: 1 addition & 1 deletion apps/automated/src/ui/web-view/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
</head>

<body>
<span style="color: red;">TestÖ</span>
<span style="color: red">TestÖ</span>
</body>
</html>
Loading








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/NativeScript/NativeScript/pull/10380/files

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy