This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Intent | |
import androidx.annotation.CallSuper | |
import androidx.appcompat.app.AppCompatActivity | |
import androidx.lifecycle.coroutineScope | |
import androidx.localbroadcastmanager.content.LocalBroadcastManager | |
import kotlinx.coroutines.CoroutineDispatcher | |
import kotlinx.coroutines.Dispatchers | |
import kotlinx.coroutines.delay | |
import kotlinx.coroutines.launch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum class RevealValue { | |
Hidden, | |
Revealed | |
} | |
class RevealState( | |
revealedWidth: Float, | |
positionalThreshold: (Float) -> Float = { | |
it.times(0.5f) | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.app.Activity | |
import android.content.Context | |
import com.android.billingclient.api.* | |
import com.wing.tree.n.back.training.domain.util.`is` | |
import com.wing.tree.n.back.training.presentation.constant.Sku | |
import timber.log.Timber | |
object BillingDelegateImpl : BillingDelegate { | |
private val consumableSkusList = listOf<String>() | |
private val skusList = listOf(Sku.REMOVE_ADS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.app.Activity | |
import android.content.Context | |
import com.android.billingclient.api.BillingClient | |
import com.android.billingclient.api.SkuDetails | |
interface BillingDelegate { | |
fun build(context: Context) | |
fun endConnection() | |
fun launchBillingFlow(activity: Activity, skuDetails: SkuDetails) | |
fun queryPurchasesAsync(skuType: String = BillingClient.SkuType.INAPP) |