Skip to content

Commit bdc263b

Browse files
committed
chore: minor code quality improvements
1 parent 9037f2e commit bdc263b

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

android/src/main/java/com/rngooglemapsplus/LocationHandler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ private const val INTERVAL_DEFAULT = 600000L
2727
private const val MIN_UPDATE_INTERVAL = 3600000L
2828

2929
class LocationHandler(
30-
val context: ReactContext,
30+
private val context: ReactContext,
3131
) : LocationSource {
3232
private val fusedLocationClientProviderClient: FusedLocationProviderClient =
3333
LocationServices.getFusedLocationProviderClient(context)

android/src/main/java/com/rngooglemapsplus/MapMarkerBuilder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import java.util.concurrent.ConcurrentHashMap
4242
import kotlin.coroutines.cancellation.CancellationException
4343

4444
class MapMarkerBuilder(
45-
val context: ThemedReactContext,
45+
private val context: ThemedReactContext,
4646
private val mapErrorHandler: MapErrorHandler,
4747
private val scope: CoroutineScope = CoroutineScope(SupervisorJob() + Dispatchers.Default),
4848
) {

android/src/main/java/com/rngooglemapsplus/PlayServicesHandler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import com.google.android.gms.common.ConnectionResult
55
import com.google.android.gms.common.GoogleApiAvailability
66

77
class PlayServicesHandler(
8-
val context: ReactContext,
8+
private val context: ReactContext,
99
) {
1010
fun playServicesAvailability(): Int {
1111
val availability = GoogleApiAvailability.getInstance()

android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import com.rngooglemapsplus.extensions.toSize
2222

2323
@DoNotStrip
2424
class RNGoogleMapsPlusView(
25-
val context: ThemedReactContext,
25+
private val context: ThemedReactContext,
2626
) : HybridRNGoogleMapsPlusViewSpec() {
2727
private val mapErrorHandler = MapErrorHandler()
2828

0 commit comments

Comments
 (0)