android - Adding device-specific files as a codenameone native lib -
i want add native code specific device native android libs.
so, in other words, have folder full of *.so
files:
i have seperate cn1lib app native code contianing several libs. example app showes folder being added alongside normal .jar libs, did same codenameone:
the sofolder
containing so
files (named correctly per example android app).
i build cn1lib, , add main project under lib folder, works. however, when inspect codenameone apk , compare example android app, .so files sit in different locations. example app has under lib
folder in root, , codenameone app has under assets
folder. causes device requires these files not able find them.
the example app being on left, , codenameone app being on right.
is there way so
folder under lib
folder in apk file using codenameone?
assistance appreciated.
if don't want go through trouble of creating aar there semi-solution.
you create normal android library project, , after building it, manually open archive , drop lib folder in there. add jar file native android dependency.
when build returns codenameone, folder should sitting in apk file :)
the correct way aar approach, not straight-forward once-off solution.
Comments
Post a Comment