Giter VIP home page Giter VIP logo

Comments (6)

ChakshuGautam avatar ChakshuGautam commented on August 20, 2024 1

I would be more than happy to contribute considering I am using this so much. A bootstrap should be really helpful. GSON is the most popular library for Android. Can be used for Java 7 as well.

from fusionauth-java-client.

robotdan avatar robotdan commented on August 20, 2024 1

Great, I'll add some links to this issue once I get it set up for you to mess with .

from fusionauth-java-client.

robotdan avatar robotdan commented on August 20, 2024

In theory we could build a Java 7 version of the client, or probably better named an Android client.

The ZonedDateTime object is serialized to a long - milliseconds in UTC. So you can make that field type anything you want as long as when you send it across the wire it is milliseconds in UTC.

https://fusionauth.io/docs/v1/tech/reference/data-types - see Instants.

If you're interested in contributing to build an Android client, I can bootstrap it let you hack on it. What does Android provide for JSON support? The current java client uses Jackson heavily.

from fusionauth-java-client.

ChakshuGautam avatar ChakshuGautam commented on August 20, 2024

Let me know when you create the repo. I was free for a couple of days next weekend and it would great working on this.

from fusionauth-java-client.

robotdan avatar robotdan commented on August 20, 2024

I've started a stub repo.

https://github.com/FusionAuth/fusionauth-android-client

See if you can follow the instructions from the client builder repo to get started.
https://github.com/FusionAuth/fusionauth-client-builder

Here is the template for the Android client:
https://github.com/FusionAuth/fusionauth-client-builder/blob/master/src/main/client/android.client.ftl

When you run the build command sb build-android it will use that template to build the client library.
https://github.com/FusionAuth/fusionauth-android-client/blob/master/src/main/java/io/fusionauth/client/FusionAuthClient.java

You can start by cloning the fusionauth-client-builder and fusionauth-android-client repos and then start hacking, and then feel free to submit a PR once you've got something working.

The Android template is just a copy from Java, so you'll essentially just need to remove any Java 8 features such as lambdas. I don't know much about the Android SDK, so if you can't use Jackson then you'll need to rip that and replace it with another JSON library.

I would say to start, just copy over a minimal set of domain objects to get it working. (such as User, Application etc). We are working on a way to build out the domain from a JSON DSL, so once that is ready we can use that to build out the Android domain objects so you don't have to do it manually.

You can ask any questions you have here, or feel free to join the slack channel as well. I may have some time to help out as well in the next week or two. Thank you for being willing to contribute!

from fusionauth-java-client.

robotdan avatar robotdan commented on August 20, 2024

Closing, moved to feature. FusionAuth/fusionauth-issues#156

from fusionauth-java-client.

Related Issues (11)

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.