How To Pack Resources Into Single AAR file¶
Overview¶
If you use Gradle build system to assemble your Unity Android application, you can not simply put the Android resources to Assets/Plugins/res/... You have to put all your resources into a single .aar file and link it to your project.
Tutorial¶
- Create an empty directory and go inside it.
Create file
AndroidManifest.xmlinside directory with following content:<manifest package="im.getsocial.sdk.resources"> </manifest>Create directory
res. Inside it create directorydrawable.- Put all the image resources to the
res/drawable. Go back to the directory where
AndroidManifest.xmlis placed. Example structure of your directory:├─── AndroidManifest.xml └─── res └─── drawable ├─── my_drawable.png └─── my_drawable1.pngRun the
jar cvf getsocial_resources.aar -C . .inside directory.
https://docs.getsocial.im/knowledge-base/pack-resources-to-aar/
No comments:
Post a Comment