Skip to content

Commit

Permalink
[Fix][CI] At least JDK11 is required for .NET7 Android
Browse files Browse the repository at this point in the history
  • Loading branch information
sescalada committed Dec 12, 2023
1 parent d7cf82d commit 6cc2911
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ jobs:
run: |
Write-Host "Installing powershell-yaml module"
Install-Module -Name powershell-yaml -Force -Repository PSGallery -Scope CurrentUser
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'microsoft'
java-version: '11'
- name: Install Windows SDK
uses: GuillaumeFalourd/setup-windows10-sdk-action@v1.8
with:
Expand Down
2 changes: 1 addition & 1 deletion src/core/Evergine.Xrv.Core/Help/ApplicationInfoProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public string GetVersion()
#elif ANDROID
Context ctx = Application.Context.ApplicationContext;
PackageManager packageManager = ctx.PackageManager;
PackageInfo info = packageManager.GetPackageInfo(ctx.PackageName, 0);
PackageInfo info = packageManager.GetPackageInfo(ctx.PackageName, PackageManager.PackageInfoFlags.Of(0));
return info.VersionName;
#else
return Assembly.GetExecutingAssembly().GetName().Version.ToString();
Expand Down

0 comments on commit 6cc2911

Please sign in to comment.