Rush • A new and improved way of building extensions

can you show the contents of it? does this issue continues if you make a new extension? are you using latest version?

Nothing is changed in the yml file

Yes the same issue occurs when i make a new extension

Yes I am using v 1.2.5 (latest)

but just to check if it does not have any errors or a extra space share it cause it is building perfectly fine for me

# For a detailed info on this file and supported fields, check out the below link:
# https://github.com/ShreyashSaitwal/rush-cli/wiki/Metadata-File

---
name: Test
description: Extension component for Test. Created using Rush.

version:
  number: auto
  name: '1.0''

authors:
  - 

build:
  release:
    # Optimizes the extension on every release build.
    optimize: true

  # If enabled, you will be able to use Java 8 language features in your extension.
  desugar:
    enable: false
    desugar_deps: false

assets:
  # Extension icon. This can be a URL or a local image in 'assets' folder.
  icon: icon.png
  # Extension assets.
  # other:
  #   - my_awesome_asset.anything

# Extension dependencies (JAR).
# deps:
#   - my_awesome_library.jar

This was newly generated rush projects where I solved the error by adding authors and changing version

but on my main extension still the same issue

# For a detailed info on this file and supported fields, check out the below link:
# https://github.com/ShreyashSaitwal/rush-cli/wiki/Metadata-File

---
name: CircleMenu
description: Extension component for CircleMenu. Created using Rush.

version:
  number: auto
  name: '1.0'

authors:
  - Akshat Developer

build:
  release:
    # Optimizes the extension on every release build.
    optimize: true

  # If enabled, you will be able to use Java 8 language features in your extension.
  desugar:
    enable: false
    desugar_deps: false

assets:
  # Extension icon. This can be a URL or a local image in 'assets' folder.
  icon: icon.png
  # Extension assets.
  # other:
  #   - my_awesome_asset.anything

# Extension dependencies (JAR).
# deps:
#   - my_awesome_library.jar

can you upgrading again i used the same rush.yml as you did and build successful

I was able to reproduce this when the name key in rush.yml and the name of the extension’s Java/Kotlin class was different. So, make sure that those two are the same.

1 Like

Thanks @Shreyash for the reply the problem was that my main java class name and the library code class name was same it was solved when i changed my library class name to get different from the main java class and the extension built successfully

2 Likes

it shows error


please help me as soon as possible!


i am getting this problem

did you cd inside the extension folder?

1 Like

What is cd?

it is a cmd in terminal to go inside a folder . This should been informed to you when you executed rush create cmd

1 Like

@ashishthakoor58 you can watch this tutorial to get started. Coding Popup Window Extension In Kotlin - Rush | Extension Development | Kodular, AppInventor - YouTube

4 Likes

Why kotlin extensions size is so big ? :confused:

as kotlin extensions require some extra big libs

You must optimize your extension to reduce extension’s size.
Read here about optimization :

2 Likes

Thank you :))
i build with -r

rush build -r
and size is now 15kb :))

Hi Shreyash i think rush needs a update as it not uses the latest version of ai2 sources.

Sorry, I’m pretty busy with my studies at the moment and therefore, have paused the development of Rush for time being. That doesn’t mean I’ve abandoned the project. I will restart working on it as my schedule loosens.

Also, it’s worth mentioning that since Rush is open-source you are free to contribute your desired features. Just open a PR on GitHub and I will happily merge it.

7 Likes

Hello Young @Shreyash !

You being one of the great contributors to the Kodular platform, no need to apologize.

We thank you and the other great contributors!

:+1:
:clap:

7 Likes