External Library issue

20 views
Skip to first unread message

ruebli

unread,
Apr 16, 2019, 9:46:14 AM4/16/19
to App Inventor Open Source Development
Hello

I have an issue with an external library I am using. The properties file are not copied and so I get a MissingRessource Exception. I found out a workaround in putting them manually in the classes.jar file of my extension, however this is not a solution, because once I build the .apk file, the files are gone (I added them also in the androidRuntime.jar).

Can you please help me with this issue? Or tell me where I have to adjust the ant script so these files are not ignored while building?

Thanks in advance

Evan Patton

unread,
Apr 16, 2019, 5:00:01 PM4/16/19
to App Inventor Open Source Development
The build system isn't really set up to handle dependencies that include resources in addition to classes, but if you want to experiment my starting point would be to add a <copy> task to the packExtension target that includes **/* and excludes **/*.jar from ${ExternalComponent-class.dir}/${extensionClassFolder}. Now the problem is I don't know whether the buildserver will handle these files correctly. If it works, great, but if not then we will need to figure out how to patch the compiler so that the resources get included into the APK file.

Regards,
Evan
Reply all
Reply to author
Forward
0 new messages