Rhodes support pdf-writer extension for pdf related operations.
If you want to add any other ruby library, make sure that does not use any native code. And follow the steps available at Rhomobile | Ruby Native Extensions for adding pure ruby extensions.
Actually, you CAN import Ruby libraries that use native code, as well.
Two things (unrelated to native code) to watch out for:
- Ruby threads (not fully supported on Android)
- dependencies (you can find yourself in a big hall of mirrors, with an endless task of porting library after library...)
I wouldn't advise trying to import a big Ruby library with a lot of dependences when there is a ready alternative! But, when needed, it can be done, I adapted XMPP4R some time ago.
If you do, considering sharing it on GitHub or other open-source code-sharing site.
2 Replies
Hello Shivratan,
Rhodes support pdf-writer extension for pdf related operations.
If you want to add any other ruby library, make sure that does not use any native code. And follow the steps available at Rhomobile | Ruby Native Extensions for adding pure ruby extensions.
Thanks
Bhakta
Actually, you CAN import Ruby libraries that use native code, as well.
Two things (unrelated to native code) to watch out for:
- Ruby threads (not fully supported on Android)
- dependencies (you can find yourself in a big hall of mirrors, with an endless task of porting library after library...)
I wouldn't advise trying to import a big Ruby library with a lot of dependences when there is a ready alternative! But, when needed, it can be done, I adapted XMPP4R some time ago.
If you do, considering sharing it on GitHub or other open-source code-sharing site.