package com.macoscope.ketchuplunch.model.login

import android.content.Context
import com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential
import com.google.api.client.util.ExponentialBackOff

open class GoogleCredentialWrapper(val context: Context) {

    private val scopes: List<String> = listOf("https://www.googleapis.com/auth/spreadsheets")

    val credential: GoogleAccountCredential = GoogleAccountCredential.usingOAuth2(
            context.applicationContext,
            scopes).setBackOff(ExponentialBackOff());

    fun setSelectedAccountName(accountName: String) {
        credential.selectedAccountName = accountName
    }
}

package com.macoscope.ketchuplunch.model.login

import android.content.Context
import com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential
import com.google.api.client.util.ExponentialBackOff

open class GoogleCredentialWrapper(val context: Context) {

    private val scopes: List<String> = listOf("https://www.googleapis.com/auth/spreadsheets")

    val credential: GoogleAccountCredential = GoogleAccountCredential.usingOAuth2(
            context.applicationContext,
            scopes).setBackOff(ExponentialBackOff());

    open fun setSelectedAccountName(accountName: String) {
        credential.selectedAccountName = accountName
    }
}

Add open modifier to getSelectedAccountName method
[Login] Add open modifier to getSelectedAccountName method

macoscope/KetchupLunch,macoscope/KetchupLunch