warting/permissions-ui

Is this library alive and maintIable?

lectricas opened this issue · 3 comments

@warting
Hi! Nice lib you have. Is this project neglected or I can rely on it?
Just checking.
Hope you answer asap. Sorry to messed up your issues here.

Hi, I'm using it myself in various apps and maintaining it due to lack of official simple APIs for requesting background location permissions.

Thanks!
UPD:
Unable to run it, has this error, although cloning your project and running the sample does work.

But when I add Main composable from your project into mine, I got this:

Caused by: kotlin.UninitializedPropertyAccessException: lateinit property instance has not been initialized
                                                                                                    	at dev.marcelpinto.permissionktx.PermissionProvider$Companion.getInstance(PermissionProvider.kt:48)

Can send you a full stack trace if necessary.

So, I found the culprit of the but.

Adding this to manifest

<provider
            android:name="androidx.startup.InitializationProvider"
            android:authorities="${applicationId}.androidx-startup"
            tools:node="remove" />

@warting Any ideas how to fix this?

UPD:

 <provider
    android:name="androidx.startup.InitializationProvider"
    android:authorities="${applicationId}.androidx-startup"
    android:exported="false"
    tools:node="merge">
    <!-- If you are using androidx.startup to initialize other components -->
    <meta-data
        android:name="androidx.work.WorkManagerInitializer"
        android:value="androidx.startup"
        tools:node="remove" />
 </provider>

remove only your initializer because permissionkts uses this setting for its own purpose.

Thread can be closed.