Merge "Add a flag to control prevent sdk-library be an application" into main