Swiftpack.co - irlmob/IRLLicence as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by irlmob.
irlmob/IRLLicence 1.0.3
🔐 Helper tool to validate `Licence Code provided to client`
⭐️ 0
🕓 1 year ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/irlmob/IRLLicence.git", from: "1.0.3")

🔐 IRLLicence

Documentation Language MIT License

🔐 Helper tool to validate Licence Code provided to client

Overview

💰 If you're looking for a reliable and secure way to license your work, look no further than IRLLicence. Try it out today and ensure that your application or framework is fully licensed and secure!

About

Welcome to IRLLicence – a powerful code validation mechanism that ensures your Binary is running where and how it is suppose.

How it work:

  • Integrate this
  • Lock the functionalities or Initialization of your code
  • Verify your client license data / email
  • The Library will also ensure the App Bundle ID, email validated from the license are running inside the right App Bundle ID.

Using IRLLicence, you can easily prevent your code from being used by unauthorized parties.

The tool is built using Swift and supports Swift 5.4 and newer (swift-tools-version:5.7), making it easy to incorporate into your existing projects.

What happen as a client:

Please note that as a client will need to use a license that is associated with the correct App Bundle ID.

The licence is set to expire too. You must renew the licence and publish your app at this stage.

The license is completly locked to you as a client and your email address. It is only valid for use with the App Bundle ID specified at the time of registration and until it expire.

Getting Started

Getting started with IRLLicence is easy. Simply add the code to your project, distribute your Framework or Application as a closed source, and lock your code to be usable only with a valid license and email. Once your client verifies the license, your code will be able to run with confidence, knowing that it is fully licensed and secure.

IRLLicence primarily uses SwiftPM as its build tool, so we recommend using that as well. If you want to depend on IRLLicence in your own project, it's as simple as adding a dependencies clause to your Package.swift:

dependencies: [
    .package(url: "https://github.com/irlmob/IRLLicence.git", from: "1.0.3")
]

Swift 5.7 and newer (swift-tools-version:5.7)

    dependencies: [.product(name: "IRLLicence", package: "IRLLicence") ]

Using Xcode Package support

If your project is set up as an Xcode project and you're using Xcode 11+, you can add IRLLicence as a dependency to your Xcode project by clicking File -> Swift Packages -> Add Package Dependency. In the upcoming dialog, please enter https://github.com/irlmob/IRLLicence.git and click Next twice. Finally, select the targets you are planning to use (here IRLLicence) and click finish. Now will be able to import IRLLicence (as well as all the other targets you have selected) in your project.

To work on IRLLicence itself, or to investigate some of the demonstration applications, you can check the Tests.

Usage example

let licence = "bVJkaVZEUXpVY<...>zQ5Mw=="
let validator = try IRLLicence(email: "[email protected]", licence: licence,
publicKey: publicKey2048Base64)
print("🔄 Is Valid: " + validator.validate() ? "✅ YES" : "⛔️ NO")
print("✅ Expire on: \(validator.expire)")

MIT License

Copyright (c) 2023 iRLMobile

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

GitHub

link
Stars: 0
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

v1.0.3
1 year ago

IRLLicence v1.0.3

⚠️ This package is associated with other project to validate your licence in a binary distributions.

In this version:

  • Updated package to remove unsafe flags088)
  • Fixed Documentation not buidling
  • Public availability

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics