Giter Site home page Giter Site logo

thorvg / thorvg.android Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 1.0 121 KB

ThorVG for Android System

Home Page: https://www.thorvg.org

License: MIT License

CMake 2.63% C++ 14.97% Java 78.20% Shell 4.20%
android-library lottie lottie-android thorvg

thorvg.android's Introduction

ThorVG for Android

ThorVG Android enhances Lottie animations on Android by bridging the capabilities of ThorVG's graphics engine with Lottie animations. It simplifies integration with a script that builds ThorVG for Android system(arm64-v8a, x86_64) to includes its binary(libthorvg.a) in your package.

Preparation

Please ensure that you have installed the Android SDK, also your development environment is configured to build ThorVG Android

$git clone https://github.com/thorvg/thorvg.android.git
$cd thorvg.android
$git submodule init --resursive

Please refer to ThorVG for detailed information on setting up the ThorVG build environment.

ThorVG Cross-Build

Follow these steps to cross-build ThorVG Android library.

Prepare for cross-building by executing the lottie:setupCrossBuild task. To build for arm64, use 1 as the value for 'abi'. For x86_64, use 2.

gradle lottie:setupCrossBuild -Pabi=1

Execute build_libthorvg.sh script to perform cross-building.

./build_libthorvg.sh

Copy the generated libthorvg.a to the thorvg/lib directory using the copy_libthorvg.sh script. If the first argument is 1, the library will be copied to the thorvg/lib/arm64-v8a/ directory. If it is 2, it will be copied to the thorvg/lib/x86_64/ directory.

./copy_libthorvg.sh 1

ThorVG-Android Build

Build and package the thorvg-android project.

thorvg.android's People

Contributors

hermet avatar ol-of avatar

Stargazers

 avatar Jinny You avatar Abdelrahman Ashraf avatar  avatar Hyeseong Kim avatar  avatar

Watchers

Naail Abdul Rahman avatar  avatar  avatar

Forkers

ol-of

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.