Coder Social home page Coder Social logo

tommyteavee / lbry-android-sdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lbryio/lbry-android-sdk

0.0 0.0 0.0 162.34 MB

The LBRY SDK packaged as an Android AAR library

License: MIT License

Dockerfile 0.03% Shell 11.01% Makefile 4.60% Batchfile 0.18% Python 16.40% Ruby 0.01% JavaScript 0.11% CSS 0.63% HTML 0.50% C 31.93% Java 5.42% CMake 0.01% Roff 5.84% M4 1.80% Assembly 13.29% C++ 0.22% TeX 8.02%

lbry-android-sdk's Introduction

LBRY Android SDK

pipeline status GitHub license

The LBRY SDK packaged as an Android AAR library which can be used in any Android Studio project.

Installation

No installation required as this is a dev library.

Usage

  1. Open your project in Android Studio.
  2. File > New > New Module...
  3. Select Import .JAR / .AAR Package and click Next
  4. Select the lbrysdk-<version>-<debug|release>.aar package from the location you built or downloaded it to where version is the sdk version and <debug|release> is either debug or release.
  5. Click Finish
  6. Add implementation project(':lbrysdk-<version>-<debug|release>') to the build.gradle configuration for the main app module.

Using the SDK

Add the FOREGROUND_SERVICE and INTERNET permissions to AndroidManifest.xml if they are not yet added.

<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.INTERNET" />

Add the android:usesCleartextTraffic="true" attribute to the application tag in AndroidManifest.xml. Import the required classes to be able to start up the service.

import io.lbry.lbrysdk.LbrynetService;
import io.lbry.lbrysdk.ServiceHelper;

Add code to launch the service.

Context context = getApplicationContext();
ServiceHelper.start(context, "", LbrynetService.class, "lbrynetservice");

Running from Source

The library can be built from source using Buildozer. After cloning the repository, copy buildozer.spec.sample to buildozer.spec and modify this file as necessary for your environment. Please see BUILD.md for detailed build instructions.

Contributing

Contributions to this project are welcome, encouraged, and compensated. For more details, see https://lbry.io/faq/contributing

License

This project is MIT licensed. For the full license, see LICENSE.

Security

We take security seriously. Please contact [email protected] regarding any security issues. Our PGP key is here if you need it.

Contact

The primary contact for this project is @akinwale ([email protected])

lbry-android-sdk's People

Contributors

akinwale avatar akshitsarin avatar alyssaoc avatar dan1d avatar enigmacurry avatar ericbriananil avatar g1tman avatar jackrobison avatar janith96 avatar lbrydocs avatar lyoshenka avatar michaeltintiuc avatar mohatagarvit avatar netopwibby avatar preserveddarnell avatar shyba avatar sidhyatikku avatar skhameneh avatar strikerrus avatar sumitkharche avatar tzarebczan avatar ykris45 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.