Coder Social home page Coder Social logo

Bind "androidx.credentials" about androidx HOT 16 CLOSED

Kebechet avatar Kebechet commented on September 22, 2024 7
Bind "androidx.credentials"

from androidx.

Comments (16)

moljac avatar moljac commented on September 22, 2024 2

Happy New Year

Finished bindings

https://www.nuget.org/packages?q=androidx.credentials

... together with few more...

closing this issue

from androidx.

moljac avatar moljac commented on September 22, 2024 1

thank you for the info.

You are welcome.

So what is the current plan ?

Don't know. I have to make it.

You will work on it but it will take much longer ?

Really don't know.

Or are you going to postpone it because of the new dependency ?

Postpone - yes, but for how long. I don't know. I will do my best to be ASAP.

from androidx.

moljac avatar moljac commented on September 22, 2024 1

In progress:

#823

#828

These bindings were hell on earth. 2 packages 3 PRs and still not done.

from androidx.

moljac avatar moljac commented on September 22, 2024 1

I'm unable to extend AndroidX.Credentials.Provider.CredentialProviderService using the current 1.2.0 release in nuget.

It was not surfaced. I need to check.

Not sure if I'm doing something wrong or if that falls under 'still not done' since androidx.credentials.provider.CredentialProviderService is available in a native java project.

Notes:

build (class-parse errors):

obj/Debug/net6.0-android/api.xml.class-parse : warning BG8605: The Java type 'android.service.credentials.CredentialProviderService' could not be found (are you missing a Java reference jar/aar or a Java binding library NuGet?) [/Users/Shared/Projects/d/X/AX/mu-20231212-credentials/generated/androidx.credentials.credentials/androidx.credentials.credentials.csproj::TargetFramework=net6.0-android]
/usr/local/share/dotnet/packs/Microsoft.Android.Sdk.Darwin/32.0.509/tools/Xamarin.Android.Bindings.ClassParse.targets(36,5): obj/Debug/net6.0-android/api.xml.class-parse warning BG8605: The Java type 'android.service.credentials.CredentialProviderService' could not be found (are you missing a Java reference jar/aar or a Java binding library NuGet?) [/Users/Shared/Projects/d/X/AX/mu-20231212-credentials/generated/androidx.credentials.credentials/androidx.credentials.credentials.csproj::TargetFramework=net6.0-android]

android.service.credentials.CredentialProviderService is API 34.

api.xml.class-parse

    <class
      abstract="true"
      deprecated="not deprecated"
      jni-extends="Landroid/service/credentials/CredentialProviderService;"
      extends="android.service.credentials.CredentialProviderService"
      extends-generic-aware="android.service.credentials.CredentialProviderService"
      final="false"
      name="CredentialProviderService"
      jni-signature="Landroidx/credentials/provider/CredentialProviderService;"
      source-file-name="CredentialProviderService.kt"
      static="false"
      visibility="public">
</class>

from androidx.

moljac avatar moljac commented on September 22, 2024

@Kebechet

Thanks for the feedback, but seems like it will need some new dependency packages from com.google.android.libraries.*. So, it is not trivial as I thought.

from androidx.

Kebechet avatar Kebechet commented on September 22, 2024

Hello @moljac
thank you for the info. So what is the current plan ? You will work on it but it will take much longer ? Or are you going to postpone it because of the new dependency ?

from androidx.

mpbw2 avatar mpbw2 commented on September 22, 2024

I'm unable to extend AndroidX.Credentials.Provider.CredentialProviderService using the current 1.2.0 release in nuget. Not sure if I'm doing something wrong or if that falls under 'still not done' since androidx.credentials.provider.CredentialProviderService is available in a native java project.

from androidx.

mpbw2 avatar mpbw2 commented on September 22, 2024

@moljac Should the updates be live by now? There doesn't appear to be any movement on nuget.org and re-downloading yields the same result (CredentialProviderService still missing)

from androidx.

Kebechet avatar Kebechet commented on September 22, 2024

Ticket: #840

Hello @moljac I am trying to wrap androidx.credentials into separate nuget to simplify the usage but in methods
_credentialManager.ClearCredentialState or _credentialManager.ClearCredentialStateAsync I get a runtime exception:

[CredManProvService] In CredentialProviderFrameworkImpl onClearCredential
[Binder] Caught a RuntimeException from the binder stub implementation.
[Binder] java.lang.NullPointerException: Parameter specified as non-null is null: method androidx.credentials.CredentialProviderFrameworkImpl$onClearCredential$outcome$1.onResult, parameter response
[Binder] 	at androidx.credentials.CredentialProviderFrameworkImpl$onClearCredential$outcome$1.onResult(Unknown Source:3)
[Binder] 	at androidx.credentials.CredentialProviderFrameworkImpl$onClearCredential$outcome$1.onResult(CredentialProviderFrameworkImpl.kt:367)
[Binder] 	at android.credentials.CredentialManager$ClearCredentialStateTransport.onSuccess(CredentialManager.java:775)
[Binder] 	at android.credentials.IClearCredentialStateCallback$Stub.onTransact(IClearCredentialStateCallback.java:95)
[Binder] 	at android.os.Binder.execTransactInternal(Binder.java:1363)
[Binder] 	at android.os.Binder.execTransact(Binder.java:1304)

Is it problem in my code or it is possible that there is something with the binding ?

from androidx.

moljac avatar moljac commented on September 22, 2024

@Kebechet Not sure. I am not expert for ALL APIs in AX and GPS-FB-MLKit.

I would need a repro sample in order to make statement.

from androidx.

Kebechet avatar Kebechet commented on September 22, 2024

Thanks for the reply. The error is in the android library itself. More info in the ticket:
#840

from androidx.

vladPanasiuk avatar vladPanasiuk commented on September 22, 2024

Any news? AndroidX.Credentials.Provider.CredentialProviderService is still unavailable in latest nuget

from androidx.

moljac avatar moljac commented on September 22, 2024

Any news? AndroidX.Credentials.Provider.CredentialProviderService is still unavailable in latest nuget

It is available, but it is available in API34 and abstract, so you need to inherit from it and implement what is necesssary.

from androidx.

vladPanasiuk avatar vladPanasiuk commented on September 22, 2024

image
@moljac As you can see it is still unavailable. My target api is 34.

from androidx.

vladPanasiuk avatar vladPanasiuk commented on September 22, 2024

@moljac
Can you confirm that it is bug in Nuget package or my project is wrong configured?

from androidx.

vladPanasiuk avatar vladPanasiuk commented on September 22, 2024

@moljac still waiting answer

from androidx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.