Git Product home page Git Product logo

Comments (6)

houmie avatar houmie commented on June 10, 2024 1

@ben-j69 I just tested it again. I deleted the cpp folder and ran ./gradlew hideSecret. And it syncs the files over. You were right.

The steps you mentioned is correct. Yesterday I had mistakenly added externalNativeBuild in gradle before running ./gradlew hideSecret. This caused the issue. So the documentation is correct, I didn't pay enough attention. :-)

Thank you for recommending Cocopods Keys, I will try it out.

from hidden-secrets-gradle-plugin.

houmie avatar houmie commented on June 10, 2024

Great news, I figured it out.

I copied the file from https://github.com/klaxit/hidden-secrets-gradle-plugin/blob/master/src/main/resources/cpp/CMakeLists.txt and placed it under myProject/src/main/resources/cpp

Now it works. Absolutely brilliant. But I think this step should be mentioned in the documentation. Unless this was meant to be done automatically, and I found a bug. I leave this open to see what others think.

Thank you for this amazing project.

from hidden-secrets-gradle-plugin.

ben-j69 avatar ben-j69 commented on June 10, 2024

@houmie nice to see you found a work around. The creation of the cpp folder and the copy of the CMakeLists is automatic when you run ./gradlew hideSecret.

If you created the folder and the file before to run the command the copy was not done (because the file already exists) and the project could not compile.

If the documentation is not clear enough feel free to suggest modifications.

I will close this issue since everything works.

from hidden-secrets-gradle-plugin.

houmie avatar houmie commented on June 10, 2024

@ben-j69 Cheers. Yes, I think I know what has gone wrong. I inserted

android {

    ...

    // Enable NDK build
    externalNativeBuild {
        cmake {
            path "src/main/cpp/CMakeLists.txt"
        }
    }
}

before the gradle was synced from previous step. This has led to CMakeLists.txt not exist. I have a habit to put everything in Gradle and then sync it once. The fault was on my side, I had to sync the gradle twice in step 1 and 3 separately. I think we are good.

Do you guys provide this project also for iOS? Such a useful feature to have for protecting API keys. Thanks

from hidden-secrets-gradle-plugin.

ben-j69 avatar ben-j69 commented on June 10, 2024

@houmie not sure it is a sync issue, when you run ./gradlew hideSecret it should sync the project, before to add externalNativeBuild in the gradle file ?

We don't provide the same solution for iOS, but I recommend you Cocoapods Keys which work in the same way.

from hidden-secrets-gradle-plugin.

ben-j69 avatar ben-j69 commented on June 10, 2024

@houmie thanks for your feedback.

from hidden-secrets-gradle-plugin.

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.