Use realm in aar-library
<p>We have a library that implements Realm. When we export the library to an AAR file and import it in a project we need to add this to the 
project gradle file outside of the library:</p>

<pre><code>classpath 'io.realm:realm-gradle-plugin:1.0.0'
</code></pre>

<p>and to the application gradle file itself:   </p>

<pre><code>apply plugin: 'realm-android'
</code></pre>

<p>This is not a nice way to implement a library in your application since you have to do more than just import the aar dependency.</p>

<p>Is there a cleaner way to implement an AAR library with Realm?</p>