Comments (6)
@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.
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.
@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.
@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.
@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.
@houmie thanks for your feedback.
from hidden-secrets-gradle-plugin.
Related Issues (20)
- UnsatisfiedLinkError when package name has underscores HOT 2
- How to remove a key HOT 1
- Segmentation violation (invalid memory reference) on Android 7 HOT 2
- Obfuscator not using full 256 bits of each byte HOT 3
- It is still possible to get the keys by modifying the app HOT 7
- UnsatisfiedLinkError: dlopen failed: library "libsecrets.so" not found HOT 1
- Could not find com.android.tools.build:gradle:4.2.2.
- hideSecretFromPropertiesFile not working! HOT 1
- Gradle build failed HOT 1
- Is it possible to directly use libsecrets.so and get the key? HOT 1
- hideSecret Generating Files in Root 's`src/main/` HOT 1
- how to fix this ? HOT 1
- Crashes when secret names have underscores
- Got error HOT 2
- try hideSecretFromPropertiesFile error
- Can't declare plugin on Android Studio Flamingo with AGP 8.0.1 and Kotlin build configuration HOT 9
- Flutter integration HOT 1
- java.lang.UnsatisfiedLinkError: dlopen failed: library "libsecrets.so" not found HOT 14
- How to add the native lib to JUnit tests
- How to get secret key from Groovy HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hidden-secrets-gradle-plugin.