@nativescript/windows 0.1.0-alpha.34 → 0.1.0-alpha.37
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/build.ps1 +4 -2
- package/framework/__PROJECT_NAME__/App.xaml.cs +5 -5
- package/framework/__PROJECT_NAME__/RuntimeHost.cs +10 -0
- package/framework/libs/arm64/nativescript.dll +0 -0
- package/framework/libs/devtools/arm64/nativescript.dll +0 -0
- package/framework/libs/devtools/x64/nativescript.dll +0 -0
- package/framework/libs/x64/nativescript.dll +0 -0
- package/package.json +1 -1
package/build.ps1
CHANGED
|
@@ -119,14 +119,16 @@ foreach ($t in $Targets) {
|
|
|
119
119
|
|
|
120
120
|
if (-not $SkipRelease) {
|
|
121
121
|
Write-Host "`n=== Release ($arch) ===" -ForegroundColor Cyan
|
|
122
|
-
|
|
122
|
+
$releaseArgs = @()
|
|
123
|
+
Build-Crate -Profile "release" -Target $rustTarget -ExtraArgs $releaseArgs
|
|
123
124
|
$dll = Join-Path $RepoRoot "target\$rustTarget\release\nativescript.dll"
|
|
124
125
|
Copy-Dll -Src $dll -Dest (Join-Path $FrameworkLibs "$arch\nativescript.dll")
|
|
125
126
|
}
|
|
126
127
|
|
|
127
128
|
if (-not $SkipDevtools) {
|
|
128
129
|
Write-Host "`n=== Release-with-devtools ($arch) ===" -ForegroundColor Cyan
|
|
129
|
-
|
|
130
|
+
$devtoolsArgs = @("--features", "devtools")
|
|
131
|
+
Build-Crate -Profile "release-with-devtools" -Target $rustTarget -ExtraArgs $devtoolsArgs
|
|
130
132
|
$dll = Join-Path $RepoRoot "target\$rustTarget\release-with-devtools\nativescript.dll"
|
|
131
133
|
Copy-Dll -Src $dll -Dest (Join-Path $FrameworkLibs "devtools\$arch\nativescript.dll")
|
|
132
134
|
}
|
|
@@ -61,9 +61,7 @@ namespace __PROJECT_NAME__
|
|
|
61
61
|
await CrashDiagnostics.ShowCrashDialogAsync("Script Execution Error", report);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
#if DEBUG
|
|
65
64
|
Windows.UI.Xaml.Media.CompositionTarget.Rendering += OnRenderFrame;
|
|
66
|
-
#endif
|
|
67
65
|
|
|
68
66
|
if (Window.Current.Content == null)
|
|
69
67
|
{
|
|
@@ -86,9 +84,7 @@ namespace __PROJECT_NAME__
|
|
|
86
84
|
private void OnSuspending(object sender, SuspendingEventArgs e)
|
|
87
85
|
{
|
|
88
86
|
var deferral = e.SuspendingOperation.GetDeferral();
|
|
89
|
-
#if DEBUG
|
|
90
87
|
Windows.UI.Xaml.Media.CompositionTarget.Rendering -= OnRenderFrame;
|
|
91
|
-
#endif
|
|
92
88
|
ApplicationData.Current.LocalSettings.Values[LastLaunchArgsKey] = string.Empty;
|
|
93
89
|
_runtimeHost.Dispose();
|
|
94
90
|
deferral.Complete();
|
|
@@ -109,8 +105,12 @@ namespace __PROJECT_NAME__
|
|
|
109
105
|
e.Message ?? "Unhandled exception", report);
|
|
110
106
|
}
|
|
111
107
|
|
|
108
|
+
private void OnRenderFrame(object sender, object e)
|
|
109
|
+
{
|
|
110
|
+
_runtimeHost.PumpTimers();
|
|
112
111
|
#if DEBUG
|
|
113
|
-
|
|
112
|
+
_runtimeHost.PumpDevtools();
|
|
114
113
|
#endif
|
|
114
|
+
}
|
|
115
115
|
}
|
|
116
116
|
}
|
|
@@ -40,6 +40,16 @@ namespace __PROJECT_NAME__
|
|
|
40
40
|
[DllImport(NativeScriptLibrary, EntryPoint = nameof(runtime_has_devtools))]
|
|
41
41
|
private static extern bool runtime_has_devtools();
|
|
42
42
|
|
|
43
|
+
[DllImport(NativeScriptLibrary, EntryPoint = nameof(runtime_pump_timers))]
|
|
44
|
+
private static extern void runtime_pump_timers();
|
|
45
|
+
|
|
46
|
+
public void PumpTimers()
|
|
47
|
+
{
|
|
48
|
+
if (!_initialized) return;
|
|
49
|
+
try { runtime_pump_timers(); }
|
|
50
|
+
catch { }
|
|
51
|
+
}
|
|
52
|
+
|
|
43
53
|
#if DEBUG
|
|
44
54
|
[DllImport(NativeScriptLibrary, EntryPoint = nameof(runtime_devtools_start))]
|
|
45
55
|
private static extern IntPtr runtime_devtools_start(long runtime, ushort port);
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|