Hey, @shreyash Nice work.
Can you share demo template file which to create a extension with Rush?
Hey, @shreyash Nice work.
Can you share demo template file which to create a extension with Rush?
When you create an extension using rush create command, every required file, including a starter Java file for the extension, is automatically created for you. This is already discussed in the first post and in the wiki. You might want to read it thoroughly first.
but there is no aix in out
directory
same happening with powershell
Check your directory structure and see if there's a space in any of the directory's name. You'll have to remove that space, and then, try again.
This is a known bug and has been fixed for the next release.
Kudos and many thanks to @shreyash for this great way to create extensions. I had a few minor issues in the beginning (like some here) but he solved them all perfectly.
No directory contains space. but still it's happening
It worked when I changed package name similar to path of directories.
Can you send me demo video
And where is your aix file located ??
Build Successful But No extension file found ?
Can you please help me ?
This release brings a few new features to Rush and fixes some bugs that were reported by users since the initial release.
Below is a quick changelog of everything that's fixed/added in this version.
An exclamation () in front of a note means it is a critical change.
Rush is now also available for macOS and Linux.
It is now possible to pack non-related Java packages with the extension as long as they are inside the src
directory.
src
directory and all of them will be available in your extension.Added a new field, release/optimize
to rush.yml
. It indicates whether or not to optimize the extension when building with the -r
flag.
release:
optimize: true
Some other small changes.
Fixed the issue where Rush won't work with some terminal apps, like, CMD on Windows.
Fixed the issue where <extension>.aix
was not being produced because of spaces in one of the parent directory's names.
Fixed the issue where the build would be successful even if some step failed to complete.
Fixed the issue where an incorrect package would be produced in some cases.
If you've Rush already installed on your system, follow the below steps to update it to the latest version, i.e., v1.0.1.
Delete your previous Rush installation.
rush.zip
and then delete the rush
directory and all of its contents.After that, do a fresh installation of Rush.
For Linux and macOS users, installation guidelines can be found here.
For all the types of feature requests and bug reports, file an issue on GitHub.
Cheers,
Shreyash
I'd like to bring to your notice that release v1.0.1 had some minor issues that caused the build to failed with random errors. This issue is fixed now, but if you have had updated Rush before 2021-03-24T13:21:00Z, I urge you to please re-update it.
I apologize for any inconvenience this might have caused.
I have some problem using Rush with libraries:
It gives this error. I have added the jar file into the deps directory:
deps: # Dependencies should be first added to the "deps" folder
- beanshell.jar
Make sure your rush.yml
file, or more specifically, the deps
field is correctly indented. If you aren't sure, attach an image of the whole rush.yml
here.
name: BackgroundTasks # Caution: DO NOT change the name.
description: Extension component for BackgroundTasks. Created using Rush.
# For a detailed info on this file and supported fields, check
# out this link: https://github.com/ShreyashSaitwal/rush-cli/wiki/Metadata-File
version:
number: auto # Auto increments version number when built with '-r' (or '--release') flag.
name: 1.0 A
assets:
icon: icon.png # Extension icon
# other: # Extension asset(s)
# - my_awesome_asset.anything
authors:
- Kumaraswamy
deps: # Dependencies should be first added to the "deps" folder
- beanshell.jar
Remove the extra space before deps:
.
Thanks! That worked!
I am using services and also declared it:
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="io.kumaraswamy.backgroundtasks">
<!-- For more details, see: https://github.com/ShreyashSaitwal/rush-cli/wiki/Android-Manifest-File -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<uses-permission android:name="oppo.permission.OPPO_COMPONENT_SAFE"/>
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>
<application>
<!-- <activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity> -->
<service android:name="io.kumaraswamy.backgroundtasks.BackgroundService"/>
</application>
</manifest>
This did not work and nothing happened. So I checked the compiled APK manifest and the service element is not present but everything else was there. I can pm you the compiled Manifest code.
Yes please.