Kotlin

New post

Comments

3 comments

  • jcleblanc

    Hi ,

     

    Others in the community may have some some additional samples, but I just wanted to touch base from a Box perspective. Unfortunately we don't have any direct samples in Kotlin available. I also did a brief look through some of the community SDKs and didn't see any there. 

     

    With any luck someone in the community may have worked on these,

    Jon

    0
    Comment actions Permalink
  • TPark_RL

    Jon -

        Thanks for the reply.  Turns out, Android Studio does a decent job of converting the java example into Kotlin.  In fact, the only red items are everything box related, since I haven't figured out how to build or access the sdk yet.  I need better instructions than what are in the read.me file.  In the past I've let maven do the heavy lifting, but don't see in the gradle files yet how to tell it what it needs.  I'm very much a java novice, but history says I'll eventually figure it out.  I'll probably have to actually read the documentation.

                Tom

    0
    Comment actions Permalink
  • TPark_RL

         In case anyone is reading this and is as inept as I am, I did manage to gain access to the SDK by putting the gradle dependency in the proper location, not the place where it clearly says "Don't put your stuff here, use the app specific location."  

        The java to Kotlin auto conversion leaves a few variables that need !! or ? to handle the null issues, but otherwise does a pretty decent job.

        Why doesn't the example show downloading files?  Is this because I need to use the Kotlin DownloadManager?

         Tom

    0
    Comment actions Permalink

Please sign in to leave a comment.