Rush • A new and improved way of building extensions

:sparkles: Rush v1.2.4


What’s new :eyes:


  • Upgraded Kotlin compiler and standard library to version 1.5.32.

  • Upgraded Android platform SDK to version 31 (Android 12).

  • Added the ability to define the data required by the create command using CLI args. For example,

    rush create awesome-extension --lang Kotlin --org com.example
    
  • Added the ability to set custom data directory using the RUSH_DATA_DIR environment variable.

    RUSH_DATA_DIR="D:/rush/data-dir" rush build
    

Improvements :triangular_ruler:


  • You can now use W and S keys along with arrow keys to select the language when creating a new extension. This is especially helpful in terminals where Rush fails to read the arrow keys don’t work.

  • Added source JARs for App Inventor components, annotations, and Kotlin standard library. This means you will now be able to view source code and Javadocs of the above libraries in your IDE.

Bug fixes :beetle:


  • Fixed the issue where extensions containing no blocks would cause compilation errors when exporting the app.

  • Fixed the issue that caused the unmappable character for encoding error in some cases when building the extension. [ref1, ref2].


To upgrade to Rush version 1.2.4 simply run rush upgrade. If you don’t have Rush already installed check out the installation instruction mentioned in the first post.

Best,
Shreyash

11 Likes

That’s a great new!

Loved this one…

I’m getting build error! Idk why?
image

upgrade to 1.2.4 worked fine on my Linux installation

I got the same error. :thinking: in new version.

@nikzdevz, @Nami_Chand
I’m investigating the issue. Thanks for your patience.

2 Likes

:sparkles: Rush v1.2.5 HOTFIX


Bug fixes :beetle:


  • Fixed the bug that caused the builds to fail after upgrading Rush to version 1.2.4.

To upgrade to Rush version 1.2.5 simply run rush upgrade. If you don’t have Rush already installed check out the installation instruction mentioned in the first post.

Best,
Shreyash

6 Likes

that’s wicked fast…

Thanks alot for this awesome update. Really amazing.

Hi, I tried to use your CLI to build my extension and use it in Kodular however, when I tried to compile the app, it failed stating that the class does not exist

Is there anything wrong on my end because I am sure that my folders are placed correctly

Update - I tried to compile the app with the starter template function but it gives me the same error as well

Hi, can you rebuild your extension with the -r flag (rush build -r) and try again?

Hi, I have updated my Rush verison to 1.2.5 and I have received another error. Java runtime version too high? I think I am using a wrong version of JDK perhaps?

Java JDK version 8 is needed

1 Like


I have jdk 11 installed but I have jdk 8 as well

In Environment Variables change JAVA_HOME to point to the directory of Java 8 version usually is in the form of C:\Program Files\Java\jdk1.8.0_xxx

1 Like

Alright,

  1. I updated Rush to 1.2.5
  2. Change jdk to 8 (OpenJDK)
  3. Build with rush build -r

However I am still getting the error


EDIT!!! FIXED!!! DO NOT USE OPENJDK, IT WILL NOT WORK!

That’s interesting. :thinking:
Technically, extensions built with any JDK should work. Will look into it.

1 Like

Really??? I use it i dont have any problem.

Hi, sorry for another question… I am trying to develop another extension for my app however when tried to compile a project with the two extensions I created, my build failed with a apkbuilder error. The first extension has external dependencies but the second extension does not have any.

When I compile a project with either one only, it compiles fine.

Source codes:

How do I go about to solve this problem? Thanks in advance!

Can you share the complete error log that you get? Also, do share a sample AIA containing both the extensions so I can try it out.