Skip to content

Commit

Permalink
Merge pull request #12 from Softeq/feature/added-support-old-framework
Browse files Browse the repository at this point in the history
Added support xamarin framework
  • Loading branch information
dimysa authored May 1, 2024
2 parents 77b116d + 8224b3b commit cee4354
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
11 changes: 9 additions & 2 deletions azure-pipelines/templates/setup-dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
parameters:
- name: version
type: string
default: 6.0.402
default: 6.0.421

steps:
- task: UseDotNet@2
Expand All @@ -15,4 +15,11 @@ steps:
inputs:
targetType: 'inline'
script: |
dotnet workload install ios
dotnet workload install ios
- task: Bash@3
displayName: Install Xamarin
inputs:
targetType: 'inline'
script: |
brew install --cask xamarin-ios
19 changes: 13 additions & 6 deletions src/ToastBindings.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Xamarin.Legacy.Sdk/0.2.0-alpha4">
<PropertyGroup>
<TargetFramework>net6.0-ios10</TargetFramework>
<TargetFrameworks>xamarin.ios10;net6.0-ios</TargetFrameworks>
<NoNFloatUsing Condition="'$(TargetFramework)' == 'xamarin.ios10'">true</NoNFloatUsing>
<IsBindingProject>true</IsBindingProject>
<SupportedOSPlatformVersion>8.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion>10.0</SupportedOSPlatformVersion>

<!-- Assembly & NuGet Info -->
<Title>Toast for Xamarin.iOS</Title>
<Description>Xamarin iOS binding library of Toast - toast notifications to the UIView.</Description>
<Company>Softeq Development Corporation</Company>
<Copyright>Copyright © 2024 Softeq Development Corporation</Copyright>
<Version>4.0.0.3</Version>
<Version>4.0.0.4</Version>
<Authors>Softeq Development Corp.</Authors>
<Owners>Softeq Development Corp.</Owners>
<PackageProjectUrl>https://github.com/Softeq/Toast-xamarin-ios</PackageProjectUrl>
Expand All @@ -24,9 +25,15 @@
<None Include="../README.md" Visible="False" Pack="true" PackagePath="" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'xamarin.ios10'">
<Compile Remove="ApiDefinition.cs" />
<Compile Remove="StructsAndEnums.cs" />
</ItemGroup>
<ItemGroup>
<ObjcBindingCoreSource Include="StructsAndEnums.cs" Condition=" '$(EnableDefaultCompileItems)' == 'true'" />
</ItemGroup>
<ItemGroup>
<ObjcBindingApiDefinition Include="ApiDefinition.cs" />
<ObjcBindingCoreSource Include="StructsAndEnums.cs" />
<ObjcBindingApiDefinition Include="ApiDefinition.cs" Condition=" '$(EnableDefaultCompileItems)' == 'true'" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit cee4354

Please sign in to comment.