mit-cml/appinventor-sources — pull request #136 by themadrobot (2014-10-08 21:06:10+00:00)
Title: Native library fix

Currently the code for include Native Libraries does not work. This pull request fixes the issue.

Here is an example how to added the native libriaries

1) In the file appinventor\buildserver\build.xml add the native library

2) In the component file appinventor\components\src\com\google\appinventor\components\runtime\mrSphero.java add the @UsesNativeLibraries annotations as shown below

@DesignerComponent(version = 1,
description = "Component to control Sphero",
category = ComponentCategory.USERINTERFACE,
nonVisible = true,
iconName = "images/soundRecorder.png")
@SimpleObject
@UsesPermissions(permissionNames = "android.permission.BLUETOOTH_ADMIN, android.permission.BLUETOOTH")
@UsesLibraries(libraries = "RobotLibrary.jar")
@UsesNativeLibraries(libraries = "libachievement_manager.so" ,
v7aLibraries = "libachievement_manager.so")
public class mrSphero extends AndroidNonvisibleComponent