17.2 C
Canberra
Monday, February 24, 2025

BarCodeKit 1.4.0 | Cocoanetics


Subsequent month marks the 10 yr anniversary of BarCodeKit. It’s been like two years of slumber because the final launch. It was out there through Cocoapods and direct through GitHub, however these days a number of builders voiced curiosity for it to be out there as Swift Package deal.

Like most of my open supply frameworks on GitHub, BarCodeKit is written in Goal-C, however that doesn’t imply it couldn’t be out there as Swift Package deal. Xcode automagically morphs every part to look Swift-native and so an implementer of such a package deal wouldn’t be the wiser.

To make it a Swift package deal I wanted to scrub up some methods how system frameworks are imported, what headers are imported the place and most significantly I needed to ditch the precompiled headers (PCH) which aren’t supported by SPM.

As soon as that was carried out I had a package deal that might construct with out complains with a easy swift construct. However when you even have unit exams then you definitely need these to be conformant with the SPM ecosystem as properly. This entails principally including the assets – if any – required by the take a look at instances and including a take a look at goal to the package deal.swift.

I used to be making some adjustments after which working swift take a look at, rinse and repeat. Each iteration you discover just a few extra minor issues you must tackle. Till in the long run each constructing and testing the package deal go with out errors.

The result of this train – I like to inform myself to justify all this time spent – is that your importing and setup has turn out to be extra strong.

So right here we go. I submitted the brand new 1.4.0 model to Cocoapods, tagged it on GitHub as a launch on the grasp department, and eventually submitted an addition requisition to the Swift Package deal Index. It’s been some time since I had carried out that final (couple of years really) so I used to be confused initially by a GitHub bot stating that some extra evaluation was required.

However that was resolved in the long run by Mr. Dave Verwer himself approving the merge. Many thanks, I’m honored, Sir!

And in case you surprise why it says “unknown license” on Swift Package deal Index… it is because the license is a mixture of my regular license and a full industrial license. Mainly buying my e book grants you a perpetual full industrial license. When you don’t wish to try this there’s my customary open supply license. Thereby you must attribute to me when utilizing BarCodeKit in your apps, or purchase a non-attribution license on my elements retailer.


Tagged as:

Classes: Administrative

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

[td_block_social_counter facebook="tagdiv" twitter="tagdivofficial" youtube="tagdiv" style="style8 td-social-boxed td-social-font-icons" tdc_css="eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjM4IiwiZGlzcGxheSI6IiJ9LCJwb3J0cmFpdCI6eyJtYXJnaW4tYm90dG9tIjoiMzAiLCJkaXNwbGF5IjoiIn0sInBvcnRyYWl0X21heF93aWR0aCI6MTAxOCwicG9ydHJhaXRfbWluX3dpZHRoIjo3Njh9" custom_title="Stay Connected" block_template_id="td_block_template_8" f_header_font_family="712" f_header_font_transform="uppercase" f_header_font_weight="500" f_header_font_size="17" border_color="#dd3333"]
- Advertisement -spot_img

Latest Articles