Skip to content

Commit

Permalink
Merge pull request #1185 from unoplatform/dev/jela/5-6
Browse files Browse the repository at this point in the history
Canary merge and 5.6 update
  • Loading branch information
jeromelaban authored Jan 28, 2025
2 parents 7493828 + 4f375e5 commit bb09137
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 17 deletions.
3 changes: 0 additions & 3 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
PRI257: Ignore default language (en) not being one of the included resources (eg en-us, en-uk)
-->
<NoWarn>$(NoWarn);NU1507;NETSDK1201;PRI257</NoWarn>

<SkiaSharpVersion>2.88.9-preview.2.2</SkiaSharpVersion>
<UnoWasmBootstrapVersion>9.1.0-dev.41</UnoWasmBootstrapVersion>
</PropertyGroup>

</Project>
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackageVersion Include="NunitXml.TestLogger" Version="3.1.15" />
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />
<PackageVersion Include="Uno.UITest.Helpers" Version="1.1.0-dev.70" />
<PackageVersion Include="Xamarin.UITest" Version="4.4.0" />
<PackageVersion Include="Xamarin.UITest" Version="4.4.1" />

<PackageVersion Include="Uno.ShowMeTheXAML" Version="2.0.0-dev0015" />
<PackageVersion Include="Uno.ShowMeTheXAML.MSBuild" Version="2.0.0-dev0015" />
Expand Down
Binary file modified Uno.Gallery/Platforms/WebAssembly/aot.profile
Binary file not shown.
9 changes: 9 additions & 0 deletions Uno.Gallery/Uno.Gallery.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,13 @@
<_WasmLinkStepArgs Include="@(_EmccLinkStepArgs)" />
</ItemGroup>
</Target>

<Target Name="AdjustStrip" BeforeTargets="_WasmCommonPrepareForWasmBuildNative">
<PropertyGroup>
<!-- Enable debug symbols for release mode to profiling -->
<WasmNativeStrip>false</WasmNativeStrip>
<WasmNativeDebugSymbols>true</WasmNativeDebugSymbols>
</PropertyGroup>
</Target>

</Project>
11 changes: 6 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,9 @@ stages:
jobs:
- template: build/stage-uitests-ios.yml

- stage: Android_Tests
displayName: 'Android Tests'
dependsOn: []
jobs:
- template: build/stage-uitests-android.yml
# Disable for System.UI kept in front
# - stage: Android_Tests
# displayName: 'Android Tests'
# dependsOn: []
# jobs:
# - template: build/stage-uitests-android.yml
2 changes: 1 addition & 1 deletion build/scripts/android-uitest-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ fi

# Build the sample, while the emulator is starting
cd $UNO_UITEST_ANDROID_PROJECT
dotnet publish -f net8.0-android -p:TargetFrameworkOverride=net8.0-android -c Release -p:RuntimeIdentifier=android-x64 /p:IsUiAutomationMappingEnabled=True /p:AndroidUseSharedRuntime=false /p:AotAssemblies=false -bl:$BUILD_ARTIFACTSTAGINGDIRECTORY/android-app.binlog
dotnet publish -f net8.0-android -p:TargetFrameworkOverride=net8.0-android -c Release -p:RuntimeIdentifier=android-x64 /p:IsUiAutomationMappingEnabled=True /p:AndroidUseSharedRuntime=false /p:AotAssemblies=true /p:EmbedAssembliesIntoApk=true -bl:$BUILD_ARTIFACTSTAGINGDIRECTORY/android-app.binlog
6 changes: 3 additions & 3 deletions build/scripts/android-uitest-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export UNO_UITEST_BINARY=$BUILD_SOURCESDIRECTORY/Uno.Gallery.UITests/bin/Release
export UNO_EMULATOR_INSTALLED=$BUILD_SOURCESDIRECTORY/build/.emulator_started
export UITEST_TEST_TIMEOUT=60m
export UNO_UITEST_ANDROIDAPK_PATH=$UNO_UITEST_ANDROIDAPK_BASEPATH/com.nventive.uno.ui.demo-Signed.apk
export ANDROID_SIMULATOR_APILEVEL=28
export ANDROID_SIMULATOR_APILEVEL=34

AVD_NAME=xamarin_android_emulator
AVD_CONFIG_FILE=~/.android/avd/$AVD_NAME.avd/config.ini
Expand Down Expand Up @@ -47,10 +47,10 @@ then
echo "y" | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --sdk_root=${ANDROID_HOME} --install "extras;android;m2repository" | tr '\r' '\n' | uniq

# Install AVD files
echo "y" | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --sdk_root=${ANDROID_HOME} --install "system-images;android-$ANDROID_SIMULATOR_APILEVEL;google_apis_playstore;x86_64"
echo "y" | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --sdk_root=${ANDROID_HOME} --install "system-images;android-$ANDROID_SIMULATOR_APILEVEL;google_apis;x86_64"

# Create emulator
echo "no" | $ANDROID_HOME/cmdline-tools/latest/bin/avdmanager create avd -n $AVD_NAME --abi "x86_64" -k "system-images;android-$ANDROID_SIMULATOR_APILEVEL;google_apis_playstore;x86_64" --sdcard 128M --force
echo "no" | $ANDROID_HOME/cmdline-tools/latest/bin/avdmanager create avd -n $AVD_NAME --abi "x86_64" -k "system-images;android-$ANDROID_SIMULATOR_APILEVEL;google_apis;x86_64" --sdcard 128M --force

# based on https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml#hardware
# >> Agents that run macOS images are provisioned on Mac pros with a 3 core CPU, 14 GB of RAM, and 14 GB of SSD disk space.
Expand Down
2 changes: 1 addition & 1 deletion build/scripts/ios-uitest-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ IFS=$'\n\t'
export UNO_UITEST_IOS_PROJECT=$BUILD_SOURCESDIRECTORY/Uno.Gallery

cd $UNO_UITEST_IOS_PROJECT
dotnet build -p:TargetFrameworkOverride=net9.0-ios -r iossimulator-x64 -c Release -p:IsUiAutomationMappingEnabled=True -bl:$BUILD_ARTIFACTSTAGINGDIRECTORY/ios-app.binlog
dotnet build -p:TargetFrameworkOverride=net8.0-ios -r iossimulator-x64 -c Release -p:IsUiAutomationMappingEnabled=True -bl:$BUILD_ARTIFACTSTAGINGDIRECTORY/ios-app.binlog
4 changes: 2 additions & 2 deletions build/stage-uitests-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

- template: templates/dotnet-install-mac.yml
parameters:
UnoCheckParameters: '--tfm net9.0-ios'
UnoCheckParameters: '--tfm net8.0-ios'

- template: templates/xcode-select.yml
parameters:
Expand All @@ -33,7 +33,7 @@
- task: CopyFiles@2
displayName: Copy Build Output
inputs:
SourceFolder: $(build.sourcesdirectory)/Uno.Gallery/bin/Release/net9.0-ios/iossimulator-x64/Uno.Gallery.app
SourceFolder: $(build.sourcesdirectory)/Uno.Gallery/bin/Release/net8.0-ios/iossimulator-x64/Uno.Gallery.app
Contents: '**'
TargetFolder: $(Build.ArtifactStagingDirectory)/Uno.Gallery.app

Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
},
// To update the version of Uno please update the version of the Uno.Sdk here. See https://aka.platform.uno/upgrade-uno-packages for more information.
"msbuild-sdks": {
"Uno.Sdk": "5.6.0-dev.130"
"Uno.Sdk": "5.6.20"
}
}

0 comments on commit bb09137

Please sign in to comment.