4e4ac58ff6
new build system, 111 |
||
---|---|---|
.github | ||
docker | ||
p4a | ||
recipes | ||
scripts | ||
src/main | ||
.dockerignore | ||
.gitignore | ||
.gitlab-ci.yml | ||
.gitmodules | ||
build-debug.sh | ||
build-release.sh | ||
BUILD.md | ||
buildozer.spec.arm.ci | ||
buildozer.spec.arm64.ci | ||
buildozer.spec.sample | ||
buildozer.spec.vagrant | ||
DOCKER-DEV.md | ||
DOCKER.md | ||
Dockerfile | ||
LICENSE | ||
QUICKSTART.md | ||
README.md | ||
signing.pgp | ||
signing2.pgp | ||
Vagrantfile |
LBRY Android SDK
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
- Open your project in Android Studio.
- File > New > New Module...
- Select Import .JAR / .AAR Package and click Next
- Select the
lbrysdk-<version>-<debug|release>.aar
package from the location you built or downloaded it to whereversion
is the sdk version and<debug|release>
is eitherdebug
orrelease
. - Click Finish
- Add
implementation project(':lbrysdk-<version>-<debug|release>')
to thebuild.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 security@lbry.com regarding any security issues. Our PGP key is here if you need it.
Contact
The primary contact for this project is @akinwale (akinwale@lbry.com)