@nativescript/windows-hermes 0.1.0-beta.5 → 0.1.0-beta.6

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.
@@ -101,6 +101,17 @@
101
101
  <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
102
102
  </Content>
103
103
 
104
+ <!-- The app's metadata filter (App_Resources/Windows/native-api-usage.json, which the CLI writes
105
+ out next to this project): the runtime reads it next to the exe. -->
106
+ <Content Include="$(NSWindowsRoot)\whitelist.mdg" Condition="Exists('$(NSWindowsRoot)\whitelist.mdg')">
107
+ <Link>whitelist.mdg</Link>
108
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
109
+ </Content>
110
+ <Content Include="$(NSWindowsRoot)\blacklist.mdg" Condition="Exists('$(NSWindowsRoot)\blacklist.mdg')">
111
+ <Link>blacklist.mdg</Link>
112
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
113
+ </Content>
114
+
104
115
  <!-- Logo and splash assets required for the packaged desktop app manifest -->
105
116
  <Content Include="Assets\**\*" Condition="Exists('Assets')">
106
117
  <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
@@ -175,6 +186,12 @@
175
186
  SkipUnchangedFiles="true" />
176
187
  </Target>
177
188
 
189
+ <!-- A filter the app dropped must not stay in force from an earlier build's copy. -->
190
+ <Target Name="RemoveStaleMetadataFilter" BeforeTargets="CopyFilesToOutputDirectory">
191
+ <Delete Files="$(OutDir)whitelist.mdg" Condition="!Exists('$(NSWindowsRoot)\whitelist.mdg')" />
192
+ <Delete Files="$(OutDir)blacklist.mdg" Condition="!Exists('$(NSWindowsRoot)\blacklist.mdg')" />
193
+ </Target>
194
+
178
195
  <!-- Run the Static Binding Generator (sbg) when project contains an sbg entry script
179
196
  or when pre-existing metadata is present. Generated proxies will be written
180
197
  into $(NSGenDir) and included in compilation. -->
@@ -193,11 +210,11 @@
193
210
  Search order: pre-built tools/ binary, then cargo run for dev. -->
194
211
  <Exec
195
212
  Command="&quot;$(SbgExe)&quot;"
196
- EnvironmentVariables="NSWINRT_AUTO_METADATA_PATH=$(SBGMetadataSource);SBG_OUTPUT_DIR=$(SBG_OUTPUT_DIR);SBG_METADATA_SOURCE=$(SBGMetadataSource);SBG_TARGET_FRAMEWORK=$(TargetFramework);SBG_TARGET_PLATFORM_MIN_VERSION=$(TargetPlatformMinVersion);SBG_USE_UWP=false;SBG_APP_CS_SOURCES_DIR=$(MSBuildProjectDirectory)"
213
+ EnvironmentVariables="NSWINRT_AUTO_METADATA_PATH=$(SBGMetadataSource);SBG_OUTPUT_DIR=$(SBG_OUTPUT_DIR);SBG_METADATA_SOURCE=$(SBGMetadataSource);SBG_TARGET_FRAMEWORK=$(TargetFramework);SBG_TARGET_PLATFORM_MIN_VERSION=$(TargetPlatformMinVersion);SBG_USE_UWP=false;SBG_APP_CS_SOURCES_DIR=$(MSBuildProjectDirectory);SBG_WHITELIST=$(NSWindowsRoot)\whitelist.mdg;SBG_BLACKLIST=$(NSWindowsRoot)\blacklist.mdg"
197
214
  Condition="'$(SbgExe)' != '' and Exists('$(SBGMetadataSource)')" />
198
215
  <Exec WorkingDirectory="$(WindowsRuntimeRepoRoot)"
199
216
  Command="cargo run --quiet --manifest-path &quot;$(WindowsRuntimeRepoRoot)\Cargo.toml&quot; -p sbg"
200
- EnvironmentVariables="NSWINRT_AUTO_METADATA_PATH=$(SBGMetadataSource);SBG_OUTPUT_DIR=$(SBG_OUTPUT_DIR);SBG_METADATA_SOURCE=$(SBGMetadataSource);SBG_TARGET_FRAMEWORK=$(TargetFramework);SBG_TARGET_PLATFORM_MIN_VERSION=$(TargetPlatformMinVersion);SBG_USE_UWP=false;SBG_APP_CS_SOURCES_DIR=$(MSBuildProjectDirectory)"
217
+ EnvironmentVariables="NSWINRT_AUTO_METADATA_PATH=$(SBGMetadataSource);SBG_OUTPUT_DIR=$(SBG_OUTPUT_DIR);SBG_METADATA_SOURCE=$(SBGMetadataSource);SBG_TARGET_FRAMEWORK=$(TargetFramework);SBG_TARGET_PLATFORM_MIN_VERSION=$(TargetPlatformMinVersion);SBG_USE_UWP=false;SBG_APP_CS_SOURCES_DIR=$(MSBuildProjectDirectory);SBG_WHITELIST=$(NSWindowsRoot)\whitelist.mdg;SBG_BLACKLIST=$(NSWindowsRoot)\blacklist.mdg"
201
218
  Condition="'$(SbgExe)' == '' and Exists('$(SBGMetadataSource)') and Exists('$(WindowsRuntimeRepoRoot)\Cargo.toml')" />
202
219
  <!-- The proxies are picked up here, after sbg ran: a glob evaluated with the project would
203
220
  still compile proxies an earlier run generated for extensions that are gone. -->
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativescript/windows-hermes",
3
- "version": "0.1.0-beta.5",
3
+ "version": "0.1.0-beta.6",
4
4
  "description": "NativeScript Windows runtime (Hermes engine) with a WinUI 3 app template",
5
5
  "keywords": [
6
6
  "NativeScript",