Overwrite functions from offline api

Hello, i need your help, for know how to overwrite one callback from readMixedCollection

"../10.0.510-1.4.2-2/app/js/offline/api/read-mixed-collection.js"

In specific the callback is localSyncSuccess()

Also i need rewrite function _localRead() locating into the "../10.0.510-1.4.2-2/app/js/offline/api/read-recents-collection.js"

Somebody know how to make it?

Thanks for yours responses

  • Matt Marum and

    Eugene Bychkov in this section  https://support.sugarcrm.com/Documentation/Mobile_Solutions/Mobile_SDK/Mobile_SDK_Developer_Guide/#Development_Workflow 

    find the next words:

    "It is important to note that mobile app developers must not touch any code in the SDK folder specified by the $SUGAR_MOBILE_SDK_HOME environment variable. Custom code lives outside, in your custom app folder."

    But i need your help for workaround the before espoused

    Kind regards from Mexico.

  •    Hey!
       Yes, your custom code is supposed to live separately from SDK code. This is a good development practice indeed

       However, if you find yourself in situation when you absolutely have to make changes inside SDK code to implement your desired functionality you can go ahead and modify SDK code.

       However be aware that by doing this you can introduce errors and break something. So do it carefully. Also be aware that future releases of SDK may become incompatible with your changes

    P.S. Do your best to find a way to write custom code w/o modifying SDK  - this is my recommendation