GithubHelp home page GithubHelp logo

distribution's Introduction

#Distribution Library Release

A small library to add About and Support menu items into your apps as well as handling EULA.

How to use

Add dependency

In your build.gradle

repositories {
    jcenter()
    maven { url "https://jitpack.io" }
}

dependencies {
    compile 'com.github.openintents:distribution:{latest version}'
}

Add app details

Replace strings

  • oi_distribution_recent_changes
  • oi_distribution_license_short

Add about details in meta data in AndroidManifest.xml or through intent:

  • customized logo (EXTRA_ICON_RESOURCE or EXTRA_ICON_URI)
  • customized application label (EXTRA_APPLICATION_LABEL) as String
  • comments (EXTRA_COMMENTS, METADATA_COMMENTS , oi:comments) as String
  • copyright (EXTRA_COPYRIGHT, METADATA_COPYRIGHT, oi:copyright) as String
  • website link (EXTRA_WEBSITE_LABEL and EXTRA_WEBSITE_URL, METADATA_WEBSITE_LABEL and METADATA_WEBSITE_URL, oi:website-label and oi:website-url) as String
  • authors (EXTRA_AUTHORS, METADATA_AUTHORS, oi:authors) as StringArray
  • documenters (EXTRA_DOCUMENTERS, METADATA_DOCUMENTERS, oi:documenters) as StringArray
  • translators (EXTRA_TRANSLATORS, METADATA_TRANSLATORS, oi:translators) as StringArray or String
  • artists (EXTRA_ARTISTS, METADATA_ARTISTS, oi:artists) as StringArray
  • list of translators (METADATA_TRANSLATORS, oi:translators) as a resource id for a String
  • license (EXTRA_LICENSE_RESOURCE, METADATA_LICENSE, oi:license) as resource id to raw file
  • support email (EXTRA_EMAIL, METADATA_EMAIL, oi:email) as String
  • recent changes (EXTRA_RECENT_CHANGES_RESOURCE, METADATA_RECENT_CHANGES, oi:recent-changes) as resource id to raw file

Translators are only listed if the string resource is not equals to translator-credits otherwise all international translators are listed

distribution's People

Contributors

aperomsik avatar friedger avatar harshadura avatar manuelciosici avatar peli0101 avatar rmceoin 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.