GithubHelp home page GithubHelp logo

52inc / attributr Goto Github PK

View Code? Open in Web Editor NEW
3.0 6.0 2.0 248 KB

[DEPRECATED] An Android Library for easily displaying a list of license attributions for 3rd party libraries in your applications.

License: Apache License 2.0

Java 100.00%

attributr's Introduction

#Attributr

#[DEPRECATED] This library is no longer maintained and has been replaced in 52Kit

Summary

An Android library for easily displaying a list of license attributions for 3rd party libraries in your applications.

Usage

  1. Configuration File

     <Configuration>
    
         <Library>
             <Name>ButterKnife</Name>
             <Author>Jake Wharton</Author>
             <Source>http://jakewharton.github.io/butterknife/</Source>
             <License>
                 Copyright © 2013 Jake Wharton\n\nLicensed under the Apache License, Version 2.0 (the 'License'); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
             </License>
         </Library>
     
     </Configuration>
    

    This is an example of the format needed to use Attributr.

  2. Code usage

     Attributr.openLicenseActivity(getActivity(),
                         "Some activity title",
                         R.raw.license_config,
                         R.drawable.ic_action_launcher,
                         R.style.Theme_Custom);
    

    Just call this to launch the attribution license activity to display your previous configuration in a beautiful card format.

  3. Customization

    Just call Attributr.parseConfiguration(ctx, R.raw.license_config); to get a list of Library objects to use in your own manner. This way you can create your own Adapter to use in whatever view model you wish to display.

Planned Features

  • Easier 'License' configuration

    • Specifying a license type via attribute (i.e. type="apache2|mit|gplv3|etc...") and supply the appropriate information to place into the template license string.
  • Style configurations

    • Supply the developer with a configuration class that they can use to customize the styling of the license card views and list.

Including in your project

Just add this line:

compile 'co.52inc:attributr:+'

In your project's build.gradle file

Author

Drew Heavner (r0adkll) @ 52inc

attributr's People

Contributors

r0adkll avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  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.