package net.squanchy.support.debug

import android.content.Context
import android.content.SharedPreferences

internal class OnboardingResetter(context: Context) {

    companion object {

        private const val ONBOARDING_PREFERENCES_NAME = "onboarding"
    }

    private val preferences: SharedPreferences = context.getSharedPreferences(ONBOARDING_PREFERENCES_NAME, Context.MODE_PRIVATE)

    fun resetOnboarding() {
        preferences.edit()
                .clear()
                .apply()
    }
}

package net.squanchy.support.debug

import android.content.Context

internal class OnboardingResetter(context: Context) {

    companion object {

        private const val ONBOARDING_PREFERENCES_NAME = "onboarding"
    }

    private val preferences = context.getSharedPreferences(ONBOARDING_PREFERENCES_NAME, Context.MODE_PRIVATE)

    fun resetOnboarding() {
        preferences.edit()
                .clear()
                .apply()
    }
}

Remove explicit type from property declaration
Remove explicit type from property declaration

squanchy-dev/squanchy-android,squanchy-dev/squanchy-android,squanchy-dev/squanchy-android