Coder Social home page Coder Social logo

apptrial's Introduction

AppTrial

A library to make it easy to offer trial periods in macOS apps based on first install date.

Dev Notes

Using TDD (Red Green Refactor) and principles from Clean Code (Uncle Bob) to write the logic.

The goal isn't bullet-proof trial security, instead it's to make it fast to create a Mac app that will have a trial period (or beta period). So that you can focus on developing a worthwhile app that doesn't live forever.

The timeout will allow you to ask users to upgrade to the full version (or download a new beta), by linking directly to the paid app on the Mac App Store, or using a service like Paddle to sell a license key.

I built this for my Super Easy Timer app, which was previously using a build date, but it's annoying to rebuild every X months, so I want this to track time using a timeframe (i.e.: 7 days).

Future Features

There are more "secure" ways (keychain) to prevent users from tampering with the "install date", but I'm not worried about that for my first release.

Paddle has a way to automatically expire a trial if you change the time, which would be a nice feature, but again that's more complexity, when the simple solution should be enough for the vast amount of developers.

apptrial's People

Contributors

paulsolt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.