Clean up logic to build native widget.
Clean up logic to build native widget.

PetroccoCo/Lock.iOS-OSX,cotsog/Lock.iOS-OSX,Mubaloo/Lock.iOS-OSX,cotsog/Lock.iOS-OSX,cotsog/Lock.iOS-OSX,PetroccoCo/Lock.iOS-OSX