Giter Site home page Giter Site logo

Comments (5)

cernekee avatar cernekee commented on June 27, 2024

As explained in https://source.android.com/source/licenses.html its clear we cannot link stoken dynamically in Android.

At that link Google lists the reasons why they avoid LGPL in AOSP and in factory images. Is that the use case that you're concerned about, or did you just want to add libstoken to your app?

For an example of the latter, see https://github.com/cernekee/EasyToken

from stoken.

MufriA avatar MufriA commented on June 27, 2024

@cernekee I just want to use libstoken in my app like how you used in EasyToken

correct me if I'm wrong, lgpl2 mandates to link the library dynamically.

https://www.tldrlegalxcom/l/lgpl2

Since you own both stoken and easytoken you can link as you wish, how about others? including the lib in app will violate the license right?

from stoken.

cernekee avatar cernekee commented on June 27, 2024

For the C portion, libstoken.so would normally live under libs/ARCH/ and it would be dynamically loaded through the JNI mechanisms. Somebody would be able to unpack the apk, replace the library with a new version, and rebuild the apk - all without touching classes.dex or other parts of the app. This satisfies the LGPL.

For the Java wrapper, I could see a potential issue building the LGPL jar file into an app with an incompatible license. It might make sense to relicense the Java wrapper files as BSD-3-clause to support this use case. Using the BSD license instead of Apache here keeps them compatible with GPLv2 code.

How does that sound?

from stoken.

MufriA avatar MufriA commented on June 27, 2024

Sounds awesome, BSD seems good, thanks for considering the request.

from stoken.

MufriA avatar MufriA commented on June 27, 2024

Thanks

from stoken.

Related Issues (20)

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.