Skip to content

Commit 0e846f9

Browse files
Merge branch 'microsoft:main' into main
2 parents 477504e + fea4ab2 commit 0e846f9

File tree

349 files changed

+11122
-9193
lines changed

Some content is hidden

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

349 files changed

+11122
-9193
lines changed

.ado/azure-pipelines.publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ extends:
7373
- script: |
7474
git config user.name "UI-Fabric-RN-Bot"
7575
git config user.email "uifrnbot@microsoft.com"
76-
git remote set-url origin https://$(githubUser):$(githubPAT)@github.com/microsoft/ui-fabric-react-native.git
76+
git remote set-url origin https://$(githubUser):$(githubPAT)@github.com/microsoft/fluentui-react-native.git
7777
displayName: Git Authentication
7878
7979
- script: |

.ado/azure-pipelines.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,9 @@ jobs:
5858
workingDirectory: apps/fluent-tester
5959
displayName: 'yarn bundle $(platform)'
6060
61-
# sets-up specifics for android dependency like NDK & emulator
62-
- template: templates/android-dep-setup.yml
63-
6461
# builds a debug apk and runs E2E tests on it
65-
- template: templates/e2e-testing-android.yml
62+
# Disable as Android E2E tests are failing
63+
# - template: templates/e2e-testing-android.yml
6664

6765
- job: macOSPR
6866
displayName: macOS PR
Lines changed: 9 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,31 @@
11
steps:
2+
- task: JavaToolInstaller@0
3+
inputs:
4+
versionSpec: '17'
5+
jdkArchitectureOption: 'x64'
6+
jdkSourceOption: 'PreInstalled'
27
- task: Bash@3
38
displayName: 'Android Emulator Setup'
49
inputs:
510
targetType: 'inline'
611
script: |
712
#!/usr/bin/env bash
8-
set -ex
13+
set -eox pipefail
914
1015
# Install AVD files
11-
echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-27;default;x86_64'
16+
echo "y" | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install 'system-images;android-30;google_apis;x86'
1217
1318
# Create emulator
14-
echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n android_emulator -d 34 --package 'system-images;android-27;default;x86_64'
19+
echo "no" | $ANDROID_HOME/cmdline-tools/latest/bin/avdmanager create avd -n android_emulator -k 'system-images;android-30;google_apis;x86' --force
1520
16-
# list emulator
17-
echo "Available emulator"
1821
$ANDROID_HOME/emulator/emulator -list-avds
1922
20-
if false; then
21-
emulator_config=~/.android/avd/android_emulator.avd/config.ini
22-
# The following is to support empty OR populated config.ini files,
23-
# the state of which is dependant on the version of the emulator used (which we don't control),
24-
# Replace existing config (NOTE we're on macOS so sed works differently!)
25-
sed -i .bak 's/hw.lcd.density=.*/hw.lcd.density=420/' "$emulator_config"
26-
sed -i .bak 's/hw.lcd.height=.*/hw.lcd.height=1920/' "$emulator_config"
27-
sed -i .bak 's/hw.lcd.width=.*/hw.lcd.width=1080/' "$emulator_config"
28-
# Or, add new config
29-
if ! grep -q "hw.lcd.density" "$emulator_config"; then
30-
echo "hw.lcd.density=420" >> "$emulator_config"
31-
fi
32-
if ! grep -q "hw.lcd.height" "$emulator_config"; then
33-
echo "hw.lcd.height=1920" >> "$emulator_config"
34-
fi
35-
if ! grep -q "hw.lcd.width" "$emulator_config"; then
36-
echo "hw.lcd.width=1080" >> "$emulator_config"
37-
fi
38-
echo "Emulator settings ($emulator_config)"
39-
cat "$emulator_config"
40-
fi
41-
4223
echo "Starting emulator"
4324
4425
# Start emulator in background
45-
nohup $ANDROID_HOME/emulator/emulator -avd android_emulator -no-snapshot -no-audio -gpu host -no-boot-anim -qemu -m 2048 > /dev/null 2>&1 &
26+
nohup $ANDROID_HOME/emulator/emulator -avd android_emulator -no-snapshot -no-window -no-audio -no-boot-anim -accel off > /dev/null 2>&1 &
4627
$ANDROID_HOME/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82'
4728
48-
#list online device/emulator
4929
$ANDROID_HOME/platform-tools/adb devices
5030
5131
echo "Emulator started"

.ado/templates/apple-tools-setup.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
steps:
22
- task: NodeTool@0
33
inputs:
4-
versionSpec: '18.x'
4+
versionSpec: '22.x'
55

66
- task: CmdLine@2
77
displayName: 'brew bundle'
88
inputs:
99
script: |
1010
brew bundle --file .ado/Brewfile
11-
cat .ado/Brewfile.lock.json
1211
1312
# Cocoapods 1.15.0 doesn't work with React Native
1413
- task: CmdLine@2

.ado/templates/e2e-testing-android.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
steps:
2+
# sets-up specifics for android dependency like NDK & emulator
3+
- template: templates/android-dep-setup.yml
4+
25
# Building APK also requires bundling, this is currently already being done as part of main Android PR task.
3-
- task: Gradle@2
6+
- task: Gradle@3
47
displayName: 'gradlew build apk'
58
inputs:
69
gradleWrapperFile: 'apps/fluent-tester/android/gradlew'
@@ -10,6 +13,14 @@ steps:
1013
jdkVersionOption: '1.17'
1114
workingDirectory: apps/fluent-tester/android
1215

16+
- task: Gradle@3
17+
inputs:
18+
workingDirectory: apps/fluent-tester/android
19+
gradleWrapperFile: 'apps/fluent-tester/android/gradlew'
20+
gradleOptions: '-Xmx3072m'
21+
publishJUnitResults: false
22+
tasks: 'assembleDebug'
23+
1324
- script: |
1425
adb install app-debug.apk
1526
workingDirectory: apps/fluent-tester/android/app/build/outputs/apk/debug
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## DO NOT MODIFY THIS FILE MANUALLY. This is part of auto-baselining from 1ES Pipeline Templates. Go to [https://aka.ms/1espt-autobaselining] for more details.
2+
3+
pipelines:
4+
18514:
5+
retail:
6+
source:
7+
credscan:
8+
lastModifiedDate: 2024-09-20
9+
eslint:
10+
lastModifiedDate: 2024-09-20
11+
bandit:
12+
lastModifiedDate: 2024-09-20
13+
psscriptanalyzer:
14+
lastModifiedDate: 2024-09-20
15+
armory:
16+
lastModifiedDate: 2024-09-20
17+
binary:
18+
credscan:
19+
lastModifiedDate: 2024-09-20
20+
binskim:
21+
lastModifiedDate: 2024-09-20
22+
prefast:
23+
lastModifiedDate: 2024-09-20
24+
roslyn:
25+
lastModifiedDate: 2024-09-20

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18
1+
22

.yarn/releases/yarn-4.1.1.cjs

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

.yarn/releases/yarn-4.6.0.cjs

Lines changed: 934 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ enableGlobalCache: false
22

33
nodeLinker: node-modules
44

5-
yarnPath: .yarn/releases/yarn-4.1.1.cjs
5+
yarnPath: .yarn/releases/yarn-4.6.0.cjs

0 commit comments

Comments
 (0)