Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,7 @@ CodeCoverage/
# NUnit
*.VisualState.xml
TestResult.xml
nunit-*.xml
nunit-*.xmlsrc/.idea/

# JetBrains Rider
.idea/
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

## 项目简介

`GeneralUpdate.Avalonia` 是面向 Avalonia 应用的更新能力仓库。当前核心模块为 `GeneralUpdate.Avalonia.Android`,提供 Android 平台自动更新流程编排能力(无 UI),适配 `net8.0-android`,面向 Avalonia 12+ 应用。
`GeneralUpdate.Avalonia` 是面向 Avalonia 应用的更新能力仓库。当前核心模块为 `GeneralUpdate.Avalonia.Android`,提供 Android 平台自动更新流程编排能力(无 UI),适配 `net10.0-android`,面向 Avalonia 12+ 应用。

项目将更新流程拆分为可组合的抽象接口,便于在不同业务场景下替换版本比较、下载、哈希校验、安装拉起、日志与事件分发实现。

Expand All @@ -25,8 +25,8 @@

### 环境准备

- .NET SDK:`8.0+`
- 平台:`Android (net8.0-android)`
- .NET SDK:`10.0+`
- 平台:`Android (net10.0-android)`
- Avalonia:`12+`
- Git:`2.30+`

Expand Down
5 changes: 3 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"sdk": {
"version": "8.0.418",
"rollForward": "latestFeature"
"version": "10.0.100",
"rollForward": "latestMajor",
"allowPrerelease": true
}
}
Original file line number Diff line number Diff line change
@@ -1,19 +1,46 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0-android34.0</TargetFramework>
<SupportedOSPlatformVersion>21.0</SupportedOSPlatformVersion>
<TargetFramework>net10.0-android</TargetFramework>
<SupportedOSPlatformVersion>26.0</SupportedOSPlatformVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>latest</LangVersion>

<!-- Pack settings -->
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageId>GeneralUpdate.Avalonia.Android</PackageId>
<Description>UI-free, Avalonia-compatible Android auto-update core library.</Description>
<Version>1.0.0</Version>
<Description>UI-free, Avalonia-compatible Android auto-update core library. Provides version comparison, resumable APK download with SHA256 verification, and APK installation orchestration.</Description>
<Authors>GeneralLibrary</Authors>
<Copyright>Copyright (c) GeneralLibrary</Copyright>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/GeneralLibrary/GeneralUpdate.Avalonia</PackageProjectUrl>
<RepositoryUrl>https://github.com/GeneralLibrary/GeneralUpdate.Avalonia</RepositoryUrl>
<PackageTags>avalonia;android;update;apk;autoupdate</PackageTags>
<RepositoryType>git</RepositoryType>
<PackageTags>avalonia;android;update;apk;autoupdate;generalupdate</PackageTags>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageReleaseNotes>https://github.com/GeneralLibrary/GeneralUpdate.Avalonia/releases</PackageReleaseNotes>

<!-- SourceLink support -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>

<!-- Deterministic build for CI -->
<ContinuousIntegrationBuild Condition="'$(CI)' == 'true'">true</ContinuousIntegrationBuild>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Xamarin.AndroidX.Core" Version="1.13.1.2" />
</ItemGroup>
Comment on lines 34 to 40

<!-- Include README in the package -->
<ItemGroup>
<None Include="..\..\README.md" Pack="true" PackagePath="\" />
</ItemGroup>
</Project>
5 changes: 5 additions & 0 deletions src/GeneralUpdate.Avalonia.slnx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Solution>
<Folder Name="/src/">
<Project Path="GeneralUpdate.Avalonia.Android/GeneralUpdate.Avalonia.Android.csproj" />
</Folder>
</Solution>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
Expand Down
Loading