UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    I think is possible develop app in ubuntu touch with kotlin?

    Scheduled Pinned Locked Moved App Development
    6 Posts 3 Posters 968 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • A Offline
        alvaroc127
        last edited by

        Hello, everyone, this is a idea !!!.
        my first impression after reading, Kotlin navite references, [https://kotlinlang.org/docs/reference/native-overview.html](link url), I think it's possible, but I do not have great known do it. In my head, opening development of app's for ubuntu touch with, differents languages ​​is a great oportunity, is this idea alone, but i want known, it is possible?

        1 Reply Last reply Reply Quote 1
        • arubislanderA Offline
          arubislander
          last edited by

          I am guessing that qt or qml bindings, or better said, the lack thereof, would be an issue that could hamper wholesale uptake.

          πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
          Happily running Ubuntu Touch
          Google Pixel 3a (20.04 DEV)
          JingPad (24.04 preview)
          Meizu Pro 5 (16.04 DEV)

          A 1 Reply Last reply Reply Quote 0
          • A Offline
            alvaroc127 @arubislander
            last edited by

            @arubislander, in this moment, i think, if bind we the kernel with Kotlin compiler, it open two forms of develop(see Andriod), in android, the developers, evaluated what is the best for your application's, use SDK o NDK , in the case of ubuntu touch, in my opinion is equal, exits case in the need a complete tools for apps. that can only be given to me the NDK, this is alone example in general.

            arubislanderA 1 Reply Last reply Reply Quote 0
            • arubislanderA Offline
              arubislander @alvaroc127
              last edited by arubislander

              @alvaroc127 But what framework would be available for the UI of an app written in Kotlin?

              For instance. We have been able to write apps in Go and Rust for Ubuntu Touch for a while now. A big part of what makes this possible is that QT bindings have been written for these two languages.

              It would seem that there are only GTK bindings for Kotlin at the moment.

              πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
              Happily running Ubuntu Touch
              Google Pixel 3a (20.04 DEV)
              JingPad (24.04 preview)
              Meizu Pro 5 (16.04 DEV)

              1 Reply Last reply Reply Quote 1
              • dobeyD Offline
                dobey
                last edited by

                In short, no, it's not really sensible to write apps in Kotlin for UT.

                It makes sense for Android apps, because Android development platform is entirely based around Java, which Kotlin compiles into.

                If you must use Kotlin, the Kotlin/Native should be usable, but you would still need to write C++ to call into the Kotlin/Native library, and to drive the UI, which should be implemented in QML.

                1 Reply Last reply Reply Quote 2
                • A Offline
                  alvaroc127
                  last edited by alvaroc127

                  @arubislander @dobey ,mmm ok, i belive understand, it is a problem in the frontend and backend?, example: in the best of case: i could use kotlin/kotlin native, but the result is a console app? or, in a develop of three lenguages in the case kotlin,c++ and qml. in the ultimate case, its clear, this is more work, in other words it possible, but in this moment not..?

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post