Skip to content

Commit

Permalink
fix(#90): maximize lib compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
matinzd committed Jun 29, 2024
1 parent 8639fc9 commit dcf5067
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package dev.matinzd.healthconnect.permissions

import androidx.activity.ComponentActivity
import androidx.activity.result.ActivityResultLauncher
import androidx.health.connect.client.PermissionController
import com.facebook.react.ReactActivity
Expand All @@ -15,7 +16,7 @@ object HealthConnectPermissionDelegate {
private val coroutineScope = CoroutineScope(Dispatchers.IO)

fun setPermissionDelegate(
activity: ReactActivity,
activity: ComponentActivity,
providerPackageName: String = "com.google.android.apps.healthdata"
) {
val contract = PermissionController.createRequestPermissionResultContract(providerPackageName)
Expand Down

0 comments on commit dcf5067

Please sign in to comment.