How To Pack Resources Into Single AAR file¶
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.
- Create an empty directory and go inside it.
AndroidManifest.xmlinside directory with following content:
<manifest package="im.getsocial.sdk.resources"> </manifest>
res. Inside it create directory
- Put all the image resources to the
Go back to the directory where
AndroidManifest.xmlis placed. Example structure of your directory:
1 2 3 4 5
├─── AndroidManifest.xml └─── res └─── drawable ├─── my_drawable.png └─── my_drawable1.png
jar cvf getsocial_resources.aar -C . .inside directory.
getsocial_resources.aar file is ready to be used.