Android-licenses-library - Lightweight Android library which provides most common licenses in formatted and plain text

Overview

Android Licenses Library

API HJitpack last commit license


About this project

This lightweight Android library provides the most common licenses in formatted and plain text (as Spanned object) for easy use.

YOU CAN DOWNLOAD THE SAMPLE APP HERE

I'm still a student so the progress might not be as fast as on other projects.

Feature

providing you the most common licenses in formatted and plain text form as Spanned objects

How to use

1. Implementation

Add this to your root build.gradle file:

allprojects {
  repositories {
    maven { url "https://jitpack.io" }
  }
}

Then add this to your module's build.gradle file:

dependencies {
  implementation 'com.github.cyb3rko:android-licenses-library:lastest-version'
}

2. Initialize AndroidLicenses

AndroidLicenses.init(applicationContext)

3. Get Spanned Object

The method get(licenseName) needs the license name as a parameter and returns a Spanned object.
As the parameter you should use the predefined constants of AndroidLicenses class (which also show, which licenses are currently available):

  • APACHE_2_0 / APACHE_2_0_PLAIN
  • CC_BY_3_0 / CC_BY_3_0_PLAIN
  • CC_BY_4_0 / CC_BY_4_0_PLAIN
  • CC_BY_SA_3_0 / CC_BY_SA_3_0_PLAIN
  • CC_BY_SA_4_0 / CC_BY_SA_4_0_PLAIN
  • CC_BY_NC_3_0 / CC_BY_NC_3_0_PLAIN
  • CC_BY_NC_SA_3_0 / CC_BY_NC_SA_3_0_PLAIN
  • MIT / MIT_PLAIN
