Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
realZhangChi committed Mar 2, 2023
1 parent 422a576 commit e1e05ea
Show file tree
Hide file tree
Showing 254 changed files with 717 additions and 1,579 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: setup dotnet 6.0
- name: setup dotnet 7.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.x"
dotnet-version: "7.0.x"

- name: install workload
shell: pwsh
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: setup dotnet 6.0
- name: setup dotnet 7.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.x"
dotnet-version: "7.0.x"

- name: install workload
shell: pwsh
Expand All @@ -38,7 +38,7 @@ jobs:

- name: pack
shell: pwsh
run: dotnet pack -c Release -o packages
run: dotnet pack -c Release

- name: push
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
/src/Getui/**/*.aar
/src/Toaster/**/*.aar
/src/WeChat/**/*.aar
/src/DialogX/**/*.aar
5 changes: 1 addition & 4 deletions common.props → Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<Project>
<PropertyGroup>
<PackageId>Chi.$(AssemblyName)</PackageId>
<Title>Chi.$(AssemblyName)</Title>
<PackageIdPrefix>Chi.MauiBinding</PackageIdPrefix>
<Authors>ZhangChi</Authors>
<Version>0.1.0</Version>
<Description>Maui binding library for third-party vendor mobile SDKs.</Description>
<Copyright>Copyright (c) ZhangChi(https://github.com/realZhangChi)</Copyright>
<PackageProjectUrl>https://github.com/realZhangChi/MauiBinding</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
Expand Down
414 changes: 174 additions & 240 deletions MauiBinding.sln

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"sdk": {
"version": "7.0.200"
}
}
4 changes: 2 additions & 2 deletions scripts/push.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ $apiKey = $args[0]

$rootPath = (Get-Item -Path "./" -Verbose).FullName

Set-Location ./packages
Set-Location $rootPath

