Starting working on Android app in java, and have no clue how to iterate things correctly.
I have Google sign in object:
GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.requestServerAuthCode(this.getString(R.string.auth_client_id))
.requestScopes(scopes)
.requestEmail()
.requestProfile()
.build();
And array of scopes:
// split scope params
String[] scopes = scope.split("\\+|_|__");
List<String> list = new ArrayList<>();
for (int i = 0; i < scopes.length; i++) {
list.add(new Scope(scopes[i]));
}
Ho to iterate ".requestScopes(scopes)" in Google sign in options object, because .requestScopes() is not allowing me to enter array value, only string is allowed.
Your help will help me to save additional half of the day probably.