textView.setText(AndroidLicenses.get(AndroidLicenses.CC_BY_SA_4_0)

Screenshots

Only the shown text belongs to the library, the ui is implemented in the sample app to showcase the Spanned objects.

Contribute

Of course I'm happy about any kind of contribution.

Feel free to open issues for new features or bug reports. If you want to directly contribute code just open pull requests.

Thanks

Special thanks to reddit user jderp7 for contributing completely reworked library code, which was commited by me in THIS COMMIT.

Apps / Libraries using this library

If you want to add an app/library here, just open a new issue / PR.

Click here to see the list
About Icons Library by Cyb3rko

License

Copyright (C) 2020  Cyb3rKo
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions.

For details see License text

You might also like...
Warscape core library. Includes common models for sharing between platforms.

warscope-core This repository uses for sharing common models between backend and frontend sides. Implementation $version available at top of README.md

Proguard configurations for common Android libraries

android-proguard-snippets Example Proguard configurations for common Android libraries. This project assumes that your ProGuard configuration is based

BuildConfiguration information for use in multi-module, or Kotlin Multiplatform common code

component-build-configuration A small library supporting Kotlin Multiplatform for utilizing BuildConfiguration details from common code and across mod

Design patterns are typical solutions to common problems in software design

Design patterns are typical solutions to common problems in software design. Each pattern is like a blueprint that you can customize to solve a particular design problem in your code.

An Android Application which provides meanings for words searched.
An Android Application which provides meanings for words searched.

An Android Application which provides meanings for words searched. It also displays some examples, synonyms and antonyms of the searched word.

This service provides first-class custom ROM integration for my Repainter app, which offers customizable dynamic theming for Android 12.

Repainter ROM integration This service provides first-class custom ROM integration for my Repainter app, which offers customizable dynamic theming for

Andorid app which provides a bunch of useful Linux commands.
Andorid app which provides a bunch of useful Linux commands.

Linux Command Library for Android The app currently has 3203 manual pages, 1351 one-line scripts and a bunch of general terminal tips. It works 100% o

KeyCip - an Android app that allows users to encrypt, decrypt and sign text, photos, videos and other files
KeyCip - an Android app that allows users to encrypt, decrypt and sign text, photos, videos and other files

KeyCip is an Android app that allows users to encrypt, decrypt and sign text, photos, videos and other files. To accomplish this goal, it relie

 Detect-My-Mask: An android app which runs along with a TensorLite ML Model which detect whether a person is wearing mask or not.
Detect-My-Mask: An android app which runs along with a TensorLite ML Model which detect whether a person is wearing mask or not.

Detect-My-Mask About : Detect My Mask is an Android Application which is powered by a TensorLite ML Model which is programmed and trained to detect wh

Releases(1.3.0)
  • 1.3.0(May 24, 2021)

  • 1.2.0(May 8, 2021)

    Added:

    • CC BY-NC 3.0 (fe932df4c340a00490e98589bf7a086834d0ff91, 51ead59787d5a710537bc16e416f40bb5937b3dd)

    Fixed:

    • replaced Apache License Notice with actual license (c47672dca49b16eb35a802ee4f7367a1adeef2d7, 08f24cde7bd55109241d29a6da001c2732971d60)

    Enhancements:

    • reformatted licenses (01772aeca4f9181cc2306bef9556bbbda64f56f8)
    • simplified library (e39a393e2febbf32567bc6541ee21689039863f5)
    Source code(tar.gz)
    Source code(zip)
  • 1.1.1(Oct 18, 2020)

    Added:

    • release buildType (f19688b53371dad85d7f550dc0c9e71bc656d0ce)

    Fixed:

    • complete rework of library code (eb42bac7c5a17bf6e0ee5318ef8bfc3c1e5f290f)
    • conversion of class to interface (c8c4f9fe5733b16fb842428967ca9c5ab60ad190)
    Source code(tar.gz)
    Source code(zip)
  • 1.1.0(Sep 6, 2020)

    Added:

    • all licenses in plain text form (f3bd27ac58af2a6235b272a82ed1d3724f855194)

    Fixed:

    • lowered minimum api level to 1 (e9cdad93f830e0a75edc58b2c8bc5e5b8a413472)
    • smaller fixes (0940e15a1cf68484ff1a970906e9811fbc914cda, 830bc160a8000a45316f6fc30ef532511972e46c)
    Source code(tar.gz)
    Source code(zip)
  • 1.0.0(Aug 29, 2020)

Owner
Niko Diamadis
Student & Freetime Android developer
Niko Diamadis
Olalekan Fagbemi 0 Nov 7, 2021
CutableTextView - the super lightweight library that helps to you cut long text. ✂️

An easy to use CutableTextView when you need to cut a long text. ✂️ ✂️ ✂️ Gradle dependencies { implementation 'com.github.devit951:cutabletextvie

Ildarov 2 Aug 29, 2019
A general purpose kotlin library that use kotlin coroutines, flows and channels to provide timer features with the most easy and efficient way

Timer Timer is a general purpose kotlin library that use kotlin coroutines, flows and channels to provide timer features with the most easy and effici

Amr Saraya 3 Jul 11, 2022
The Android application is a list of the most popular TV series written in Java using the mvvm pattern.

Tv show application The Android application is a list of the most popular TV series written in Java using the mvvm pattern. This project was written f

rutikeyone 0 Dec 26, 2021
A project for the implementation of the car animation feature in most ride-sharing/ food delivery apps

CarAnimation This is a test project to practice the implementation of the car animation feature in most ride-sharing/ food delivery apps. Slowly build

Samurai 45 Dec 23, 2022
Cookie-finder - Most Active cookie finder

Most Active Cookie Given a cookie log file in the following format: cookie,times

null 0 Jan 18, 2022
Food Recipe App is an app for collecting most of food recipe in one app

Food Recipe App is an app for collecting most of food recipe in one app

Heba Elsaid 10 Dec 25, 2022
Manganers - An application that contains the most recommended places to eat in Purwokerto

manganers adalah aplikasi yang berisikan tempat makan di Purwokerto yang paling

Rizki Rafiif 0 Feb 4, 2022
Android common lib demo, include ImageCache, HttpCache, DropDownListView, DownloadManager, install apk silent and so on, you can find description

android-demo 关于我,欢迎关注 微博:Trinea 主页:trinea.cn 邮箱:trinea.cn#gmail.com 微信:codek2 依赖:trinea-android-common android-auto-scroll-view-pager viewpager-indica

Trinea 1.1k Dec 30, 2022
AndroidEssentials is an android library that creates helper functions for performing common tasks in Android

AndroidEssentials is an android library that creates helper functions for performing common tasks in Android such as managing preferences, managing files, showing alerts, showing toasts, checking user country & checking network connection of users. All the methods of the class are static and should be accessed directly from the AndroidEssentials class.

Isaac Sichangi 3 Jul 7, 2022