Take the constants out of the class to made it compatible with the latest SDK

Please update the pub version with these changes.