Secure and robust mobile SDK empowering smart insulin therapy