dagronf / QRCode

A quick and beautiful macOS/iOS/tvOS/watchOS QR Code generator/detector library for SwiftUI, Swift and Objective-C.
MIT License
438 stars 57 forks source link

How to not import QRCode reader #25

Closed spaquet closed 1 year ago

spaquet commented 1 year ago

Is there a way to only import the QR code generation part of the library. That would avoid having to fill the NSCameraUsageDescription in the Info.plist when uploading an app to TestFlight or the AppStore.

dagronf commented 1 year ago

That's a great idea. I hadn't thought about that downside of including video detection in the core library.

I'll pull the video detector out into its own library, which will allow you to use QRCode without the Camera Usage requirement.

dagronf commented 1 year ago

Hey @spaquet I've just pushed up v15.0.0 which has the video detection stuff pulled out into a separate target (QRCodeDetector) so you should be able to push a version of your app without NSCameraUsageDescription.

Can you update your app with the new version and see if it fixes your issue?

dagronf commented 1 year ago

Closing. Assuming issue is fixed due to lack of response.

spaquet commented 1 year ago

Hey @dagronf I will test later after the 4th. But thanks for updating the library so quickly. I really enjoy using it in the project I'm working on.

spaquet commented 1 year ago

Once the app hits the App Store I'll let you know ;-)