frostwire / frostwire-jlibtorrent

A swig Java interface for libtorrent by the makers of FrostWire. Develop libtorrent based apps with the joy of coding in Java.
http://www.frostwire.com
MIT License
451 stars 138 forks source link

How to merge libraries into one? #279

Closed master255 closed 2 years ago

master255 commented 2 years ago

@gubatron Alyarma alyarma! The enemies are attacking!

After upgrading Android Studio to Chipmunk, it stopped supporting different architecture libraries. Now only single libraries are supported, which are not divided into architectures.

Almighty Gubatron, could you please write a script on how to merge all the libraries? Perhaps Alden (@aldenml ), any ideas?

image

gubatron commented 2 years ago

Opened both the jlibtorrent project, and the frostwire project and I have no issues on our project.

Screen Shot 2022-09-17 at 3 45 33 PM

Still works fine for jlibtorrent gradle project Screen Shot 2022-09-17 at 3 40 48 PM

and for frostwire-android project Screen Shot 2022-09-17 at 3 44 36 PM

How are you storing the different architecture jars in your android projects? We simply throw all of them together inside libs/ Screen Shot 2022-09-17 at 3 47 32 PM

jlibtorrent classes are added to the classpath by Android Studio from a single jlibtorrent-w.x.y.z.jar that contains no binaries, only the .class files

master255 commented 2 years ago

Indeed. Moving the libraries to the libs directory helped.