Next update:
I tried building the other project into a jar by adding a custom_rules.xml file to it, with this inside:
\<target name="jar" depends="-compile"\> \<jar destfile="bin/theProj.jar" basedir="bin/classes" /\> \</target\>
That built ok, so I added that to the project with my own plugin jar file, but still no luck when it comes to building a new project which uses my plugin…
07-16 18:49:18.626: I/Corona(15573): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.quiztix.mygame/com.sdkName.theClassName}; have you declared this activity in your AndroidManifest.xml? 07-16 18:49:18.626: I/Corona(15573): Java Stack Trace: 07-16 18:49:18.626: I/Corona(15573): android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1648) 07-16 18:49:18.626: I/Corona(15573): android.app.Instrumentation.execStartActivity(Instrumentation.java:1442) 07-16 18:49:18.626: I/Corona(15573): android.app.Activity.startActivityForResult(Activity.java:3511) 07-16 18:49:18.626: I/Corona(15573): android.app.Activity.startActivityForResult(Activity.java:3472) 07-16 18:49:18.626: I/Corona(15573): android.app.Activity.startActivity(Activity.java:3714) 07-16 18:49:18.626: I/Corona(15573): android.app.Activity.startActivity(Activity.java:3682) 07-16 18:49:18.626: I/Corona(15573): com.sdkName.theClassName(SDKNAME.java:748) 07-16 18:49:18.626: I/Corona(15573): com.sdkName.theClassName(SDKNAME.java:671) 07-16 18:49:18.626: I/Corona(15573): plugin.myPlugin.LuaLoader.myFunction(LuaLoader.java:243) 07-16 18:49:18.626: I/Corona(15573): plugin.myPlugin.LuaLoader$MyFunctionWrapper.invoke(LuaLoader.java:255) 07-16 18:49:18.626: I/Corona(15573): com.ansca.corona.JavaToNativeShim.nativeTouchEvent(Native Method) 07-16 18:49:18.626: I/Corona(15573): com.ansca.corona.JavaToNativeShim.touchEvent(Java
So I added the activity values from the original projects manifest file to my own manifest file (that was an oversight on my part I’ll admit).
Then I added any missing values from res/values which allowed it to build, but it still then crashes saying resources were missing.
I’m beginning to think either:
a) there will be some really simple way to ‘attach’ the other android library project to my plugin
b) it will be impossible to get this plugin to work
I’m hoping that it won’t be the latter.