Get-ChildItem ./*.nupkg -recurse | ForEach-Object -Process {
Get-ChildItem src/**/bin/Release/*.nupkg -recurse | ForEach-Object -Process {
if ($_ -is [System.IO.FileInfo]) {
dotnet nuget push $_.Name -s https://api.nuget.org/v3/index.json --api-key "$apiKey" --skip-duplicate
}
Expand Down
16 changes: 16 additions & 0 deletions src/AMap/Android/AMap2D/AMap2D.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0-android</TargetFramework>
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<PropertyGroup>
<Version>6.0.0</Version>
<Description>Maui binding library for AMap2DMap_6.0.0_AMapSearch_9.2.0_AMapLocation_6.1.0_20220414.</Description>
<PackageId>$(PackageIdPrefix).Android.AMap2D</PackageId>
<Title>$(PackageIdPrefix).Android.AMap2D</Title>
</PropertyGroup>

</Project>
18 changes: 18 additions & 0 deletions src/AMap/Android/AMap3D/AMap3D.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0-android</TargetFramework>
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>


<PropertyGroup>
<Version>9.4.0</Version>
<Description>Maui binding library for AMap3DMap_9.4.0_AMapSearch_9.4.0_AMapLocation_6.1.0_20220808.</Description>
<PackageId>$(PackageIdPrefix).Android.AMap3D</PackageId>
<Title>$(PackageIdPrefix).Android.AMap3D</Title>
</PropertyGroup>

</Project>
17 changes: 17 additions & 0 deletions src/AMap/Android/AMapLite/AMapLite.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0-android</TargetFramework>
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<PropertyGroup>
<Version>1.2.0</Version>
<Description>Maui binding library for AMap Lite3dMap_1.2.0_AMapSearch_9.2.0_AMapLocation_6.1.0_20220414.</Description>
<PackageId>$(PackageIdPrefix).Android.Lite</PackageId>
<Title>$(PackageIdPrefix).Android.Lite</Title>
</PropertyGroup>

</Project>
17 changes: 17 additions & 0 deletions src/AMap/Android/AMapLocation/AMapLocation.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0-android</TargetFramework>
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<PropertyGroup>
<Version>6.1.0</Version>
<Description>Maui binding library for AMapLocation_6.1.0_20220406.</Description>
<PackageId>$(PackageIdPrefix).Android.AMapLocation</PackageId>
<Title>$(PackageIdPrefix).Android.AMapLocation</Title>
</PropertyGroup>

</Project>
17 changes: 17 additions & 0 deletions src/AMap/Android/AMapNavi/AMapNavi.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0-android</TargetFramework>
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<PropertyGroup>
<Version>9.3.0</Version>
<Description>Maui binding library for AMap3DMap_9.3.0_AMapNavi_9.3.0_AMapSearch_9.2.0_AMapLocation_6.1.0_20220608.</Description>
<PackageId>$(PackageIdPrefix).Android.AMapNavi</PackageId>
<Title>$(PackageIdPrefix).Android.AMapNavi</Title>
</PropertyGroup>

</Project>
17 changes: 17 additions & 0 deletions src/AMap/Android/AMapTrack/AMapTrack.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0-android</TargetFramework>
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<PropertyGroup>
<Version>1.4.1</Version>
<Description>Maui binding library for AMapTrack_1.4.1_AMapLocation_6.1.0_20220406.</Description>
<PackageId>$(PackageIdPrefix).Android.AMapTrack</PackageId>
<Title>$(PackageIdPrefix).Android.AMapTrack</Title>
</PropertyGroup>

</Project>

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

16 changes: 16 additions & 0 deletions src/AliPay/Android/AliPay.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0-android</TargetFramework>
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<PropertyGroup>
<Version>15.8.11</Version>
<Description>Maui binding library for com.alipay.sdk.alipaysdk-android.</Description>
<PackageId>$(PackageIdPrefix).Android.AliPay</PackageId>
<Title>$(PackageIdPrefix).Android.AliPay</Title>
</PropertyGroup>

</Project>
File renamed without changes.
File renamed without changes.

This file was deleted.

21 changes: 21 additions & 0 deletions src/BaiduMap/Android/BaiduMapLocation/BaiduMapLocation.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0-android</TargetFramework>
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<PropertyGroup>
<Version>9.3.7</Version>
<Description>Maui binding library for BaiduMapSDK_Location.</Description>
<PackageId>$(PackageIdPrefix).Android.BaiduMap_Location</PackageId>
<Title>$(PackageIdPrefix).Android.BaiduMap_Location</Title>
</PropertyGroup>

<ItemGroup>
<None Remove="BaiduMapSDK_Location.aar" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0-android</TargetFramework>
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<PropertyGroup>
<Version>9.3.7</Version>
<Description>Maui binding library for BaiduMapSDK_Location_All.</Description>
<PackageId>$(PackageIdPrefix).Android.BaiduMap_LocationAll</PackageId>
<Title>$(PackageIdPrefix).Android.BaiduMap_LocationAll</Title>
</PropertyGroup>

<ItemGroup>
<None Remove="BaiduMapSDK_Location_All.aar" />
</ItemGroup>
</Project>
21 changes: 21 additions & 0 deletions src/BaiduMap/Android/BaiduMapMap/BaiduMapMap.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0-android</TargetFramework>
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<PropertyGroup>
<Version>7.5.4</Version>
<Description>Maui binding library for BaiduMapSDK_Map.</Description>
<PackageId>$(PackageIdPrefix).Android.BaiduMap_Map</PackageId>
<Title>$(PackageIdPrefix).Android.BaiduMap_Map</Title>
</PropertyGroup>

<ItemGroup>
<None Remove="BaiduMapSDK_Map.aar" />
</ItemGroup>

</Project>
21 changes: 21 additions & 0 deletions src/BaiduMap/Android/BaiduMapMapAllNavi/BaiduMapMapAllNavi.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0-android</TargetFramework>
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<PropertyGroup>
<Version>7.5.4</Version>
<Description>Maui binding library for BaiduMapSDK_Map-AllNavi.</Description>
<PackageId>$(PackageIdPrefix).Android.BaiduMap_MapAllNavi</PackageId>
<Title>$(PackageIdPrefix).Android.BaiduMap_MapAllNavi</Title>
</PropertyGroup>

<ItemGroup>
<None Remove="BaiduMapSDK_Map-AllNavi.aar" />
</ItemGroup>

</Project>
Loading

0 comments on commit e1e05ea

Please sign in to comment.