3 Replies Latest reply on Feb 10, 2014 5:40 AM by Kutir Mobility

    Rhodes without RhoConnectClient

    Pablo Ruiz

      Hello,

       

      I am trying to create a Rhodes 4.0.0 application that will be offline. This means I do not need to use RhoConnectClient, but I want to make use of the local database through Rhom API (without the synchronization functionality).

       

      I have created a new Rhodes application using the command "rhodes app app_name" and the only changes I have made by now are:

      - Removing the line 'extensions: ["rhoconnect-client"]' from my build.yml file.

      - Commenting the line "Rho::RhoConnectClient.setNotification('*', "/app/Settings/sync_notify", '')" in application.rb.


      However, when I launch the application in RhoSimulator (through command "rake run:android:rhosmiulator") I can see the following messages in rholog.txt file.

       

      ...

      I 02/03/2014 09:27:37:699 00001c60              RhoRuby| require_compiled: RhoNativeTabbarApi

      I 02/03/2014 09:27:37:740 00001c60              RhoRuby| require_compiled: RhoNotificationApi

      I 02/03/2014 09:27:37:785 00001c60              RhoRuby| require_compiled: RhoNativeMenubarApi

      E 02/03/2014 09:27:37:816 00001c60              RhoRuby| require_compiled: error: can not find RhoConnectClient

      W 02/03/2014 09:27:37:841 00001c60          CExtManager| requireRubyFile cannot find file: RhoConnectClient

      I 02/03/2014 09:27:37:855 00001c60 RhoconnectClientManager| setRhoconnectClientImpl ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      I 02/03/2014 09:27:37:876 00001c60              RhoRuby| require_compiled: digest

      I 02/03/2014 09:27:37:890 00001c60              RhoRuby| require_compiled: digest.so

      I 02/03/2014 09:27:37:915 00001c60              RhoRuby| require_compiled: rhoframework

      ...

       

      It seems the framework is still trying to add RhoConnectClient extension to the application, even when I removed it from build.yml file. Is there a possibility to completely remove RhoConnectClient from a Rhodes applicacion?

       

      Regards,

      Pablo Ruiz