The previous documentation is still valid.Now you will find some more actions to be able to customize some of the features:
You now have the ability to remove features on the fly.For example removing 'Settings' tab after the plugin is initialized, or any other tab.The add feature is not working even in the default build. But you can always restart the plugin with new features by calling the Destroy function and Init again.Also added the feature to programatically change some options on each tab.
For the 'Console' tab now you can disable the Javascript execution, for example, besides changing other options.For the 'Info' tab you can add or remove content programatically as well.
Currently only 'Console' and 'Info' have advanced features but check this doc for more options on the other tabs:https://github.com/liriliri/eruda/blob/master/doc/TOOL_API.mdFinally, also added a snippet on the 'SnippetToStartWithoutComponent' action to show how you can initialize the component without adding the module as a dependecy of you apk:
This is helpfull to avoid sending the app as a dependency on your APK, and also to avoid release it to PRD in case you want to troubleshoot something.
When using it in PRD take extreme care, this plugin give access to your session cookies in the 'Resource' tab or on the 'Network' tab:
This is a information that you would not allow people to have in a PRD APK as they can't debug it in the chrome console.This info can give attackers a way tohave a valid session in your app and try to tamper with your data.Tha is why on the Snippet we also have a way to disable all tabs that aren't needed and disable the ability to run Javascript using the console.
This component is based on this github project: https://github.com/liriliri/erudaAll the functions from their documentation should work however only a few were added to the OutSystems component.
To use it on your mobile app simply call the ErudaInit action, you can use the sample app as a guide:
If you only need a specific feature among the available features you can remove the scripts you don't use to adapt it to your needs:
The availble featrures are:
Those 3 plugins are also added in the code, but as they weren't working properly they were deactivated:
You can also leverage some of the actions in OutSystems to tweak the look and feel, programatically change the position of the icon that opens the console, change the size and etc:
The Init function also allow you to define which features you want to enable, and some visual elements:
Those settings can also be changed on the the console itslef under the settings tab: