Shield 2.1.4

Shield 2.1.4

测试已测试
语言语言 Obj-CObjective C
许可证 Apache-2.0
发布上次发布2021年6月

William Towe 维护。



Shield 2.1.4

  • 作者
  • William Towe

Shield

Carthage compatible Version Platform License

Shield 是一个 iOS/macOS/tvOS 框架,它包装了各种授权 API(例如相机、照片、位置)。它依赖于 Stanley 框架。

安装

您可以使用 cocoapodsCarthage 或作为框架来安装 Shield。当作为框架安装时,确保您也链接到 Stanley,因为 Shield 依赖于它。

Cocoapods

  1. Shield 添加到您的 Podfile 中

    • 拉入整个包或者

        pod 'Shield'
      
    • 拉入子规格

        pod 'Shield/Camera'
        pod 'Shield/Photos'
      
  2. 更新您的包

     $ pod update
    
子规格
  • Shield/Location,包装 CoreLocation 授权 API(《iOS》/《tvOS》/《macOS》)
  • Shield/Camera,包装 AVFoundation 视频授权 API(《iOS》)
  • 屏蔽/麦克风,封装了 AVFoundation 音频授权 API(iOS
  • 屏蔽/媒体库,封装了 MediaPlayer 媒体库授权 API(iOS
  • 屏蔽/照片,封装了 Photos 授权 API(iOS/tvOS
  • 屏蔽/健康,封装了 HealthKit 授权 API(iOS
  • 屏蔽/Siri,封装了 Intents Siri 授权 API(iOS
  • 屏蔽/语音,封装了 Speech 语音识别授权 API(iOS
  • 屏蔽/蓝牙,封装了 CoreBluetooth 蓝牙外设授权 API(iOS
  • 屏蔽/事件,封装了 EventKit 事件和提醒授权 API(iOS/macOS
  • 屏蔽/联系人,封装了 Contacts 授权 API(iOS/macOS
  • 屏蔽/辅助功能,封装了 ApplicationServices 辅助功能授权 API(macOS
  • 屏蔽/账户,封装了 Accounts 社交账户授权 API(iOS/macOS
  • 屏蔽/家庭,封装了 HomeKit 授权 API(iOS
  • 屏蔽/运动,封装了 CoreMotion 授权 API(iOS
  • 屏蔽/安全,封装了提高执行权限的 Security 授权 API(macOS
  • 屏蔽/本地,封装了 LocalAuthentication 指纹授权 API(《iOS/macOS
  • 屏蔽/通知,封装了 UserNotifications 授权 API(《iOS/tvOS
  • 屏蔽/视频订阅者账户,封装了 VideoSubscriberAccount 授权 API(《iOS/tvOS

依赖项

第三方

Apple

  • HealthKit,仅限 iOS
  • Intents,仅限 iOS
  • Speech,仅限 iOS
  • AVFoundation,仅限 iOS
  • PhotosiOStvOS
  • CoreBluetooth,仅限 iOS
  • ApplicationServices,仅限 macOS
  • CoreLocationiOSmacOStvOS
  • EventKitiOSmacOS
  • ContactsiOSmacOS
  • AppKit,仅限 macOS
  • MediaPlayer,仅限 iOS
  • HomeKit,仅限 iOS
  • Security,仅限 macOS
  • CoreMotion,仅限 iOS
  • AccountsiOSmacOS
  • MediaPlayer,仅限 iOS
  • LocalAuthenticationiOSmacOS
  • UserNotificationsiOStvOS
  • VideoSubscriberAccountiOStvOS