Git Product home page Git Product logo

Comments (5)

msgilligan avatar msgilligan commented on May 31, 2024

This Base64 implementation (file) was copied from the Android project -- didn't want an external dependency, but wanted a solid implementation. Do you know if the issue had been reported or fixed upstream?

from consensusj.

devinrsmith avatar devinrsmith commented on May 31, 2024

A lot of base64 implementations insert newlines for "pretty-printing". It's not an issue w/ the Base64 implementation IMO. Also, it looks like Base64 is an internal library? com.msgilligan.jsonrpc.util.Base64. There is also java.util.Base64 which obviously doesn't have any external dependencies, but I'm not sure what its status with newlines is. Worst case, it should be easy to use String.replace("\n", ""), or something similar.

from consensusj.

msgilligan avatar msgilligan commented on May 31, 2024

It's internal, but copied (with copyright notice intact) from Android.

We needed to:

  1. Have something that works on Java and Android
  2. Avoid namespace conflicts
  3. Avoid any external dependencies

from consensusj.

msgilligan avatar msgilligan commented on May 31, 2024

java.util.Base64 is added in Android API level 26 (aka Android 8.0, "Oreo")

So, unless you're developing for Android 8.0 or later and you want the same code to work on Java and Android you have to provide your own implementation (or a factory, etc)

from consensusj.

msgilligan avatar msgilligan commented on May 31, 2024

Fixed by c935710 -- on master branch -- will be in next release.

from consensusj.

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.