This file contains hidden or 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
package com.sofakingforever.analytics | |
// This code demonstrates how you could (should) decouple analytics libraries | |
// (or anything else) from your business logic code, | |
// effectively allowing you to add & remove analytics services on-the-fly. | |
// https://medium.com/@nadavfima/how-to-build-better-analytics-with-kotlin-60ab50ce25ac | |
class Analytics(private vararg val dispatchers: AnalyticsDispatcher) { |
This file contains hidden or 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
package com.sofaking.moonworshipper.view | |
import android.content.Context | |
import android.graphics.Canvas | |
import android.graphics.Paint | |
import android.graphics.RectF | |
import android.util.AttributeSet | |
import android.view.View | |
import java.util.* | |
import java.util.concurrent.Executors |