chore: suppress unused parameter warnings

This commit is contained in:
andrekir 2023-06-03 10:01:38 -03:00
parent fc64167f59
commit 883769922d
3 changed files with 7 additions and 7 deletions

View file

@ -1,14 +1,12 @@
package com.geeksville.mesh.analytics
import android.content.Context
import android.os.Bundle
import com.geeksville.mesh.android.AppPrefs
import com.geeksville.mesh.android.GeeksvilleApplication
import com.geeksville.mesh.android.Logging
/**
* Implement our analytics API using firebase analtics
* Implement our analytics API using Firebase Analytics
*/
@Suppress("UNUSED_PARAMETER")
class GoogleAnalytics(context: Context) : AnalyticsProvider, Logging {
init {
@ -36,7 +34,7 @@ class GoogleAnalytics(context: Context) : AnalyticsProvider, Logging {
}
/**
* Send a google analyics screen view event
* Send a google analytics screen view event
*/
override fun sendScreenView(name: String) {
}

View file

@ -10,6 +10,7 @@ import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.edit
import com.geeksville.mesh.analytics.AnalyticsProvider
@Suppress("UNUSED_PARAMETER")
fun isGooglePlayAvailable(context: Context): Boolean = false
open class GeeksvilleApplication : Application(), Logging {
@ -72,6 +73,7 @@ open class GeeksvilleApplication : Application(), Logging {
analytics.setEnabled(value && !isInTestLab) // Never do analytics in the test lab
}
@Suppress("UNUSED_PARAMETER")
fun askToRate(activity: AppCompatActivity) {
// do nothing
}