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

    Feedback for the Seabass

    Scheduled Pinned Locked Moved App Development
    44 Posts 7 Posters 8.5k Views 3 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.
      • mikhaelM Offline
        mikhael
        last edited by

        Hi everyone!

        It's almost Christmas time, New Year is coming, and it means holidays and maybe some spare time for developers to create new awesome apps for UBports... and that's where the Seabass might come in handy 🙂

        The next release is going to provide an ability to create new apps for UBports from within the Seabass. Hopefully that means building apps right on your phone/tablet more easily.

        So if you happen to have a use case for a mobile/convergent dev environment to build UBports apps and you have a device that supports Libertine, I'd be grateful for your suggestions and feedback!

        For now there is a beta version available for testing.
        It has a new menu entry called "New project..." in the file list:

        New menu entry

        It leads to the project settings page:

        New Project page

        Here you can specify all the options supported by Clickable and create a new app.

        There are a few limitations for now:

        • Libertine support is required
        • Creating a Libertine container (during the first run of clickable) might take a while
        • Seabass now uses a pre-release version of clickable that might have a few breaking changes
        • it's only possible to create new projects inside ~/Documents and ~/Downloads directories (and any nested directories)

        Click package is available on Github: v1.0.0-beta-1

        K 1 Reply Last reply Reply Quote 1
        • K Online
          kugiigi @mikhael
          last edited by

          @mikhael This is looking great! Thank you for putting an effort on this.
          I however have problems with the libertine support on my Nexus 5. First of all, it takes like 6 hours creating a container, most likely my connection's fault. And then I get some errors around the part when clickable is being installed. I wasn't able to record the errors though, sorry. Perhaps you can consider other options for the container such as the on used the now unmaintained app OnTheRoad. This one has a compressed prebuilt container so container creation is really fast. I have no idea how complicated to this though 😅
          Anyway, I might try creating a libertine container again and see if it'll work.

          mikhaelM 1 Reply Last reply Reply Quote 0
          • mikhaelM Offline
            mikhael @kugiigi
            last edited by mikhael

            @kugiigi thank you for the feedback!

            This one has a compressed prebuilt container so container creation is really fast.

            Thank you! I'm thinking about such option because creating a container from scratch seems too unstable and requires too much time even on snapdragon 845. I'd better not imagine how long it would take for example on BQ e4.5 🙂

            And I like the way OnTheRoad solves the problem.

            And then I get some errors around the part when clickable is being installed

            Hm, I think it might had been broken for some time. v0.11.2 (currently in the store) should've solved container creation issues by upgrading python to v3.6.

            K 1 Reply Last reply Reply Quote 0
            • K Online
              kugiigi @mikhael
              last edited by

              @mikhael Oh wow, which UT device has 845?
              I'll be installing the beta version and try creating a container again and let you know 👍

              mikhaelM 1 Reply Last reply Reply Quote 0
              • mikhaelM Offline
                mikhael @kugiigi
                last edited by

                @kugiigi thank you! It's Poco F1

                K 1 Reply Last reply Reply Quote 0
                • K Online
                  kugiigi @mikhael
                  last edited by

                  @mikhael Oh, didnt know UT is already available for that phone. I though fxtec pro1 x is supposed to be the most powerful UT device 😄

                  I tried creating container again and luckily, it only took less than an hour this time. Maybe the server is happy today 😆 However, I still get the error at the end. It says that clickable is not found. Then I tried manually installing clickable in the container via the settings app. After I've done that, building an app just shows a blank build output.

                  mikhaelM 2 Replies Last reply Reply Quote 0
                  • mikhaelM Offline
                    mikhael @kugiigi
                    last edited by

                    @kugiigi thank you very much for trying the build!

                    Oh, didnt know UT is already available for that phone.

                    UT works pretty well on F1 aside from a few stability issues, even fingerprint sensor works 🙂

                    I still get the error at the end. It says that clickable is not found.

                    Hm, I think I need to improve logging here 🙂
                    If you have some time, could you please try "Update build container" button on the Settings page in Seabass? It will run a script to install the required version of "clickable"!

                    K 1 Reply Last reply Reply Quote 0
                    • K Online
                      kugiigi @mikhael
                      last edited by

                      @mikhael I tried that but I get an error.

                      proot warning: can't chdir("/opt/click......." in the guest rootfs: No such file or directory proot info: default working directory is now "/"

                      mikhaelM 1 Reply Last reply Reply Quote 0
                      • mikhaelM Offline
                        mikhael @kugiigi
                        last edited by

                        @kugiigi hm, that's ok, it's just a warning. Actual script output should follow that line. What's strange is that there is nothing else in the output...

                        K 1 Reply Last reply Reply Quote 0
                        • K Online
                          kugiigi @mikhael
                          last edited by

                          @mikhael Yes, nothing else after that.

                          1 Reply Last reply Reply Quote 0
                          • mikhaelM Offline
                            mikhael @kugiigi
                            last edited by

                            @kugiigi said in Feedback for the Seabass:

                            Then I tried manually installing clickable in the container via the settings app.

                            Hm, I've just realized that installing clickable using apt-get probably won't work, because Seabass tries to launch clickable using python3.6 while clickable installed with apt relies on python3.5.

                            It should be possible to install required version with libertine-launch -i seabass2-build python3.6 -m pip install --user --upgrade git+https://gitlab.com/clickable/clickable.git@subcommands-reduced

                            1 Reply Last reply Reply Quote 0
                            • mikhaelM Offline
                              mikhael
                              last edited by mikhael

                              Thanks everyone for trying the beta!

                              So far it seems that creating and building projects doesn't work on Nexus 5 or (maybe) on a subset of devices including Nexus 5. Unfortunately, I don't have a Nexus 5 so I can't investigate the issue further.

                              I can tell though that the issue doesn't depend on architecture (arm64/armhf) or OTA-version, but seems to be more device-specific.
                              To summarize: at least Nexus 5 seems to be in a list of devices that doesn't support seabass+clickable for now (which is a pity because it's one of a few devices that support connecting external displays). Poco F1 and Xperia X seems to work fine.

                              So, if you've tried the beta on any device other then Nexus 5 and creating projects from within the Seabass doesn't work, I'd be grateful for any information about your device! 🙂

                              K 1 Reply Last reply Reply Quote 0
                              • K Online
                                kugiigi @mikhael
                                last edited by

                                @mikhael Oh that's sad. I tried your command and the build output just stayed blank. Before the command, it just says that clickable wasn't found and environment variable wasn't set.

                                mikhaelM 1 Reply Last reply Reply Quote 0
                                • mikhaelM Offline
                                  mikhael @kugiigi
                                  last edited by mikhael

                                  @kugiigi thank you for the feedback!
                                  For some reason Seabass can't execute libertine-launch on Nexus 5, although libertine-launch works fine from Terminal. The problem could be somewhere in between seabass, pyotherside, libertine-launch python script and proot (used by libertine-launch), but unfortunately for now i don't know what exactly goes wrong.

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