Skip to content

Commit c07d263

Browse files
Add dotnet empty binding project
1 parent f543baa commit c07d263

File tree

4 files changed

+84
-0
lines changed

4 files changed

+84
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@ profile
2626

2727
# Carthage
2828
Carthage/Build
29+
30+
31+
*/bin
32+
*/obj

dotnet-binding/ApiDefinition.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using System;
2+
using CoreGraphics;
3+
using Foundation;
4+
using ObjCRuntime;
5+
using UIKit;
6+
7+
namespace MBProgressHUD {
8+
9+
10+
11+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>net9.0-ios</TargetFramework>
4+
<RootNamespace>MBProgressHUD</RootNamespace>
5+
<Nullable>enable</Nullable>
6+
<ImplicitUsings>true</ImplicitUsings>
7+
<IsBindingProject>true</IsBindingProject>
8+
9+
<!-- Nuget package -->
10+
<PackageId>com.jonathanantoine.MBProgressHUD</PackageId>
11+
<Version>1.0.0.0</Version>
12+
<Authors>Jonathan Antoine</Authors>
13+
<Title>MBProgressHUD for dotnet</Title>
14+
<PackageProjectUrl>https://github.com/jonathanantoine/MBProgressHUD-dotnet</PackageProjectUrl>
15+
<Description>MBProgressHUD binding for Net 9.0 iOS</Description>
16+
<PackageReleaseNotes>MBProgressHUD binding for Net 9.0 iOS</PackageReleaseNotes>
17+
<PackageTags>maui ios MBProgressHUD dotnet</PackageTags>
18+
<PackageReadmeFile>README.md</PackageReadmeFile>
19+
</PropertyGroup>
20+
21+
<ItemGroup>
22+
<ObjcBindingApiDefinition Include="ApiDefinition.cs" />
23+
<ObjcBindingCoreSource Include="StructsAndEnums.cs" />
24+
<None Include="..\.github\workflows\create-nuget.yml" />
25+
</ItemGroup>
26+
<ItemGroup>
27+
<NativeReference Include="libMBProgressHUD.a">
28+
<Kind>Static</Kind>
29+
<Frameworks>Foundation ImageIO CoreGraphics</Frameworks>
30+
</NativeReference>
31+
</ItemGroup>
32+
33+
</Project>

dotnet-binding/StructsAndEnums.cs

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System;
2+
using CoreGraphics;
3+
using Foundation;
4+
using ObjCRuntime;
5+
using UIKit;
6+
7+
namespace MBProgressHUD {
8+
9+
[Native]
10+
public enum SDImageCacheType : long
11+
{
12+
None = 0,
13+
Disk,
14+
Memory
15+
}
16+
17+
[Flags]
18+
[Native]
19+
public enum SDWebImageOptions : ulong
20+
{
21+
RetryFailed = 1 << 0,
22+
LowPriority = 1 << 1,
23+
CacheMemoryOnly = 1 << 2,
24+
ProgressiveDownload = 1 << 3,
25+
RefreshCached = 1 << 4,
26+
ContinueInBackground = 1 << 5,
27+
HandleCookies = 1 << 6,
28+
AllowInvalidSSLCertificates = 1 << 7,
29+
HighPriority = 1 << 8,
30+
DelayPlaceholder = 1 << 9,
31+
TransformAnimatedImage = 1 << 10,
32+
AvoidAutoSetImage = 1 << 11,
33+
ScaleDownLargeImages = 1 << 12
34+
}
35+
36+
}

0 commit comments

Comments
 (0)