Giter Site home page Giter Site logo

Comments (2)

michaelfairley avatar michaelfairley commented on June 14, 2024

We actually have an Android client-side encryption library that might serve your purposes. Despite having Android in the name, it doesn't actually have dependencies on any Android libraries, so it should hopefully work in any Java project. That said, because it was designed for Android, it's not distributed from Maven Central or anything, so you might need to include our source files in your project.

from braintree_java.

willglynn avatar willglynn commented on June 14, 2024

Seems to work. Thanks! The availability of the Android client in a normal JVM context somehow did not occur to me.

The easiest way for me to integrate this was to define a local maven repo:

<repositories>
    <repository>
        <id>local-maven-repo</id>
        <url>file://${basedir}/../local-maven-repo</url>
    </repository>
</repositories>
…
<dependencies>
    <dependency>
        <groupId>braintree</groupId>
        <artifactId>braintree-android-encryption</artifactId>
        <version>1.0.0</version>
    </dependency>
</dependencies>

And then populate it with:

$ wget https://www.braintreepayments.com/assets/client_libraries/android/braintree-android-encryption-1.0.0.jar
$ mkdir -p ../local-maven-repo/braintree/braintree-android-encryption/1.0.0
$ mv braintree-android-encryption-1.0.0.jar ../local-maven-repo/braintree/braintree-android-encryption/1.0.0

Not quite as convenient as Maven Central, but not especially painful either.

from braintree_java.

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.