Rush • A new and improved way of building extensions

Can We Compile Two Extension in One?

1 Like

A warning text :

 PS C:\Users\amd\Downloads\get-pkg> rush build
                      __
     _______  _______/ /_
    / ___/ / / / ___/ __ \
   / /  / /_/ (__  / / / /
  /_/   \__,_/____/_/ /_/

• Build initialized

┌ Checking project files
│ info Checking metadata file (rush.yml)
│ info Checking AndroidManifest.xml file
└ done
┌ Compiling sources
│ info Picked 1 source file
│ 
│ warn No declaration of any block annotation found
└ done
┌ Processing the extension
│ info Linking extension assets
│ info Generating DEX bytecode
└ done
┌ Finalizing the build
│ info Packing com.Shreya.getPkg.aix
└ done

• Build successful [2s 461ms] [1 warning]
PS C:\Users\amd\Downloads\get-pkg> 

here is aix file which not have any block inside
com.Shreya.getPkg.aix (4.5 KB)
here is aix file which have blocks inside
com.Shreya.getPkg.aix (4.6 KB)

logs for aix have blocks inside

PS C:\Users\amd\Downloads\get-pkg> rush build
                      __
     _______  _______/ /_
    / ___/ / / / ___/ __ \
   / /  / /_/ (__  / / / /
  /_/   \__,_/____/_/ /_/

• Build initialized

┌ Checking project files
│ info Checking metadata file (rush.yml)
│ info Checking AndroidManifest.xml file
└ done
┌ Compiling sources
│ info Picked 1 source file
└ done
┌ Processing the extension
│ info Linking extension assets
│ info Generating DEX bytecode
└ done
┌ Finalizing the build
│ info Packing com.Shreya.getPkg.aix
└ done

• Build successful [2s 428ms] 
PS C:\Users\amd\Downloads\get-pkg>

Just re-compile the aix file it’ll fixes the issue, As I already said above

Compiling two extensions in one will be possible with the next version, which I hope to release by the end of this month. Stay tuned.

6 Likes

We are waiting for the next update of aweseome Rush :heart:

3 Likes

If I want to use library in my project then how to do?

@AshishThakur

Status update – I’ve officially restarted working on Rush. The next release will ship with a bunch of new exciting features like automatic dependency resolution and support for multi-component extensions among others.

There’s no concrete ETA because it’s been months since I last touched the codebase, but I hope to get this release ready for beta testing by the end of this month. Stay tuned!

15 Likes

I am waiting for new update​:hugs:

1 Like

Feature request - Please add helper block feature using @Options and @OptionList annotations

3 Likes

@Shreyash what needs to be done to add these, see also

Taifun

1 Like

Thats pretty cool. I would recommend using mason for generating project template. This way you would be able to separate template logic.

1 Like

Rush does not support the helper blocks as of now. I haven’t started working on it yet since there’s already a lot on my plate, but they will be available as a part of the next release. If someone’s willing to contribute I’d really appreciate that. :pray:

3 Likes

Hello @Taifun
Like i told before rush doesn’t support that , there are problem to import this :point_down:

import com.google.appinventor.components.common.OptionList;
import com.google.appinventor.components.common.Default;

We appreciate your effort, keep it up :heart:

3 Likes

Hi, I am new to extension creation.
I am facing a problem when I try to build it.
Here the error
image

Here Other things
image

image

image

NOTE: I’m using VS code.
Please help me to solve it
Thank you :heart:

You have whitespace in your PC’s default username (IT SPACE) and Rush doesn’t quite get along with spaces in file paths. However, you can fix this yourself, read the below post:

This isn’t related to your issue but I’d suggest you use IntelliJ IDEA. VS Code fails to index extension libraries in Rush projects, bombarding you with all sorts of false errors. I want to fix this in a future update, but for now, it’s best to use IntelliJ (or Android Studio).

After following this guide I have another issue.

I already have android studio but I don’t know how to use rush on it.

You have JDK 18 on your PATH. Remove it, install JDK 8, and change JDK_HOME env var.

2 Likes