sdk升级
This commit is contained in:
parent
685a993601
commit
503cc9dca8
Binary file not shown.
@ -38,6 +38,14 @@
|
||||
HorizontalOptions="Center"
|
||||
VerticalOptions="Center"
|
||||
HorizontalTextAlignment="Center" />
|
||||
<Label Grid.Row="1"
|
||||
Text="{Binding OperationElapsed, StringFormat='耗时: {0}'}"
|
||||
FontSize="12"
|
||||
TextColor="Gray"
|
||||
HorizontalOptions="Center"
|
||||
VerticalOptions="End"
|
||||
HorizontalTextAlignment="Center"
|
||||
Margin="0,0,0,-20" />
|
||||
</Grid>
|
||||
|
||||
<!-- 设备信息 -->
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using NFCLockDemoV2.ViewModels;
|
||||
|
||||
#if IOS
|
||||
#if IOS && !MACCATALYST
|
||||
using Foundation;
|
||||
using NFCManager = NfcLock.Ios.Binding.NFCManager;
|
||||
#endif
|
||||
@ -11,17 +11,16 @@ public partial class MainPage : ContentPage
|
||||
{
|
||||
private MainViewModel _mainMainViewModel;
|
||||
|
||||
#if IOS
|
||||
#if IOS && !MACCATALYST
|
||||
private void SetNFCCallbacks()
|
||||
{
|
||||
NFCManager.SetLoopCbWithCb((NSString id, bool isNew,int rssi) => {
|
||||
NFCManager.Shared.SetDeviceDiscoveredCallback((NSString id, int isNew, int rssi) => {
|
||||
_mainMainViewModel.DeviceId = id;
|
||||
_mainMainViewModel.DeviceRssi = rssi.ToString();
|
||||
return true;
|
||||
NFCManager.Shared.ShowTipsWith("Device detected");
|
||||
});
|
||||
NFCManager.SetFinishedCbWithCb(() =>
|
||||
NFCManager.Shared.SetOperationFinishedCallback(() =>
|
||||
{
|
||||
System.Diagnostics.Debug.WriteLine("finished");
|
||||
_mainMainViewModel.DeviceId = "--";
|
||||
_mainMainViewModel.DeviceRssi = "--";
|
||||
_mainMainViewModel.DeviceStatus = "NFC操作完成";
|
||||
@ -29,17 +28,51 @@ public partial class MainPage : ContentPage
|
||||
_mainMainViewModel.ArcProgress = 0;
|
||||
});
|
||||
|
||||
NFCManager.SetChargingCbWithCb((NSString res, int level) =>
|
||||
NFCManager.Shared.SetChargingCallback((NSString res, int level) =>
|
||||
{
|
||||
if (res == "OK")
|
||||
{
|
||||
System.Diagnostics.Debug.WriteLine($"res: {res}, level: {level}");
|
||||
_mainMainViewModel.UpdateMessage($"充电中({level}%)");
|
||||
_mainMainViewModel.ArcProgress = level;
|
||||
NFCManager.Shared.ShowTipsWith($"Charing ({level})%)");
|
||||
}
|
||||
else if (res == "UNAUTHORIZED")
|
||||
{
|
||||
NFCManager.Shared.EndScanWith("验证失败");
|
||||
}
|
||||
else
|
||||
{
|
||||
NFCManager.Shared.EndScanWith("充电失败");
|
||||
}
|
||||
});
|
||||
|
||||
NFCManager.SetControllingCbWithCb((NSString res, int progress) =>
|
||||
NFCManager.Shared.SetControllingCallback((NSString res, int progress, NSString ctrl) =>
|
||||
{
|
||||
System.Diagnostics.Debug.WriteLine($"res: {res}, progress: {progress}");
|
||||
_mainMainViewModel.UpdateMessage($"控制中({progress}%)");
|
||||
System.Diagnostics.Debug.WriteLine($"res: {res}, progress: {progress}, ctrl: {ctrl}");
|
||||
|
||||
if (res == "OK")
|
||||
{
|
||||
if (progress >= 100)
|
||||
{
|
||||
string operation = _mainMainViewModel.Operation == OperationType.UNLOCK ? "Unlocked" : "Locked";
|
||||
NFCManager.Shared.ShowTipsWith($"{operation}");
|
||||
NFCManager.Shared.EndScan();
|
||||
}
|
||||
else
|
||||
{
|
||||
string operation = _mainMainViewModel.Operation == OperationType.UNLOCK ? "Unlocking" : "Locking";
|
||||
_mainMainViewModel.UpdateMessage($"{operation} ({progress}%)");
|
||||
NFCManager.Shared.ShowTipsWith($"{operation} ({progress}%)");
|
||||
}
|
||||
}
|
||||
else if (res == "UNAUTHORIZED")
|
||||
{
|
||||
NFCManager.Shared.EndScanWith("验证失败");
|
||||
}
|
||||
else
|
||||
{
|
||||
NFCManager.Shared.EndScanWith("充电失败");
|
||||
}
|
||||
});
|
||||
}
|
||||
#endif
|
||||
@ -54,24 +87,25 @@ public partial class MainPage : ContentPage
|
||||
protected override void OnAppearing()
|
||||
{
|
||||
base.OnAppearing();
|
||||
#if IOS
|
||||
#if IOS && !MACCATALYST
|
||||
SetNFCCallbacks();
|
||||
#endif
|
||||
}
|
||||
|
||||
private void LockClicked(object? sender, EventArgs e)
|
||||
{
|
||||
#if IOS
|
||||
NFCManager.LockWithPassword(_mainMainViewModel.Password);
|
||||
NFCManager.StartScan();
|
||||
#if IOS && !MACCATALYST
|
||||
|
||||
NFCManager.Shared.LockWith(_mainMainViewModel.Password);
|
||||
NFCManager.Shared.StartScanWith("Hold your iPhone near the device");
|
||||
#endif
|
||||
}
|
||||
|
||||
private void UnlockClicked(object? sender, EventArgs e)
|
||||
{
|
||||
#if IOS
|
||||
NFCManager.UnlockWithPassword(_mainMainViewModel.Password);
|
||||
NFCManager.StartScan();
|
||||
#if IOS && !MACCATALYST
|
||||
NFCManager.Shared.UnlockWith(_mainMainViewModel.Password);
|
||||
NFCManager.Shared.StartScanWith("Hold your iPhone near the device");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@ -1,8 +1,8 @@
|
||||
using Microsoft.Extensions.Logging;
|
||||
using NFCLockDemoV2.ViewModels;
|
||||
#if ANDROID
|
||||
/*#if ANDROID
|
||||
using NFCLockDemoV2.Platforms.Android;
|
||||
#endif
|
||||
#endif*/
|
||||
|
||||
namespace NFCLockDemoV2
|
||||
{
|
||||
@ -23,9 +23,9 @@ namespace NFCLockDemoV2
|
||||
builder.Logging.AddDebug();
|
||||
#endif
|
||||
builder.Services.AddSingleton<MainViewModel>();
|
||||
#if ANDROID
|
||||
/*#if ANDROID
|
||||
builder.Services.AddSingleton<NFCCallbacks>();
|
||||
#endif
|
||||
#endif*/
|
||||
return builder.Build();
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,18 +1,8 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net10.0-android;net10.0-ios;net10.0-maccatalyst</TargetFrameworks>
|
||||
<TargetFrameworks>net10.0-android;net10.0-ios</TargetFrameworks>
|
||||
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net10.0-windows10.0.19041.0</TargetFrameworks>
|
||||
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
|
||||
<!-- <TargetFrameworks>$(TargetFrameworks);net10.0-tizen</TargetFrameworks> -->
|
||||
|
||||
<!-- Note for MacCatalyst:
|
||||
The default runtime is maccatalyst-x64, except in Release config, in which case the default is maccatalyst-x64;maccatalyst-arm64.
|
||||
When specifying both architectures, use the plural <RuntimeIdentifiers> instead of the singular <RuntimeIdentifier>.
|
||||
The Mac App Store will NOT accept apps with ONLY maccatalyst-arm64 indicated;
|
||||
either BOTH runtimes must be indicated or ONLY macatalyst-x64. -->
|
||||
<!-- For example: <RuntimeIdentifiers>maccatalyst-x64;maccatalyst-arm64</RuntimeIdentifiers> -->
|
||||
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>NFCLockDemoV2</RootNamespace>
|
||||
<UseMaui>true</UseMaui>
|
||||
@ -35,11 +25,9 @@
|
||||
<WindowsPackageType>None</WindowsPackageType>
|
||||
|
||||
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">15.0</SupportedOSPlatformVersion>
|
||||
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">15.0</SupportedOSPlatformVersion>
|
||||
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">30.0</SupportedOSPlatformVersion>
|
||||
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion>
|
||||
<TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion>
|
||||
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net10.0-android|AnyCPU'">
|
||||
@ -48,38 +36,9 @@
|
||||
<ApplicationId>com.elitesys.nfclockdemov2</ApplicationId>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net10.0-android|AnyCPU'">
|
||||
<AndroidKeyStore>False</AndroidKeyStore>
|
||||
<ApplicationId>com.elitesys.nfclockdemov2</ApplicationId>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net10.0-ios|AnyCPU'">
|
||||
<ApplicationId>com.elitesys.nfclockdemov2</ApplicationId>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net10.0-maccatalyst|AnyCPU'">
|
||||
<ApplicationId>com.elitesys.nfclockdemov2</ApplicationId>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net10.0-windows10.0.19041.0|AnyCPU'">
|
||||
<ApplicationId>com.elitesys.nfclockdemov2</ApplicationId>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net10.0-ios|AnyCPU'">
|
||||
<ApplicationId>com.elitesys.nfclockdemov2</ApplicationId>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net10.0-maccatalyst|AnyCPU'">
|
||||
<ApplicationId>com.elitesys.nfclockdemov2</ApplicationId>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net10.0-windows10.0.19041.0|AnyCPU'">
|
||||
<ApplicationId>com.elitesys.nfclockdemov2</ApplicationId>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(TargetFramework)'=='net10.0-ios'">
|
||||
<ProvisioningType>manual</ProvisioningType>
|
||||
<CodesignKey>iPhone Distribution</CodesignKey>
|
||||
<CodesignKey>Apple Distribution: Elitesys Technology Limited (65WPY33KVK)</CodesignKey>
|
||||
<CodesignProvision>nfclockdemoProfile</CodesignProvision>
|
||||
</PropertyGroup>
|
||||
|
||||
@ -118,8 +77,4 @@
|
||||
<ProjectReference Include="..\NfcLock.Ios.Binding\NfcLock.Ios.Binding.csproj" Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Platforms\iOS\Frameworks\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
92
NFCLockDemoV2/Platforms/Android/AndroidNfcCallBack.cs
Normal file
92
NFCLockDemoV2/Platforms/Android/AndroidNfcCallBack.cs
Normal file
@ -0,0 +1,92 @@
|
||||
using Com.Lvcheng.Lock.Shared.Nfc.Kmp;
|
||||
using Java.Lang;
|
||||
using NFCLockDemoV2.ViewModels;
|
||||
using Math = System.Math;
|
||||
|
||||
namespace NFCLockDemoV2;
|
||||
|
||||
public class AndroidNfcCallBack : Java.Lang.Object, IAndroidNFCCallbacks
|
||||
{
|
||||
private readonly MainViewModel mainViewModel;
|
||||
private long startTimestamp;
|
||||
|
||||
public AndroidNfcCallBack(MainViewModel mainViewModel)
|
||||
{
|
||||
this.mainViewModel = mainViewModel;
|
||||
}
|
||||
|
||||
public void Charging(Result result, Integer? p1)
|
||||
{
|
||||
startTimestamp = System.Diagnostics.Stopwatch.GetTimestamp();
|
||||
if (result == Result.Ok)
|
||||
{
|
||||
var level = p1?.IntValue() ?? 0;
|
||||
string levelText = level.ToString();
|
||||
|
||||
var progress = Math.Min(level, 100) / 3 * 2;
|
||||
mainViewModel.ArcProgress = progress;
|
||||
mainViewModel.UpdateMessage("充电中(" + levelText + "%)");
|
||||
}
|
||||
else if (result == Result.Unauthorized)
|
||||
{
|
||||
mainViewModel.ArcProgress = 0;
|
||||
mainViewModel.UpdateMessage("验证失败");
|
||||
}
|
||||
else
|
||||
{
|
||||
mainViewModel.UpdateMessage("充电失败");
|
||||
}
|
||||
}
|
||||
|
||||
public void Controlling(Result result, Integer? p1, Ctrl ctrl)
|
||||
{
|
||||
var operationType = ctrl == Ctrl.Lock ? "关锁" : "开锁";
|
||||
if (result == Result.Ok)
|
||||
{
|
||||
mainViewModel.OperationElapsed = FormatElapsed(startTimestamp);
|
||||
mainViewModel.ArcProgress = 100;
|
||||
mainViewModel.UpdateMessage($"{operationType}成功");
|
||||
|
||||
} else if (result == Result.Unauthorized)
|
||||
{
|
||||
mainViewModel.ArcProgress = 0;
|
||||
mainViewModel.UpdateMessage($"验证失败");
|
||||
}
|
||||
else
|
||||
{
|
||||
mainViewModel.ArcProgress = 0;
|
||||
mainViewModel.UpdateMessage($"{operationType}失败");
|
||||
}
|
||||
}
|
||||
|
||||
public void CustomData(Result result, CustomDataConfig config, byte[]? data)
|
||||
{
|
||||
}
|
||||
|
||||
public void Discovered(long id, bool isNew, Integer? p2)
|
||||
{
|
||||
// 更新设备信息
|
||||
mainViewModel.DeviceId = id.ToString();
|
||||
mainViewModel.DeviceRssi = p2?.ToString() ?? "--";
|
||||
}
|
||||
|
||||
public void Finished()
|
||||
{
|
||||
startTimestamp = 0;
|
||||
mainViewModel.DeviceId = "--";
|
||||
mainViewModel.DeviceRssi = "--";
|
||||
mainViewModel.DeviceStatus = "NFC操作完成";
|
||||
mainViewModel.Operation = null;
|
||||
mainViewModel.ArcProgress = 0;
|
||||
}
|
||||
|
||||
public void SetKey(Result result, string password)
|
||||
{
|
||||
}
|
||||
|
||||
private static string FormatElapsed(long startTimestamp)
|
||||
{
|
||||
double elapsedMs = (System.Diagnostics.Stopwatch.GetTimestamp() - startTimestamp) * 1000.0 / System.Diagnostics.Stopwatch.Frequency;
|
||||
return elapsedMs >= 1000 ? $"{elapsedMs / 1000.0:F2}s" : $"{elapsedMs:F0}ms";
|
||||
}
|
||||
}
|
||||
@ -3,9 +3,9 @@ using Android.Content;
|
||||
using Android.Content.PM;
|
||||
using Android.Nfc;
|
||||
using Android.OS;
|
||||
using Com.Lvcheng.Lock.Shared.Nfc.Kmp;
|
||||
using NFCLockDemoV2;
|
||||
using NFCLockDemoV2.Platforms.Android;
|
||||
using System.Diagnostics;
|
||||
using NFCLockDemoV2.ViewModels;
|
||||
|
||||
namespace NFCLockAppV2;
|
||||
|
||||
@ -14,15 +14,27 @@ namespace NFCLockAppV2;
|
||||
[IntentFilter(new[] { NfcAdapter.ActionNdefDiscovered, NfcAdapter.ActionTechDiscovered, NfcAdapter.ActionTagDiscovered }, Categories = new[] { Intent.CategoryDefault }, DataMimeType = "text/plain")]
|
||||
public class MainActivity : MauiAppCompatActivity
|
||||
{
|
||||
private NFCLockHelper nfcHelper;
|
||||
private NFCCallbacks _callbacks;
|
||||
|
||||
private AndroidNFCHelper nfcHelper;
|
||||
private MainViewModel _mainViewModel;
|
||||
protected override void OnCreate(Bundle savedInstanceState)
|
||||
{
|
||||
base.OnCreate(savedInstanceState);
|
||||
_callbacks = new NFCCallbacks();
|
||||
nfcHelper = new NFCLockHelper(this, _callbacks);
|
||||
|
||||
_mainViewModel = Microsoft.Maui.Controls.Application.Current.Handler.MauiContext.Services.GetService<MainViewModel>();
|
||||
nfcHelper = new AndroidNFCHelper(this, new AndroidNfcCallBack(_mainViewModel));
|
||||
_mainViewModel.OperationTask = () =>
|
||||
{
|
||||
switch (_mainViewModel.Operation)
|
||||
{
|
||||
case OperationType.LOCK:
|
||||
nfcHelper.Lock(_mainViewModel.Password);
|
||||
break;
|
||||
case OperationType.UNLOCK:
|
||||
nfcHelper.Unlock(_mainViewModel.Password);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
protected override void OnResume()
|
||||
@ -36,11 +48,4 @@ public class MainActivity : MauiAppCompatActivity
|
||||
base.OnPause();
|
||||
nfcHelper.OnPause();
|
||||
}
|
||||
|
||||
protected override void OnNewIntent(Intent intent)
|
||||
{
|
||||
base.OnNewIntent(intent);
|
||||
nfcHelper.OnNewIntent(intent);
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,137 +0,0 @@
|
||||
using Java.Lang;
|
||||
using Com.Lvcheng.Lock.Shared.Nfc.Example.Java;
|
||||
using NFCLockDemoV2.ViewModels;
|
||||
using Android.Util;
|
||||
using Exception = System.Exception;
|
||||
|
||||
namespace NFCLockDemoV2.Platforms.Android
|
||||
{
|
||||
public class NFCCallbacks
|
||||
{
|
||||
private readonly MainViewModel mainViewModel;
|
||||
private ViewModels.OperationType? Operation => mainViewModel.Operation;
|
||||
public NFCCallbacks()
|
||||
{
|
||||
mainViewModel = Application.Current?.Handler?.MauiContext?.Services.GetService<MainViewModel>();
|
||||
}
|
||||
|
||||
public void OnFinished()
|
||||
{
|
||||
mainViewModel.DeviceId = "--";
|
||||
mainViewModel.DeviceRssi = "--";
|
||||
mainViewModel.DeviceStatus = "NFC操作完成";
|
||||
//mainViewModel.Operation = null;
|
||||
mainViewModel.ArcProgress = 0;
|
||||
}
|
||||
|
||||
public bool OnLoop(DeviceManagerWrapper? wrapper, long? id, bool? isNew, int? rssi)
|
||||
{
|
||||
try
|
||||
{
|
||||
// 更新设备信息
|
||||
mainViewModel.DeviceId = id?.ToString() ?? "--";
|
||||
mainViewModel.DeviceRssi = rssi?.ToString() ?? "--";
|
||||
|
||||
string password = mainViewModel.Password;
|
||||
|
||||
// 开关锁需要先充电
|
||||
if (Operation == ViewModels.OperationType.LOCK || Operation == ViewModels.OperationType.UNLOCK)
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
Com.Lvcheng.Lock.Shared.Nfc.Result result = wrapper.GetChargeLevel(password);
|
||||
if (result == Com.Lvcheng.Lock.Shared.Nfc.Result.Ok)
|
||||
{
|
||||
Integer? level = wrapper.MGetChargeLevel();
|
||||
string levelText = level?.ToString() ?? "0";
|
||||
|
||||
// 在主线程上更新UI
|
||||
mainViewModel.UpdateMessage("充电中(" + levelText + "%)");
|
||||
|
||||
// 更新进度条
|
||||
if (level != null)
|
||||
{
|
||||
mainViewModel.ArcProgress = level.IntValue();
|
||||
}
|
||||
|
||||
if (level != null && level.IntValue() >= 100)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if (result == Com.Lvcheng.Lock.Shared.Nfc.Result.Unauthorized)
|
||||
{
|
||||
mainViewModel.UpdateMessage("验证失败");
|
||||
// 返回 false 手动结束 NFC 连接
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
mainViewModel.UpdateMessage("充电失败");
|
||||
return false;
|
||||
}
|
||||
|
||||
// 添加短暂延迟以避免过度频繁的循环
|
||||
System.Threading.Thread.Sleep(100);
|
||||
}
|
||||
}
|
||||
|
||||
if (Operation != null)
|
||||
{
|
||||
switch (Operation)
|
||||
{
|
||||
case ViewModels.OperationType.UNLOCK:
|
||||
if (wrapper.Control(password, false) == Com.Lvcheng.Lock.Shared.Nfc.Result.Ok)
|
||||
{
|
||||
mainViewModel.UpdateMessage("开锁成功");
|
||||
}
|
||||
else
|
||||
{
|
||||
mainViewModel.UpdateMessage("开锁失败");
|
||||
}
|
||||
return false;
|
||||
|
||||
case ViewModels.OperationType.LOCK:
|
||||
if (wrapper.Control(password, true) == Com.Lvcheng.Lock.Shared.Nfc.Result.Ok)
|
||||
{
|
||||
mainViewModel.UpdateMessage("关锁成功");
|
||||
}
|
||||
else
|
||||
{
|
||||
mainViewModel.UpdateMessage("关锁失败");
|
||||
}
|
||||
return false;
|
||||
|
||||
case ViewModels.OperationType.SET_PASSWORD:
|
||||
if (wrapper.SetKey(password, "") == Com.Lvcheng.Lock.Shared.Nfc.Result.Ok)
|
||||
{
|
||||
mainViewModel.UpdateMessage("设置密码成功");
|
||||
}
|
||||
else
|
||||
{
|
||||
mainViewModel.UpdateMessage("设置密码失败");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.Error("NFCCallbacks", "Error in OnLoop: " + ex.Message);
|
||||
mainViewModel.UpdateMessage("操作异常: " + ex.Message);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public void OnLost()
|
||||
{
|
||||
mainViewModel.DeviceId = "--";
|
||||
mainViewModel.DeviceRssi = "--";
|
||||
mainViewModel.DeviceStatus = "设备连接断开";
|
||||
//mainViewModel.Operation = null;
|
||||
mainViewModel.ArcProgress = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,124 +0,0 @@
|
||||
using Android.App;
|
||||
using Android.Content;
|
||||
using Android.Nfc;
|
||||
using Android.Nfc.Tech;
|
||||
using Com.Lvcheng.Lock.Shared.Nfc.Example.Java;
|
||||
using NFCLockAppV2;
|
||||
using NFCLockDemoV2.Platforms.Android;
|
||||
|
||||
namespace NFCLockDemoV2;
|
||||
|
||||
public class NFCLockHelper
|
||||
{
|
||||
private readonly MainActivity _activity;
|
||||
private readonly NFCCallbacks _callbacks;
|
||||
|
||||
private readonly NfcAdapter _nfcAdapter;
|
||||
private readonly PendingIntent _pendingIntent;
|
||||
private string[][] _techLists = [[typeof(NfcA).FullName, typeof(NdefFormatable).FullName, typeof(MifareUltralight).FullName]];
|
||||
private IntentFilter[] _intentFilters = [new(NfcAdapter.ActionNdefDiscovered), new(NfcAdapter.ActionTechDiscovered), new(NfcAdapter.ActionTagDiscovered)];
|
||||
private volatile bool _processing = false;
|
||||
|
||||
public NFCLockHelper(MainActivity activity, NFCCallbacks callbacks)
|
||||
{
|
||||
_activity = activity;
|
||||
_callbacks = callbacks;
|
||||
_nfcAdapter = NfcAdapter.GetDefaultAdapter(_activity);
|
||||
_pendingIntent = PendingIntent.GetActivity(_activity, 0, new Intent(_activity, typeof(MainActivity)).AddFlags(ActivityFlags.ReceiverReplacePending), PendingIntentFlags.Mutable);
|
||||
}
|
||||
|
||||
public void OnResume()
|
||||
{
|
||||
if (_nfcAdapter != null)
|
||||
{
|
||||
_nfcAdapter.EnableForegroundDispatch(_activity, _pendingIntent, _intentFilters, _techLists);
|
||||
}
|
||||
}
|
||||
|
||||
public void OnPause()
|
||||
{
|
||||
if (_nfcAdapter != null)
|
||||
{
|
||||
_nfcAdapter.DisableForegroundDispatch(_activity);
|
||||
}
|
||||
}
|
||||
|
||||
public void OnNewIntent(Intent intent)
|
||||
{
|
||||
if (!_processing)
|
||||
{
|
||||
|
||||
if (intent != null && (intent.Action == NfcAdapter.ActionNdefDiscovered ||
|
||||
intent.Action == NfcAdapter.ActionTechDiscovered ||
|
||||
intent.Action == NfcAdapter.ActionTagDiscovered))
|
||||
{
|
||||
Task.Run(async() =>
|
||||
{
|
||||
try
|
||||
{
|
||||
_processing = true;
|
||||
Tag? tag = intent.GetParcelableExtra(NfcAdapter.ExtraTag) as Tag;
|
||||
if (tag != null)
|
||||
{
|
||||
NfcA? nfcA = NfcA.Get(tag);
|
||||
if (nfcA != null)
|
||||
{
|
||||
nfcA.Connect();
|
||||
nfcA.Timeout = 1000;
|
||||
Process(nfcA);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_callbacks.OnLost();
|
||||
Console.WriteLine(e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
await Task.Delay(1000);
|
||||
_processing = false;
|
||||
_callbacks.OnFinished();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void Process(NfcA nfcA)
|
||||
{
|
||||
DeviceManagerWrapper wrapper = new DeviceManagerWrapper(nfcA);
|
||||
|
||||
try
|
||||
{
|
||||
Com.Lvcheng.Lock.Shared.Nfc.Result initRes = wrapper.Init();
|
||||
if (initRes.Equals(Com.Lvcheng.Lock.Shared.Nfc.Result.Ok))
|
||||
{
|
||||
long? id;
|
||||
bool? isNew;
|
||||
int? mRssi;
|
||||
|
||||
while (true)
|
||||
{
|
||||
Com.Lvcheng.Lock.Shared.Nfc.Result getInfoRes = wrapper.Info;
|
||||
if (!getInfoRes.Equals(Com.Lvcheng.Lock.Shared.Nfc.Result.Ok))
|
||||
return;
|
||||
|
||||
_ = wrapper.Rssi;
|
||||
id = wrapper.MGetId()?.LongValue() ?? null;
|
||||
isNew = wrapper.MGetIsNew()?.BooleanValue() ?? null;
|
||||
mRssi = wrapper.MGetRssi()?.IntValue() ?? null;
|
||||
|
||||
bool continueLoop = _callbacks.OnLoop(wrapper, id, isNew, mRssi);
|
||||
|
||||
if (!continueLoop)
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Console.WriteLine(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,707 +0,0 @@
|
||||
#import <Foundation/NSArray.h>
|
||||
#import <Foundation/NSDictionary.h>
|
||||
#import <Foundation/NSError.h>
|
||||
#import <Foundation/NSObject.h>
|
||||
#import <Foundation/NSSet.h>
|
||||
#import <Foundation/NSString.h>
|
||||
#import <Foundation/NSValue.h>
|
||||
|
||||
@class NFCSDKCV, NFCSDKCVCompanion, NFCSDKCallFunctionTask, NFCSDKChargeLevel, NFCSDKCommonTask, NFCSDKControlProgress, NFCSDKControlTask, NFCSDKCtrl, NFCSDKCtrlCompanion, NFCSDKDevice, NFCSDKDeviceInfo, NFCSDKDeviceLog, NFCSDKDeviceManager, NFCSDKGetLogTask, NFCSDKKotlinArray<T>, NFCSDKKotlinByteArray, NFCSDKKotlinByteIterator, NFCSDKKotlinEnum<E>, NFCSDKKotlinEnumCompanion, NFCSDKKotlinException, NFCSDKKotlinIllegalStateException, NFCSDKKotlinPair<__covariant A, __covariant B>, NFCSDKKotlinRuntimeException, NFCSDKKotlinThrowable, NFCSDKKotlinUnit, NFCSDKMet, NFCSDKMetCompanion, NFCSDKParameters, NFCSDKResult, NFCSDKSetKeyTask, NFCSDKSetParametersTask, NFCSDKUserType, NFCSDKUserTypeCompanion;
|
||||
|
||||
@protocol NFCSDKKotlinComparable, NFCSDKKotlinIterator, NFCSDKNFCCallbacks, NFCSDKNFCTag;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunknown-warning-option"
|
||||
#pragma clang diagnostic ignored "-Wincompatible-property-type"
|
||||
#pragma clang diagnostic ignored "-Wnullability"
|
||||
|
||||
#pragma push_macro("_Nullable_result")
|
||||
#if !__has_feature(nullability_nullable_result)
|
||||
#undef _Nullable_result
|
||||
#define _Nullable_result _Nullable
|
||||
#endif
|
||||
|
||||
__attribute__((swift_name("KotlinBase")))
|
||||
@interface NFCSDKBase : NSObject
|
||||
- (instancetype)init __attribute__((unavailable));
|
||||
+ (instancetype)new __attribute__((unavailable));
|
||||
+ (void)initialize __attribute__((objc_requires_super));
|
||||
@end
|
||||
|
||||
@interface NFCSDKBase (NFCSDKBaseCopying) <NSCopying>
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("KotlinMutableSet")))
|
||||
@interface NFCSDKMutableSet<ObjectType> : NSMutableSet<ObjectType>
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("KotlinMutableDictionary")))
|
||||
@interface NFCSDKMutableDictionary<KeyType, ObjectType> : NSMutableDictionary<KeyType, ObjectType>
|
||||
@end
|
||||
|
||||
@interface NSError (NSErrorNFCSDKKotlinException)
|
||||
@property (readonly) id _Nullable kotlinException;
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("KotlinNumber")))
|
||||
@interface NFCSDKNumber : NSNumber
|
||||
- (instancetype)initWithChar:(char)value __attribute__((unavailable));
|
||||
- (instancetype)initWithUnsignedChar:(unsigned char)value __attribute__((unavailable));
|
||||
- (instancetype)initWithShort:(short)value __attribute__((unavailable));
|
||||
- (instancetype)initWithUnsignedShort:(unsigned short)value __attribute__((unavailable));
|
||||
- (instancetype)initWithInt:(int)value __attribute__((unavailable));
|
||||
- (instancetype)initWithUnsignedInt:(unsigned int)value __attribute__((unavailable));
|
||||
- (instancetype)initWithLong:(long)value __attribute__((unavailable));
|
||||
- (instancetype)initWithUnsignedLong:(unsigned long)value __attribute__((unavailable));
|
||||
- (instancetype)initWithLongLong:(long long)value __attribute__((unavailable));
|
||||
- (instancetype)initWithUnsignedLongLong:(unsigned long long)value __attribute__((unavailable));
|
||||
- (instancetype)initWithFloat:(float)value __attribute__((unavailable));
|
||||
- (instancetype)initWithDouble:(double)value __attribute__((unavailable));
|
||||
- (instancetype)initWithBool:(BOOL)value __attribute__((unavailable));
|
||||
- (instancetype)initWithInteger:(NSInteger)value __attribute__((unavailable));
|
||||
- (instancetype)initWithUnsignedInteger:(NSUInteger)value __attribute__((unavailable));
|
||||
+ (instancetype)numberWithChar:(char)value __attribute__((unavailable));
|
||||
+ (instancetype)numberWithUnsignedChar:(unsigned char)value __attribute__((unavailable));
|
||||
+ (instancetype)numberWithShort:(short)value __attribute__((unavailable));
|
||||
+ (instancetype)numberWithUnsignedShort:(unsigned short)value __attribute__((unavailable));
|
||||
+ (instancetype)numberWithInt:(int)value __attribute__((unavailable));
|
||||
+ (instancetype)numberWithUnsignedInt:(unsigned int)value __attribute__((unavailable));
|
||||
+ (instancetype)numberWithLong:(long)value __attribute__((unavailable));
|
||||
+ (instancetype)numberWithUnsignedLong:(unsigned long)value __attribute__((unavailable));
|
||||
+ (instancetype)numberWithLongLong:(long long)value __attribute__((unavailable));
|
||||
+ (instancetype)numberWithUnsignedLongLong:(unsigned long long)value __attribute__((unavailable));
|
||||
+ (instancetype)numberWithFloat:(float)value __attribute__((unavailable));
|
||||
+ (instancetype)numberWithDouble:(double)value __attribute__((unavailable));
|
||||
+ (instancetype)numberWithBool:(BOOL)value __attribute__((unavailable));
|
||||
+ (instancetype)numberWithInteger:(NSInteger)value __attribute__((unavailable));
|
||||
+ (instancetype)numberWithUnsignedInteger:(NSUInteger)value __attribute__((unavailable));
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("KotlinByte")))
|
||||
@interface NFCSDKByte : NFCSDKNumber
|
||||
- (instancetype)initWithChar:(char)value;
|
||||
+ (instancetype)numberWithChar:(char)value;
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("KotlinUByte")))
|
||||
@interface NFCSDKUByte : NFCSDKNumber
|
||||
- (instancetype)initWithUnsignedChar:(unsigned char)value;
|
||||
+ (instancetype)numberWithUnsignedChar:(unsigned char)value;
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("KotlinShort")))
|
||||
@interface NFCSDKShort : NFCSDKNumber
|
||||
- (instancetype)initWithShort:(short)value;
|
||||
+ (instancetype)numberWithShort:(short)value;
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("KotlinUShort")))
|
||||
@interface NFCSDKUShort : NFCSDKNumber
|
||||
- (instancetype)initWithUnsignedShort:(unsigned short)value;
|
||||
+ (instancetype)numberWithUnsignedShort:(unsigned short)value;
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("KotlinInt")))
|
||||
@interface NFCSDKInt : NFCSDKNumber
|
||||
- (instancetype)initWithInt:(int)value;
|
||||
+ (instancetype)numberWithInt:(int)value;
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("KotlinUInt")))
|
||||
@interface NFCSDKUInt : NFCSDKNumber
|
||||
- (instancetype)initWithUnsignedInt:(unsigned int)value;
|
||||
+ (instancetype)numberWithUnsignedInt:(unsigned int)value;
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("KotlinLong")))
|
||||
@interface NFCSDKLong : NFCSDKNumber
|
||||
- (instancetype)initWithLongLong:(long long)value;
|
||||
+ (instancetype)numberWithLongLong:(long long)value;
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("KotlinULong")))
|
||||
@interface NFCSDKULong : NFCSDKNumber
|
||||
- (instancetype)initWithUnsignedLongLong:(unsigned long long)value;
|
||||
+ (instancetype)numberWithUnsignedLongLong:(unsigned long long)value;
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("KotlinFloat")))
|
||||
@interface NFCSDKFloat : NFCSDKNumber
|
||||
- (instancetype)initWithFloat:(float)value;
|
||||
+ (instancetype)numberWithFloat:(float)value;
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("KotlinDouble")))
|
||||
@interface NFCSDKDouble : NFCSDKNumber
|
||||
- (instancetype)initWithDouble:(double)value;
|
||||
+ (instancetype)numberWithDouble:(double)value;
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("KotlinBoolean")))
|
||||
@interface NFCSDKBoolean : NFCSDKNumber
|
||||
- (instancetype)initWithBool:(BOOL)value;
|
||||
+ (instancetype)numberWithBool:(BOOL)value;
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("KotlinComparable")))
|
||||
@protocol NFCSDKKotlinComparable
|
||||
@required
|
||||
- (int32_t)compareToOther:(id _Nullable)other __attribute__((swift_name("compareTo(other:)")));
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("KotlinEnum")))
|
||||
@interface NFCSDKKotlinEnum<E> : NFCSDKBase <NFCSDKKotlinComparable>
|
||||
- (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer));
|
||||
@property (class, readonly, getter=companion) NFCSDKKotlinEnumCompanion *companion __attribute__((swift_name("companion")));
|
||||
- (int32_t)compareToOther:(E)other __attribute__((swift_name("compareTo(other:)")));
|
||||
- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)")));
|
||||
- (NSUInteger)hash __attribute__((swift_name("hash()")));
|
||||
- (NSString *)description __attribute__((swift_name("description()")));
|
||||
@property (readonly) NSString *name __attribute__((swift_name("name")));
|
||||
@property (readonly) int32_t ordinal __attribute__((swift_name("ordinal")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("CV")))
|
||||
@interface NFCSDKCV : NFCSDKKotlinEnum<NFCSDKCV *>
|
||||
+ (instancetype)alloc __attribute__((unavailable));
|
||||
+ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable));
|
||||
- (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable));
|
||||
@property (class, readonly, getter=companion) NFCSDKCVCompanion *companion __attribute__((swift_name("companion")));
|
||||
@property (class, readonly) NFCSDKCV *low __attribute__((swift_name("low")));
|
||||
@property (class, readonly) NFCSDKCV *medium __attribute__((swift_name("medium")));
|
||||
@property (class, readonly) NFCSDKCV *high __attribute__((swift_name("high")));
|
||||
+ (NFCSDKKotlinArray<NFCSDKCV *> *)values __attribute__((swift_name("values()")));
|
||||
@property (class, readonly) NSArray<NFCSDKCV *> *entries __attribute__((swift_name("entries")));
|
||||
@property (readonly) uint16_t value __attribute__((swift_name("value")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("CV.Companion")))
|
||||
@interface NFCSDKCVCompanion : NFCSDKBase
|
||||
+ (instancetype)alloc __attribute__((unavailable));
|
||||
+ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable));
|
||||
+ (instancetype)companion __attribute__((swift_name("init()")));
|
||||
@property (class, readonly, getter=shared) NFCSDKCVCompanion *shared __attribute__((swift_name("shared")));
|
||||
- (NFCSDKCV * _Nullable)fromValueValue:(uint16_t)value __attribute__((swift_name("fromValue(value:)")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("ChargeLevel")))
|
||||
@interface NFCSDKChargeLevel : NFCSDKBase
|
||||
- (instancetype)initWithLevel:(uint16_t)level complete:(BOOL)complete __attribute__((swift_name("init(level:complete:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKChargeLevel *)doCopyLevel:(uint16_t)level complete:(BOOL)complete __attribute__((swift_name("doCopy(level:complete:)")));
|
||||
- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)")));
|
||||
- (NSUInteger)hash __attribute__((swift_name("hash()")));
|
||||
- (NSString *)description __attribute__((swift_name("description()")));
|
||||
@property (readonly) BOOL complete __attribute__((swift_name("complete")));
|
||||
@property (readonly) uint16_t level __attribute__((swift_name("level")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("ControlProgress")))
|
||||
@interface NFCSDKControlProgress : NFCSDKBase
|
||||
- (instancetype)initWithProgress:(uint16_t)progress complete:(BOOL)complete __attribute__((swift_name("init(progress:complete:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKControlProgress *)doCopyProgress:(uint16_t)progress complete:(BOOL)complete __attribute__((swift_name("doCopy(progress:complete:)")));
|
||||
- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)")));
|
||||
- (NSUInteger)hash __attribute__((swift_name("hash()")));
|
||||
- (NSString *)description __attribute__((swift_name("description()")));
|
||||
@property (readonly) BOOL complete __attribute__((swift_name("complete")));
|
||||
@property (readonly) uint16_t progress __attribute__((swift_name("progress")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("Ctrl")))
|
||||
@interface NFCSDKCtrl : NFCSDKKotlinEnum<NFCSDKCtrl *>
|
||||
+ (instancetype)alloc __attribute__((unavailable));
|
||||
+ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable));
|
||||
- (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable));
|
||||
@property (class, readonly, getter=companion) NFCSDKCtrlCompanion *companion __attribute__((swift_name("companion")));
|
||||
@property (class, readonly) NFCSDKCtrl *lock __attribute__((swift_name("lock")));
|
||||
@property (class, readonly) NFCSDKCtrl *unlock __attribute__((swift_name("unlock")));
|
||||
+ (NFCSDKKotlinArray<NFCSDKCtrl *> *)values __attribute__((swift_name("values()")));
|
||||
@property (class, readonly) NSArray<NFCSDKCtrl *> *entries __attribute__((swift_name("entries")));
|
||||
@property (readonly) uint8_t value __attribute__((swift_name("value")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("Ctrl.Companion")))
|
||||
@interface NFCSDKCtrlCompanion : NFCSDKBase
|
||||
+ (instancetype)alloc __attribute__((unavailable));
|
||||
+ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable));
|
||||
+ (instancetype)companion __attribute__((swift_name("init()")));
|
||||
@property (class, readonly, getter=shared) NFCSDKCtrlCompanion *shared __attribute__((swift_name("shared")));
|
||||
- (NFCSDKCtrl * _Nullable)fromValueValue:(uint8_t)value __attribute__((swift_name("fromValue(value:)")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("Device")))
|
||||
@interface NFCSDKDevice : NFCSDKBase
|
||||
- (instancetype)initWithS:(uint32_t)s __attribute__((swift_name("init(s:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKDevice *)doCopyS:(uint32_t)s __attribute__((swift_name("doCopy(s:)")));
|
||||
- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)")));
|
||||
- (NSUInteger)hash __attribute__((swift_name("hash()")));
|
||||
- (uint32_t)shiftC:(uint16_t)c __attribute__((swift_name("shift(c:)")));
|
||||
- (NSString *)description __attribute__((swift_name("description()")));
|
||||
@property (readonly) uint32_t s __attribute__((swift_name("s")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("DeviceInfo")))
|
||||
@interface NFCSDKDeviceInfo : NFCSDKBase
|
||||
- (instancetype)initWithId:(uint64_t)id isNew:(BOOL)isNew __attribute__((swift_name("init(id:isNew:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKDeviceInfo *)doCopyId:(uint64_t)id isNew:(BOOL)isNew __attribute__((swift_name("doCopy(id:isNew:)")));
|
||||
- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)")));
|
||||
- (NSUInteger)hash __attribute__((swift_name("hash()")));
|
||||
- (NSString *)description __attribute__((swift_name("description()")));
|
||||
@property (readonly) uint64_t id __attribute__((swift_name("id")));
|
||||
@property (readonly) BOOL isNew __attribute__((swift_name("isNew")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("DeviceLog")))
|
||||
@interface NFCSDKDeviceLog : NFCSDKBase
|
||||
- (instancetype)initWithTimestamp:(uint64_t)timestamp username:(NSString *)username ctrl:(NFCSDKCtrl * _Nullable)ctrl __attribute__((swift_name("init(timestamp:username:ctrl:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKDeviceLog *)doCopyTimestamp:(uint64_t)timestamp username:(NSString *)username ctrl:(NFCSDKCtrl * _Nullable)ctrl __attribute__((swift_name("doCopy(timestamp:username:ctrl:)")));
|
||||
- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)")));
|
||||
- (NSUInteger)hash __attribute__((swift_name("hash()")));
|
||||
- (NSString *)description __attribute__((swift_name("description()")));
|
||||
@property (readonly) NFCSDKCtrl * _Nullable ctrl __attribute__((swift_name("ctrl")));
|
||||
@property (readonly) uint64_t timestamp __attribute__((swift_name("timestamp")));
|
||||
@property (readonly) NSString *username __attribute__((swift_name("username")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("DeviceManager")))
|
||||
@interface NFCSDKDeviceManager : NFCSDKBase
|
||||
+ (instancetype)alloc __attribute__((unavailable));
|
||||
+ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable));
|
||||
+ (instancetype)deviceManager __attribute__((swift_name("init()")));
|
||||
@property (class, readonly, getter=shared) NFCSDKDeviceManager *shared __attribute__((swift_name("shared")));
|
||||
|
||||
/**
|
||||
* @note This method converts instances of CancellationException to errors.
|
||||
* Other uncaught Kotlin exceptions are fatal.
|
||||
*/
|
||||
- (void)controlT:(id<NFCSDKNFCTag>)t d:(NFCSDKDevice *)d key:(NFCSDKKotlinByteArray *)key ctrl:(NFCSDKCtrl *)ctrl completionHandler:(void (^)(NFCSDKResult * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("control(t:d:key:ctrl:completionHandler:)")));
|
||||
- (NFCSDKKotlinByteArray *)encKey:(NFCSDKKotlinByteArray *)key info:(NFCSDKDeviceInfo *)info __attribute__((swift_name("enc(key:info:)")));
|
||||
|
||||
/**
|
||||
* @note This method converts instances of CancellationException to errors.
|
||||
* Other uncaught Kotlin exceptions are fatal.
|
||||
*/
|
||||
- (void)getChargeLevelT:(id<NFCSDKNFCTag>)t d:(NFCSDKDevice *)d key:(NFCSDKKotlinByteArray *)key completionHandler:(void (^)(NFCSDKKotlinPair<NFCSDKResult *, NFCSDKChargeLevel *> * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("getChargeLevel(t:d:key:completionHandler:)")));
|
||||
|
||||
/**
|
||||
* @note This method converts instances of CancellationException to errors.
|
||||
* Other uncaught Kotlin exceptions are fatal.
|
||||
*/
|
||||
- (void)getControlProgressT:(id<NFCSDKNFCTag>)t d:(NFCSDKDevice *)d key:(NFCSDKKotlinByteArray *)key completionHandler:(void (^)(NFCSDKKotlinPair<NFCSDKResult *, NFCSDKControlProgress *> * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("getControlProgress(t:d:key:completionHandler:)")));
|
||||
|
||||
/**
|
||||
* @note This method converts instances of CancellationException to errors.
|
||||
* Other uncaught Kotlin exceptions are fatal.
|
||||
*/
|
||||
- (void)getInfoT:(id<NFCSDKNFCTag>)t d:(NFCSDKDevice *)d completionHandler:(void (^)(NFCSDKKotlinPair<NFCSDKResult *, NFCSDKDeviceInfo *> * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("getInfo(t:d:completionHandler:)")));
|
||||
|
||||
/**
|
||||
* @note This method converts instances of CancellationException to errors.
|
||||
* Other uncaught Kotlin exceptions are fatal.
|
||||
*/
|
||||
- (void)getLogT:(id<NFCSDKNFCTag>)t d:(NFCSDKDevice *)d key:(NFCSDKKotlinByteArray *)key completionHandler:(void (^)(NFCSDKKotlinPair<NFCSDKResult *, NSArray<NFCSDKDeviceLog *> *> * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("getLog(t:d:key:completionHandler:)")));
|
||||
|
||||
/**
|
||||
* @note This method converts instances of CancellationException to errors.
|
||||
* Other uncaught Kotlin exceptions are fatal.
|
||||
*/
|
||||
- (void)getRssiT:(id<NFCSDKNFCTag>)t d:(NFCSDKDevice *)d completionHandler:(void (^)(NFCSDKKotlinPair<NFCSDKResult *, NFCSDKUInt *> * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("getRssi(t:d:completionHandler:)")));
|
||||
|
||||
/**
|
||||
* @note This method converts instances of CancellationException to errors.
|
||||
* Other uncaught Kotlin exceptions are fatal.
|
||||
*/
|
||||
- (void)getVersionT:(id<NFCSDKNFCTag>)t d:(NFCSDKDevice *)d key:(NFCSDKKotlinByteArray *)key completionHandler:(void (^)(NFCSDKKotlinPair<NFCSDKResult *, NSArray<NFCSDKUInt *> *> * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("getVersion(t:d:key:completionHandler:)")));
|
||||
|
||||
/**
|
||||
* @note This method converts instances of CancellationException to errors.
|
||||
* Other uncaught Kotlin exceptions are fatal.
|
||||
*/
|
||||
- (void)doInitT:(id<NFCSDKNFCTag>)t completionHandler:(void (^)(NFCSDKKotlinPair<NFCSDKResult *, NFCSDKDevice *> * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("doInit(t:completionHandler:)")));
|
||||
|
||||
/**
|
||||
* @note This method converts instances of CancellationException to errors.
|
||||
* Other uncaught Kotlin exceptions are fatal.
|
||||
*/
|
||||
- (void)selectT:(id<NFCSDKNFCTag>)t d:(NFCSDKDevice *)d type:(NFCSDKUserType *)type completionHandler:(void (^)(NFCSDKResult * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("select(t:d:type:completionHandler:)")));
|
||||
|
||||
/**
|
||||
* @note This method converts instances of CancellationException to errors.
|
||||
* Other uncaught Kotlin exceptions are fatal.
|
||||
*/
|
||||
- (void)setKeyT:(id<NFCSDKNFCTag>)t d:(NFCSDKDevice *)d info:(NFCSDKDeviceInfo *)info key:(NFCSDKKotlinByteArray *)key sKey:(NFCSDKKotlinByteArray *)sKey completionHandler:(void (^)(NFCSDKResult * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("setKey(t:d:info:key:sKey:completionHandler:)")));
|
||||
|
||||
/**
|
||||
* @note This method converts instances of CancellationException to errors.
|
||||
* Other uncaught Kotlin exceptions are fatal.
|
||||
*/
|
||||
- (void)setParametersT:(id<NFCSDKNFCTag>)t d:(NFCSDKDevice *)d key:(NFCSDKKotlinByteArray *)key p:(NFCSDKParameters *)p completionHandler:(void (^)(NFCSDKResult * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("setParameters(t:d:key:p:completionHandler:)")));
|
||||
- (NFCSDKKotlinByteArray *)toFixed16Input:(NSString *)input __attribute__((swift_name("toFixed16(input:)")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("IOSNFCHelper")))
|
||||
@interface NFCSDKIOSNFCHelper : NFCSDKBase
|
||||
- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer));
|
||||
+ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead")));
|
||||
- (void)controlPassword:(NSString *)password ctrl:(NFCSDKCtrl *)ctrl __attribute__((swift_name("control(password:ctrl:)")));
|
||||
- (void)lockPassword:(NSString *)password __attribute__((swift_name("lock(password:)")));
|
||||
|
||||
/**
|
||||
* @note This method converts instances of CancellationException to errors.
|
||||
* Other uncaught Kotlin exceptions are fatal.
|
||||
*/
|
||||
- (void)processWithCompletionHandler:(void (^)(NSError * _Nullable))completionHandler __attribute__((swift_name("process(completionHandler:)")));
|
||||
- (void)setChargingCbCb:(void (^ _Nullable)(NSString *, NFCSDKInt * _Nullable))cb __attribute__((swift_name("setChargingCb(cb:)")));
|
||||
- (void)setControllingCbCb:(void (^ _Nullable)(NSString *, NFCSDKInt * _Nullable))cb __attribute__((swift_name("setControllingCb(cb:)")));
|
||||
- (void)setFinishedCbCb:(void (^ _Nullable)(void))cb __attribute__((swift_name("setFinishedCb(cb:)")));
|
||||
- (void)setLoopCbCb:(NFCSDKBoolean *(^)(NSString *, NFCSDKBoolean *, NFCSDKInt * _Nullable))cb __attribute__((swift_name("setLoopCb(cb:)")));
|
||||
- (void)setLostCbCb:(void (^ _Nullable)(void))cb __attribute__((swift_name("setLostCb(cb:)")));
|
||||
- (void)setTransceiverT:(void (^ _Nullable)(NFCSDKKotlinByteArray *, NFCSDKKotlinUnit *(^)(NFCSDKKotlinByteArray *)))t __attribute__((swift_name("setTransceiver(t:)")));
|
||||
- (void)unlockPassword:(NSString *)password __attribute__((swift_name("unlock(password:)")));
|
||||
@property void (^ _Nullable charging)(NSString *, NFCSDKInt * _Nullable) __attribute__((swift_name("charging")));
|
||||
@property void (^ _Nullable controlling)(NSString *, NFCSDKInt * _Nullable) __attribute__((swift_name("controlling")));
|
||||
@property void (^ _Nullable finished)(void) __attribute__((swift_name("finished")));
|
||||
@property NFCSDKBoolean *(^ _Nullable loop)(NSString *, NFCSDKBoolean *, NFCSDKInt * _Nullable) __attribute__((swift_name("loop")));
|
||||
@property void (^ _Nullable lost)(void) __attribute__((swift_name("lost")));
|
||||
@property void (^ _Nullable transceiver)(NFCSDKKotlinByteArray *, NFCSDKKotlinUnit *(^)(NFCSDKKotlinByteArray *)) __attribute__((swift_name("transceiver")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("Met")))
|
||||
@interface NFCSDKMet : NFCSDKKotlinEnum<NFCSDKMet *>
|
||||
+ (instancetype)alloc __attribute__((unavailable));
|
||||
+ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable));
|
||||
- (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable));
|
||||
@property (class, readonly, getter=companion) NFCSDKMetCompanion *companion __attribute__((swift_name("companion")));
|
||||
@property (class, readonly) NFCSDKMet *single __attribute__((swift_name("single")));
|
||||
@property (class, readonly) NFCSDKMet *voltage __attribute__((swift_name("voltage")));
|
||||
@property (class, readonly) NFCSDKMet *timer __attribute__((swift_name("timer")));
|
||||
+ (NFCSDKKotlinArray<NFCSDKMet *> *)values __attribute__((swift_name("values()")));
|
||||
@property (class, readonly) NSArray<NFCSDKMet *> *entries __attribute__((swift_name("entries")));
|
||||
@property (readonly) uint8_t value __attribute__((swift_name("value")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("Met.Companion")))
|
||||
@interface NFCSDKMetCompanion : NFCSDKBase
|
||||
+ (instancetype)alloc __attribute__((unavailable));
|
||||
+ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable));
|
||||
+ (instancetype)companion __attribute__((swift_name("init()")));
|
||||
@property (class, readonly, getter=shared) NFCSDKMetCompanion *shared __attribute__((swift_name("shared")));
|
||||
- (NFCSDKMet * _Nullable)fromValueValue:(uint8_t)value __attribute__((swift_name("fromValue(value:)")));
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("NFCTag")))
|
||||
@protocol NFCSDKNFCTag
|
||||
@required
|
||||
|
||||
/**
|
||||
* @note This method converts instances of CancellationException to errors.
|
||||
* Other uncaught Kotlin exceptions are fatal.
|
||||
*/
|
||||
- (void)transceiveData:(NFCSDKKotlinByteArray *)data completionHandler:(void (^)(NFCSDKKotlinByteArray * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("transceive(data:completionHandler:)")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("Parameters")))
|
||||
@interface NFCSDKParameters : NFCSDKBase
|
||||
- (instancetype)initWithMethod:(NFCSDKMet *)method clampingVoltage:(NFCSDKCV *)clampingVoltage totalMotorRuntime:(uint16_t)totalMotorRuntime p1:(uint16_t)p1 p2:(uint16_t)p2 __attribute__((swift_name("init(method:clampingVoltage:totalMotorRuntime:p1:p2:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKParameters *)doCopyMethod:(NFCSDKMet *)method clampingVoltage:(NFCSDKCV *)clampingVoltage totalMotorRuntime:(uint16_t)totalMotorRuntime p1:(uint16_t)p1 p2:(uint16_t)p2 __attribute__((swift_name("doCopy(method:clampingVoltage:totalMotorRuntime:p1:p2:)")));
|
||||
- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)")));
|
||||
- (NSUInteger)hash __attribute__((swift_name("hash()")));
|
||||
- (NSString *)description __attribute__((swift_name("description()")));
|
||||
@property (readonly) NFCSDKCV *clampingVoltage __attribute__((swift_name("clampingVoltage")));
|
||||
@property (readonly) NFCSDKMet *method __attribute__((swift_name("method")));
|
||||
@property (readonly) uint16_t p1 __attribute__((swift_name("p1")));
|
||||
@property (readonly) uint16_t p2 __attribute__((swift_name("p2")));
|
||||
@property (readonly) uint16_t totalMotorRuntime __attribute__((swift_name("totalMotorRuntime")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("Result")))
|
||||
@interface NFCSDKResult : NFCSDKKotlinEnum<NFCSDKResult *>
|
||||
+ (instancetype)alloc __attribute__((unavailable));
|
||||
+ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable));
|
||||
- (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable));
|
||||
@property (class, readonly) NFCSDKResult *ok __attribute__((swift_name("ok")));
|
||||
@property (class, readonly) NFCSDKResult *error __attribute__((swift_name("error")));
|
||||
@property (class, readonly) NFCSDKResult *unauthorized __attribute__((swift_name("unauthorized")));
|
||||
+ (NFCSDKKotlinArray<NFCSDKResult *> *)values __attribute__((swift_name("values()")));
|
||||
@property (class, readonly) NSArray<NFCSDKResult *> *entries __attribute__((swift_name("entries")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("UserType")))
|
||||
@interface NFCSDKUserType : NFCSDKKotlinEnum<NFCSDKUserType *>
|
||||
+ (instancetype)alloc __attribute__((unavailable));
|
||||
+ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable));
|
||||
- (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable));
|
||||
@property (class, readonly, getter=companion) NFCSDKUserTypeCompanion *companion __attribute__((swift_name("companion")));
|
||||
@property (class, readonly) NFCSDKUserType *normal __attribute__((swift_name("normal")));
|
||||
@property (class, readonly) NFCSDKUserType *supervisor __attribute__((swift_name("supervisor")));
|
||||
+ (NFCSDKKotlinArray<NFCSDKUserType *> *)values __attribute__((swift_name("values()")));
|
||||
@property (class, readonly) NSArray<NFCSDKUserType *> *entries __attribute__((swift_name("entries")));
|
||||
@property (readonly) uint8_t value __attribute__((swift_name("value")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("UserType.Companion")))
|
||||
@interface NFCSDKUserTypeCompanion : NFCSDKBase
|
||||
+ (instancetype)alloc __attribute__((unavailable));
|
||||
+ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable));
|
||||
+ (instancetype)companion __attribute__((swift_name("init()")));
|
||||
@property (class, readonly, getter=shared) NFCSDKUserTypeCompanion *shared __attribute__((swift_name("shared")));
|
||||
- (NFCSDKUserType * _Nullable)fromValueValue:(uint8_t)value __attribute__((swift_name("fromValue(value:)")));
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("CommonTask")))
|
||||
@interface NFCSDKCommonTask : NFCSDKBase
|
||||
@property (readonly) NSString *password __attribute__((swift_name("password")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("CallFunctionTask")))
|
||||
@interface NFCSDKCallFunctionTask : NFCSDKCommonTask
|
||||
- (instancetype)initWithPassword:(NSString *)password data:(NSArray<NFCSDKUInt *> *)data index:(uint8_t)index callback:(void (^)(NFCSDKResult *, NSArray<NFCSDKUInt *> * _Nullable))callback __attribute__((swift_name("init(password:data:index:callback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKCallFunctionTask *)doCopyPassword:(NSString *)password data:(NSArray<NFCSDKUInt *> *)data index:(uint8_t)index callback:(void (^)(NFCSDKResult *, NSArray<NFCSDKUInt *> * _Nullable))callback __attribute__((swift_name("doCopy(password:data:index:callback:)")));
|
||||
- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)")));
|
||||
- (NSUInteger)hash __attribute__((swift_name("hash()")));
|
||||
- (NSString *)description __attribute__((swift_name("description()")));
|
||||
@property (readonly) void (^callback)(NFCSDKResult *, NSArray<NFCSDKUInt *> * _Nullable) __attribute__((swift_name("callback")));
|
||||
@property (readonly) NSArray<NFCSDKUInt *> *data __attribute__((swift_name("data")));
|
||||
@property (readonly) uint8_t index __attribute__((swift_name("index")));
|
||||
@property (readonly) NSString *password __attribute__((swift_name("password")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("ControlTask")))
|
||||
@interface NFCSDKControlTask : NFCSDKCommonTask
|
||||
- (instancetype)initWithPassword:(NSString *)password ctrl:(NFCSDKCtrl *)ctrl ignoreProgress:(BOOL)ignoreProgress chargeCallback:(void (^)(NFCSDKResult *, NFCSDKChargeLevel * _Nullable))chargeCallback controlCallback:(void (^)(NFCSDKResult *, NFCSDKControlProgress * _Nullable))controlCallback __attribute__((swift_name("init(password:ctrl:ignoreProgress:chargeCallback:controlCallback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKControlTask *)doCopyPassword:(NSString *)password ctrl:(NFCSDKCtrl *)ctrl ignoreProgress:(BOOL)ignoreProgress chargeCallback:(void (^)(NFCSDKResult *, NFCSDKChargeLevel * _Nullable))chargeCallback controlCallback:(void (^)(NFCSDKResult *, NFCSDKControlProgress * _Nullable))controlCallback __attribute__((swift_name("doCopy(password:ctrl:ignoreProgress:chargeCallback:controlCallback:)")));
|
||||
- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)")));
|
||||
- (NSUInteger)hash __attribute__((swift_name("hash()")));
|
||||
- (NSString *)description __attribute__((swift_name("description()")));
|
||||
@property (readonly) void (^chargeCallback)(NFCSDKResult *, NFCSDKChargeLevel * _Nullable) __attribute__((swift_name("chargeCallback")));
|
||||
@property (readonly) void (^controlCallback)(NFCSDKResult *, NFCSDKControlProgress * _Nullable) __attribute__((swift_name("controlCallback")));
|
||||
@property (readonly) NFCSDKCtrl *ctrl __attribute__((swift_name("ctrl")));
|
||||
@property (readonly) BOOL ignoreProgress __attribute__((swift_name("ignoreProgress")));
|
||||
@property (readonly) NSString *password __attribute__((swift_name("password")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("GetLogTask")))
|
||||
@interface NFCSDKGetLogTask : NFCSDKCommonTask
|
||||
- (instancetype)initWithPassword:(NSString *)password callback:(void (^)(NFCSDKResult *, NSArray<NFCSDKDeviceLog *> * _Nullable))callback __attribute__((swift_name("init(password:callback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKGetLogTask *)doCopyPassword:(NSString *)password callback:(void (^)(NFCSDKResult *, NSArray<NFCSDKDeviceLog *> * _Nullable))callback __attribute__((swift_name("doCopy(password:callback:)")));
|
||||
- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)")));
|
||||
- (NSUInteger)hash __attribute__((swift_name("hash()")));
|
||||
- (NSString *)description __attribute__((swift_name("description()")));
|
||||
@property (readonly) void (^callback)(NFCSDKResult *, NSArray<NFCSDKDeviceLog *> * _Nullable) __attribute__((swift_name("callback")));
|
||||
@property (readonly) NSString *password __attribute__((swift_name("password")));
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("NFCCallbacks")))
|
||||
@protocol NFCSDKNFCCallbacks
|
||||
@required
|
||||
- (void)onFinished __attribute__((swift_name("onFinished()")));
|
||||
- (BOOL)onLoopInfo:(NFCSDKDeviceInfo *)info rssi:(NFCSDKUInt * _Nullable)rssi __attribute__((swift_name("onLoop(info:rssi:)")));
|
||||
- (void)onLost __attribute__((swift_name("onLost()")));
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("NFCHelper")))
|
||||
@interface NFCSDKNFCHelper : NFCSDKBase
|
||||
- (instancetype)initWithCallback:(id<NFCSDKNFCCallbacks>)callback __attribute__((swift_name("init(callback:)"))) __attribute__((objc_designated_initializer));
|
||||
|
||||
/**
|
||||
* @note This method converts instances of CancellationException to errors.
|
||||
* Other uncaught Kotlin exceptions are fatal.
|
||||
*/
|
||||
- (void)getNFCTagParameter:(id _Nullable)parameter completionHandler:(void (^)(id<NFCSDKNFCTag> _Nullable_result, NSError * _Nullable))completionHandler __attribute__((swift_name("getNFCTag(parameter:completionHandler:)")));
|
||||
|
||||
/**
|
||||
* @note This method converts instances of CancellationException to errors.
|
||||
* Other uncaught Kotlin exceptions are fatal.
|
||||
*/
|
||||
- (void)processParameter:(id _Nullable)parameter completionHandler:(void (^)(NSError * _Nullable))completionHandler __attribute__((swift_name("process(parameter:completionHandler:)")));
|
||||
- (void)setTaskTask:(NFCSDKCommonTask * _Nullable)task __attribute__((swift_name("setTask(task:)")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("SetKeyTask")))
|
||||
@interface NFCSDKSetKeyTask : NFCSDKCommonTask
|
||||
- (instancetype)initWithPassword:(NSString *)password sKey:(NSString *)sKey callback:(void (^)(NFCSDKResult *))callback __attribute__((swift_name("init(password:sKey:callback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKSetKeyTask *)doCopyPassword:(NSString *)password sKey:(NSString *)sKey callback:(void (^)(NFCSDKResult *))callback __attribute__((swift_name("doCopy(password:sKey:callback:)")));
|
||||
- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)")));
|
||||
- (NSUInteger)hash __attribute__((swift_name("hash()")));
|
||||
- (NSString *)description __attribute__((swift_name("description()")));
|
||||
@property (readonly) void (^callback)(NFCSDKResult *) __attribute__((swift_name("callback")));
|
||||
@property (readonly) NSString *password __attribute__((swift_name("password")));
|
||||
@property (readonly) NSString *sKey __attribute__((swift_name("sKey")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("SetParametersTask")))
|
||||
@interface NFCSDKSetParametersTask : NFCSDKCommonTask
|
||||
- (instancetype)initWithPassword:(NSString *)password parameters:(NFCSDKParameters *)parameters callback:(void (^)(NFCSDKResult *))callback __attribute__((swift_name("init(password:parameters:callback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKSetParametersTask *)doCopyPassword:(NSString *)password parameters:(NFCSDKParameters *)parameters callback:(void (^)(NFCSDKResult *))callback __attribute__((swift_name("doCopy(password:parameters:callback:)")));
|
||||
- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)")));
|
||||
- (NSUInteger)hash __attribute__((swift_name("hash()")));
|
||||
- (NSString *)description __attribute__((swift_name("description()")));
|
||||
@property (readonly) void (^callback)(NFCSDKResult *) __attribute__((swift_name("callback")));
|
||||
@property (readonly) NFCSDKParameters *parameters __attribute__((swift_name("parameters")));
|
||||
@property (readonly) NSString *password __attribute__((swift_name("password")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("Platform_iosKt")))
|
||||
@interface NFCSDKPlatform_iosKt : NFCSDKBase
|
||||
+ (int64_t)platformGetCurrentTimestamp __attribute__((swift_name("platformGetCurrentTimestamp()")));
|
||||
+ (NSString *)platformGetName __attribute__((swift_name("platformGetName()")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("KotlinEnumCompanion")))
|
||||
@interface NFCSDKKotlinEnumCompanion : NFCSDKBase
|
||||
+ (instancetype)alloc __attribute__((unavailable));
|
||||
+ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable));
|
||||
+ (instancetype)companion __attribute__((swift_name("init()")));
|
||||
@property (class, readonly, getter=shared) NFCSDKKotlinEnumCompanion *shared __attribute__((swift_name("shared")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("KotlinArray")))
|
||||
@interface NFCSDKKotlinArray<T> : NFCSDKBase
|
||||
+ (instancetype)arrayWithSize:(int32_t)size init:(T _Nullable (^)(NFCSDKInt *))init __attribute__((swift_name("init(size:init:)")));
|
||||
+ (instancetype)alloc __attribute__((unavailable));
|
||||
+ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable));
|
||||
- (T _Nullable)getIndex:(int32_t)index __attribute__((swift_name("get(index:)")));
|
||||
- (id<NFCSDKKotlinIterator>)iterator __attribute__((swift_name("iterator()")));
|
||||
- (void)setIndex:(int32_t)index value:(T _Nullable)value __attribute__((swift_name("set(index:value:)")));
|
||||
@property (readonly) int32_t size __attribute__((swift_name("size")));
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("KotlinThrowable")))
|
||||
@interface NFCSDKKotlinThrowable : NFCSDKBase
|
||||
- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer));
|
||||
+ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead")));
|
||||
- (instancetype)initWithMessage:(NSString * _Nullable)message __attribute__((swift_name("init(message:)"))) __attribute__((objc_designated_initializer));
|
||||
- (instancetype)initWithCause:(NFCSDKKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(cause:)"))) __attribute__((objc_designated_initializer));
|
||||
- (instancetype)initWithMessage:(NSString * _Nullable)message cause:(NFCSDKKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(message:cause:)"))) __attribute__((objc_designated_initializer));
|
||||
|
||||
/**
|
||||
* @note annotations
|
||||
* kotlin.experimental.ExperimentalNativeApi
|
||||
*/
|
||||
- (NFCSDKKotlinArray<NSString *> *)getStackTrace __attribute__((swift_name("getStackTrace()")));
|
||||
- (void)printStackTrace __attribute__((swift_name("printStackTrace()")));
|
||||
- (NSString *)description __attribute__((swift_name("description()")));
|
||||
@property (readonly) NFCSDKKotlinThrowable * _Nullable cause __attribute__((swift_name("cause")));
|
||||
@property (readonly) NSString * _Nullable message __attribute__((swift_name("message")));
|
||||
- (NSError *)asError __attribute__((swift_name("asError()")));
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("KotlinException")))
|
||||
@interface NFCSDKKotlinException : NFCSDKKotlinThrowable
|
||||
- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer));
|
||||
+ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead")));
|
||||
- (instancetype)initWithMessage:(NSString * _Nullable)message __attribute__((swift_name("init(message:)"))) __attribute__((objc_designated_initializer));
|
||||
- (instancetype)initWithCause:(NFCSDKKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(cause:)"))) __attribute__((objc_designated_initializer));
|
||||
- (instancetype)initWithMessage:(NSString * _Nullable)message cause:(NFCSDKKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(message:cause:)"))) __attribute__((objc_designated_initializer));
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("KotlinRuntimeException")))
|
||||
@interface NFCSDKKotlinRuntimeException : NFCSDKKotlinException
|
||||
- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer));
|
||||
+ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead")));
|
||||
- (instancetype)initWithMessage:(NSString * _Nullable)message __attribute__((swift_name("init(message:)"))) __attribute__((objc_designated_initializer));
|
||||
- (instancetype)initWithCause:(NFCSDKKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(cause:)"))) __attribute__((objc_designated_initializer));
|
||||
- (instancetype)initWithMessage:(NSString * _Nullable)message cause:(NFCSDKKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(message:cause:)"))) __attribute__((objc_designated_initializer));
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("KotlinIllegalStateException")))
|
||||
@interface NFCSDKKotlinIllegalStateException : NFCSDKKotlinRuntimeException
|
||||
- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer));
|
||||
+ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead")));
|
||||
- (instancetype)initWithMessage:(NSString * _Nullable)message __attribute__((swift_name("init(message:)"))) __attribute__((objc_designated_initializer));
|
||||
- (instancetype)initWithCause:(NFCSDKKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(cause:)"))) __attribute__((objc_designated_initializer));
|
||||
- (instancetype)initWithMessage:(NSString * _Nullable)message cause:(NFCSDKKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(message:cause:)"))) __attribute__((objc_designated_initializer));
|
||||
@end
|
||||
|
||||
|
||||
/**
|
||||
* @note annotations
|
||||
* kotlin.SinceKotlin(version="1.4")
|
||||
*/
|
||||
__attribute__((swift_name("KotlinCancellationException")))
|
||||
@interface NFCSDKKotlinCancellationException : NFCSDKKotlinIllegalStateException
|
||||
- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer));
|
||||
+ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead")));
|
||||
- (instancetype)initWithMessage:(NSString * _Nullable)message __attribute__((swift_name("init(message:)"))) __attribute__((objc_designated_initializer));
|
||||
- (instancetype)initWithCause:(NFCSDKKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(cause:)"))) __attribute__((objc_designated_initializer));
|
||||
- (instancetype)initWithMessage:(NSString * _Nullable)message cause:(NFCSDKKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(message:cause:)"))) __attribute__((objc_designated_initializer));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("KotlinByteArray")))
|
||||
@interface NFCSDKKotlinByteArray : NFCSDKBase
|
||||
+ (instancetype)arrayWithSize:(int32_t)size __attribute__((swift_name("init(size:)")));
|
||||
+ (instancetype)arrayWithSize:(int32_t)size init:(NFCSDKByte *(^)(NFCSDKInt *))init __attribute__((swift_name("init(size:init:)")));
|
||||
+ (instancetype)alloc __attribute__((unavailable));
|
||||
+ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable));
|
||||
- (int8_t)getIndex:(int32_t)index __attribute__((swift_name("get(index:)")));
|
||||
- (NFCSDKKotlinByteIterator *)iterator __attribute__((swift_name("iterator()")));
|
||||
- (void)setIndex:(int32_t)index value:(int8_t)value __attribute__((swift_name("set(index:value:)")));
|
||||
@property (readonly) int32_t size __attribute__((swift_name("size")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("KotlinPair")))
|
||||
@interface NFCSDKKotlinPair<__covariant A, __covariant B> : NFCSDKBase
|
||||
- (instancetype)initWithFirst:(A _Nullable)first second:(B _Nullable)second __attribute__((swift_name("init(first:second:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKKotlinPair<A, B> *)doCopyFirst:(A _Nullable)first second:(B _Nullable)second __attribute__((swift_name("doCopy(first:second:)")));
|
||||
- (BOOL)equalsOther:(id _Nullable)other __attribute__((swift_name("equals(other:)")));
|
||||
- (int32_t)hashCode __attribute__((swift_name("hashCode()")));
|
||||
- (NSString *)toString __attribute__((swift_name("toString()")));
|
||||
@property (readonly) A _Nullable first __attribute__((swift_name("first")));
|
||||
@property (readonly) B _Nullable second __attribute__((swift_name("second")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("KotlinUnit")))
|
||||
@interface NFCSDKKotlinUnit : NFCSDKBase
|
||||
+ (instancetype)alloc __attribute__((unavailable));
|
||||
+ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable));
|
||||
+ (instancetype)unit __attribute__((swift_name("init()")));
|
||||
@property (class, readonly, getter=shared) NFCSDKKotlinUnit *shared __attribute__((swift_name("shared")));
|
||||
- (NSString *)description __attribute__((swift_name("description()")));
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("KotlinIterator")))
|
||||
@protocol NFCSDKKotlinIterator
|
||||
@required
|
||||
- (BOOL)hasNext __attribute__((swift_name("hasNext()")));
|
||||
- (id _Nullable)next __attribute__((swift_name("next()")));
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("KotlinByteIterator")))
|
||||
@interface NFCSDKKotlinByteIterator : NFCSDKBase <NFCSDKKotlinIterator>
|
||||
- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer));
|
||||
+ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead")));
|
||||
- (NFCSDKByte *)next __attribute__((swift_name("next()")));
|
||||
- (int8_t)nextByte __attribute__((swift_name("nextByte()")));
|
||||
@end
|
||||
|
||||
#pragma pop_macro("_Nullable_result")
|
||||
#pragma clang diagnostic pop
|
||||
NS_ASSUME_NONNULL_END
|
||||
Binary file not shown.
@ -7,6 +7,8 @@ namespace NFCLockDemoV2.ViewModels;
|
||||
|
||||
public class MainViewModel : ObservableObject
|
||||
{
|
||||
public Action? OperationTask;
|
||||
|
||||
private ViewModels.OperationType? _operation;
|
||||
public ViewModels.OperationType? Operation
|
||||
{
|
||||
@ -55,6 +57,13 @@ public class MainViewModel : ObservableObject
|
||||
set => SetProperty(ref _password, value);
|
||||
}
|
||||
|
||||
private string _operationElapsed = "--";
|
||||
public string OperationElapsed
|
||||
{
|
||||
get => _operationElapsed;
|
||||
set => SetProperty(ref _operationElapsed, value);
|
||||
}
|
||||
|
||||
public ICommand ControlCommand { get; set; }
|
||||
public ICommand CopyCommand { get; set; }
|
||||
|
||||
@ -84,6 +93,7 @@ public class MainViewModel : ObservableObject
|
||||
Devices = new ObservableCollection<string>();
|
||||
ControlCommand = new AsyncRelayCommand<string>(val =>
|
||||
{
|
||||
OperationElapsed = "--";
|
||||
switch (val)
|
||||
{
|
||||
case "Lock":
|
||||
@ -99,7 +109,7 @@ public class MainViewModel : ObservableObject
|
||||
Operation = null;
|
||||
break;
|
||||
}
|
||||
|
||||
OperationTask?.Invoke();
|
||||
return Task.CompletedTask;
|
||||
});
|
||||
|
||||
|
||||
@ -1,56 +1,117 @@
|
||||
using System;
|
||||
using Foundation;
|
||||
using ObjCRuntime;
|
||||
|
||||
namespace NfcLock.Ios.Binding
|
||||
{
|
||||
// @interface NFCManager
|
||||
[DisableDefaultCtor]
|
||||
[BaseType (typeof (NSObject))]
|
||||
interface NFCManager
|
||||
public interface NFCManager
|
||||
{
|
||||
// +(void)startScan;
|
||||
// @property (readonly, nonatomic, strong, class) NFCManager * _Nonnull shared;
|
||||
[Static]
|
||||
[Export ("startScan")]
|
||||
void StartScan ();
|
||||
[Export ("shared", ArgumentSemantic.Strong)]
|
||||
NFCManager Shared { get; }
|
||||
|
||||
// +(void)endScan;
|
||||
[Static]
|
||||
// -(void)chargingRes:(NSString * _Nonnull)res level:(id)level;
|
||||
[Export ("chargingRes:level:")]
|
||||
void ChargingRes (string res, NSObject level);
|
||||
|
||||
// -(void)controllingRes:(NSString * _Nonnull)res progress:(id)progress ctrl:(NSString * _Nonnull)ctrl;
|
||||
[Export ("controllingRes:progress:ctrl:")]
|
||||
void ControllingRes (string res, NSObject progress, string ctrl);
|
||||
|
||||
// -(void)customDataRes:(NSString * _Nonnull)res config:(NFCSDKCustomDataConfig * _Nonnull)config data:(NSData * _Nullable)data;
|
||||
[Export ("customDataRes:config:data:")]
|
||||
void CustomDataRes (string res, NSObject config, [NullAllowed] NSData data);
|
||||
|
||||
// -(void)discoveredId:(NSString * _Nonnull)id isNew:(id)isNew rssi:(id)rssi;
|
||||
[Export ("discoveredId:isNew:rssi:")]
|
||||
void DiscoveredId (string id, NSObject isNew, NSObject rssi);
|
||||
|
||||
// -(void)finished;
|
||||
[Export ("finished")]
|
||||
void Finished ();
|
||||
|
||||
// -(void)setKeyRes:(NSString * _Nonnull)res password:(NSString * _Nonnull)password;
|
||||
[Export ("setKeyRes:password:")]
|
||||
void SetKeyRes (string res, string password);
|
||||
|
||||
// -(void)connectTagErrorError:(id)error;
|
||||
[Export ("connectTagErrorError:")]
|
||||
void ConnectTagErrorError (NSObject error);
|
||||
|
||||
// -(void)sendCommandErrorError:(id)error;
|
||||
[Export ("sendCommandErrorError:")]
|
||||
void SendCommandErrorError (NSObject error);
|
||||
|
||||
// -(void)notNfcA;
|
||||
[Export ("notNfcA")]
|
||||
void NotNfcA ();
|
||||
|
||||
// -(void)sessionInvalidWithErrorError:(id)error;
|
||||
[Export ("sessionInvalidWithErrorError:")]
|
||||
void SessionInvalidWithErrorError (NSObject error);
|
||||
|
||||
// -(void)setChargingCallback:(void (^ _Nonnull)(NSString * _Nonnull, int))cb;
|
||||
[Export ("setChargingCallback:")]
|
||||
void SetChargingCallback (Action<NSString, int> cb);
|
||||
|
||||
// -(void)setControllingCallback:(void (^ _Nonnull)(NSString * _Nonnull, int, NSString * _Nonnull))cb;
|
||||
[Export ("setControllingCallback:")]
|
||||
void SetControllingCallback (Action<NSString, int, NSString> cb);
|
||||
|
||||
// -(void)setCustomDataCallback:(void (^ _Nonnull)(NSString * _Nonnull, NFCSDKCustomDataConfig * _Nonnull, NSData * _Nullable))cb;
|
||||
[Export ("setCustomDataCallback:")]
|
||||
void SetCustomDataCallback (Action<NSString, NSObject, NSData> cb);
|
||||
|
||||
// -(void)setDeviceDiscoveredCallback:(void (^ _Nonnull)(NSString * _Nonnull, int, int))cb;
|
||||
[Export ("setDeviceDiscoveredCallback:")]
|
||||
void SetDeviceDiscoveredCallback (Action<NSString, int, int> cb);
|
||||
|
||||
// -(void)setOperationFinishedCallback:(void (^ _Nonnull)(void))cb;
|
||||
[Export ("setOperationFinishedCallback:")]
|
||||
void SetOperationFinishedCallback (Action cb);
|
||||
|
||||
// -(void)setSetKeyCallback:(void (^ _Nonnull)(NSString * _Nonnull, NSString * _Nonnull))cb;
|
||||
[Export ("setSetKeyCallback:")]
|
||||
void SetSetKeyCallback (Action<NSString, NSString> cb);
|
||||
|
||||
// -(void)setScanDidStartCallback:(void (^ _Nonnull)(void))cb;
|
||||
[Export ("setScanDidStartCallback:")]
|
||||
void SetScanDidStartCallback (Action cb);
|
||||
|
||||
// -(void)setScanDidEndCallback:(id)cb;
|
||||
[Export ("setScanDidEndCallback:")]
|
||||
void SetScanDidEndCallback (Action<bool, string> cb);
|
||||
|
||||
// -(void)clearAllCallbacks;
|
||||
[Export ("clearAllCallbacks")]
|
||||
void ClearAllCallbacks ();
|
||||
|
||||
// -(void)lockWith:(NSString * _Nonnull)password;
|
||||
[Export ("lockWith:")]
|
||||
void LockWith (string password);
|
||||
|
||||
// -(void)unlockWith:(NSString * _Nonnull)password;
|
||||
[Export ("unlockWith:")]
|
||||
void UnlockWith (string password);
|
||||
|
||||
// -(void)startScanWith:(NSString * _Nonnull)message;
|
||||
[Export ("startScanWith:")]
|
||||
void StartScanWith (string message);
|
||||
|
||||
// -(void)endScan;
|
||||
[Export ("endScan")]
|
||||
void EndScan ();
|
||||
|
||||
// +(void)endScanWithErrorMessage:(NSString * _Nonnull)errorMessage;
|
||||
[Static]
|
||||
[Export ("endScanWithErrorMessage:")]
|
||||
void EndScanWithErrorMessage (string errorMessage);
|
||||
// -(void)endScanWith:(NSString * _Nonnull)errorMessage;
|
||||
[Export ("endScanWith:")]
|
||||
void EndScanWith (string errorMessage);
|
||||
|
||||
// +(void)setLoopCbWithCb:(id)cb;
|
||||
[Static]
|
||||
[Export ("setLoopCbWithCb:")]
|
||||
void SetLoopCbWithCb (Func<NSString, bool, int, bool> cb);
|
||||
|
||||
// +(void)setFinishedCbWithCb:(void (^ _Nonnull)(void))cb;
|
||||
[Static]
|
||||
[Export ("setFinishedCbWithCb:")]
|
||||
void SetFinishedCbWithCb (Action cb);
|
||||
|
||||
// +(void)setChargingCbWithCb:(void (^ _Nonnull)(NSString * _Nonnull, int))cb;
|
||||
[Static]
|
||||
[Export ("setChargingCbWithCb:")]
|
||||
void SetChargingCbWithCb (Action<NSString, int> cb);
|
||||
|
||||
// +(void)setControllingCbWithCb:(void (^ _Nonnull)(NSString * _Nonnull, int))cb;
|
||||
[Static]
|
||||
[Export ("setControllingCbWithCb:")]
|
||||
void SetControllingCbWithCb (Action<NSString, int> cb);
|
||||
|
||||
// +(void)lockWithPassword:(NSString * _Nonnull)password;
|
||||
[Static]
|
||||
[Export ("lockWithPassword:")]
|
||||
void LockWithPassword (string password);
|
||||
|
||||
// +(void)unlockWithPassword:(NSString * _Nonnull)password;
|
||||
[Static]
|
||||
[Export ("unlockWithPassword:")]
|
||||
void UnlockWithPassword (string password);
|
||||
// -(void)showTipsWith:(NSString * _Nonnull)message;
|
||||
[Export ("showTipsWith:")]
|
||||
void ShowTipsWith (string message);
|
||||
}
|
||||
}
|
||||
@ -6,9 +6,9 @@
|
||||
#import <Foundation/NSString.h>
|
||||
#import <Foundation/NSValue.h>
|
||||
|
||||
@class NFCSDKCV, NFCSDKCVCompanion, NFCSDKCallFunctionTask, NFCSDKChargeLevel, NFCSDKCommonTask, NFCSDKControlProgress, NFCSDKControlTask, NFCSDKCtrl, NFCSDKCtrlCompanion, NFCSDKDevice, NFCSDKDeviceInfo, NFCSDKDeviceLog, NFCSDKDeviceManager, NFCSDKGetLogTask, NFCSDKKotlinArray<T>, NFCSDKKotlinByteArray, NFCSDKKotlinByteIterator, NFCSDKKotlinEnum<E>, NFCSDKKotlinEnumCompanion, NFCSDKKotlinException, NFCSDKKotlinIllegalStateException, NFCSDKKotlinPair<__covariant A, __covariant B>, NFCSDKKotlinRuntimeException, NFCSDKKotlinThrowable, NFCSDKKotlinUnit, NFCSDKMet, NFCSDKMetCompanion, NFCSDKParameters, NFCSDKResult, NFCSDKSetKeyTask, NFCSDKSetParametersTask, NFCSDKUserType, NFCSDKUserTypeCompanion;
|
||||
@class NFCSDKCV, NFCSDKCVCompanion, NFCSDKCallFunctionTask, NFCSDKChargeLevel, NFCSDKCommonTask, NFCSDKControlProgress, NFCSDKControlTask, NFCSDKCtrl, NFCSDKCtrlCompanion, NFCSDKCustomDataConfig, NFCSDKCustomDataConfigCompanion, NFCSDKDevice, NFCSDKDeviceInfo, NFCSDKDeviceLog, NFCSDKDeviceManager, NFCSDKGetLogTask, NFCSDKGetVersionTask, NFCSDKKotlinArray<T>, NFCSDKKotlinByteArray, NFCSDKKotlinByteIterator, NFCSDKKotlinEnum<E>, NFCSDKKotlinEnumCompanion, NFCSDKKotlinException, NFCSDKKotlinIllegalStateException, NFCSDKKotlinPair<__covariant A, __covariant B>, NFCSDKKotlinRuntimeException, NFCSDKKotlinThrowable, NFCSDKMet, NFCSDKMetCompanion, NFCSDKParameters, NFCSDKResult, NFCSDKSetKeyTask, NFCSDKSetParametersTask, NFCSDKUserType, NFCSDKUserTypeCompanion, NSData, NSError;
|
||||
|
||||
@protocol NFCSDKKotlinComparable, NFCSDKKotlinIterator, NFCSDKNFCCallbacks, NFCSDKNFCTag;
|
||||
@protocol NFCSDKIOSNFCCallbacks, NFCSDKKotlinComparable, NFCSDKKotlinIterator, NFCSDKNFCCallbacks, NFCSDKNFCTag;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
#pragma clang diagnostic push
|
||||
@ -235,6 +235,30 @@ __attribute__((swift_name("Ctrl.Companion")))
|
||||
- (NFCSDKCtrl * _Nullable)fromValueValue:(uint8_t)value __attribute__((swift_name("fromValue(value:)")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("CustomDataConfig")))
|
||||
@interface NFCSDKCustomDataConfig : NFCSDKKotlinEnum<NFCSDKCustomDataConfig *>
|
||||
+ (instancetype)alloc __attribute__((unavailable));
|
||||
+ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable));
|
||||
- (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable));
|
||||
@property (class, readonly, getter=companion) NFCSDKCustomDataConfigCompanion *companion __attribute__((swift_name("companion")));
|
||||
@property (class, readonly) NFCSDKCustomDataConfig *write __attribute__((swift_name("write")));
|
||||
@property (class, readonly) NFCSDKCustomDataConfig *read __attribute__((swift_name("read")));
|
||||
+ (NFCSDKKotlinArray<NFCSDKCustomDataConfig *> *)values __attribute__((swift_name("values()")));
|
||||
@property (class, readonly) NSArray<NFCSDKCustomDataConfig *> *entries __attribute__((swift_name("entries")));
|
||||
@property (readonly) uint32_t value __attribute__((swift_name("value")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("CustomDataConfig.Companion")))
|
||||
@interface NFCSDKCustomDataConfigCompanion : NFCSDKBase
|
||||
+ (instancetype)alloc __attribute__((unavailable));
|
||||
+ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable));
|
||||
+ (instancetype)companion __attribute__((swift_name("init()")));
|
||||
@property (class, readonly, getter=shared) NFCSDKCustomDataConfigCompanion *shared __attribute__((swift_name("shared")));
|
||||
- (NFCSDKCustomDataConfig * _Nullable)fromNameName:(NSString *)name __attribute__((swift_name("fromName(name:)")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("Device")))
|
||||
@interface NFCSDKDevice : NFCSDKBase
|
||||
@ -349,32 +373,36 @@ __attribute__((swift_name("DeviceManager")))
|
||||
- (NFCSDKKotlinByteArray *)toFixed16Input:(NSString *)input __attribute__((swift_name("toFixed16(input:)")));
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("IOSNFCCallbacks")))
|
||||
@protocol NFCSDKIOSNFCCallbacks
|
||||
@required
|
||||
- (void)chargingRes:(NSString *)res level:(int32_t)level __attribute__((swift_name("charging(res:level:)")));
|
||||
- (void)connectTagErrorError:(NSError *)error __attribute__((swift_name("connectTagError(error:)")));
|
||||
- (void)controllingRes:(NSString *)res progress:(int32_t)progress ctrl:(NSString *)ctrl __attribute__((swift_name("controlling(res:progress:ctrl:)")));
|
||||
- (void)customDataRes:(NSString *)res config:(NFCSDKCustomDataConfig *)config data:(NSData * _Nullable)data __attribute__((swift_name("customData(res:config:data:)")));
|
||||
- (void)discoveredId:(NSString *)id isNew:(BOOL)isNew rssi:(int32_t)rssi __attribute__((swift_name("discovered(id:isNew:rssi:)")));
|
||||
- (void)finished __attribute__((swift_name("finished()")));
|
||||
- (void)notNfcA __attribute__((swift_name("notNfcA()")));
|
||||
- (void)sendCommandErrorError:(NSError * _Nullable)error __attribute__((swift_name("sendCommandError(error:)")));
|
||||
- (void)sessionInvalidWithErrorError:(NSError *)error __attribute__((swift_name("sessionInvalidWithError(error:)")));
|
||||
- (void)setKeyRes:(NSString *)res password:(NSString *)password __attribute__((swift_name("setKey(res:password:)")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("IOSNFCHelper")))
|
||||
@interface NFCSDKIOSNFCHelper : NFCSDKBase
|
||||
- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer));
|
||||
+ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead")));
|
||||
- (void)controlPassword:(NSString *)password ctrl:(NFCSDKCtrl *)ctrl __attribute__((swift_name("control(password:ctrl:)")));
|
||||
- (instancetype)initWithCallback:(id<NFCSDKIOSNFCCallbacks>)callback __attribute__((swift_name("init(callback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NSData *)byteArrayToNSDataData:(NFCSDKKotlinByteArray *)data __attribute__((swift_name("byteArrayToNSData(data:)")));
|
||||
- (void)cancel __attribute__((swift_name("cancel()")));
|
||||
- (void)customDataOperationConfig:(NFCSDKCustomDataConfig *)config customData:(NSData * _Nullable)customData __attribute__((swift_name("customDataOperation(config:customData:)")));
|
||||
- (void)endScan __attribute__((swift_name("endScan()")));
|
||||
- (void)endScanErrorMessage:(NSString *)errorMessage __attribute__((swift_name("endScan(errorMessage:)")));
|
||||
- (void)lockPassword:(NSString *)password __attribute__((swift_name("lock(password:)")));
|
||||
|
||||
/**
|
||||
* @note This method converts instances of CancellationException to errors.
|
||||
* Other uncaught Kotlin exceptions are fatal.
|
||||
*/
|
||||
- (void)processWithCompletionHandler:(void (^)(NSError * _Nullable))completionHandler __attribute__((swift_name("process(completionHandler:)")));
|
||||
- (void)setChargingCbCb:(void (^ _Nullable)(NSString *, NFCSDKInt * _Nullable))cb __attribute__((swift_name("setChargingCb(cb:)")));
|
||||
- (void)setControllingCbCb:(void (^ _Nullable)(NSString *, NFCSDKInt * _Nullable))cb __attribute__((swift_name("setControllingCb(cb:)")));
|
||||
- (void)setFinishedCbCb:(void (^ _Nullable)(void))cb __attribute__((swift_name("setFinishedCb(cb:)")));
|
||||
- (void)setLoopCbCb:(NFCSDKBoolean *(^)(NSString *, NFCSDKBoolean *, NFCSDKInt * _Nullable))cb __attribute__((swift_name("setLoopCb(cb:)")));
|
||||
- (void)setLostCbCb:(void (^ _Nullable)(void))cb __attribute__((swift_name("setLostCb(cb:)")));
|
||||
- (void)setTransceiverT:(void (^ _Nullable)(NFCSDKKotlinByteArray *, NFCSDKKotlinUnit *(^)(NFCSDKKotlinByteArray *)))t __attribute__((swift_name("setTransceiver(t:)")));
|
||||
- (NFCSDKKotlinByteArray *)nsDataToByteArrayData:(NSData *)data __attribute__((swift_name("nsDataToByteArray(data:)")));
|
||||
- (void)setAlertMessageMessage:(NSString *)message __attribute__((swift_name("setAlertMessage(message:)")));
|
||||
- (void)setKeyPassword:(NSString *)password sKey:(NSString *)sKey __attribute__((swift_name("setKey(password:sKey:)")));
|
||||
- (BOOL)startScanMessage:(NSString * _Nullable)message __attribute__((swift_name("startScan(message:)")));
|
||||
- (void)unlockPassword:(NSString *)password __attribute__((swift_name("unlock(password:)")));
|
||||
@property void (^ _Nullable charging)(NSString *, NFCSDKInt * _Nullable) __attribute__((swift_name("charging")));
|
||||
@property void (^ _Nullable controlling)(NSString *, NFCSDKInt * _Nullable) __attribute__((swift_name("controlling")));
|
||||
@property void (^ _Nullable finished)(void) __attribute__((swift_name("finished")));
|
||||
@property NFCSDKBoolean *(^ _Nullable loop)(NSString *, NFCSDKBoolean *, NFCSDKInt * _Nullable) __attribute__((swift_name("loop")));
|
||||
@property void (^ _Nullable lost)(void) __attribute__((swift_name("lost")));
|
||||
@property void (^ _Nullable transceiver)(NFCSDKKotlinByteArray *, NFCSDKKotlinUnit *(^)(NFCSDKKotlinByteArray *)) __attribute__((swift_name("transceiver")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
@ -467,56 +495,77 @@ __attribute__((swift_name("UserType.Companion")))
|
||||
|
||||
__attribute__((swift_name("CommonTask")))
|
||||
@interface NFCSDKCommonTask : NFCSDKBase
|
||||
- (void)onSelectError __attribute__((swift_name("onSelectError()")));
|
||||
@property (readonly) NSString *password __attribute__((swift_name("password")));
|
||||
@property (readonly) NFCSDKUserType * _Nullable userType __attribute__((swift_name("userType")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("CallFunctionTask")))
|
||||
@interface NFCSDKCallFunctionTask : NFCSDKCommonTask
|
||||
- (instancetype)initWithPassword:(NSString *)password data:(NSArray<NFCSDKUInt *> *)data index:(uint8_t)index callback:(void (^)(NFCSDKResult *, NSArray<NFCSDKUInt *> * _Nullable))callback __attribute__((swift_name("init(password:data:index:callback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKCallFunctionTask *)doCopyPassword:(NSString *)password data:(NSArray<NFCSDKUInt *> *)data index:(uint8_t)index callback:(void (^)(NFCSDKResult *, NSArray<NFCSDKUInt *> * _Nullable))callback __attribute__((swift_name("doCopy(password:data:index:callback:)")));
|
||||
- (instancetype)initWithPassword:(NSString *)password userType:(NFCSDKUserType * _Nullable)userType data:(NSArray<NFCSDKUInt *> *)data index:(uint8_t)index callback:(void (^)(NFCSDKResult *, NSArray<NFCSDKUInt *> * _Nullable))callback __attribute__((swift_name("init(password:userType:data:index:callback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKCallFunctionTask *)doCopyPassword:(NSString *)password userType:(NFCSDKUserType * _Nullable)userType data:(NSArray<NFCSDKUInt *> *)data index:(uint8_t)index callback:(void (^)(NFCSDKResult *, NSArray<NFCSDKUInt *> * _Nullable))callback __attribute__((swift_name("doCopy(password:userType:data:index:callback:)")));
|
||||
- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)")));
|
||||
- (NSUInteger)hash __attribute__((swift_name("hash()")));
|
||||
- (void)onSelectError __attribute__((swift_name("onSelectError()")));
|
||||
- (NSString *)description __attribute__((swift_name("description()")));
|
||||
@property (readonly) void (^callback)(NFCSDKResult *, NSArray<NFCSDKUInt *> * _Nullable) __attribute__((swift_name("callback")));
|
||||
@property (readonly) NSArray<NFCSDKUInt *> *data __attribute__((swift_name("data")));
|
||||
@property (readonly) uint8_t index __attribute__((swift_name("index")));
|
||||
@property (readonly) NSString *password __attribute__((swift_name("password")));
|
||||
@property (readonly) NFCSDKUserType * _Nullable userType __attribute__((swift_name("userType")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("ControlTask")))
|
||||
@interface NFCSDKControlTask : NFCSDKCommonTask
|
||||
- (instancetype)initWithPassword:(NSString *)password ctrl:(NFCSDKCtrl *)ctrl ignoreProgress:(BOOL)ignoreProgress chargeCallback:(void (^)(NFCSDKResult *, NFCSDKChargeLevel * _Nullable))chargeCallback controlCallback:(void (^)(NFCSDKResult *, NFCSDKControlProgress * _Nullable))controlCallback __attribute__((swift_name("init(password:ctrl:ignoreProgress:chargeCallback:controlCallback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKControlTask *)doCopyPassword:(NSString *)password ctrl:(NFCSDKCtrl *)ctrl ignoreProgress:(BOOL)ignoreProgress chargeCallback:(void (^)(NFCSDKResult *, NFCSDKChargeLevel * _Nullable))chargeCallback controlCallback:(void (^)(NFCSDKResult *, NFCSDKControlProgress * _Nullable))controlCallback __attribute__((swift_name("doCopy(password:ctrl:ignoreProgress:chargeCallback:controlCallback:)")));
|
||||
- (instancetype)initWithPassword:(NSString *)password userType:(NFCSDKUserType * _Nullable)userType ctrl:(NFCSDKCtrl *)ctrl ignoreProgress:(BOOL)ignoreProgress chargeCallback:(void (^)(NFCSDKResult *, NFCSDKChargeLevel * _Nullable))chargeCallback controlCallback:(void (^)(NFCSDKResult *, NFCSDKControlProgress * _Nullable))controlCallback __attribute__((swift_name("init(password:userType:ctrl:ignoreProgress:chargeCallback:controlCallback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKControlTask *)doCopyPassword:(NSString *)password userType:(NFCSDKUserType * _Nullable)userType ctrl:(NFCSDKCtrl *)ctrl ignoreProgress:(BOOL)ignoreProgress chargeCallback:(void (^)(NFCSDKResult *, NFCSDKChargeLevel * _Nullable))chargeCallback controlCallback:(void (^)(NFCSDKResult *, NFCSDKControlProgress * _Nullable))controlCallback __attribute__((swift_name("doCopy(password:userType:ctrl:ignoreProgress:chargeCallback:controlCallback:)")));
|
||||
- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)")));
|
||||
- (NSUInteger)hash __attribute__((swift_name("hash()")));
|
||||
- (void)onSelectError __attribute__((swift_name("onSelectError()")));
|
||||
- (NSString *)description __attribute__((swift_name("description()")));
|
||||
@property (readonly) void (^chargeCallback)(NFCSDKResult *, NFCSDKChargeLevel * _Nullable) __attribute__((swift_name("chargeCallback")));
|
||||
@property (readonly) void (^controlCallback)(NFCSDKResult *, NFCSDKControlProgress * _Nullable) __attribute__((swift_name("controlCallback")));
|
||||
@property (readonly) NFCSDKCtrl *ctrl __attribute__((swift_name("ctrl")));
|
||||
@property (readonly) BOOL ignoreProgress __attribute__((swift_name("ignoreProgress")));
|
||||
@property (readonly) NSString *password __attribute__((swift_name("password")));
|
||||
@property (readonly) NFCSDKUserType * _Nullable userType __attribute__((swift_name("userType")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("GetLogTask")))
|
||||
@interface NFCSDKGetLogTask : NFCSDKCommonTask
|
||||
- (instancetype)initWithPassword:(NSString *)password callback:(void (^)(NFCSDKResult *, NSArray<NFCSDKDeviceLog *> * _Nullable))callback __attribute__((swift_name("init(password:callback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKGetLogTask *)doCopyPassword:(NSString *)password callback:(void (^)(NFCSDKResult *, NSArray<NFCSDKDeviceLog *> * _Nullable))callback __attribute__((swift_name("doCopy(password:callback:)")));
|
||||
- (instancetype)initWithPassword:(NSString *)password userType:(NFCSDKUserType * _Nullable)userType callback:(void (^)(NFCSDKResult *, NSArray<NFCSDKDeviceLog *> * _Nullable))callback __attribute__((swift_name("init(password:userType:callback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKGetLogTask *)doCopyPassword:(NSString *)password userType:(NFCSDKUserType * _Nullable)userType callback:(void (^)(NFCSDKResult *, NSArray<NFCSDKDeviceLog *> * _Nullable))callback __attribute__((swift_name("doCopy(password:userType:callback:)")));
|
||||
- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)")));
|
||||
- (NSUInteger)hash __attribute__((swift_name("hash()")));
|
||||
- (void)onSelectError __attribute__((swift_name("onSelectError()")));
|
||||
- (NSString *)description __attribute__((swift_name("description()")));
|
||||
@property (readonly) void (^callback)(NFCSDKResult *, NSArray<NFCSDKDeviceLog *> * _Nullable) __attribute__((swift_name("callback")));
|
||||
@property (readonly) NSString *password __attribute__((swift_name("password")));
|
||||
@property (readonly) NFCSDKUserType * _Nullable userType __attribute__((swift_name("userType")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("GetVersionTask")))
|
||||
@interface NFCSDKGetVersionTask : NFCSDKCommonTask
|
||||
- (instancetype)initWithPassword:(NSString *)password userType:(NFCSDKUserType * _Nullable)userType callback:(void (^)(NFCSDKResult *, NSArray<NFCSDKUInt *> * _Nullable))callback __attribute__((swift_name("init(password:userType:callback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKGetVersionTask *)doCopyPassword:(NSString *)password userType:(NFCSDKUserType * _Nullable)userType callback:(void (^)(NFCSDKResult *, NSArray<NFCSDKUInt *> * _Nullable))callback __attribute__((swift_name("doCopy(password:userType:callback:)")));
|
||||
- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)")));
|
||||
- (NSUInteger)hash __attribute__((swift_name("hash()")));
|
||||
- (void)onSelectError __attribute__((swift_name("onSelectError()")));
|
||||
- (NSString *)description __attribute__((swift_name("description()")));
|
||||
@property (readonly) void (^callback)(NFCSDKResult *, NSArray<NFCSDKUInt *> * _Nullable) __attribute__((swift_name("callback")));
|
||||
@property (readonly) NSString *password __attribute__((swift_name("password")));
|
||||
@property (readonly) NFCSDKUserType * _Nullable userType __attribute__((swift_name("userType")));
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("NFCCallbacks")))
|
||||
@protocol NFCSDKNFCCallbacks
|
||||
@required
|
||||
- (void)onDiscoveredInfo:(NFCSDKDeviceInfo *)info rssi:(NFCSDKUInt * _Nullable)rssi __attribute__((swift_name("onDiscovered(info:rssi:)")));
|
||||
- (void)onFinished __attribute__((swift_name("onFinished()")));
|
||||
- (BOOL)onLoopInfo:(NFCSDKDeviceInfo *)info rssi:(NFCSDKUInt * _Nullable)rssi __attribute__((swift_name("onLoop(info:rssi:)")));
|
||||
- (void)onLost __attribute__((swift_name("onLost()")));
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("NFCHelper")))
|
||||
@ -540,27 +589,31 @@ __attribute__((swift_name("NFCHelper")))
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("SetKeyTask")))
|
||||
@interface NFCSDKSetKeyTask : NFCSDKCommonTask
|
||||
- (instancetype)initWithPassword:(NSString *)password sKey:(NSString *)sKey callback:(void (^)(NFCSDKResult *))callback __attribute__((swift_name("init(password:sKey:callback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKSetKeyTask *)doCopyPassword:(NSString *)password sKey:(NSString *)sKey callback:(void (^)(NFCSDKResult *))callback __attribute__((swift_name("doCopy(password:sKey:callback:)")));
|
||||
- (instancetype)initWithPassword:(NSString *)password userType:(NFCSDKUserType * _Nullable)userType sKey:(NSString *)sKey callback:(void (^)(NFCSDKResult *))callback __attribute__((swift_name("init(password:userType:sKey:callback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKSetKeyTask *)doCopyPassword:(NSString *)password userType:(NFCSDKUserType * _Nullable)userType sKey:(NSString *)sKey callback:(void (^)(NFCSDKResult *))callback __attribute__((swift_name("doCopy(password:userType:sKey:callback:)")));
|
||||
- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)")));
|
||||
- (NSUInteger)hash __attribute__((swift_name("hash()")));
|
||||
- (void)onSelectError __attribute__((swift_name("onSelectError()")));
|
||||
- (NSString *)description __attribute__((swift_name("description()")));
|
||||
@property (readonly) void (^callback)(NFCSDKResult *) __attribute__((swift_name("callback")));
|
||||
@property (readonly) NSString *password __attribute__((swift_name("password")));
|
||||
@property (readonly) NSString *sKey __attribute__((swift_name("sKey")));
|
||||
@property (readonly) NFCSDKUserType * _Nullable userType __attribute__((swift_name("userType")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("SetParametersTask")))
|
||||
@interface NFCSDKSetParametersTask : NFCSDKCommonTask
|
||||
- (instancetype)initWithPassword:(NSString *)password parameters:(NFCSDKParameters *)parameters callback:(void (^)(NFCSDKResult *))callback __attribute__((swift_name("init(password:parameters:callback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKSetParametersTask *)doCopyPassword:(NSString *)password parameters:(NFCSDKParameters *)parameters callback:(void (^)(NFCSDKResult *))callback __attribute__((swift_name("doCopy(password:parameters:callback:)")));
|
||||
- (instancetype)initWithPassword:(NSString *)password userType:(NFCSDKUserType * _Nullable)userType parameters:(NFCSDKParameters *)parameters callback:(void (^)(NFCSDKResult *))callback __attribute__((swift_name("init(password:userType:parameters:callback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKSetParametersTask *)doCopyPassword:(NSString *)password userType:(NFCSDKUserType * _Nullable)userType parameters:(NFCSDKParameters *)parameters callback:(void (^)(NFCSDKResult *))callback __attribute__((swift_name("doCopy(password:userType:parameters:callback:)")));
|
||||
- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)")));
|
||||
- (NSUInteger)hash __attribute__((swift_name("hash()")));
|
||||
- (void)onSelectError __attribute__((swift_name("onSelectError()")));
|
||||
- (NSString *)description __attribute__((swift_name("description()")));
|
||||
@property (readonly) void (^callback)(NFCSDKResult *) __attribute__((swift_name("callback")));
|
||||
@property (readonly) NFCSDKParameters *parameters __attribute__((swift_name("parameters")));
|
||||
@property (readonly) NSString *password __attribute__((swift_name("password")));
|
||||
@property (readonly) NFCSDKUserType * _Nullable userType __attribute__((swift_name("userType")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
@ -677,16 +730,6 @@ __attribute__((swift_name("KotlinPair")))
|
||||
@property (readonly) B _Nullable second __attribute__((swift_name("second")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("KotlinUnit")))
|
||||
@interface NFCSDKKotlinUnit : NFCSDKBase
|
||||
+ (instancetype)alloc __attribute__((unavailable));
|
||||
+ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable));
|
||||
+ (instancetype)unit __attribute__((swift_name("init()")));
|
||||
@property (class, readonly, getter=shared) NFCSDKKotlinUnit *shared __attribute__((swift_name("shared")));
|
||||
- (NSString *)description __attribute__((swift_name("description()")));
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("KotlinIterator")))
|
||||
@protocol NFCSDKKotlinIterator
|
||||
@required
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -6,9 +6,9 @@
|
||||
#import <Foundation/NSString.h>
|
||||
#import <Foundation/NSValue.h>
|
||||
|
||||
@class NFCSDKCV, NFCSDKCVCompanion, NFCSDKCallFunctionTask, NFCSDKChargeLevel, NFCSDKCommonTask, NFCSDKControlProgress, NFCSDKControlTask, NFCSDKCtrl, NFCSDKCtrlCompanion, NFCSDKDevice, NFCSDKDeviceInfo, NFCSDKDeviceLog, NFCSDKDeviceManager, NFCSDKGetLogTask, NFCSDKKotlinArray<T>, NFCSDKKotlinByteArray, NFCSDKKotlinByteIterator, NFCSDKKotlinEnum<E>, NFCSDKKotlinEnumCompanion, NFCSDKKotlinException, NFCSDKKotlinIllegalStateException, NFCSDKKotlinPair<__covariant A, __covariant B>, NFCSDKKotlinRuntimeException, NFCSDKKotlinThrowable, NFCSDKKotlinUnit, NFCSDKMet, NFCSDKMetCompanion, NFCSDKParameters, NFCSDKResult, NFCSDKSetKeyTask, NFCSDKSetParametersTask, NFCSDKUserType, NFCSDKUserTypeCompanion;
|
||||
@class NFCSDKCV, NFCSDKCVCompanion, NFCSDKCallFunctionTask, NFCSDKChargeLevel, NFCSDKCommonTask, NFCSDKControlProgress, NFCSDKControlTask, NFCSDKCtrl, NFCSDKCtrlCompanion, NFCSDKCustomDataConfig, NFCSDKCustomDataConfigCompanion, NFCSDKDevice, NFCSDKDeviceInfo, NFCSDKDeviceLog, NFCSDKDeviceManager, NFCSDKGetLogTask, NFCSDKGetVersionTask, NFCSDKKotlinArray<T>, NFCSDKKotlinByteArray, NFCSDKKotlinByteIterator, NFCSDKKotlinEnum<E>, NFCSDKKotlinEnumCompanion, NFCSDKKotlinException, NFCSDKKotlinIllegalStateException, NFCSDKKotlinPair<__covariant A, __covariant B>, NFCSDKKotlinRuntimeException, NFCSDKKotlinThrowable, NFCSDKMet, NFCSDKMetCompanion, NFCSDKParameters, NFCSDKResult, NFCSDKSetKeyTask, NFCSDKSetParametersTask, NFCSDKUserType, NFCSDKUserTypeCompanion, NSData, NSError;
|
||||
|
||||
@protocol NFCSDKKotlinComparable, NFCSDKKotlinIterator, NFCSDKNFCCallbacks, NFCSDKNFCTag;
|
||||
@protocol NFCSDKIOSNFCCallbacks, NFCSDKKotlinComparable, NFCSDKKotlinIterator, NFCSDKNFCCallbacks, NFCSDKNFCTag;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
#pragma clang diagnostic push
|
||||
@ -235,6 +235,30 @@ __attribute__((swift_name("Ctrl.Companion")))
|
||||
- (NFCSDKCtrl * _Nullable)fromValueValue:(uint8_t)value __attribute__((swift_name("fromValue(value:)")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("CustomDataConfig")))
|
||||
@interface NFCSDKCustomDataConfig : NFCSDKKotlinEnum<NFCSDKCustomDataConfig *>
|
||||
+ (instancetype)alloc __attribute__((unavailable));
|
||||
+ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable));
|
||||
- (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable));
|
||||
@property (class, readonly, getter=companion) NFCSDKCustomDataConfigCompanion *companion __attribute__((swift_name("companion")));
|
||||
@property (class, readonly) NFCSDKCustomDataConfig *write __attribute__((swift_name("write")));
|
||||
@property (class, readonly) NFCSDKCustomDataConfig *read __attribute__((swift_name("read")));
|
||||
+ (NFCSDKKotlinArray<NFCSDKCustomDataConfig *> *)values __attribute__((swift_name("values()")));
|
||||
@property (class, readonly) NSArray<NFCSDKCustomDataConfig *> *entries __attribute__((swift_name("entries")));
|
||||
@property (readonly) uint32_t value __attribute__((swift_name("value")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("CustomDataConfig.Companion")))
|
||||
@interface NFCSDKCustomDataConfigCompanion : NFCSDKBase
|
||||
+ (instancetype)alloc __attribute__((unavailable));
|
||||
+ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable));
|
||||
+ (instancetype)companion __attribute__((swift_name("init()")));
|
||||
@property (class, readonly, getter=shared) NFCSDKCustomDataConfigCompanion *shared __attribute__((swift_name("shared")));
|
||||
- (NFCSDKCustomDataConfig * _Nullable)fromNameName:(NSString *)name __attribute__((swift_name("fromName(name:)")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("Device")))
|
||||
@interface NFCSDKDevice : NFCSDKBase
|
||||
@ -349,32 +373,36 @@ __attribute__((swift_name("DeviceManager")))
|
||||
- (NFCSDKKotlinByteArray *)toFixed16Input:(NSString *)input __attribute__((swift_name("toFixed16(input:)")));
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("IOSNFCCallbacks")))
|
||||
@protocol NFCSDKIOSNFCCallbacks
|
||||
@required
|
||||
- (void)chargingRes:(NSString *)res level:(int32_t)level __attribute__((swift_name("charging(res:level:)")));
|
||||
- (void)connectTagErrorError:(NSError *)error __attribute__((swift_name("connectTagError(error:)")));
|
||||
- (void)controllingRes:(NSString *)res progress:(int32_t)progress ctrl:(NSString *)ctrl __attribute__((swift_name("controlling(res:progress:ctrl:)")));
|
||||
- (void)customDataRes:(NSString *)res config:(NFCSDKCustomDataConfig *)config data:(NSData * _Nullable)data __attribute__((swift_name("customData(res:config:data:)")));
|
||||
- (void)discoveredId:(NSString *)id isNew:(BOOL)isNew rssi:(int32_t)rssi __attribute__((swift_name("discovered(id:isNew:rssi:)")));
|
||||
- (void)finished __attribute__((swift_name("finished()")));
|
||||
- (void)notNfcA __attribute__((swift_name("notNfcA()")));
|
||||
- (void)sendCommandErrorError:(NSError * _Nullable)error __attribute__((swift_name("sendCommandError(error:)")));
|
||||
- (void)sessionInvalidWithErrorError:(NSError *)error __attribute__((swift_name("sessionInvalidWithError(error:)")));
|
||||
- (void)setKeyRes:(NSString *)res password:(NSString *)password __attribute__((swift_name("setKey(res:password:)")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("IOSNFCHelper")))
|
||||
@interface NFCSDKIOSNFCHelper : NFCSDKBase
|
||||
- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer));
|
||||
+ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead")));
|
||||
- (void)controlPassword:(NSString *)password ctrl:(NFCSDKCtrl *)ctrl __attribute__((swift_name("control(password:ctrl:)")));
|
||||
- (instancetype)initWithCallback:(id<NFCSDKIOSNFCCallbacks>)callback __attribute__((swift_name("init(callback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NSData *)byteArrayToNSDataData:(NFCSDKKotlinByteArray *)data __attribute__((swift_name("byteArrayToNSData(data:)")));
|
||||
- (void)cancel __attribute__((swift_name("cancel()")));
|
||||
- (void)customDataOperationConfig:(NFCSDKCustomDataConfig *)config customData:(NSData * _Nullable)customData __attribute__((swift_name("customDataOperation(config:customData:)")));
|
||||
- (void)endScan __attribute__((swift_name("endScan()")));
|
||||
- (void)endScanErrorMessage:(NSString *)errorMessage __attribute__((swift_name("endScan(errorMessage:)")));
|
||||
- (void)lockPassword:(NSString *)password __attribute__((swift_name("lock(password:)")));
|
||||
|
||||
/**
|
||||
* @note This method converts instances of CancellationException to errors.
|
||||
* Other uncaught Kotlin exceptions are fatal.
|
||||
*/
|
||||
- (void)processWithCompletionHandler:(void (^)(NSError * _Nullable))completionHandler __attribute__((swift_name("process(completionHandler:)")));
|
||||
- (void)setChargingCbCb:(void (^ _Nullable)(NSString *, NFCSDKInt * _Nullable))cb __attribute__((swift_name("setChargingCb(cb:)")));
|
||||
- (void)setControllingCbCb:(void (^ _Nullable)(NSString *, NFCSDKInt * _Nullable))cb __attribute__((swift_name("setControllingCb(cb:)")));
|
||||
- (void)setFinishedCbCb:(void (^ _Nullable)(void))cb __attribute__((swift_name("setFinishedCb(cb:)")));
|
||||
- (void)setLoopCbCb:(NFCSDKBoolean *(^)(NSString *, NFCSDKBoolean *, NFCSDKInt * _Nullable))cb __attribute__((swift_name("setLoopCb(cb:)")));
|
||||
- (void)setLostCbCb:(void (^ _Nullable)(void))cb __attribute__((swift_name("setLostCb(cb:)")));
|
||||
- (void)setTransceiverT:(void (^ _Nullable)(NFCSDKKotlinByteArray *, NFCSDKKotlinUnit *(^)(NFCSDKKotlinByteArray *)))t __attribute__((swift_name("setTransceiver(t:)")));
|
||||
- (NFCSDKKotlinByteArray *)nsDataToByteArrayData:(NSData *)data __attribute__((swift_name("nsDataToByteArray(data:)")));
|
||||
- (void)setAlertMessageMessage:(NSString *)message __attribute__((swift_name("setAlertMessage(message:)")));
|
||||
- (void)setKeyPassword:(NSString *)password sKey:(NSString *)sKey __attribute__((swift_name("setKey(password:sKey:)")));
|
||||
- (BOOL)startScanMessage:(NSString * _Nullable)message __attribute__((swift_name("startScan(message:)")));
|
||||
- (void)unlockPassword:(NSString *)password __attribute__((swift_name("unlock(password:)")));
|
||||
@property void (^ _Nullable charging)(NSString *, NFCSDKInt * _Nullable) __attribute__((swift_name("charging")));
|
||||
@property void (^ _Nullable controlling)(NSString *, NFCSDKInt * _Nullable) __attribute__((swift_name("controlling")));
|
||||
@property void (^ _Nullable finished)(void) __attribute__((swift_name("finished")));
|
||||
@property NFCSDKBoolean *(^ _Nullable loop)(NSString *, NFCSDKBoolean *, NFCSDKInt * _Nullable) __attribute__((swift_name("loop")));
|
||||
@property void (^ _Nullable lost)(void) __attribute__((swift_name("lost")));
|
||||
@property void (^ _Nullable transceiver)(NFCSDKKotlinByteArray *, NFCSDKKotlinUnit *(^)(NFCSDKKotlinByteArray *)) __attribute__((swift_name("transceiver")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
@ -467,56 +495,77 @@ __attribute__((swift_name("UserType.Companion")))
|
||||
|
||||
__attribute__((swift_name("CommonTask")))
|
||||
@interface NFCSDKCommonTask : NFCSDKBase
|
||||
- (void)onSelectError __attribute__((swift_name("onSelectError()")));
|
||||
@property (readonly) NSString *password __attribute__((swift_name("password")));
|
||||
@property (readonly) NFCSDKUserType * _Nullable userType __attribute__((swift_name("userType")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("CallFunctionTask")))
|
||||
@interface NFCSDKCallFunctionTask : NFCSDKCommonTask
|
||||
- (instancetype)initWithPassword:(NSString *)password data:(NSArray<NFCSDKUInt *> *)data index:(uint8_t)index callback:(void (^)(NFCSDKResult *, NSArray<NFCSDKUInt *> * _Nullable))callback __attribute__((swift_name("init(password:data:index:callback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKCallFunctionTask *)doCopyPassword:(NSString *)password data:(NSArray<NFCSDKUInt *> *)data index:(uint8_t)index callback:(void (^)(NFCSDKResult *, NSArray<NFCSDKUInt *> * _Nullable))callback __attribute__((swift_name("doCopy(password:data:index:callback:)")));
|
||||
- (instancetype)initWithPassword:(NSString *)password userType:(NFCSDKUserType * _Nullable)userType data:(NSArray<NFCSDKUInt *> *)data index:(uint8_t)index callback:(void (^)(NFCSDKResult *, NSArray<NFCSDKUInt *> * _Nullable))callback __attribute__((swift_name("init(password:userType:data:index:callback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKCallFunctionTask *)doCopyPassword:(NSString *)password userType:(NFCSDKUserType * _Nullable)userType data:(NSArray<NFCSDKUInt *> *)data index:(uint8_t)index callback:(void (^)(NFCSDKResult *, NSArray<NFCSDKUInt *> * _Nullable))callback __attribute__((swift_name("doCopy(password:userType:data:index:callback:)")));
|
||||
- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)")));
|
||||
- (NSUInteger)hash __attribute__((swift_name("hash()")));
|
||||
- (void)onSelectError __attribute__((swift_name("onSelectError()")));
|
||||
- (NSString *)description __attribute__((swift_name("description()")));
|
||||
@property (readonly) void (^callback)(NFCSDKResult *, NSArray<NFCSDKUInt *> * _Nullable) __attribute__((swift_name("callback")));
|
||||
@property (readonly) NSArray<NFCSDKUInt *> *data __attribute__((swift_name("data")));
|
||||
@property (readonly) uint8_t index __attribute__((swift_name("index")));
|
||||
@property (readonly) NSString *password __attribute__((swift_name("password")));
|
||||
@property (readonly) NFCSDKUserType * _Nullable userType __attribute__((swift_name("userType")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("ControlTask")))
|
||||
@interface NFCSDKControlTask : NFCSDKCommonTask
|
||||
- (instancetype)initWithPassword:(NSString *)password ctrl:(NFCSDKCtrl *)ctrl ignoreProgress:(BOOL)ignoreProgress chargeCallback:(void (^)(NFCSDKResult *, NFCSDKChargeLevel * _Nullable))chargeCallback controlCallback:(void (^)(NFCSDKResult *, NFCSDKControlProgress * _Nullable))controlCallback __attribute__((swift_name("init(password:ctrl:ignoreProgress:chargeCallback:controlCallback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKControlTask *)doCopyPassword:(NSString *)password ctrl:(NFCSDKCtrl *)ctrl ignoreProgress:(BOOL)ignoreProgress chargeCallback:(void (^)(NFCSDKResult *, NFCSDKChargeLevel * _Nullable))chargeCallback controlCallback:(void (^)(NFCSDKResult *, NFCSDKControlProgress * _Nullable))controlCallback __attribute__((swift_name("doCopy(password:ctrl:ignoreProgress:chargeCallback:controlCallback:)")));
|
||||
- (instancetype)initWithPassword:(NSString *)password userType:(NFCSDKUserType * _Nullable)userType ctrl:(NFCSDKCtrl *)ctrl ignoreProgress:(BOOL)ignoreProgress chargeCallback:(void (^)(NFCSDKResult *, NFCSDKChargeLevel * _Nullable))chargeCallback controlCallback:(void (^)(NFCSDKResult *, NFCSDKControlProgress * _Nullable))controlCallback __attribute__((swift_name("init(password:userType:ctrl:ignoreProgress:chargeCallback:controlCallback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKControlTask *)doCopyPassword:(NSString *)password userType:(NFCSDKUserType * _Nullable)userType ctrl:(NFCSDKCtrl *)ctrl ignoreProgress:(BOOL)ignoreProgress chargeCallback:(void (^)(NFCSDKResult *, NFCSDKChargeLevel * _Nullable))chargeCallback controlCallback:(void (^)(NFCSDKResult *, NFCSDKControlProgress * _Nullable))controlCallback __attribute__((swift_name("doCopy(password:userType:ctrl:ignoreProgress:chargeCallback:controlCallback:)")));
|
||||
- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)")));
|
||||
- (NSUInteger)hash __attribute__((swift_name("hash()")));
|
||||
- (void)onSelectError __attribute__((swift_name("onSelectError()")));
|
||||
- (NSString *)description __attribute__((swift_name("description()")));
|
||||
@property (readonly) void (^chargeCallback)(NFCSDKResult *, NFCSDKChargeLevel * _Nullable) __attribute__((swift_name("chargeCallback")));
|
||||
@property (readonly) void (^controlCallback)(NFCSDKResult *, NFCSDKControlProgress * _Nullable) __attribute__((swift_name("controlCallback")));
|
||||
@property (readonly) NFCSDKCtrl *ctrl __attribute__((swift_name("ctrl")));
|
||||
@property (readonly) BOOL ignoreProgress __attribute__((swift_name("ignoreProgress")));
|
||||
@property (readonly) NSString *password __attribute__((swift_name("password")));
|
||||
@property (readonly) NFCSDKUserType * _Nullable userType __attribute__((swift_name("userType")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("GetLogTask")))
|
||||
@interface NFCSDKGetLogTask : NFCSDKCommonTask
|
||||
- (instancetype)initWithPassword:(NSString *)password callback:(void (^)(NFCSDKResult *, NSArray<NFCSDKDeviceLog *> * _Nullable))callback __attribute__((swift_name("init(password:callback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKGetLogTask *)doCopyPassword:(NSString *)password callback:(void (^)(NFCSDKResult *, NSArray<NFCSDKDeviceLog *> * _Nullable))callback __attribute__((swift_name("doCopy(password:callback:)")));
|
||||
- (instancetype)initWithPassword:(NSString *)password userType:(NFCSDKUserType * _Nullable)userType callback:(void (^)(NFCSDKResult *, NSArray<NFCSDKDeviceLog *> * _Nullable))callback __attribute__((swift_name("init(password:userType:callback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKGetLogTask *)doCopyPassword:(NSString *)password userType:(NFCSDKUserType * _Nullable)userType callback:(void (^)(NFCSDKResult *, NSArray<NFCSDKDeviceLog *> * _Nullable))callback __attribute__((swift_name("doCopy(password:userType:callback:)")));
|
||||
- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)")));
|
||||
- (NSUInteger)hash __attribute__((swift_name("hash()")));
|
||||
- (void)onSelectError __attribute__((swift_name("onSelectError()")));
|
||||
- (NSString *)description __attribute__((swift_name("description()")));
|
||||
@property (readonly) void (^callback)(NFCSDKResult *, NSArray<NFCSDKDeviceLog *> * _Nullable) __attribute__((swift_name("callback")));
|
||||
@property (readonly) NSString *password __attribute__((swift_name("password")));
|
||||
@property (readonly) NFCSDKUserType * _Nullable userType __attribute__((swift_name("userType")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("GetVersionTask")))
|
||||
@interface NFCSDKGetVersionTask : NFCSDKCommonTask
|
||||
- (instancetype)initWithPassword:(NSString *)password userType:(NFCSDKUserType * _Nullable)userType callback:(void (^)(NFCSDKResult *, NSArray<NFCSDKUInt *> * _Nullable))callback __attribute__((swift_name("init(password:userType:callback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKGetVersionTask *)doCopyPassword:(NSString *)password userType:(NFCSDKUserType * _Nullable)userType callback:(void (^)(NFCSDKResult *, NSArray<NFCSDKUInt *> * _Nullable))callback __attribute__((swift_name("doCopy(password:userType:callback:)")));
|
||||
- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)")));
|
||||
- (NSUInteger)hash __attribute__((swift_name("hash()")));
|
||||
- (void)onSelectError __attribute__((swift_name("onSelectError()")));
|
||||
- (NSString *)description __attribute__((swift_name("description()")));
|
||||
@property (readonly) void (^callback)(NFCSDKResult *, NSArray<NFCSDKUInt *> * _Nullable) __attribute__((swift_name("callback")));
|
||||
@property (readonly) NSString *password __attribute__((swift_name("password")));
|
||||
@property (readonly) NFCSDKUserType * _Nullable userType __attribute__((swift_name("userType")));
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("NFCCallbacks")))
|
||||
@protocol NFCSDKNFCCallbacks
|
||||
@required
|
||||
- (void)onDiscoveredInfo:(NFCSDKDeviceInfo *)info rssi:(NFCSDKUInt * _Nullable)rssi __attribute__((swift_name("onDiscovered(info:rssi:)")));
|
||||
- (void)onFinished __attribute__((swift_name("onFinished()")));
|
||||
- (BOOL)onLoopInfo:(NFCSDKDeviceInfo *)info rssi:(NFCSDKUInt * _Nullable)rssi __attribute__((swift_name("onLoop(info:rssi:)")));
|
||||
- (void)onLost __attribute__((swift_name("onLost()")));
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("NFCHelper")))
|
||||
@ -540,27 +589,31 @@ __attribute__((swift_name("NFCHelper")))
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("SetKeyTask")))
|
||||
@interface NFCSDKSetKeyTask : NFCSDKCommonTask
|
||||
- (instancetype)initWithPassword:(NSString *)password sKey:(NSString *)sKey callback:(void (^)(NFCSDKResult *))callback __attribute__((swift_name("init(password:sKey:callback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKSetKeyTask *)doCopyPassword:(NSString *)password sKey:(NSString *)sKey callback:(void (^)(NFCSDKResult *))callback __attribute__((swift_name("doCopy(password:sKey:callback:)")));
|
||||
- (instancetype)initWithPassword:(NSString *)password userType:(NFCSDKUserType * _Nullable)userType sKey:(NSString *)sKey callback:(void (^)(NFCSDKResult *))callback __attribute__((swift_name("init(password:userType:sKey:callback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKSetKeyTask *)doCopyPassword:(NSString *)password userType:(NFCSDKUserType * _Nullable)userType sKey:(NSString *)sKey callback:(void (^)(NFCSDKResult *))callback __attribute__((swift_name("doCopy(password:userType:sKey:callback:)")));
|
||||
- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)")));
|
||||
- (NSUInteger)hash __attribute__((swift_name("hash()")));
|
||||
- (void)onSelectError __attribute__((swift_name("onSelectError()")));
|
||||
- (NSString *)description __attribute__((swift_name("description()")));
|
||||
@property (readonly) void (^callback)(NFCSDKResult *) __attribute__((swift_name("callback")));
|
||||
@property (readonly) NSString *password __attribute__((swift_name("password")));
|
||||
@property (readonly) NSString *sKey __attribute__((swift_name("sKey")));
|
||||
@property (readonly) NFCSDKUserType * _Nullable userType __attribute__((swift_name("userType")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("SetParametersTask")))
|
||||
@interface NFCSDKSetParametersTask : NFCSDKCommonTask
|
||||
- (instancetype)initWithPassword:(NSString *)password parameters:(NFCSDKParameters *)parameters callback:(void (^)(NFCSDKResult *))callback __attribute__((swift_name("init(password:parameters:callback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKSetParametersTask *)doCopyPassword:(NSString *)password parameters:(NFCSDKParameters *)parameters callback:(void (^)(NFCSDKResult *))callback __attribute__((swift_name("doCopy(password:parameters:callback:)")));
|
||||
- (instancetype)initWithPassword:(NSString *)password userType:(NFCSDKUserType * _Nullable)userType parameters:(NFCSDKParameters *)parameters callback:(void (^)(NFCSDKResult *))callback __attribute__((swift_name("init(password:userType:parameters:callback:)"))) __attribute__((objc_designated_initializer));
|
||||
- (NFCSDKSetParametersTask *)doCopyPassword:(NSString *)password userType:(NFCSDKUserType * _Nullable)userType parameters:(NFCSDKParameters *)parameters callback:(void (^)(NFCSDKResult *))callback __attribute__((swift_name("doCopy(password:userType:parameters:callback:)")));
|
||||
- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)")));
|
||||
- (NSUInteger)hash __attribute__((swift_name("hash()")));
|
||||
- (void)onSelectError __attribute__((swift_name("onSelectError()")));
|
||||
- (NSString *)description __attribute__((swift_name("description()")));
|
||||
@property (readonly) void (^callback)(NFCSDKResult *) __attribute__((swift_name("callback")));
|
||||
@property (readonly) NFCSDKParameters *parameters __attribute__((swift_name("parameters")));
|
||||
@property (readonly) NSString *password __attribute__((swift_name("password")));
|
||||
@property (readonly) NFCSDKUserType * _Nullable userType __attribute__((swift_name("userType")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
@ -677,16 +730,6 @@ __attribute__((swift_name("KotlinPair")))
|
||||
@property (readonly) B _Nullable second __attribute__((swift_name("second")));
|
||||
@end
|
||||
|
||||
__attribute__((objc_subclassing_restricted))
|
||||
__attribute__((swift_name("KotlinUnit")))
|
||||
@interface NFCSDKKotlinUnit : NFCSDKBase
|
||||
+ (instancetype)alloc __attribute__((unavailable));
|
||||
+ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable));
|
||||
+ (instancetype)unit __attribute__((swift_name("init()")));
|
||||
@property (class, readonly, getter=shared) NFCSDKKotlinUnit *shared __attribute__((swift_name("shared")));
|
||||
- (NSString *)description __attribute__((swift_name("description()")));
|
||||
@end
|
||||
|
||||
__attribute__((swift_name("KotlinIterator")))
|
||||
@protocol NFCSDKKotlinIterator
|
||||
@required
|
||||
Binary file not shown.
Binary file not shown.
@ -41,7 +41,6 @@
|
||||
|
||||
<ItemGroup>
|
||||
<NativeReference Include="NfcLockFramework.xcframework">
|
||||
<Frameworks>CoreNFC NFCSDK</Frameworks>
|
||||
<Kind>Framework</Kind>
|
||||
<SmartLink>True</SmartLink>
|
||||
<ForceLoad>False</ForceLoad>
|
||||
@ -57,10 +56,9 @@
|
||||
</ItemGroup> -->
|
||||
|
||||
<ItemGroup Condition="$(TargetFramework.Contains('-ios'))">
|
||||
<NativeReference Include="shared_nfc_kmp.xcframework">
|
||||
<NativeReference Include="NFCSDK.xcframework">
|
||||
<Kind>Framework</Kind>
|
||||
<SmartLink>True</SmartLink>
|
||||
<Frameworks>CoreNFC NFCSDK</Frameworks>
|
||||
<ForceLoad>False</ForceLoad>
|
||||
</NativeReference>
|
||||
</ItemGroup>
|
||||
|
||||
Binary file not shown.
@ -4,6 +4,20 @@
|
||||
<dict>
|
||||
<key>AvailableLibraries</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>BinaryPath</key>
|
||||
<string>NfcLockFramework.framework/NfcLockFramework</string>
|
||||
<key>LibraryIdentifier</key>
|
||||
<string>ios-arm64</string>
|
||||
<key>LibraryPath</key>
|
||||
<string>NfcLockFramework.framework</string>
|
||||
<key>SupportedArchitectures</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
||||
</array>
|
||||
<key>SupportedPlatform</key>
|
||||
<string>ios</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>BinaryPath</key>
|
||||
<string>NfcLockFramework.framework/NfcLockFramework</string>
|
||||
@ -21,20 +35,6 @@
|
||||
<key>SupportedPlatformVariant</key>
|
||||
<string>simulator</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>BinaryPath</key>
|
||||
<string>NfcLockFramework.framework/NfcLockFramework</string>
|
||||
<key>LibraryIdentifier</key>
|
||||
<string>ios-arm64</string>
|
||||
<key>LibraryPath</key>
|
||||
<string>NfcLockFramework.framework</string>
|
||||
<key>SupportedArchitectures</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
||||
</array>
|
||||
<key>SupportedPlatform</key>
|
||||
<string>ios</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>XFWK</string>
|
||||
|
||||
@ -0,0 +1,358 @@
|
||||
#if 0
|
||||
#elif defined(__arm64__) && __arm64__
|
||||
// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
||||
#ifndef NFCLOCKFRAMEWORK_SWIFT_H
|
||||
#define NFCLOCKFRAMEWORK_SWIFT_H
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wgcc-compat"
|
||||
|
||||
#if !defined(__has_include)
|
||||
# define __has_include(x) 0
|
||||
#endif
|
||||
#if !defined(__has_attribute)
|
||||
# define __has_attribute(x) 0
|
||||
#endif
|
||||
#if !defined(__has_feature)
|
||||
# define __has_feature(x) 0
|
||||
#endif
|
||||
#if !defined(__has_warning)
|
||||
# define __has_warning(x) 0
|
||||
#endif
|
||||
|
||||
#if __has_include(<swift/objc-prologue.h>)
|
||||
# include <swift/objc-prologue.h>
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic ignored "-Wauto-import"
|
||||
#if defined(__OBJC__)
|
||||
#include <Foundation/Foundation.h>
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
#include <cstdbool>
|
||||
#include <cstring>
|
||||
#include <stdlib.h>
|
||||
#include <new>
|
||||
#include <type_traits>
|
||||
#else
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
|
||||
#if defined(__arm64e__) && __has_include(<ptrauth.h>)
|
||||
# include <ptrauth.h>
|
||||
#else
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wreserved-macro-identifier"
|
||||
# ifndef __ptrauth_swift_value_witness_function_pointer
|
||||
# define __ptrauth_swift_value_witness_function_pointer(x)
|
||||
# endif
|
||||
# ifndef __ptrauth_swift_class_method_pointer
|
||||
# define __ptrauth_swift_class_method_pointer(x)
|
||||
# endif
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_TYPEDEFS)
|
||||
# define SWIFT_TYPEDEFS 1
|
||||
# if __has_include(<uchar.h>)
|
||||
# include <uchar.h>
|
||||
# elif !defined(__cplusplus)
|
||||
typedef unsigned char char8_t;
|
||||
typedef uint_least16_t char16_t;
|
||||
typedef uint_least32_t char32_t;
|
||||
# endif
|
||||
typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_PASTE)
|
||||
# define SWIFT_PASTE_HELPER(x, y) x##y
|
||||
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
|
||||
#endif
|
||||
#if !defined(SWIFT_METATYPE)
|
||||
# define SWIFT_METATYPE(X) Class
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS_PROPERTY)
|
||||
# if __has_feature(objc_class_property)
|
||||
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
|
||||
# else
|
||||
# define SWIFT_CLASS_PROPERTY(...)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_RUNTIME_NAME)
|
||||
# if __has_attribute(objc_runtime_name)
|
||||
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
|
||||
# else
|
||||
# define SWIFT_RUNTIME_NAME(X)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_COMPILE_NAME)
|
||||
# if __has_attribute(swift_name)
|
||||
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
|
||||
# else
|
||||
# define SWIFT_COMPILE_NAME(X)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_METHOD_FAMILY)
|
||||
# if __has_attribute(objc_method_family)
|
||||
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
|
||||
# else
|
||||
# define SWIFT_METHOD_FAMILY(X)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_NOESCAPE)
|
||||
# if __has_attribute(noescape)
|
||||
# define SWIFT_NOESCAPE __attribute__((noescape))
|
||||
# else
|
||||
# define SWIFT_NOESCAPE
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_RELEASES_ARGUMENT)
|
||||
# if __has_attribute(ns_consumed)
|
||||
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
|
||||
# else
|
||||
# define SWIFT_RELEASES_ARGUMENT
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_WARN_UNUSED_RESULT)
|
||||
# if __has_attribute(warn_unused_result)
|
||||
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
|
||||
# else
|
||||
# define SWIFT_WARN_UNUSED_RESULT
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_NORETURN)
|
||||
# if __has_attribute(noreturn)
|
||||
# define SWIFT_NORETURN __attribute__((noreturn))
|
||||
# else
|
||||
# define SWIFT_NORETURN
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS_EXTRA)
|
||||
# define SWIFT_CLASS_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_PROTOCOL_EXTRA)
|
||||
# define SWIFT_PROTOCOL_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM_EXTRA)
|
||||
# define SWIFT_ENUM_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS)
|
||||
# if __has_attribute(objc_subclassing_restricted)
|
||||
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
|
||||
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# else
|
||||
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_RESILIENT_CLASS)
|
||||
# if __has_attribute(objc_class_stub)
|
||||
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
|
||||
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
||||
# else
|
||||
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
|
||||
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_PROTOCOL)
|
||||
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
||||
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_EXTENSION)
|
||||
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
|
||||
#endif
|
||||
#if !defined(OBJC_DESIGNATED_INITIALIZER)
|
||||
# if __has_attribute(objc_designated_initializer)
|
||||
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
|
||||
# else
|
||||
# define OBJC_DESIGNATED_INITIALIZER
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM_ATTR)
|
||||
# if __has_attribute(enum_extensibility)
|
||||
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
|
||||
# else
|
||||
# define SWIFT_ENUM_ATTR(_extensibility)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM)
|
||||
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
||||
# if __has_feature(generalized_swift_name)
|
||||
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
||||
# else
|
||||
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_UNAVAILABLE)
|
||||
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
|
||||
#endif
|
||||
#if !defined(SWIFT_UNAVAILABLE_MSG)
|
||||
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
|
||||
#endif
|
||||
#if !defined(SWIFT_AVAILABILITY)
|
||||
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
|
||||
#endif
|
||||
#if !defined(SWIFT_WEAK_IMPORT)
|
||||
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
|
||||
#endif
|
||||
#if !defined(SWIFT_DEPRECATED)
|
||||
# define SWIFT_DEPRECATED __attribute__((deprecated))
|
||||
#endif
|
||||
#if !defined(SWIFT_DEPRECATED_MSG)
|
||||
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
|
||||
#endif
|
||||
#if !defined(SWIFT_DEPRECATED_OBJC)
|
||||
# if __has_feature(attribute_diagnose_if_objc)
|
||||
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
|
||||
# else
|
||||
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
|
||||
# endif
|
||||
#endif
|
||||
#if defined(__OBJC__)
|
||||
#if !defined(IBSegueAction)
|
||||
# define IBSegueAction
|
||||
#endif
|
||||
#endif
|
||||
#if !defined(SWIFT_EXTERN)
|
||||
# if defined(__cplusplus)
|
||||
# define SWIFT_EXTERN extern "C"
|
||||
# else
|
||||
# define SWIFT_EXTERN extern
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_CALL)
|
||||
# define SWIFT_CALL __attribute__((swiftcall))
|
||||
#endif
|
||||
#if !defined(SWIFT_INDIRECT_RESULT)
|
||||
# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
|
||||
#endif
|
||||
#if !defined(SWIFT_CONTEXT)
|
||||
# define SWIFT_CONTEXT __attribute__((swift_context))
|
||||
#endif
|
||||
#if !defined(SWIFT_ERROR_RESULT)
|
||||
# define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
# define SWIFT_NOEXCEPT noexcept
|
||||
#else
|
||||
# define SWIFT_NOEXCEPT
|
||||
#endif
|
||||
#if !defined(SWIFT_C_INLINE_THUNK)
|
||||
# if __has_attribute(always_inline)
|
||||
# if __has_attribute(nodebug)
|
||||
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
|
||||
# else
|
||||
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
|
||||
# endif
|
||||
# else
|
||||
# define SWIFT_C_INLINE_THUNK inline
|
||||
# endif
|
||||
#endif
|
||||
#if defined(_WIN32)
|
||||
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
|
||||
# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
|
||||
#endif
|
||||
#else
|
||||
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
|
||||
# define SWIFT_IMPORT_STDLIB_SYMBOL
|
||||
#endif
|
||||
#endif
|
||||
#if defined(__OBJC__)
|
||||
#if __has_feature(objc_modules)
|
||||
#if __has_warning("-Watimport-in-framework-header")
|
||||
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
||||
#endif
|
||||
@import NFCSDK;
|
||||
@import ObjectiveC;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
||||
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
||||
#if __has_warning("-Wpragma-clang-attribute")
|
||||
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
|
||||
#endif
|
||||
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
||||
#pragma clang diagnostic ignored "-Wnullability"
|
||||
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
||||
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
||||
|
||||
#if __has_attribute(external_source_symbol)
|
||||
# pragma push_macro("any")
|
||||
# undef any
|
||||
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="NfcLockFramework",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
|
||||
# pragma pop_macro("any")
|
||||
#endif
|
||||
|
||||
#if defined(__OBJC__)
|
||||
|
||||
@class NSString;
|
||||
@class NFCSDKCustomDataConfig;
|
||||
@class NSData;
|
||||
/// NFC管理单例,桥接OC调用,统一处理NFC扫描、读写、密钥、设备发现回调
|
||||
SWIFT_CLASS_NAMED("NFCManager")
|
||||
@interface NFCManager : NSObject <NFCSDKIOSNFCCallbacks>
|
||||
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NFCManager * _Nonnull shared;)
|
||||
+ (NFCManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
|
||||
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
||||
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
||||
- (void)chargingRes:(NSString * _Nonnull)res level:(int32_t)level;
|
||||
- (void)controllingRes:(NSString * _Nonnull)res progress:(int32_t)progress ctrl:(NSString * _Nonnull)ctrl;
|
||||
- (void)customDataRes:(NSString * _Nonnull)res config:(NFCSDKCustomDataConfig * _Nonnull)config data:(NSData * _Nullable)data;
|
||||
- (void)discoveredId:(NSString * _Nonnull)id isNew:(BOOL)isNew rssi:(int32_t)rssi;
|
||||
- (void)finished;
|
||||
- (void)setKeyRes:(NSString * _Nonnull)res password:(NSString * _Nonnull)password;
|
||||
- (void)connectTagErrorError:(NSError * _Nonnull)error;
|
||||
- (void)sendCommandErrorError:(NSError * _Nullable)error;
|
||||
- (void)notNfcA;
|
||||
- (void)sessionInvalidWithErrorError:(NSError * _Nonnull)error;
|
||||
- (void)setChargingCallback:(void (^ _Nonnull)(NSString * _Nonnull, int32_t))cb;
|
||||
- (void)setControllingCallback:(void (^ _Nonnull)(NSString * _Nonnull, int32_t, NSString * _Nonnull))cb;
|
||||
- (void)setCustomDataCallback:(void (^ _Nonnull)(NSString * _Nonnull, NFCSDKCustomDataConfig * _Nonnull, NSData * _Nullable))cb;
|
||||
- (void)setDeviceDiscoveredCallback:(void (^ _Nonnull)(NSString * _Nonnull, BOOL, int32_t))cb;
|
||||
- (void)setOperationFinishedCallback:(void (^ _Nonnull)(void))cb;
|
||||
- (void)setSetKeyCallback:(void (^ _Nonnull)(NSString * _Nonnull, NSString * _Nonnull))cb;
|
||||
- (void)setScanDidStartCallback:(void (^ _Nonnull)(void))cb;
|
||||
- (void)setScanDidEndCallback:(void (^ _Nonnull)(BOOL, NSString * _Nullable))cb;
|
||||
- (void)clearAllCallbacks;
|
||||
- (void)lockWith:(NSString * _Nonnull)password;
|
||||
- (void)unlockWith:(NSString * _Nonnull)password;
|
||||
/// 开启NFC扫描
|
||||
- (void)startScanWith:(NSString * _Nonnull)message;
|
||||
- (void)endScan;
|
||||
/// 异常结束扫描,附带错误信息
|
||||
- (void)endScanWith:(NSString * _Nonnull)errorMessage;
|
||||
- (void)showTipsWith:(NSString * _Nonnull)message;
|
||||
@end
|
||||
|
||||
#endif
|
||||
#if __has_attribute(external_source_symbol)
|
||||
# pragma clang attribute pop
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
#endif
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
#else
|
||||
#error unsupported Swift architecture
|
||||
#endif
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
// swift-interface-format-version: 1.0
|
||||
// swift-compiler-version: Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
||||
// swift-module-flags: -target arm64-apple-ios16.6 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-upcoming-feature DisableOutwardActorInference -enable-upcoming-feature InferSendableFromCaptures -enable-upcoming-feature GlobalActorIsolatedTypesUsability -enable-upcoming-feature MemberImportVisibility -enable-upcoming-feature InferIsolatedConformances -enable-upcoming-feature NonisolatedNonsendingByDefault -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name NfcLockFramework
|
||||
// swift-module-flags: -target arm64-apple-ios15.6 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-upcoming-feature DisableOutwardActorInference -enable-upcoming-feature InferSendableFromCaptures -enable-upcoming-feature GlobalActorIsolatedTypesUsability -enable-upcoming-feature MemberImportVisibility -enable-upcoming-feature InferIsolatedConformances -enable-upcoming-feature NonisolatedNonsendingByDefault -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name NfcLockFramework
|
||||
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.3
|
||||
import CoreNFC
|
||||
import NFCSDK
|
||||
@ -8,18 +8,40 @@ import Swift
|
||||
import _Concurrency
|
||||
import _StringProcessing
|
||||
import _SwiftConcurrencyShims
|
||||
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc(NFCManager) public class NFCManager : ObjectiveC.NSObject, CoreNFC.NFCTagReaderSessionDelegate {
|
||||
@objc public static func startScan()
|
||||
@objc public static func endScan()
|
||||
@objc public static func endScan(errorMessage: Swift.String)
|
||||
@objc public static func setLoopCb(cb: @escaping (Swift.String, Swift.Bool, Swift.Int) -> Swift.Bool)
|
||||
@objc public static func setFinishedCb(cb: @escaping () -> Swift.Void)
|
||||
@objc public static func setChargingCb(cb: @escaping (Swift.String, Swift.Int) -> Swift.Void)
|
||||
@objc public static func setControllingCb(cb: @escaping (Swift.String, Swift.Int) -> Swift.Void)
|
||||
@objc public static func lock(password: Swift.String)
|
||||
@objc public static func unlock(password: Swift.String)
|
||||
public func tagReaderSessionDidBecomeActive(_ session: CoreNFC.NFCTagReaderSession)
|
||||
public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didInvalidateWithError error: any Swift.Error)
|
||||
public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag])
|
||||
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc(NFCManager) final public class NFCManager : ObjectiveC.NSObject, NFCSDK.IOSNFCCallbacks {
|
||||
@objc public static let shared: NfcLockFramework.NFCManager
|
||||
@objc final public func charging(res: Swift.String, level: Swift.Int32)
|
||||
@objc final public func controlling(res: Swift.String, progress: Swift.Int32, ctrl: Swift.String)
|
||||
#if compiler(>=5.3) && $NonescapableTypes
|
||||
@objc final public func customData(res: Swift.String, config: NFCSDK.CustomDataConfig, data: Foundation.Data?)
|
||||
#endif
|
||||
@objc final public func discovered(id: Swift.String, isNew: Swift.Bool, rssi: Swift.Int32)
|
||||
@objc final public func finished()
|
||||
@objc final public func setKey(res: Swift.String, password: Swift.String)
|
||||
@objc final public func connectTagError(error: any Swift.Error)
|
||||
#if compiler(>=5.3) && $NonescapableTypes
|
||||
@objc final public func sendCommandError(error: (any Swift.Error)?)
|
||||
#endif
|
||||
@objc final public func notNfcA()
|
||||
@objc final public func sessionInvalidWithError(error: any Swift.Error)
|
||||
@objc final public func setChargingCallback(_ cb: @escaping (Swift.String, Swift.Int32) -> Swift.Void)
|
||||
@objc final public func setControllingCallback(_ cb: @escaping (Swift.String, Swift.Int32, Swift.String) -> Swift.Void)
|
||||
#if compiler(>=5.3) && $NonescapableTypes
|
||||
@objc final public func setCustomDataCallback(_ cb: @escaping (Swift.String, NFCSDK.CustomDataConfig, Foundation.Data?) -> Swift.Void)
|
||||
#endif
|
||||
@objc final public func setDeviceDiscoveredCallback(_ cb: @escaping (Swift.String, Swift.Bool, Swift.Int32) -> Swift.Void)
|
||||
@objc final public func setOperationFinishedCallback(_ cb: @escaping () -> Swift.Void)
|
||||
@objc final public func setSetKeyCallback(_ cb: @escaping (Swift.String, Swift.String) -> Swift.Void)
|
||||
@objc final public func setScanDidStartCallback(_ cb: @escaping () -> Swift.Void)
|
||||
#if compiler(>=5.3) && $NonescapableTypes
|
||||
@objc final public func setScanDidEndCallback(_ cb: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
||||
#endif
|
||||
@objc final public func clearAllCallbacks()
|
||||
@objc final public func lock(with password: Swift.String)
|
||||
@objc final public func unlock(with password: Swift.String)
|
||||
@objc final public func startScan(with message: Swift.String)
|
||||
@objc final public func endScan()
|
||||
@objc final public func endScan(with errorMessage: Swift.String)
|
||||
@objc final public func showTips(with message: Swift.String)
|
||||
@objc deinit
|
||||
}
|
||||
|
||||
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
// swift-interface-format-version: 1.0
|
||||
// swift-compiler-version: Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
||||
// swift-module-flags: -target arm64-apple-ios16.6 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-upcoming-feature DisableOutwardActorInference -enable-upcoming-feature InferSendableFromCaptures -enable-upcoming-feature GlobalActorIsolatedTypesUsability -enable-upcoming-feature MemberImportVisibility -enable-upcoming-feature InferIsolatedConformances -enable-upcoming-feature NonisolatedNonsendingByDefault -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name NfcLockFramework
|
||||
// swift-module-flags: -target arm64-apple-ios15.6 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-upcoming-feature DisableOutwardActorInference -enable-upcoming-feature InferSendableFromCaptures -enable-upcoming-feature GlobalActorIsolatedTypesUsability -enable-upcoming-feature MemberImportVisibility -enable-upcoming-feature InferIsolatedConformances -enable-upcoming-feature NonisolatedNonsendingByDefault -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name NfcLockFramework
|
||||
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.3
|
||||
import CoreNFC
|
||||
import NFCSDK
|
||||
@ -8,18 +8,40 @@ import Swift
|
||||
import _Concurrency
|
||||
import _StringProcessing
|
||||
import _SwiftConcurrencyShims
|
||||
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc(NFCManager) public class NFCManager : ObjectiveC.NSObject, CoreNFC.NFCTagReaderSessionDelegate {
|
||||
@objc public static func startScan()
|
||||
@objc public static func endScan()
|
||||
@objc public static func endScan(errorMessage: Swift.String)
|
||||
@objc public static func setLoopCb(cb: @escaping (Swift.String, Swift.Bool, Swift.Int) -> Swift.Bool)
|
||||
@objc public static func setFinishedCb(cb: @escaping () -> Swift.Void)
|
||||
@objc public static func setChargingCb(cb: @escaping (Swift.String, Swift.Int) -> Swift.Void)
|
||||
@objc public static func setControllingCb(cb: @escaping (Swift.String, Swift.Int) -> Swift.Void)
|
||||
@objc public static func lock(password: Swift.String)
|
||||
@objc public static func unlock(password: Swift.String)
|
||||
public func tagReaderSessionDidBecomeActive(_ session: CoreNFC.NFCTagReaderSession)
|
||||
public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didInvalidateWithError error: any Swift.Error)
|
||||
public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag])
|
||||
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc(NFCManager) final public class NFCManager : ObjectiveC.NSObject, NFCSDK.IOSNFCCallbacks {
|
||||
@objc public static let shared: NfcLockFramework.NFCManager
|
||||
@objc final public func charging(res: Swift.String, level: Swift.Int32)
|
||||
@objc final public func controlling(res: Swift.String, progress: Swift.Int32, ctrl: Swift.String)
|
||||
#if compiler(>=5.3) && $NonescapableTypes
|
||||
@objc final public func customData(res: Swift.String, config: NFCSDK.CustomDataConfig, data: Foundation.Data?)
|
||||
#endif
|
||||
@objc final public func discovered(id: Swift.String, isNew: Swift.Bool, rssi: Swift.Int32)
|
||||
@objc final public func finished()
|
||||
@objc final public func setKey(res: Swift.String, password: Swift.String)
|
||||
@objc final public func connectTagError(error: any Swift.Error)
|
||||
#if compiler(>=5.3) && $NonescapableTypes
|
||||
@objc final public func sendCommandError(error: (any Swift.Error)?)
|
||||
#endif
|
||||
@objc final public func notNfcA()
|
||||
@objc final public func sessionInvalidWithError(error: any Swift.Error)
|
||||
@objc final public func setChargingCallback(_ cb: @escaping (Swift.String, Swift.Int32) -> Swift.Void)
|
||||
@objc final public func setControllingCallback(_ cb: @escaping (Swift.String, Swift.Int32, Swift.String) -> Swift.Void)
|
||||
#if compiler(>=5.3) && $NonescapableTypes
|
||||
@objc final public func setCustomDataCallback(_ cb: @escaping (Swift.String, NFCSDK.CustomDataConfig, Foundation.Data?) -> Swift.Void)
|
||||
#endif
|
||||
@objc final public func setDeviceDiscoveredCallback(_ cb: @escaping (Swift.String, Swift.Bool, Swift.Int32) -> Swift.Void)
|
||||
@objc final public func setOperationFinishedCallback(_ cb: @escaping () -> Swift.Void)
|
||||
@objc final public func setSetKeyCallback(_ cb: @escaping (Swift.String, Swift.String) -> Swift.Void)
|
||||
@objc final public func setScanDidStartCallback(_ cb: @escaping () -> Swift.Void)
|
||||
#if compiler(>=5.3) && $NonescapableTypes
|
||||
@objc final public func setScanDidEndCallback(_ cb: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
||||
#endif
|
||||
@objc final public func clearAllCallbacks()
|
||||
@objc final public func lock(with password: Swift.String)
|
||||
@objc final public func unlock(with password: Swift.String)
|
||||
@objc final public func startScan(with message: Swift.String)
|
||||
@objc final public func endScan()
|
||||
@objc final public func endScan(with errorMessage: Swift.String)
|
||||
@objc final public func showTips(with message: Swift.String)
|
||||
@objc deinit
|
||||
}
|
||||
|
||||
@ -0,0 +1,4 @@
|
||||
framework module NfcLockFramework {
|
||||
header "NfcLockFramework-Swift.h"
|
||||
requires objc
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,712 @@
|
||||
#if 0
|
||||
#elif defined(__arm64__) && __arm64__
|
||||
// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
||||
#ifndef NFCLOCKFRAMEWORK_SWIFT_H
|
||||
#define NFCLOCKFRAMEWORK_SWIFT_H
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wgcc-compat"
|
||||
|
||||
#if !defined(__has_include)
|
||||
# define __has_include(x) 0
|
||||
#endif
|
||||
#if !defined(__has_attribute)
|
||||
# define __has_attribute(x) 0
|
||||
#endif
|
||||
#if !defined(__has_feature)
|
||||
# define __has_feature(x) 0
|
||||
#endif
|
||||
#if !defined(__has_warning)
|
||||
# define __has_warning(x) 0
|
||||
#endif
|
||||
|
||||
#if __has_include(<swift/objc-prologue.h>)
|
||||
# include <swift/objc-prologue.h>
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic ignored "-Wauto-import"
|
||||
#if defined(__OBJC__)
|
||||
#include <Foundation/Foundation.h>
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
#include <cstdbool>
|
||||
#include <cstring>
|
||||
#include <stdlib.h>
|
||||
#include <new>
|
||||
#include <type_traits>
|
||||
#else
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
|
||||
#if defined(__arm64e__) && __has_include(<ptrauth.h>)
|
||||
# include <ptrauth.h>
|
||||
#else
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wreserved-macro-identifier"
|
||||
# ifndef __ptrauth_swift_value_witness_function_pointer
|
||||
# define __ptrauth_swift_value_witness_function_pointer(x)
|
||||
# endif
|
||||
# ifndef __ptrauth_swift_class_method_pointer
|
||||
# define __ptrauth_swift_class_method_pointer(x)
|
||||
# endif
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_TYPEDEFS)
|
||||
# define SWIFT_TYPEDEFS 1
|
||||
# if __has_include(<uchar.h>)
|
||||
# include <uchar.h>
|
||||
# elif !defined(__cplusplus)
|
||||
typedef unsigned char char8_t;
|
||||
typedef uint_least16_t char16_t;
|
||||
typedef uint_least32_t char32_t;
|
||||
# endif
|
||||
typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_PASTE)
|
||||
# define SWIFT_PASTE_HELPER(x, y) x##y
|
||||
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
|
||||
#endif
|
||||
#if !defined(SWIFT_METATYPE)
|
||||
# define SWIFT_METATYPE(X) Class
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS_PROPERTY)
|
||||
# if __has_feature(objc_class_property)
|
||||
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
|
||||
# else
|
||||
# define SWIFT_CLASS_PROPERTY(...)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_RUNTIME_NAME)
|
||||
# if __has_attribute(objc_runtime_name)
|
||||
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
|
||||
# else
|
||||
# define SWIFT_RUNTIME_NAME(X)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_COMPILE_NAME)
|
||||
# if __has_attribute(swift_name)
|
||||
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
|
||||
# else
|
||||
# define SWIFT_COMPILE_NAME(X)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_METHOD_FAMILY)
|
||||
# if __has_attribute(objc_method_family)
|
||||
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
|
||||
# else
|
||||
# define SWIFT_METHOD_FAMILY(X)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_NOESCAPE)
|
||||
# if __has_attribute(noescape)
|
||||
# define SWIFT_NOESCAPE __attribute__((noescape))
|
||||
# else
|
||||
# define SWIFT_NOESCAPE
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_RELEASES_ARGUMENT)
|
||||
# if __has_attribute(ns_consumed)
|
||||
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
|
||||
# else
|
||||
# define SWIFT_RELEASES_ARGUMENT
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_WARN_UNUSED_RESULT)
|
||||
# if __has_attribute(warn_unused_result)
|
||||
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
|
||||
# else
|
||||
# define SWIFT_WARN_UNUSED_RESULT
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_NORETURN)
|
||||
# if __has_attribute(noreturn)
|
||||
# define SWIFT_NORETURN __attribute__((noreturn))
|
||||
# else
|
||||
# define SWIFT_NORETURN
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS_EXTRA)
|
||||
# define SWIFT_CLASS_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_PROTOCOL_EXTRA)
|
||||
# define SWIFT_PROTOCOL_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM_EXTRA)
|
||||
# define SWIFT_ENUM_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS)
|
||||
# if __has_attribute(objc_subclassing_restricted)
|
||||
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
|
||||
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# else
|
||||
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_RESILIENT_CLASS)
|
||||
# if __has_attribute(objc_class_stub)
|
||||
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
|
||||
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
||||
# else
|
||||
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
|
||||
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_PROTOCOL)
|
||||
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
||||
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_EXTENSION)
|
||||
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
|
||||
#endif
|
||||
#if !defined(OBJC_DESIGNATED_INITIALIZER)
|
||||
# if __has_attribute(objc_designated_initializer)
|
||||
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
|
||||
# else
|
||||
# define OBJC_DESIGNATED_INITIALIZER
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM_ATTR)
|
||||
# if __has_attribute(enum_extensibility)
|
||||
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
|
||||
# else
|
||||
# define SWIFT_ENUM_ATTR(_extensibility)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM)
|
||||
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
||||
# if __has_feature(generalized_swift_name)
|
||||
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
||||
# else
|
||||
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_UNAVAILABLE)
|
||||
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
|
||||
#endif
|
||||
#if !defined(SWIFT_UNAVAILABLE_MSG)
|
||||
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
|
||||
#endif
|
||||
#if !defined(SWIFT_AVAILABILITY)
|
||||
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
|
||||
#endif
|
||||
#if !defined(SWIFT_WEAK_IMPORT)
|
||||
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
|
||||
#endif
|
||||
#if !defined(SWIFT_DEPRECATED)
|
||||
# define SWIFT_DEPRECATED __attribute__((deprecated))
|
||||
#endif
|
||||
#if !defined(SWIFT_DEPRECATED_MSG)
|
||||
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
|
||||
#endif
|
||||
#if !defined(SWIFT_DEPRECATED_OBJC)
|
||||
# if __has_feature(attribute_diagnose_if_objc)
|
||||
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
|
||||
# else
|
||||
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
|
||||
# endif
|
||||
#endif
|
||||
#if defined(__OBJC__)
|
||||
#if !defined(IBSegueAction)
|
||||
# define IBSegueAction
|
||||
#endif
|
||||
#endif
|
||||
#if !defined(SWIFT_EXTERN)
|
||||
# if defined(__cplusplus)
|
||||
# define SWIFT_EXTERN extern "C"
|
||||
# else
|
||||
# define SWIFT_EXTERN extern
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_CALL)
|
||||
# define SWIFT_CALL __attribute__((swiftcall))
|
||||
#endif
|
||||
#if !defined(SWIFT_INDIRECT_RESULT)
|
||||
# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
|
||||
#endif
|
||||
#if !defined(SWIFT_CONTEXT)
|
||||
# define SWIFT_CONTEXT __attribute__((swift_context))
|
||||
#endif
|
||||
#if !defined(SWIFT_ERROR_RESULT)
|
||||
# define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
# define SWIFT_NOEXCEPT noexcept
|
||||
#else
|
||||
# define SWIFT_NOEXCEPT
|
||||
#endif
|
||||
#if !defined(SWIFT_C_INLINE_THUNK)
|
||||
# if __has_attribute(always_inline)
|
||||
# if __has_attribute(nodebug)
|
||||
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
|
||||
# else
|
||||
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
|
||||
# endif
|
||||
# else
|
||||
# define SWIFT_C_INLINE_THUNK inline
|
||||
# endif
|
||||
#endif
|
||||
#if defined(_WIN32)
|
||||
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
|
||||
# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
|
||||
#endif
|
||||
#else
|
||||
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
|
||||
# define SWIFT_IMPORT_STDLIB_SYMBOL
|
||||
#endif
|
||||
#endif
|
||||
#if defined(__OBJC__)
|
||||
#if __has_feature(objc_modules)
|
||||
#if __has_warning("-Watimport-in-framework-header")
|
||||
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
||||
#endif
|
||||
@import NFCSDK;
|
||||
@import ObjectiveC;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
||||
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
||||
#if __has_warning("-Wpragma-clang-attribute")
|
||||
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
|
||||
#endif
|
||||
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
||||
#pragma clang diagnostic ignored "-Wnullability"
|
||||
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
||||
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
||||
|
||||
#if __has_attribute(external_source_symbol)
|
||||
# pragma push_macro("any")
|
||||
# undef any
|
||||
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="NfcLockFramework",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
|
||||
# pragma pop_macro("any")
|
||||
#endif
|
||||
|
||||
#if defined(__OBJC__)
|
||||
|
||||
@class NSString;
|
||||
@class NFCSDKCustomDataConfig;
|
||||
@class NSData;
|
||||
/// NFC管理单例,桥接OC调用,统一处理NFC扫描、读写、密钥、设备发现回调
|
||||
SWIFT_CLASS_NAMED("NFCManager")
|
||||
@interface NFCManager : NSObject <NFCSDKIOSNFCCallbacks>
|
||||
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NFCManager * _Nonnull shared;)
|
||||
+ (NFCManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
|
||||
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
||||
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
||||
- (void)chargingRes:(NSString * _Nonnull)res level:(int32_t)level;
|
||||
- (void)controllingRes:(NSString * _Nonnull)res progress:(int32_t)progress ctrl:(NSString * _Nonnull)ctrl;
|
||||
- (void)customDataRes:(NSString * _Nonnull)res config:(NFCSDKCustomDataConfig * _Nonnull)config data:(NSData * _Nullable)data;
|
||||
- (void)discoveredId:(NSString * _Nonnull)id isNew:(BOOL)isNew rssi:(int32_t)rssi;
|
||||
- (void)finished;
|
||||
- (void)setKeyRes:(NSString * _Nonnull)res password:(NSString * _Nonnull)password;
|
||||
- (void)connectTagErrorError:(NSError * _Nonnull)error;
|
||||
- (void)sendCommandErrorError:(NSError * _Nullable)error;
|
||||
- (void)notNfcA;
|
||||
- (void)sessionInvalidWithErrorError:(NSError * _Nonnull)error;
|
||||
- (void)setChargingCallback:(void (^ _Nonnull)(NSString * _Nonnull, int32_t))cb;
|
||||
- (void)setControllingCallback:(void (^ _Nonnull)(NSString * _Nonnull, int32_t, NSString * _Nonnull))cb;
|
||||
- (void)setCustomDataCallback:(void (^ _Nonnull)(NSString * _Nonnull, NFCSDKCustomDataConfig * _Nonnull, NSData * _Nullable))cb;
|
||||
- (void)setDeviceDiscoveredCallback:(void (^ _Nonnull)(NSString * _Nonnull, BOOL, int32_t))cb;
|
||||
- (void)setOperationFinishedCallback:(void (^ _Nonnull)(void))cb;
|
||||
- (void)setSetKeyCallback:(void (^ _Nonnull)(NSString * _Nonnull, NSString * _Nonnull))cb;
|
||||
- (void)setScanDidStartCallback:(void (^ _Nonnull)(void))cb;
|
||||
- (void)setScanDidEndCallback:(void (^ _Nonnull)(BOOL, NSString * _Nullable))cb;
|
||||
- (void)clearAllCallbacks;
|
||||
- (void)lockWith:(NSString * _Nonnull)password;
|
||||
- (void)unlockWith:(NSString * _Nonnull)password;
|
||||
/// 开启NFC扫描
|
||||
- (void)startScanWith:(NSString * _Nonnull)message;
|
||||
- (void)endScan;
|
||||
/// 异常结束扫描,附带错误信息
|
||||
- (void)endScanWith:(NSString * _Nonnull)errorMessage;
|
||||
- (void)showTipsWith:(NSString * _Nonnull)message;
|
||||
@end
|
||||
|
||||
#endif
|
||||
#if __has_attribute(external_source_symbol)
|
||||
# pragma clang attribute pop
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
#endif
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
#elif defined(__x86_64__) && __x86_64__
|
||||
// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
||||
#ifndef NFCLOCKFRAMEWORK_SWIFT_H
|
||||
#define NFCLOCKFRAMEWORK_SWIFT_H
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wgcc-compat"
|
||||
|
||||
#if !defined(__has_include)
|
||||
# define __has_include(x) 0
|
||||
#endif
|
||||
#if !defined(__has_attribute)
|
||||
# define __has_attribute(x) 0
|
||||
#endif
|
||||
#if !defined(__has_feature)
|
||||
# define __has_feature(x) 0
|
||||
#endif
|
||||
#if !defined(__has_warning)
|
||||
# define __has_warning(x) 0
|
||||
#endif
|
||||
|
||||
#if __has_include(<swift/objc-prologue.h>)
|
||||
# include <swift/objc-prologue.h>
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic ignored "-Wauto-import"
|
||||
#if defined(__OBJC__)
|
||||
#include <Foundation/Foundation.h>
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
#include <cstdbool>
|
||||
#include <cstring>
|
||||
#include <stdlib.h>
|
||||
#include <new>
|
||||
#include <type_traits>
|
||||
#else
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
|
||||
#if defined(__arm64e__) && __has_include(<ptrauth.h>)
|
||||
# include <ptrauth.h>
|
||||
#else
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wreserved-macro-identifier"
|
||||
# ifndef __ptrauth_swift_value_witness_function_pointer
|
||||
# define __ptrauth_swift_value_witness_function_pointer(x)
|
||||
# endif
|
||||
# ifndef __ptrauth_swift_class_method_pointer
|
||||
# define __ptrauth_swift_class_method_pointer(x)
|
||||
# endif
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_TYPEDEFS)
|
||||
# define SWIFT_TYPEDEFS 1
|
||||
# if __has_include(<uchar.h>)
|
||||
# include <uchar.h>
|
||||
# elif !defined(__cplusplus)
|
||||
typedef unsigned char char8_t;
|
||||
typedef uint_least16_t char16_t;
|
||||
typedef uint_least32_t char32_t;
|
||||
# endif
|
||||
typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_PASTE)
|
||||
# define SWIFT_PASTE_HELPER(x, y) x##y
|
||||
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
|
||||
#endif
|
||||
#if !defined(SWIFT_METATYPE)
|
||||
# define SWIFT_METATYPE(X) Class
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS_PROPERTY)
|
||||
# if __has_feature(objc_class_property)
|
||||
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
|
||||
# else
|
||||
# define SWIFT_CLASS_PROPERTY(...)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_RUNTIME_NAME)
|
||||
# if __has_attribute(objc_runtime_name)
|
||||
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
|
||||
# else
|
||||
# define SWIFT_RUNTIME_NAME(X)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_COMPILE_NAME)
|
||||
# if __has_attribute(swift_name)
|
||||
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
|
||||
# else
|
||||
# define SWIFT_COMPILE_NAME(X)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_METHOD_FAMILY)
|
||||
# if __has_attribute(objc_method_family)
|
||||
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
|
||||
# else
|
||||
# define SWIFT_METHOD_FAMILY(X)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_NOESCAPE)
|
||||
# if __has_attribute(noescape)
|
||||
# define SWIFT_NOESCAPE __attribute__((noescape))
|
||||
# else
|
||||
# define SWIFT_NOESCAPE
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_RELEASES_ARGUMENT)
|
||||
# if __has_attribute(ns_consumed)
|
||||
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
|
||||
# else
|
||||
# define SWIFT_RELEASES_ARGUMENT
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_WARN_UNUSED_RESULT)
|
||||
# if __has_attribute(warn_unused_result)
|
||||
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
|
||||
# else
|
||||
# define SWIFT_WARN_UNUSED_RESULT
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_NORETURN)
|
||||
# if __has_attribute(noreturn)
|
||||
# define SWIFT_NORETURN __attribute__((noreturn))
|
||||
# else
|
||||
# define SWIFT_NORETURN
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS_EXTRA)
|
||||
# define SWIFT_CLASS_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_PROTOCOL_EXTRA)
|
||||
# define SWIFT_PROTOCOL_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM_EXTRA)
|
||||
# define SWIFT_ENUM_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS)
|
||||
# if __has_attribute(objc_subclassing_restricted)
|
||||
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
|
||||
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# else
|
||||
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_RESILIENT_CLASS)
|
||||
# if __has_attribute(objc_class_stub)
|
||||
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
|
||||
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
||||
# else
|
||||
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
|
||||
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_PROTOCOL)
|
||||
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
||||
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_EXTENSION)
|
||||
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
|
||||
#endif
|
||||
#if !defined(OBJC_DESIGNATED_INITIALIZER)
|
||||
# if __has_attribute(objc_designated_initializer)
|
||||
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
|
||||
# else
|
||||
# define OBJC_DESIGNATED_INITIALIZER
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM_ATTR)
|
||||
# if __has_attribute(enum_extensibility)
|
||||
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
|
||||
# else
|
||||
# define SWIFT_ENUM_ATTR(_extensibility)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM)
|
||||
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
||||
# if __has_feature(generalized_swift_name)
|
||||
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
||||
# else
|
||||
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_UNAVAILABLE)
|
||||
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
|
||||
#endif
|
||||
#if !defined(SWIFT_UNAVAILABLE_MSG)
|
||||
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
|
||||
#endif
|
||||
#if !defined(SWIFT_AVAILABILITY)
|
||||
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
|
||||
#endif
|
||||
#if !defined(SWIFT_WEAK_IMPORT)
|
||||
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
|
||||
#endif
|
||||
#if !defined(SWIFT_DEPRECATED)
|
||||
# define SWIFT_DEPRECATED __attribute__((deprecated))
|
||||
#endif
|
||||
#if !defined(SWIFT_DEPRECATED_MSG)
|
||||
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
|
||||
#endif
|
||||
#if !defined(SWIFT_DEPRECATED_OBJC)
|
||||
# if __has_feature(attribute_diagnose_if_objc)
|
||||
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
|
||||
# else
|
||||
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
|
||||
# endif
|
||||
#endif
|
||||
#if defined(__OBJC__)
|
||||
#if !defined(IBSegueAction)
|
||||
# define IBSegueAction
|
||||
#endif
|
||||
#endif
|
||||
#if !defined(SWIFT_EXTERN)
|
||||
# if defined(__cplusplus)
|
||||
# define SWIFT_EXTERN extern "C"
|
||||
# else
|
||||
# define SWIFT_EXTERN extern
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_CALL)
|
||||
# define SWIFT_CALL __attribute__((swiftcall))
|
||||
#endif
|
||||
#if !defined(SWIFT_INDIRECT_RESULT)
|
||||
# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
|
||||
#endif
|
||||
#if !defined(SWIFT_CONTEXT)
|
||||
# define SWIFT_CONTEXT __attribute__((swift_context))
|
||||
#endif
|
||||
#if !defined(SWIFT_ERROR_RESULT)
|
||||
# define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
# define SWIFT_NOEXCEPT noexcept
|
||||
#else
|
||||
# define SWIFT_NOEXCEPT
|
||||
#endif
|
||||
#if !defined(SWIFT_C_INLINE_THUNK)
|
||||
# if __has_attribute(always_inline)
|
||||
# if __has_attribute(nodebug)
|
||||
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
|
||||
# else
|
||||
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
|
||||
# endif
|
||||
# else
|
||||
# define SWIFT_C_INLINE_THUNK inline
|
||||
# endif
|
||||
#endif
|
||||
#if defined(_WIN32)
|
||||
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
|
||||
# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
|
||||
#endif
|
||||
#else
|
||||
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
|
||||
# define SWIFT_IMPORT_STDLIB_SYMBOL
|
||||
#endif
|
||||
#endif
|
||||
#if defined(__OBJC__)
|
||||
#if __has_feature(objc_modules)
|
||||
#if __has_warning("-Watimport-in-framework-header")
|
||||
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
||||
#endif
|
||||
@import NFCSDK;
|
||||
@import ObjectiveC;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
||||
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
||||
#if __has_warning("-Wpragma-clang-attribute")
|
||||
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
|
||||
#endif
|
||||
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
||||
#pragma clang diagnostic ignored "-Wnullability"
|
||||
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
||||
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
||||
|
||||
#if __has_attribute(external_source_symbol)
|
||||
# pragma push_macro("any")
|
||||
# undef any
|
||||
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="NfcLockFramework",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
|
||||
# pragma pop_macro("any")
|
||||
#endif
|
||||
|
||||
#if defined(__OBJC__)
|
||||
|
||||
@class NSString;
|
||||
@class NFCSDKCustomDataConfig;
|
||||
@class NSData;
|
||||
/// NFC管理单例,桥接OC调用,统一处理NFC扫描、读写、密钥、设备发现回调
|
||||
SWIFT_CLASS_NAMED("NFCManager")
|
||||
@interface NFCManager : NSObject <NFCSDKIOSNFCCallbacks>
|
||||
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NFCManager * _Nonnull shared;)
|
||||
+ (NFCManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
|
||||
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
||||
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
||||
- (void)chargingRes:(NSString * _Nonnull)res level:(int32_t)level;
|
||||
- (void)controllingRes:(NSString * _Nonnull)res progress:(int32_t)progress ctrl:(NSString * _Nonnull)ctrl;
|
||||
- (void)customDataRes:(NSString * _Nonnull)res config:(NFCSDKCustomDataConfig * _Nonnull)config data:(NSData * _Nullable)data;
|
||||
- (void)discoveredId:(NSString * _Nonnull)id isNew:(BOOL)isNew rssi:(int32_t)rssi;
|
||||
- (void)finished;
|
||||
- (void)setKeyRes:(NSString * _Nonnull)res password:(NSString * _Nonnull)password;
|
||||
- (void)connectTagErrorError:(NSError * _Nonnull)error;
|
||||
- (void)sendCommandErrorError:(NSError * _Nullable)error;
|
||||
- (void)notNfcA;
|
||||
- (void)sessionInvalidWithErrorError:(NSError * _Nonnull)error;
|
||||
- (void)setChargingCallback:(void (^ _Nonnull)(NSString * _Nonnull, int32_t))cb;
|
||||
- (void)setControllingCallback:(void (^ _Nonnull)(NSString * _Nonnull, int32_t, NSString * _Nonnull))cb;
|
||||
- (void)setCustomDataCallback:(void (^ _Nonnull)(NSString * _Nonnull, NFCSDKCustomDataConfig * _Nonnull, NSData * _Nullable))cb;
|
||||
- (void)setDeviceDiscoveredCallback:(void (^ _Nonnull)(NSString * _Nonnull, BOOL, int32_t))cb;
|
||||
- (void)setOperationFinishedCallback:(void (^ _Nonnull)(void))cb;
|
||||
- (void)setSetKeyCallback:(void (^ _Nonnull)(NSString * _Nonnull, NSString * _Nonnull))cb;
|
||||
- (void)setScanDidStartCallback:(void (^ _Nonnull)(void))cb;
|
||||
- (void)setScanDidEndCallback:(void (^ _Nonnull)(BOOL, NSString * _Nullable))cb;
|
||||
- (void)clearAllCallbacks;
|
||||
- (void)lockWith:(NSString * _Nonnull)password;
|
||||
- (void)unlockWith:(NSString * _Nonnull)password;
|
||||
/// 开启NFC扫描
|
||||
- (void)startScanWith:(NSString * _Nonnull)message;
|
||||
- (void)endScan;
|
||||
/// 异常结束扫描,附带错误信息
|
||||
- (void)endScanWith:(NSString * _Nonnull)errorMessage;
|
||||
- (void)showTipsWith:(NSString * _Nonnull)message;
|
||||
@end
|
||||
|
||||
#endif
|
||||
#if __has_attribute(external_source_symbol)
|
||||
# pragma clang attribute pop
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
#endif
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
#else
|
||||
#error unsupported Swift architecture
|
||||
#endif
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
// swift-interface-format-version: 1.0
|
||||
// swift-compiler-version: Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
||||
// swift-module-flags: -target arm64-apple-ios16.6-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-upcoming-feature DisableOutwardActorInference -enable-upcoming-feature InferSendableFromCaptures -enable-upcoming-feature GlobalActorIsolatedTypesUsability -enable-upcoming-feature MemberImportVisibility -enable-upcoming-feature InferIsolatedConformances -enable-upcoming-feature NonisolatedNonsendingByDefault -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name NfcLockFramework
|
||||
// swift-module-flags: -target arm64-apple-ios15.6-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-upcoming-feature DisableOutwardActorInference -enable-upcoming-feature InferSendableFromCaptures -enable-upcoming-feature GlobalActorIsolatedTypesUsability -enable-upcoming-feature MemberImportVisibility -enable-upcoming-feature InferIsolatedConformances -enable-upcoming-feature NonisolatedNonsendingByDefault -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name NfcLockFramework
|
||||
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.3
|
||||
import CoreNFC
|
||||
import NFCSDK
|
||||
@ -8,18 +8,40 @@ import Swift
|
||||
import _Concurrency
|
||||
import _StringProcessing
|
||||
import _SwiftConcurrencyShims
|
||||
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc(NFCManager) public class NFCManager : ObjectiveC.NSObject, CoreNFC.NFCTagReaderSessionDelegate {
|
||||
@objc public static func startScan()
|
||||
@objc public static func endScan()
|
||||
@objc public static func endScan(errorMessage: Swift.String)
|
||||
@objc public static func setLoopCb(cb: @escaping (Swift.String, Swift.Bool, Swift.Int) -> Swift.Bool)
|
||||
@objc public static func setFinishedCb(cb: @escaping () -> Swift.Void)
|
||||
@objc public static func setChargingCb(cb: @escaping (Swift.String, Swift.Int) -> Swift.Void)
|
||||
@objc public static func setControllingCb(cb: @escaping (Swift.String, Swift.Int) -> Swift.Void)
|
||||
@objc public static func lock(password: Swift.String)
|
||||
@objc public static func unlock(password: Swift.String)
|
||||
public func tagReaderSessionDidBecomeActive(_ session: CoreNFC.NFCTagReaderSession)
|
||||
public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didInvalidateWithError error: any Swift.Error)
|
||||
public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag])
|
||||
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc(NFCManager) final public class NFCManager : ObjectiveC.NSObject, NFCSDK.IOSNFCCallbacks {
|
||||
@objc public static let shared: NfcLockFramework.NFCManager
|
||||
@objc final public func charging(res: Swift.String, level: Swift.Int32)
|
||||
@objc final public func controlling(res: Swift.String, progress: Swift.Int32, ctrl: Swift.String)
|
||||
#if compiler(>=5.3) && $NonescapableTypes
|
||||
@objc final public func customData(res: Swift.String, config: NFCSDK.CustomDataConfig, data: Foundation.Data?)
|
||||
#endif
|
||||
@objc final public func discovered(id: Swift.String, isNew: Swift.Bool, rssi: Swift.Int32)
|
||||
@objc final public func finished()
|
||||
@objc final public func setKey(res: Swift.String, password: Swift.String)
|
||||
@objc final public func connectTagError(error: any Swift.Error)
|
||||
#if compiler(>=5.3) && $NonescapableTypes
|
||||
@objc final public func sendCommandError(error: (any Swift.Error)?)
|
||||
#endif
|
||||
@objc final public func notNfcA()
|
||||
@objc final public func sessionInvalidWithError(error: any Swift.Error)
|
||||
@objc final public func setChargingCallback(_ cb: @escaping (Swift.String, Swift.Int32) -> Swift.Void)
|
||||
@objc final public func setControllingCallback(_ cb: @escaping (Swift.String, Swift.Int32, Swift.String) -> Swift.Void)
|
||||
#if compiler(>=5.3) && $NonescapableTypes
|
||||
@objc final public func setCustomDataCallback(_ cb: @escaping (Swift.String, NFCSDK.CustomDataConfig, Foundation.Data?) -> Swift.Void)
|
||||
#endif
|
||||
@objc final public func setDeviceDiscoveredCallback(_ cb: @escaping (Swift.String, Swift.Bool, Swift.Int32) -> Swift.Void)
|
||||
@objc final public func setOperationFinishedCallback(_ cb: @escaping () -> Swift.Void)
|
||||
@objc final public func setSetKeyCallback(_ cb: @escaping (Swift.String, Swift.String) -> Swift.Void)
|
||||
@objc final public func setScanDidStartCallback(_ cb: @escaping () -> Swift.Void)
|
||||
#if compiler(>=5.3) && $NonescapableTypes
|
||||
@objc final public func setScanDidEndCallback(_ cb: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
||||
#endif
|
||||
@objc final public func clearAllCallbacks()
|
||||
@objc final public func lock(with password: Swift.String)
|
||||
@objc final public func unlock(with password: Swift.String)
|
||||
@objc final public func startScan(with message: Swift.String)
|
||||
@objc final public func endScan()
|
||||
@objc final public func endScan(with errorMessage: Swift.String)
|
||||
@objc final public func showTips(with message: Swift.String)
|
||||
@objc deinit
|
||||
}
|
||||
|
||||
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
// swift-interface-format-version: 1.0
|
||||
// swift-compiler-version: Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
||||
// swift-module-flags: -target arm64-apple-ios16.6-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-upcoming-feature DisableOutwardActorInference -enable-upcoming-feature InferSendableFromCaptures -enable-upcoming-feature GlobalActorIsolatedTypesUsability -enable-upcoming-feature MemberImportVisibility -enable-upcoming-feature InferIsolatedConformances -enable-upcoming-feature NonisolatedNonsendingByDefault -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name NfcLockFramework
|
||||
// swift-module-flags: -target arm64-apple-ios15.6-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-upcoming-feature DisableOutwardActorInference -enable-upcoming-feature InferSendableFromCaptures -enable-upcoming-feature GlobalActorIsolatedTypesUsability -enable-upcoming-feature MemberImportVisibility -enable-upcoming-feature InferIsolatedConformances -enable-upcoming-feature NonisolatedNonsendingByDefault -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name NfcLockFramework
|
||||
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.3
|
||||
import CoreNFC
|
||||
import NFCSDK
|
||||
@ -8,18 +8,40 @@ import Swift
|
||||
import _Concurrency
|
||||
import _StringProcessing
|
||||
import _SwiftConcurrencyShims
|
||||
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc(NFCManager) public class NFCManager : ObjectiveC.NSObject, CoreNFC.NFCTagReaderSessionDelegate {
|
||||
@objc public static func startScan()
|
||||
@objc public static func endScan()
|
||||
@objc public static func endScan(errorMessage: Swift.String)
|
||||
@objc public static func setLoopCb(cb: @escaping (Swift.String, Swift.Bool, Swift.Int) -> Swift.Bool)
|
||||
@objc public static func setFinishedCb(cb: @escaping () -> Swift.Void)
|
||||
@objc public static func setChargingCb(cb: @escaping (Swift.String, Swift.Int) -> Swift.Void)
|
||||
@objc public static func setControllingCb(cb: @escaping (Swift.String, Swift.Int) -> Swift.Void)
|
||||
@objc public static func lock(password: Swift.String)
|
||||
@objc public static func unlock(password: Swift.String)
|
||||
public func tagReaderSessionDidBecomeActive(_ session: CoreNFC.NFCTagReaderSession)
|
||||
public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didInvalidateWithError error: any Swift.Error)
|
||||
public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag])
|
||||
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc(NFCManager) final public class NFCManager : ObjectiveC.NSObject, NFCSDK.IOSNFCCallbacks {
|
||||
@objc public static let shared: NfcLockFramework.NFCManager
|
||||
@objc final public func charging(res: Swift.String, level: Swift.Int32)
|
||||
@objc final public func controlling(res: Swift.String, progress: Swift.Int32, ctrl: Swift.String)
|
||||
#if compiler(>=5.3) && $NonescapableTypes
|
||||
@objc final public func customData(res: Swift.String, config: NFCSDK.CustomDataConfig, data: Foundation.Data?)
|
||||
#endif
|
||||
@objc final public func discovered(id: Swift.String, isNew: Swift.Bool, rssi: Swift.Int32)
|
||||
@objc final public func finished()
|
||||
@objc final public func setKey(res: Swift.String, password: Swift.String)
|
||||
@objc final public func connectTagError(error: any Swift.Error)
|
||||
#if compiler(>=5.3) && $NonescapableTypes
|
||||
@objc final public func sendCommandError(error: (any Swift.Error)?)
|
||||
#endif
|
||||
@objc final public func notNfcA()
|
||||
@objc final public func sessionInvalidWithError(error: any Swift.Error)
|
||||
@objc final public func setChargingCallback(_ cb: @escaping (Swift.String, Swift.Int32) -> Swift.Void)
|
||||
@objc final public func setControllingCallback(_ cb: @escaping (Swift.String, Swift.Int32, Swift.String) -> Swift.Void)
|
||||
#if compiler(>=5.3) && $NonescapableTypes
|
||||
@objc final public func setCustomDataCallback(_ cb: @escaping (Swift.String, NFCSDK.CustomDataConfig, Foundation.Data?) -> Swift.Void)
|
||||
#endif
|
||||
@objc final public func setDeviceDiscoveredCallback(_ cb: @escaping (Swift.String, Swift.Bool, Swift.Int32) -> Swift.Void)
|
||||
@objc final public func setOperationFinishedCallback(_ cb: @escaping () -> Swift.Void)
|
||||
@objc final public func setSetKeyCallback(_ cb: @escaping (Swift.String, Swift.String) -> Swift.Void)
|
||||
@objc final public func setScanDidStartCallback(_ cb: @escaping () -> Swift.Void)
|
||||
#if compiler(>=5.3) && $NonescapableTypes
|
||||
@objc final public func setScanDidEndCallback(_ cb: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
||||
#endif
|
||||
@objc final public func clearAllCallbacks()
|
||||
@objc final public func lock(with password: Swift.String)
|
||||
@objc final public func unlock(with password: Swift.String)
|
||||
@objc final public func startScan(with message: Swift.String)
|
||||
@objc final public func endScan()
|
||||
@objc final public func endScan(with errorMessage: Swift.String)
|
||||
@objc final public func showTips(with message: Swift.String)
|
||||
@objc deinit
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
// swift-interface-format-version: 1.0
|
||||
// swift-compiler-version: Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
||||
// swift-module-flags: -target x86_64-apple-ios16.6-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-upcoming-feature DisableOutwardActorInference -enable-upcoming-feature InferSendableFromCaptures -enable-upcoming-feature GlobalActorIsolatedTypesUsability -enable-upcoming-feature MemberImportVisibility -enable-upcoming-feature InferIsolatedConformances -enable-upcoming-feature NonisolatedNonsendingByDefault -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name NfcLockFramework
|
||||
// swift-module-flags: -target x86_64-apple-ios15.6-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-upcoming-feature DisableOutwardActorInference -enable-upcoming-feature InferSendableFromCaptures -enable-upcoming-feature GlobalActorIsolatedTypesUsability -enable-upcoming-feature MemberImportVisibility -enable-upcoming-feature InferIsolatedConformances -enable-upcoming-feature NonisolatedNonsendingByDefault -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name NfcLockFramework
|
||||
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.3
|
||||
import CoreNFC
|
||||
import NFCSDK
|
||||
@ -8,18 +8,40 @@ import Swift
|
||||
import _Concurrency
|
||||
import _StringProcessing
|
||||
import _SwiftConcurrencyShims
|
||||
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc(NFCManager) public class NFCManager : ObjectiveC.NSObject, CoreNFC.NFCTagReaderSessionDelegate {
|
||||
@objc public static func startScan()
|
||||
@objc public static func endScan()
|
||||
@objc public static func endScan(errorMessage: Swift.String)
|
||||
@objc public static func setLoopCb(cb: @escaping (Swift.String, Swift.Bool, Swift.Int) -> Swift.Bool)
|
||||
@objc public static func setFinishedCb(cb: @escaping () -> Swift.Void)
|
||||
@objc public static func setChargingCb(cb: @escaping (Swift.String, Swift.Int) -> Swift.Void)
|
||||
@objc public static func setControllingCb(cb: @escaping (Swift.String, Swift.Int) -> Swift.Void)
|
||||
@objc public static func lock(password: Swift.String)
|
||||
@objc public static func unlock(password: Swift.String)
|
||||
public func tagReaderSessionDidBecomeActive(_ session: CoreNFC.NFCTagReaderSession)
|
||||
public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didInvalidateWithError error: any Swift.Error)
|
||||
public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag])
|
||||
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc(NFCManager) final public class NFCManager : ObjectiveC.NSObject, NFCSDK.IOSNFCCallbacks {
|
||||
@objc public static let shared: NfcLockFramework.NFCManager
|
||||
@objc final public func charging(res: Swift.String, level: Swift.Int32)
|
||||
@objc final public func controlling(res: Swift.String, progress: Swift.Int32, ctrl: Swift.String)
|
||||
#if compiler(>=5.3) && $NonescapableTypes
|
||||
@objc final public func customData(res: Swift.String, config: NFCSDK.CustomDataConfig, data: Foundation.Data?)
|
||||
#endif
|
||||
@objc final public func discovered(id: Swift.String, isNew: Swift.Bool, rssi: Swift.Int32)
|
||||
@objc final public func finished()
|
||||
@objc final public func setKey(res: Swift.String, password: Swift.String)
|
||||
@objc final public func connectTagError(error: any Swift.Error)
|
||||
#if compiler(>=5.3) && $NonescapableTypes
|
||||
@objc final public func sendCommandError(error: (any Swift.Error)?)
|
||||
#endif
|
||||
@objc final public func notNfcA()
|
||||
@objc final public func sessionInvalidWithError(error: any Swift.Error)
|
||||
@objc final public func setChargingCallback(_ cb: @escaping (Swift.String, Swift.Int32) -> Swift.Void)
|
||||
@objc final public func setControllingCallback(_ cb: @escaping (Swift.String, Swift.Int32, Swift.String) -> Swift.Void)
|
||||
#if compiler(>=5.3) && $NonescapableTypes
|
||||
@objc final public func setCustomDataCallback(_ cb: @escaping (Swift.String, NFCSDK.CustomDataConfig, Foundation.Data?) -> Swift.Void)
|
||||
#endif
|
||||
@objc final public func setDeviceDiscoveredCallback(_ cb: @escaping (Swift.String, Swift.Bool, Swift.Int32) -> Swift.Void)
|
||||
@objc final public func setOperationFinishedCallback(_ cb: @escaping () -> Swift.Void)
|
||||
@objc final public func setSetKeyCallback(_ cb: @escaping (Swift.String, Swift.String) -> Swift.Void)
|
||||
@objc final public func setScanDidStartCallback(_ cb: @escaping () -> Swift.Void)
|
||||
#if compiler(>=5.3) && $NonescapableTypes
|
||||
@objc final public func setScanDidEndCallback(_ cb: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
||||
#endif
|
||||
@objc final public func clearAllCallbacks()
|
||||
@objc final public func lock(with password: Swift.String)
|
||||
@objc final public func unlock(with password: Swift.String)
|
||||
@objc final public func startScan(with message: Swift.String)
|
||||
@objc final public func endScan()
|
||||
@objc final public func endScan(with errorMessage: Swift.String)
|
||||
@objc final public func showTips(with message: Swift.String)
|
||||
@objc deinit
|
||||
}
|
||||
|
||||
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
// swift-interface-format-version: 1.0
|
||||
// swift-compiler-version: Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
||||
// swift-module-flags: -target x86_64-apple-ios16.6-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-upcoming-feature DisableOutwardActorInference -enable-upcoming-feature InferSendableFromCaptures -enable-upcoming-feature GlobalActorIsolatedTypesUsability -enable-upcoming-feature MemberImportVisibility -enable-upcoming-feature InferIsolatedConformances -enable-upcoming-feature NonisolatedNonsendingByDefault -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name NfcLockFramework
|
||||
// swift-module-flags: -target x86_64-apple-ios15.6-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-upcoming-feature DisableOutwardActorInference -enable-upcoming-feature InferSendableFromCaptures -enable-upcoming-feature GlobalActorIsolatedTypesUsability -enable-upcoming-feature MemberImportVisibility -enable-upcoming-feature InferIsolatedConformances -enable-upcoming-feature NonisolatedNonsendingByDefault -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name NfcLockFramework
|
||||
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.3
|
||||
import CoreNFC
|
||||
import NFCSDK
|
||||
@ -8,18 +8,40 @@ import Swift
|
||||
import _Concurrency
|
||||
import _StringProcessing
|
||||
import _SwiftConcurrencyShims
|
||||
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc(NFCManager) public class NFCManager : ObjectiveC.NSObject, CoreNFC.NFCTagReaderSessionDelegate {
|
||||
@objc public static func startScan()
|
||||
@objc public static func endScan()
|
||||
@objc public static func endScan(errorMessage: Swift.String)
|
||||
@objc public static func setLoopCb(cb: @escaping (Swift.String, Swift.Bool, Swift.Int) -> Swift.Bool)
|
||||
@objc public static func setFinishedCb(cb: @escaping () -> Swift.Void)
|
||||
@objc public static func setChargingCb(cb: @escaping (Swift.String, Swift.Int) -> Swift.Void)
|
||||
@objc public static func setControllingCb(cb: @escaping (Swift.String, Swift.Int) -> Swift.Void)
|
||||
@objc public static func lock(password: Swift.String)
|
||||
@objc public static func unlock(password: Swift.String)
|
||||
public func tagReaderSessionDidBecomeActive(_ session: CoreNFC.NFCTagReaderSession)
|
||||
public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didInvalidateWithError error: any Swift.Error)
|
||||
public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag])
|
||||
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc(NFCManager) final public class NFCManager : ObjectiveC.NSObject, NFCSDK.IOSNFCCallbacks {
|
||||
@objc public static let shared: NfcLockFramework.NFCManager
|
||||
@objc final public func charging(res: Swift.String, level: Swift.Int32)
|
||||
@objc final public func controlling(res: Swift.String, progress: Swift.Int32, ctrl: Swift.String)
|
||||
#if compiler(>=5.3) && $NonescapableTypes
|
||||
@objc final public func customData(res: Swift.String, config: NFCSDK.CustomDataConfig, data: Foundation.Data?)
|
||||
#endif
|
||||
@objc final public func discovered(id: Swift.String, isNew: Swift.Bool, rssi: Swift.Int32)
|
||||
@objc final public func finished()
|
||||
@objc final public func setKey(res: Swift.String, password: Swift.String)
|
||||
@objc final public func connectTagError(error: any Swift.Error)
|
||||
#if compiler(>=5.3) && $NonescapableTypes
|
||||
@objc final public func sendCommandError(error: (any Swift.Error)?)
|
||||
#endif
|
||||
@objc final public func notNfcA()
|
||||
@objc final public func sessionInvalidWithError(error: any Swift.Error)
|
||||
@objc final public func setChargingCallback(_ cb: @escaping (Swift.String, Swift.Int32) -> Swift.Void)
|
||||
@objc final public func setControllingCallback(_ cb: @escaping (Swift.String, Swift.Int32, Swift.String) -> Swift.Void)
|
||||
#if compiler(>=5.3) && $NonescapableTypes
|
||||
@objc final public func setCustomDataCallback(_ cb: @escaping (Swift.String, NFCSDK.CustomDataConfig, Foundation.Data?) -> Swift.Void)
|
||||
#endif
|
||||
@objc final public func setDeviceDiscoveredCallback(_ cb: @escaping (Swift.String, Swift.Bool, Swift.Int32) -> Swift.Void)
|
||||
@objc final public func setOperationFinishedCallback(_ cb: @escaping () -> Swift.Void)
|
||||
@objc final public func setSetKeyCallback(_ cb: @escaping (Swift.String, Swift.String) -> Swift.Void)
|
||||
@objc final public func setScanDidStartCallback(_ cb: @escaping () -> Swift.Void)
|
||||
#if compiler(>=5.3) && $NonescapableTypes
|
||||
@objc final public func setScanDidEndCallback(_ cb: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
||||
#endif
|
||||
@objc final public func clearAllCallbacks()
|
||||
@objc final public func lock(with password: Swift.String)
|
||||
@objc final public func unlock(with password: Swift.String)
|
||||
@objc final public func startScan(with message: Swift.String)
|
||||
@objc final public func endScan()
|
||||
@objc final public func endScan(with errorMessage: Swift.String)
|
||||
@objc final public func showTips(with message: Swift.String)
|
||||
@objc deinit
|
||||
}
|
||||
|
||||
@ -0,0 +1,4 @@
|
||||
framework module NfcLockFramework {
|
||||
header "NfcLockFramework-Swift.h"
|
||||
requires objc
|
||||
}
|
||||
Binary file not shown.
@ -6,51 +6,51 @@
|
||||
<dict>
|
||||
<key>Headers/NfcLockFramework-Swift.h</key>
|
||||
<data>
|
||||
YEquuy4noJ8B7eMgaLE+YDh0fgM=
|
||||
uowYj7/6J+7os8HD5KXP416NqIs=
|
||||
</data>
|
||||
<key>Info.plist</key>
|
||||
<data>
|
||||
GpDEJ+rATPOCmP3HUpE7ZB1LJzg=
|
||||
rTCNCx4jqyP6sVNiwjLYopSenI8=
|
||||
</data>
|
||||
<key>Modules/NfcLockFramework.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
||||
<data>
|
||||
0j6kvsBKvhVxwBcM7FA+vfCVaVA=
|
||||
nWuWaR7cYG4X6c3+Wya866YGcsc=
|
||||
</data>
|
||||
<key>Modules/NfcLockFramework.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
||||
<data>
|
||||
2Dap9sXkg+TyM2W04UdOnZnmPqc=
|
||||
PMtG14M7JBFBcbzzXTWsd0vJGUU=
|
||||
</data>
|
||||
<key>Modules/NfcLockFramework.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
||||
<data>
|
||||
FsuT+vuzP30mRQPw1LmHqtT3m8c=
|
||||
hUZydi+7Jnw+HvPanH6RH6IHfBQ=
|
||||
</data>
|
||||
<key>Modules/NfcLockFramework.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
||||
<data>
|
||||
2Dap9sXkg+TyM2W04UdOnZnmPqc=
|
||||
PMtG14M7JBFBcbzzXTWsd0vJGUU=
|
||||
</data>
|
||||
<key>Modules/NfcLockFramework.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
||||
<data>
|
||||
l8O6zkrcOaGEuqWHNGBMJ5Su3cw=
|
||||
vB6M2NGGIbCIcZR+qLchYcfo3Hs=
|
||||
</data>
|
||||
<key>Modules/NfcLockFramework.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
||||
<data>
|
||||
0j6kvsBKvhVxwBcM7FA+vfCVaVA=
|
||||
nWuWaR7cYG4X6c3+Wya866YGcsc=
|
||||
</data>
|
||||
<key>Modules/NfcLockFramework.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
||||
<data>
|
||||
8oe3Jnkvx2Rh9M9uWCCu7FvLOvk=
|
||||
UUpAy6bL84PxzllCP6PGhx08jpY=
|
||||
</data>
|
||||
<key>Modules/NfcLockFramework.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
||||
<data>
|
||||
1b0NOzwDLNIOvblR6iGEDglRO08=
|
||||
iiPkNAM7RrR/O2vwuJWRs/EiBvE=
|
||||
</data>
|
||||
<key>Modules/NfcLockFramework.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
||||
<data>
|
||||
8oe3Jnkvx2Rh9M9uWCCu7FvLOvk=
|
||||
UUpAy6bL84PxzllCP6PGhx08jpY=
|
||||
</data>
|
||||
<key>Modules/NfcLockFramework.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
||||
<data>
|
||||
TYIw+cr1EMn5gNkjNNLhxYTm0bU=
|
||||
nCYhpfnwTm6VPIXy7AD7VVlqNZU=
|
||||
</data>
|
||||
<key>Modules/module.modulemap</key>
|
||||
<data>
|
||||
@ -63,77 +63,77 @@
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
Zu+uQldm/Vo1qMe0LNWnnbgXpAW9hCKvQZnlfKYz0Zk=
|
||||
fNz8LwiuRg0x1xef1csgu7pwsjw4n0J9yJAQFw9vLZ8=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/NfcLockFramework.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
Rxr4fvSq1ojxGHIsUlZ0yrdtPsjYXRoq/2DUsRZBFY0=
|
||||
O5rw4zYp9MNnP08thnrxNXjI0n8ou0OYYaSOAcxzMek=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/NfcLockFramework.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
b6YLeZp9MwfAQhhyWJxQLrMa1doJqbXhxTWjhh+e2Pw=
|
||||
xzCyx9AgV8TcQFiZV1ohU6pQplV0Gg+QJWLmxk5+Pnk=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/NfcLockFramework.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
LJ9WZX7jKWlGx67BmCBK4YP6FEuudMu3BMWBcB5X6RE=
|
||||
OGVacDFlGAzXWO7sK9SibyzXOHPvVXuLsHi+j6f6ksA=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/NfcLockFramework.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
b6YLeZp9MwfAQhhyWJxQLrMa1doJqbXhxTWjhh+e2Pw=
|
||||
xzCyx9AgV8TcQFiZV1ohU6pQplV0Gg+QJWLmxk5+Pnk=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/NfcLockFramework.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
i3r4WpOvDeIbKEnjJvkPTABfhvc4vda1Sh4EDiYL+wA=
|
||||
U4seJu3K39E6aEin1OQqJ201rptzjO45Vb/IcSh5hUc=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/NfcLockFramework.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
Rxr4fvSq1ojxGHIsUlZ0yrdtPsjYXRoq/2DUsRZBFY0=
|
||||
O5rw4zYp9MNnP08thnrxNXjI0n8ou0OYYaSOAcxzMek=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/NfcLockFramework.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
j2EM8BNhC4jEvjsXRctMbsumNgX4O/TXoQItNav3wE4=
|
||||
Mg3lwPbaugAj3BsM4HrvmiVs/bsQop3JFq4qkHGPLVs=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/NfcLockFramework.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
4Ph72BxtNCRk5fSOSFHff5JLMv073pQDEeFyoTrNmuI=
|
||||
FmMkE/25JeaBxWPfl9CwYvt1kAQGXSiJX+ZxIZNTNHI=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/NfcLockFramework.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
j2EM8BNhC4jEvjsXRctMbsumNgX4O/TXoQItNav3wE4=
|
||||
Mg3lwPbaugAj3BsM4HrvmiVs/bsQop3JFq4qkHGPLVs=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/NfcLockFramework.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
aaGoZ9a/i2KY4Q5ViIEYfHYbCf7e4oLD7gdSnTOoaXY=
|
||||
yzgrn2rl43v3XeeRDWk/8JEH5T1mHUWof+slJqNTnv0=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/module.modulemap</key>
|
||||
|
||||
@ -1,35 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>NFCSDK</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.lvcheng.lock.shared.nfc.kmp.NFCSDK</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>NFCSDK</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleSupportedPlatforms</key>
|
||||
<array>
|
||||
<string>iPhoneOS</string>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
<key>MinimumOSVersion</key>
|
||||
<string>12.0</string>
|
||||
<key>UIDeviceFamily</key>
|
||||
<array>
|
||||
<integer>1</integer>
|
||||
<integer>2</integer>
|
||||
</array>
|
||||
<key>UIRequiredDeviceCapabilities</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
@ -1,8 +0,0 @@
|
||||
framework module "NFCSDK" {
|
||||
umbrella header "NFCSDK.h"
|
||||
|
||||
export *
|
||||
module * { export * }
|
||||
|
||||
use Foundation
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
8
global.json
Normal file
8
global.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"sdk": {
|
||||
"version": "10.0.101",
|
||||
"allowPrerelease": true,
|
||||
"rollForward": "disable",
|
||||
"workloadVersion": "10.0.105"
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user