-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refa: split up the single .csproj we had into 4 distinct projects so …
…that we will now generate separate nugets for iOS, iOSSimulator.Arm64, iOSSimulator.x64 and MacCatalyst (wip)
- Loading branch information
1 parent
09fe9e0
commit 5d75867
Showing
17 changed files
with
2,059 additions
and
326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
Laerdal.Dfu.Bindings.MacCatalyst/Laerdal.Dfu.Bindings.MacCatalyst.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<ProjectRootPath>$(MSBuildThisFileDirectory)</ProjectRootPath> | ||
|
||
<Laerdal_Package_Name>Laerdal.Dfu.Bindings.MacCatalyst</Laerdal_Package_Name> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0-maccatalyst</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<_CompileAndGenerateFatLibs_Config>$(_CompileAndGenerateFatLibs_Config) SUPPORTS_MACCATALYST='YES'</_CompileAndGenerateFatLibs_Config> | ||
<_CompileAndGenerateFatLibs_Config>$(_CompileAndGenerateFatLibs_Config) XCODEBUILD_TARGET_SDK='macosx'</_CompileAndGenerateFatLibs_Config> | ||
<_CompileAndGenerateFatLibs_Config>$(_CompileAndGenerateFatLibs_Config) XCODEBUILD_TARGET_ARCH='arm64'</_CompileAndGenerateFatLibs_Config> | ||
|
||
<_CompileAndGenerateFatLibs_Config>$(_CompileAndGenerateFatLibs_Config) XCODE_IDE_DEV_PATH='$(Laerdal_Bindings_MacCatalyst___Xcode_Ide_Dev_Path)'</_CompileAndGenerateFatLibs_Config> | ||
<_CompileAndGenerateFatLibs_Config>$(_CompileAndGenerateFatLibs_Config) XCODEBUILD_TARGET_SDK_VERSION='$(Laerdal_Bindings_MacCatalyst___Sdk_Version)'</_CompileAndGenerateFatLibs_Config> | ||
</PropertyGroup> | ||
|
||
<Import Project="../Laerdal.Scripts/Laerdal.targets"/> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
using ObjCRuntime; | ||
|
||
namespace Laerdal.Dfu.Bindings.iOS | ||
{ | ||
[Native] | ||
public enum DFUError : long | ||
{ | ||
RemoteLegacyDFUSuccess = 1, | ||
RemoteLegacyDFUInvalidState = 2, | ||
RemoteLegacyDFUNotSupported = 3, | ||
RemoteLegacyDFUDataExceedsLimit = 4, | ||
RemoteLegacyDFUCrcError = 5, | ||
RemoteLegacyDFUOperationFailed = 6, | ||
RemoteSecureDFUSuccess = 11, | ||
RemoteSecureDFUOpCodeNotSupported = 12, | ||
RemoteSecureDFUInvalidParameter = 13, | ||
RemoteSecureDFUInsufficientResources = 14, | ||
RemoteSecureDFUInvalidObject = 15, | ||
RemoteSecureDFUSignatureMismatch = 16, | ||
RemoteSecureDFUUnsupportedType = 17, | ||
RemoteSecureDFUOperationNotPermitted = 18, | ||
RemoteSecureDFUOperationFailed = 20, | ||
RemoteSecureDFUExtendedError = 21, | ||
RemoteExtendedErrorWrongCommandFormat = 22, | ||
RemoteExtendedErrorUnknownCommand = 23, | ||
RemoteExtendedErrorInitCommandInvalid = 24, | ||
RemoteExtendedErrorFwVersionFailure = 25, | ||
RemoteExtendedErrorHwVersionFailure = 26, | ||
RemoteExtendedErrorSdVersionFailure = 27, | ||
RemoteExtendedErrorSignatureMissing = 28, | ||
RemoteExtendedErrorWrongHashType = 29, | ||
RemoteExtendedErrorHashFailed = 30, | ||
RemoteExtendedErrorWrongSignatureType = 31, | ||
RemoteExtendedErrorVerificationFailed = 32, | ||
RemoteExtendedErrorInsufficientSpace = 33, | ||
RemoteExperimentalButtonlessDFUSuccess = 9001, | ||
RemoteExperimentalButtonlessDFUOpCodeNotSupported = 9002, | ||
RemoteExperimentalButtonlessDFUOperationFailed = 9004, | ||
RemoteButtonlessDFUSuccess = 91, | ||
RemoteButtonlessDFUOpCodeNotSupported = 92, | ||
RemoteButtonlessDFUOperationFailed = 94, | ||
RemoteButtonlessDFUInvalidAdvertisementName = 95, | ||
RemoteButtonlessDFUBusy = 96, | ||
RemoteButtonlessDFUNotBonded = 97, | ||
FileNotSpecified = 101, | ||
FileInvalid = 102, | ||
ExtendedInitPacketRequired = 103, | ||
InitPacketRequired = 104, | ||
FailedToConnect = 201, | ||
DeviceDisconnected = 202, | ||
BluetoothDisabled = 203, | ||
ServiceDiscoveryFailed = 301, | ||
DeviceNotSupported = 302, | ||
ReadingVersionFailed = 303, | ||
EnablingControlPointFailed = 304, | ||
WritingCharacteristicFailed = 305, | ||
ReceivingNotificationFailed = 306, | ||
UnsupportedResponse = 307, | ||
BytesLost = 308, | ||
CrcError = 309, | ||
InvalidInternalState = 500 | ||
} | ||
|
||
public enum DFUFirmwareType : byte | ||
{ | ||
Softdevice = 1, | ||
Bootloader = 2, | ||
Application = 4, | ||
SoftdeviceBootloader = 3, | ||
SoftdeviceBootloaderApplication = 7 | ||
} | ||
|
||
[Native] | ||
public enum DFUState : long | ||
{ | ||
Connecting = 0, | ||
Starting = 1, | ||
EnablingDfuMode = 2, | ||
Uploading = 3, | ||
Validating = 4, | ||
Disconnecting = 5, | ||
Completed = 6, | ||
Aborted = 7 | ||
} | ||
|
||
[Native] | ||
public enum DFUUuidType : long | ||
{ | ||
LegacyService = 0, | ||
LegacyControlPoint = 1, | ||
LegacyPacket = 2, | ||
LegacyVersion = 3, | ||
SecureService = 4, | ||
SecureControl = 5, | ||
SecurePacket = 6, | ||
ButtonlessService = 7, | ||
ButtonlessCharacteristic = 8, | ||
ButtonlessWithoutBondSharing = 9, | ||
ButtonlessWithBondSharing = 10 | ||
} | ||
|
||
[Native] | ||
public enum LogLevel : long | ||
{ | ||
Debug = 0, | ||
Verbose = 1, | ||
Info = 5, | ||
Application = 10, | ||
Warning = 15, | ||
Error = 20 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.