Code Monkey home page Code Monkey logo

Comments (4)

dabitdev avatar dabitdev commented on June 26, 2024 1

hi @zentechthaingo thank for you interest on our open source wallet.
I will look at this and provide support for minify.

from stellar-android-wallet.

dabitdev avatar dabitdev commented on June 26, 2024

I just checked and there is no support for proguard or minify in the project.
There are plenty of warnings that are preventing to compile with minify = true.
How did you find out that the issue is in the Security provider?

Note: there were 28 unkept descriptor classes in kept class members.
Note: there were 31 unresolved dynamic references to classes or interfaces.
Warning: there were 1980 unresolved references to classes or interfaces.
Warning: there were 15 unresolved references to program class members.
Warning: Exception while processing task java.io.IOException: Please correct the above warnings first.

from stellar-android-wallet.

zentechthaingo avatar zentechthaingo commented on June 26, 2024

I use some code of Block-Equity, in my project. it is keystore and genrate seed. When I build with minify = true, my app build success but it crash: with message error:

     Caused by: java.security.KeyStoreException: BKS not found
     java.net.SocketException: java.security.NoSuchAlgorithmException

then when I comment this code

    Security.removeProvider("BC")
    Security.addProvider(BouncyCastleProvider() as Provider?)

it work again.
I think it due my

signingConfigs {

        release {
            storeFile file(RELEASE_STORE_FILE)
            storePassword RELEASE_STORE_PASSWORD
            keyAlias RELEASE_KEY_ALIAS
            keyPassword RELEASE_KEY_PASSWORD
        }
    }

I want to ask you. What we need BouncyCastleProvider() and Security.removeProvider("BC").
Thank for you support. I love your open source wallet.

from stellar-android-wallet.

dabitdev avatar dabitdev commented on June 26, 2024

Hi @zentechthaingo, I got this following information from Soneso/stellar-java-mnemonic

If you add the library to a project running Java 1.7 or lower, then you need Bouncy Castle as well, because some of the security algorithms used within the library are supported starting with Java 1.8 only. After adding that dependency, add the following lines of code at your project entry point.

Security.removeProvider("BC");
Security.insertProviderAt(new BouncyCastleProvider(), 1);

In that way you are adding Bouncy Castle as the main provider for security algorithms.

from stellar-android-wallet.

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.