Skip to content

Client did not pay? Add opacity to UI components and decrease it every day until their app completely fades away. Inspired from https://github.com/kleampa/not-paid

License

Notifications You must be signed in to change notification settings

kypressblackhat/faded

 
 

Repository files navigation

Client did not pay?

Add opacity to UI components and decrease it every day until their app completely fades away. Set a due date and customize the number of days you offer them until the app is fully vanished.

/*You can change these variables as you wish */
Faded.init(
    dueDate = "2019-20-02",
    daysDeadline = 30
)

Installation

implementation 'com.theah64.faded:faded.1.0.0'

Usage

/*In your application class, init faded like this*/
class App : Application() {
    override fun onCreate() {
        super.onCreate()

        Faded.init(
            dueDate = "2019-20-02",
            daysDeadline = 30
        )
    }
}

/*In your activities, wrap the base context with Faded */
class MainActivity : AppCompatActivity() {

    override fun attachBaseContext(newBase: Context?) {
        super.attachBaseContext(Faded.wrap(newBase!!))
    }
}

That's it!

Author

Inspired from github (@kleampa)

Made by theapache64

About

Client did not pay? Add opacity to UI components and decrease it every day until their app completely fades away. Inspired from https://github.com/kleampa/not-paid

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 100.0%