Hi all,
I’ve got an SDK which is exported as an AAR, the jar file is packaged with resources, the manifest etc etc
The SDK requires external dependencies as follows, which I’ve added to my App gradle build file (in addition to the default stuff):
compile ‘com.android.support:support-annotations:23.2.0’
compile ‘com.android.support:support-v4:23.2.0’
compile ‘com.mcxiaoke.volley:library:1.0.19’
compile ‘com.google.android.gms:play-services-ads:9.4.0’
I’ve got it running in a test app by importing the AAR file to the Corona Enterprise App template and having it as a dependency on my plugin which is using it, but when I need to package this as a plugin is AAR acceptable ? I’ve read on some old post that I need to provide the plugin jar + the external lib jars + the SDK jar I am using.
So if I understood it correctly, it would be the jar file output of the plugin project, downloads of the dependency jars mentioned above (read somewhere that I should not use the google play lib, and use some Corona reference somehow), and a jar of the SDK (which I currently have as an AAR, but I could not get it to work via extracting the jar and copying resources the App project under java, always fails with classnotfound string.R errors).
Can someone verify my approach above please, and point out any obvious errors I am making (not adept at Java/Android)?
If AAR is not acceptable, can someone from Corona kindly provide steps on how to get around this ? I’ve reviewed alot of guides online and the Corona docs, but there is a mix of guidelines and the latest set which I found about Android Studio integration do not mention AAR, neither do the Project structure pages mention it(they only mention Corona libs and External libs, nothing about external lib resources and where they go). I was working on ANT originally and barely got to grips with that before Android Studio came in, so learning it again and using gradle, SO ANY HELP would be greatly appreciated so I can swiftly get the changes through.
Also unfortunately not many source plugins available on Corona repo use the new gradle build, which I could use as example (if someone can point me to an example that I can refer to would be ACE as well)
Thanks again
Hassaan