I implemented Android Leaderboards: https://developers.google.com/games/services/android/leaderboards
Before I was using leaderboards with BaseGameUtils, and it didn't force the user to install Google Play Games. But now after migrating to the new leaderboards, it prompts a dialog forcing to install Google Play Games app in the device for displaying the leaderboard.
This is the simple code for displaying leaderboards:
private void showLeaderboard() {
Games.getLeaderboardsClient(this, GoogleSignIn.getLastSignedInAccount(this))
.getLeaderboardIntent(getString(R.string.leaderboard_id))
.addOnSuccessListener(new OnSuccessListener<Intent>() {
@Override
public void onSuccess(Intent intent) {
startActivityForResult(intent, RC_LEADERBOARD_UI);
}
});
}