Coder Social home page Coder Social logo

Comments (8)

adwiv avatar adwiv commented on June 14, 2024

from android-fat-aar.

williamlopes-dev avatar williamlopes-dev commented on June 14, 2024

Hi,

I'll try explain, in the truth just now I understand my real problem.

I'm using your gradle script since begin of last year, but I stayed 15 days without to work on my Android project. Last week I formatted my ubuntu system, therefore I installed all newest versions of applications to work, such as Android Studio 2.2 and JDK 1.8. Today when I ran assembleReselease, I note that your script is running the proguard process again (unduly?).

My minifyEnabled is setted to false, but still running proguard process when I call assembleRelease. And this didn't happened before.

I have multiples projects that are joined by com.github.dcendents.android-maven plugin, in this projects really uses minifyEnabled setted as true, but on main project that generate final lib don't.

The warning generated:
Warning: com.package.Foo: can't find referenced class javax.persistence.Table
Warning: com.package.Bar: can't find referenced class org.apache.commons.codec.binary.Hex

After that I wrote text above, did some tests and now I can run assembleRelease with success by changing the gradle file to use:
'com.android.tools.build:gradle:2.1.3' (was 2.2.0)
'com.github.dcendents:android-maven-gradle-plugin:1.4.1' (was 1.5.0)
And:
apply from: 'https://raw.githubusercontent.com/adwiv/android-fat-aar/4308e779cd12b1398a67040d6ec6447c701bd0e2/fat-aar.gradle' (was master)

Do you have idea of the cause?

from android-fat-aar.

adwiv avatar adwiv commented on June 14, 2024

The older script did not use an internal proguard, we simply remapped the R classes of embedded projects to point to the library R file.

The 2.2 gradle created an issue by stripping any class named R and inner classes from the generated aar archive which the internal proguard tries to fix. The proguard wants to resolve all classes although it doesn't use them actually. Hence the error.

The javax.persistence.Table is not a part of android java library, hence the warning. From what I understand, this class belongs to java enterprise edition and one of the included jars has a reference to it. Same way, the script is not able to find the commons-codec library in the dependencies. How are you including it?

If you can share the names or dependencies of your embedded projects, I would try to replicate the issue.

from android-fat-aar.

adwiv avatar adwiv commented on June 14, 2024

Hi, Added the option to specify your own dontwarn options in file named fataar-rules.pro which is created automatically first time you run the script. Please check if it works as required.

from android-fat-aar.

williamlopes-dev avatar williamlopes-dev commented on June 14, 2024

fataar-rules.pro is like a common proguard configuration file? Because some java classes were obfuscated together with proguard process.

from android-fat-aar.

adwiv avatar adwiv commented on June 14, 2024

Yes.. it's included as a config file..
The obfuscation should not happen since we have the dontobsfucate option.
Can you check the generated config file to see what configuration is
applied. It's in the same location as mapping file.

On 07-Oct-2016 8:07 PM, "williamlopes-dev" [email protected] wrote:

fataar-rules.pro is like a common proguard configuration file? Because
some java classes were obfuscated together with proguard process.


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
#33 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKfnZ8ESUqupzFLGL4_rDAkx02TrMDB2ks5qxlkYgaJpZM4KLWNo
.

from android-fat-aar.

williamlopes-dev avatar williamlopes-dev commented on June 14, 2024

When I tested my integration class has been obfuscated. I remember of add keep 'class foo.Bar' command to work correctly. I can compile without 'keep' command, but I can't use my library in that way.

Next week I must be able to test, after that, I'll back and tell if worked.

By the way, thank you so much my brother!!

from android-fat-aar.

adwiv avatar adwiv commented on June 14, 2024

from android-fat-aar.

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.