Comments (11)
Thanks for the pull request 👍 Looks good and have merged it.
I have one concern still and maybe you can clarify. This might correctly handle the case when minify is enabled. However if minify is not enabled, all those files should become the consumerProguardFiles instead and should be embedded in the aar file so that the application can use them. Not sure how to handle that although :) Maybe two tasks or adding to consumerProguardFiles or proguardFiles depending on whether or not the proguard task exists. I don't use multiple proguard files, so can't test myself.
Thanks.
from android-fat-aar.
Hello,
if you don´t specify a consumerProguardFile, it wont even create a
proguard.txt inside the library. Therefore it´s not neccessary to check if
the user has specified one.
Minify enabled has nothing todo with the consumerProguard files. Consumer
Proguard files are packed in the aar file and executed where the library is
used :)
I´ve created another pull request where I also check, if the file exists.
Thank you,
Best regards
2015-10-21 17:20 GMT+02:00 GoodBoy Adwiv [email protected]:
Thanks for the pull request [image: 👍] Looks good and have merged it.
I have one concern still and maybe you can clarify. This might correctly
handle the case when minify if enabled. However if minify is not enabled,
all those files should become the consumerProguardFiles instead and should
be embedded in the aar file so that the application can use them. Not sure
how to handle that although :) Maybe two tasks or adding to
consumerProguardFiles or proguardFiles depending on whether or not the
proguard task exists. I don't use multiple proguard files, so can't test
myself.Thanks.
—
Reply to this email directly or view it on GitHub
#5 (comment)
.
Best regards,
Marian Klühspies
from android-fat-aar.
from android-fat-aar.
where i can store my consumerProguardFiles in diffrent location.
from android-fat-aar.
Hi Suhas, Couldn't understand your problem. Can you please elaborate.
from android-fat-aar.
Actually i have created one library for my customer and that i have to give him by applying proguard so that the code will be obfuscate. But i have read in stack overflow that we can not apply proguard on library, once that library is used in any project, the proguard applied in that project will be applied to library also. But as i want to give that library to customer so they can not see my code.
What you could suggest for this? Please help me out
from android-fat-aar.
from android-fat-aar.
actually i have already applied Proguard on My Library but problem is that when i use that aar library inside my demo application for testing, library functions are just get decompiled and shows all functionality when i click on any library function by holding ctrl key it decompile and show all functions details. any other way to protect my code.
from android-fat-aar.
That is how java works. If you want harder to decompile use the paid
version of proguard - Dexguard. Or write the main logic in C/C++ and use
JNI.
On 26-Oct-2016 9:34 PM, "suhas gawde" [email protected] wrote:
actually i have already applied Proguard on My Library but problem is that
when i use that aar library inside my demo application for testing, library
functions are just get decompiled and shows all functionality when i click
on any library function by holding ctrl key it decompile and show all
functions details. any other way to protect my code.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#5 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKfnZ349vM_dVYcWtoUnqpD_mA1POwAmks5q33oVgaJpZM4GS5pu
.
from android-fat-aar.
Ok sir , Thanks for suggesting me 👍
from android-fat-aar.
The only thing that worked for me is to define both options in my library:
release {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
consumerProguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
from android-fat-aar.
Related Issues (20)
- Support apply plugin: 'com.android.application'? HOT 1
- unknown property 'packageReleaseResources' HOT 1
- Error:(61, 0) Could not find method compile() for arguments [project ':croplibrary', build_dijfgbzqt6st566goauqc2hu4$_run_closure3@60f84416] on project ':imageeditlibrary' of type org.gradle.api.Project. <a href="openFile:C:\Users\kingdee\Desktop\ImageEditor-Android-master\imageeditlibrary\build.gradle">Open File</a> HOT 1
- Doesn't work with new Android Gradle 3.0 plugin HOT 18
- java.lang.NoClassDefFoundError: Failed resolution of: *****/R$raw; HOT 8
- can't merge libs in a aar library HOT 4
- Error:Could not get unknown property 'prepareReleaseDependencies' for project ':someLib' of type org.gradle.api.Project. HOT 9
- why it accurs error ? HOT 5
- how to embedded .aar file HOT 4
- The fixed version !!!
- task generateRJava generates attr that can't find HOT 1
- Error:Could not get unknown property 'generateReleaseAssets' for project ':app' of type org.gradle.api.Project. HOT 2
- Could not find sdklib.jar (com.android.tools:sdklib:25.3.2).
- ERROR: Cannot choose between the following variants of project :ble-interface: HOT 2
- Maybe here is a good choice of fat-aar, supoort android gradle plugin 3.0.0-3.4.2 and gradle 4.6-5.1.1.
- [fix] fat-aar getMergedInputResourceSets
- 谁有gradle 3.6.1解决方案 HOT 1
- example 不能正常编译
- Failed resolution of: Landroidx/lifecycle/DefaultLifecycleObserver
- How to modify the exported file name?
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 android-fat-aar.