Skip to content

Commit 73c39fb

Browse files
authored
Remove playground-win32 project as deprecated (#14599)
## Description Remove playground-win32 as it's no longer a useful configuration with the New Architecture and will save us some CI time. ### Type of Change - Bug fix (non-breaking change which fixes an issue) ### Why We don't need playground-win32 anymore. Closes #14334 Closes #13692 ### What Removed all playground-win32 projects, solutions, and configurations. ## Screenshots N/A ## Testing N/A ## Changelog Should this change be included in the release notes: _yes_ Remove playground-win32 project as deprecated
1 parent 83f8afd commit 73c39fb

34 files changed

+5
-1766
lines changed

.ado/jobs/playground.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,6 @@ parameters:
4242
BuildConfiguration: Release
4343
BuildPlatform: x64
4444
SolutionFile: Playground-Composition.sln
45-
- Name: X86DebugWin32
46-
BuildConfiguration: Debug
47-
BuildPlatform: x86
48-
SolutionFile: Playground-Win32.sln
49-
- Name: X64ReleaseWin32
50-
BuildConfiguration: Release
51-
BuildPlatform: x64
52-
SolutionFile: Playground-Win32.sln
5345
- BuildEnvironment: SecurePullRequest
5446
Matrix:
5547
- Name: X86DebugCompositionExperimentalWinUI3
@@ -104,14 +96,6 @@ parameters:
10496
BuildPlatform: x64
10597
SolutionFile: Playground-Composition.sln
10698
UseExperimentalWinUI3: true
107-
- Name: X86DebugWin32
108-
BuildConfiguration: Debug
109-
BuildPlatform: x86
110-
SolutionFile: Playground-Win32.sln
111-
- Name: X64ReleaseWin32
112-
BuildConfiguration: Release
113-
BuildPlatform: x64
114-
SolutionFile: Playground-Win32.sln
11599

116100
jobs:
117101
- ${{ each config in parameters.buildMatrix }}:

packages/playground/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,3 @@ packages/
9393

9494
windows/playground/Bundle
9595
windows/playground-composition/Bundle
96-
windows/playground-win32/Bundle

packages/playground/OpenWinUI3Win32PG.ps1

Lines changed: 0 additions & 46 deletions
This file was deleted.

packages/playground/README.md

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -22,43 +22,6 @@ Use the UI at the top of the playground application to modify the instance setti
2222
6. On the target, press `Load`. This will communicate back to the dev machine bundler and launch the web debugger on the dev machine, and serve the pages back to the app running in the target.
2323
You need an updated version of the bundler in order for remote debugging to work properly: [PR here](https://github.com/react-native-community/cli/pull/829)
2424

25-
# Playground-win32
26-
27-
Playground-win32 is a sample of an RNW application using XAML Islands that allows testing of various JS files, including RNTester.
28-
29-
## Using the app
30-
31-
You can find several sample .tsx files under the `/playground/samples` folder. You can load any of these files by selecting the "File" menu, then "Open Javascript File", and then clicking on the sample you wish to open.
32-
33-
# Launching and Editing
34-
## Launching the app
35-
36-
1. Make sure your development machine has been set up with all the system requirements and dependencies mentioned [here](https://microsoft.github.io/react-native-windows/docs/next/rnw-dependencies). Make sure a browser is launched and running.
37-
38-
1. Install Packages with-in the repo
39-
40-
`yarn`
41-
42-
1. Ensure packages are built
43-
44-
`yarn build`
45-
46-
1. Navigate to the `playground` folder
47-
48-
`cd packages\playground`
49-
50-
1. Start Metro
51-
52-
`yarn start`
53-
54-
1. Open the app solution file in Visual Studio either `windows\playground.sln` or `windows\playground-win32.sln`
55-
56-
1. Set the build configuration to "Debug" and Platform to "x86" or "x64"
57-
58-
1. Hit "Local Windows Debugger"
59-
60-
This will build and deploy the application and the dev tools.
61-
6225
## Editing the app
6326

6427
You can access and edit the .tsx files in the `/playground/samples` folder. Fast Refresh should work as expected while editing the Typescript files.

packages/playground/just-task.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,9 @@
55
* @ts-check
66
*/
77

8-
const fs = require('fs');
98
const {parallel, series, task} = require('just-scripts');
109

1110
// Use the shared base configuration
1211
require('@rnw-scripts/just-task');
1312

14-
task('prepareBundleWin32', () => {
15-
fs.mkdirSync('windows/playground-win32/Bundle/Samples', {recursive: true});
16-
});
17-
1813
task('lint', parallel(series('prettier', 'eslint'), 'depcheck', 'ts'));

packages/playground/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"version": "0.0.54",
44
"private": true,
55
"scripts": {
6-
"bundle-win32": "rnw-scripts prepareBundleWin32 && npx @react-native-community/cli bundle --entry-file Samples/rntester.tsx --bundle-output windows/playground-win32/Bundle/Samples/rntester.bundle --platform windows --assets-dest windows/playground-win32/Bundle",
76
"start": "npx @react-native-community/cli start",
87
"lint:fix": "rnw-scripts lint:fix",
98
"lint": "rnw-scripts lint",
@@ -40,4 +39,4 @@
4039
"engines": {
4140
"node": ">= 18"
4241
}
43-
}
42+
}

packages/playground/react-native.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
// Change the below to true for autolink to target playground-win32 instead of playground.
1+
// Change the below to true for autolink to target playground-composition instead of playground.
22
// Then run `npx @react-native-community/cli autolink-windows` to actually run the autolink.
3-
const targetWin32 = true;
3+
const targetComposition = true;
44

55
module.exports = {
66
project: {
77
windows: {
88
sourceDir: 'windows',
9-
solutionFile: targetWin32 ? 'playground-win32.sln' : 'playground.sln',
9+
solutionFile: targetComposition ? 'playground-composition.sln' : 'playground.sln',
1010
project: {
11-
projectFile: targetWin32 ? 'playground-win32\\playground-win32.vcxproj' : 'playground\\playground.vcxproj',
11+
projectFile: targetComposition ? 'playground-composition\\playground-composition.vcxproj' : 'playground\\playground.vcxproj',
1212
},
1313
},
1414
},

packages/playground/windows/ExperimentalFeatures.props

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,6 @@
88
<ReactExperimentalFeaturesSet>true</ReactExperimentalFeaturesSet>
99
</PropertyGroup>
1010

11-
<PropertyGroup Label="Unpackaged playground-win32" Condition="'$(SolutionName)'=='playground-win32' OR '$(SolutionName)'=='playground-composition'">
12-
<!--
13-
WARNING - DO NOT MAKE THE VERSION OF MICROSOFT.UI.XAML BE ANYTHING BUT PRERELEASE.
14-
Playground-Win32 is an unpackaged win32 app, and needs to use Microsoft.UI.Xaml from a prerelease,
15-
to be able to carry WinUI in-app instead of using the Framework Package
16-
-->
17-
<WinUI2xVersion>2.7.0-prerelease.210913003</WinUI2xVersion>
18-
</PropertyGroup>
19-
2011
<PropertyGroup Label="WinUI3 for fabric" Condition="'$(SolutionName)'=='playground-composition'">
2112
<RnwNewArch>true</RnwNewArch>
2213
<UseExperimentalNuget>false</UseExperimentalNuget>

0 commit comments

Comments
 (0)