Tool Jarjar

by cicanci

JarJar Unity plugin for AAR files

( Crawled 7 minutes ago )
+

JarJar Unity plugin for AAR files

Kinda fixes the multidex problem when using a lot of AAR files on Unity.

Kinda not.

Jar Jar

JarJar replaces the package name in the AndroidManiest.xml files that he finds inside all AAR files in the Plugins/Android folder. He also looks for AndroidManifest.xml files and update them. The new package name is the one set in the Player Settings.

Usage

Import the JarJar plugin in Unity Assets/Import Package/Custom Packages..., you can find the latest version here.

After the plugin import is done, an option will appear in the Unity Editor menu Tools/Android/Update AAR and AndroidManifest with JarJar, just click and wait. Android should be the selected platform before run it.

Project

JarJar uses the amazing UniZip. The Google Play Games Plugin for Unity is in this project only for test purpose, it is not part of the plugin.

Log

You can enable a debug log by adding DEBUG_JARJAR in the Scripting Define Symbols section located at the Player Settings, this will print more information about the JarJar process.

Results

This is an empty Unity project with the Google Play Games Plugin for Unity imported. The android build generates 16 R.java files, which may cause the multidex problem.

Files

After running the JarJar and building the same project again, only one R.java file is generated.

File