Attributr

An Android library for easily displaying attributions to third party libraries

License

License

GroupId

GroupId

co.52inc
ArtifactId

ArtifactId

attributr
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

aar
Description

Description

Attributr
An Android library for easily displaying attributions to third party libraries
Project URL

Project URL

https://github.com/52inc/Attributr
Source Code Management

Source Code Management

https://github.com/52inc/Attributr

Download attributr

How to add to project

<!-- https://jarcasting.com/artifacts/co.52inc/attributr/ -->
<dependency>
    <groupId>co.52inc</groupId>
    <artifactId>attributr</artifactId>
    <version>1.0.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/co.52inc/attributr/
implementation 'co.52inc:attributr:1.0.0'
// https://jarcasting.com/artifacts/co.52inc/attributr/
implementation ("co.52inc:attributr:1.0.0")
'co.52inc:attributr:aar:1.0.0'
<dependency org="co.52inc" name="attributr" rev="1.0.0">
  <artifact name="attributr" type="aar" />
</dependency>
@Grapes(
@Grab(group='co.52inc', module='attributr', version='1.0.0')
)
libraryDependencies += "co.52inc" % "attributr" % "1.0.0"
[co.52inc/attributr "1.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

#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

co.52inc

52inc

Awesome software developers

Versions

Version
1.0.0