Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multidex an Proguard fixes #509

Merged
merged 2 commits into from
Nov 20, 2014
Merged

Multidex an Proguard fixes #509

merged 2 commits into from
Nov 20, 2014

Conversation

lsuski
Copy link

@lsuski lsuski commented Nov 17, 2014

I made changes for multidexing on fresh fork and also add fix for Proguard command line parameters. Related to
#482 (can be rejected)
and
#507

lukasz.suski added 2 commits November 17, 2014 15:20
…le, not in assets (compatible with android.support.MultiDex)
…y config file instead of full command line options
@william-ferguson-au
Copy link
Contributor

Is there a test for multi dex?
On 18 Nov 2014 00:29, "Łukasz Suski" [email protected] wrote:

I made changes for multidexing on fresh fork and also add fix for Proguard
command line parameters. Related to
#482 #482 (can
be rejected)
and

#507 #507

You can merge this Pull Request by running

git pull https://github.com/lsuski/android-maven-plugin master

Or view, comment on, or merge it at:

#509
Commit Summary

  • MultiDex support: now secondary dex'es are located directly in apk
    file, not in assets (compatible with android.support.MultiDex)
  • generated Proguard parameters are passed to Proguard through
    temporary config file instead of full command line options

File Changes

Patch Links:


Reply to this email directly or view it on GitHub
#509.

@mosabua
Copy link
Member

mosabua commented Nov 18, 2014

Awesome ... I will check it out tonight or later this week.

@lsuski
Copy link
Author

lsuski commented Nov 18, 2014

@william-ferguson-au
I've tested it but didn't write any automatic test.

@william-ferguson-au
Copy link
Contributor

Can you add a test?
As simple as a project that uses multi-dex and executes some activity or
uses some resources from the 2nd dex.

On Tue, Nov 18, 2014 at 1:27 AM, Łukasz Suski [email protected]
wrote:

@william-ferguson-au https://github.com/william-ferguson-au
I've tested it but didn't write any automatic test.


Reply to this email directly or view it on GitHub
#509 (comment)
.

@lsuski
Copy link
Author

lsuski commented Nov 18, 2014

I'll try but I am not familiar with those kind of tests, I have simple test project but don't know how exactly test it. Is there any similar test I could base on?

@Shusshu
Copy link
Member

Shusshu commented Nov 18, 2014

You can just share a sample project.

As simple as a project that uses multi-dex and executes some activity or uses some resources from the 2nd dex.

@bastoi
Copy link

bastoi commented Nov 18, 2014

I think that it's difficult to know which classes are put to the second dex because dx tool manages this process.

You can try to create a project adding multiple jars to overflow 64k method limit.

Then maven with multi-dex flag to true generates two dex files (you can open the apk to see it at the root folder).

Then if your sample project has multidex enabled when you run the application you can see to the log how Multidex class load the secondary dex file.

@Shusshu
Copy link
Member

Shusshu commented Nov 19, 2014

You could try to put 3 or 4 huge libraries: (play services, guava, aws (amazon)) and then call some stuff from each of them...

mosabua added a commit that referenced this pull request Nov 20, 2014
Multidex an Proguard fixes
@mosabua mosabua merged commit aaeb011 into simpligility:master Nov 20, 2014
@mosabua
Copy link
Member

mosabua commented Nov 20, 2014

An example project and a IT test would be nice. But as it stands this looks good already as well.

@lsuski
Copy link
Author

lsuski commented Nov 20, 2014

Sorry for delay,
this is sample project https://github.com/lsuski/maven-multidex-sample . Check README. I'm not familiar with integration tests so if someone want to write test feel free to include this project in it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants