Skip to content

Commit 1c4528b

Browse files
Merge branch 'main' into capacitor
2 parents a0d13be + cd502d4 commit 1c4528b

File tree

107 files changed

+3827
-255
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+3827
-255
lines changed

.devcontainer/devcontainer.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"image": "mcr.microsoft.com/devcontainers/universal:2",
3+
"features": {
4+
"ghcr.io/nordcominc/devcontainer-features/android-sdk:1": {}
5+
}
6+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Close inactive issues
2+
on:
3+
schedule:
4+
- cron: "30 1 * * *"
5+
6+
jobs:
7+
close-issues:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
steps:
13+
- uses: actions/stale@v9
14+
with:
15+
days-before-issue-stale: 60
16+
days-before-issue-close: 14
17+
stale-issue-label: "stale"
18+
stale-issue-message: >
19+
Hi there! 👋
20+
21+
We're working to clean up our issue tracker by closing older issues that might not be relevant anymore. If you are able to reproduce this issue in the latest version of Acode, please let us know by commenting on this issue(i.e Bump!), and we will keep it open. If you can't reproduce it, feel free to close the issue yourself. Otherwise, we'll close it in 14 days.
22+
23+
Thanks for your help!
24+
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
25+
days-before-pr-stale: -1
26+
days-before-pr-close: -1
27+
exempt-issue-labels: "new plugin idea, todo"
28+
operations-per-run: 100
29+
repo-token: ${{ secrets.GITHUB_TOKEN }}
30+

CHANGELOG.md

Lines changed: 107 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,114 @@
11
# Change Log
22

3+
## v1.11.4 (962)
4+
5+
* Fix renaming current Termux URI file whilst viewing/editing it by @peasneovoyager2banana2
6+
* fix: html preview on unsaved files by @RohitKushvaha01
7+
* Add markdown-it-footnote and task lists support by @UnschooledGamer
8+
* Fix quickTools height fallback by @bajrangCoder
9+
* Comment out column adjustment in touchHandler.js for weird selection by @bajrangCoder
10+
* Update Indonesian Translation by @hyperz111
11+
* feat: :sparkles: Native Websocket Plugin (uses okhttp) by @UnschooledGamer
12+
* fix: unintentional scrolling of tab container while dragging a tab by @peasneovoyager2banana2
13+
* feat. alert user when changing editor theme by @RohitKushvaha01
14+
* feat: Improve handling of intents before files are restored on startup by @bajrangCoder
15+
* fix: don't save state of SAFMode="single" files by @bajrangCoder
16+
* fix: plugin passing undefined to plugin item on plugin page by @bajrangCoder
17+
* Integrated cordova-plugin-buildinfo as a local plugin by @RohitKushvaha01
18+
* fix: crash when running unsaved file by @RohitKushvaha01
19+
* feat: show open source plugin url on plugin page by @bajrangCoder
20+
* fix: Make "None" option clickable in select dialog on formatter settings by @bajrangCoder
21+
* fix: show confirm when copy/cut in sidebar instead of alert so user can proceed if they want by @bajrangCoder
22+
* feat: plugin enable/disable functionality and update translations by @UnschooledGamer
23+
* Update hu-hu.json by @summoner001
24+
* Advanced execution interface by @RohitKushvaha01
25+
26+
## v1.11.3 (959)
27+
28+
* feat: added system theme by @RohitKushvaha01
29+
* add: close-inactive-issues.yml by @UnschooledGamer
30+
* Added Executor by @RohitKushvaha01
31+
* fix: Executor Plugin's js module/interface path by @UnschooledGamer
32+
* fix: teardrop goes out of viewport when there is no gutter by @bajrangCoder
33+
* fix: infinite loading screen due to executor by @RohitKushvaha01
34+
* fix: infinite loading when previewing html files by @RohitKushvaha01
35+
* fix: apk related issues
36+
37+
## v1.11.2 (958)
38+
39+
* fix: cors related issues when installing plugins from remote by @bajrangCoder
40+
* fix: Acode ignoring main, readme and icon fields in plugin manifest by @alMukaafih
41+
* feat: inapp acode account login by @bajrangCoder
42+
* fix: launchApp function by @RohitKushvaha01
43+
* Update plugin documentation url by @RohitKushvaha01
44+
* Backup restore fixes by @bajrangCoder
45+
* file: re-emit switch and load file events after plugin load by @bajrangCoder
46+
* fix: File copy-paste retains paste option after file is copied. by @RohitKushvaha01
47+
* Fix sftp sidebar UI issue by @bajrangCoder
48+
* fix: http relative path by @RohitKushvaha01
49+
* Download support by @RohitKushvaha01
50+
* Add Custom File Type Handler API by @bajrangCoder
51+
* fix: applying folds on reopening the app by @bajrangCoder
52+
* feat(tabs): Implement Shadow DOM isolation for non-editor tabs by @bajrangCoder
53+
* remove invalid font by @bajrangCoder
54+
* Improve Indonesian Translation by @hyperz111
55+
* feat: improve changelogs page by @bajrangCoder
56+
* Refactor, feat: Select dialog by @overskul
57+
* Fix: Translate "Donation Message" and some words by @hyperz111
58+
* Fix: "File Not Found" error when previewing HTML files from a Termux directory by @RohitKushvaha01
59+
* Update zh-cn.json and zh-hant.json by @LaunchLee
60+
* fix: console not showing on unsaved html file by @RohitKushvaha01
61+
* File Menu & QuickTools Visibility for editor tabs by @bajrangCoder
62+
* fix: handle edge case for `hideQuickTools` property by @bajrangCoder
63+
* feat: add more new keys(<kbd>Home</kbd>,<kbd>End</kbd>, <kbd>PageUp</kbd>, <kbd>PageDown</kbd>, <kbd>Delete</kbd>) and symbols(`~` `Backtick`,`#` ,`$` ,`%` ,`^`) for quicktools by @bajrangCoder
64+
* Fixed select box issue and improved it by @bajrangCoder
65+
* Added `x` to delete recent files/folder from dialog
66+
* Update Hungarian translation by @summoner001
67+
* chore(i18n): update vi-vn.json by @Nekitori17
68+
* fix: file not found error by @RohitKushvaha01
69+
* feat: revamped file tree by @bajrangCoder
70+
* fix: pagedown key issue in editor by @bajrangCoder
71+
* feat: open files with arbitrary extension names by @RohitKushvaha01
72+
* add Hebrew language by @elid34
73+
* feat: add support for compound file paths like `.blade.php` by @bajrangCoder
74+
* support string content in tabs by @overskul
75+
* update Tagalog/Filipino language by @ychwah
76+
* fix: keyboard shortcuts leaks into ace editor by @RohitKushvaha01
77+
* Resizeable activity by @RohitKushvaha01
78+
* update ace v1.41.0 by @bajrangCoder
79+
* Fix html content access by @RohitKushvaha01
80+
* fix: path overlap issue in html viewer by @RohitKushvaha01
81+
* fix: only initiate iap stuff in case of paid plugin on sidebar by @bajrangCoder
82+
383
## v1.11.1 (957)
484

5-
### Features
6-
- **Syntax Highlighting**: Added syntax highlighting for code blocks on the plugin page using Ace Editor.
7-
- **Theme Settings Fallback**: Implemented a fallback mechanism on the theme settings page when a custom tab is opened.
8-
- **QuickTools Scroll Wheel Support**: Added support for scroll wheel events in QuickTools when in click mode.
9-
- **SFTP Improvements**:
10-
- Enhanced logging for better debugging.
11-
- Enabled Bouncy Castle for SFTP, resolving connection issues with certain key types.
12-
- **App Update Mechanism**:
13-
- Now checks for updates after app startup.
14-
- Uses a native approach instead of traditional fetch.
15-
16-
### Fixes & Improvements
17-
- **SD Card Plugin**: Handled a few edge cases to prevent crashes.
18-
- **GitHub Plugin Palette Fix**: Resolved an issue where the color palette was breaking the GitHub plugin.
19-
- **Plugin Installation Fixes**:
20-
- Updated the install button in the sidebar to prevent multiple installations.
21-
- Fixed the installation mechanism in both the sidebar and the `installPlugin` API.
22-
- **Quality of Life Enhancements**:
23-
- Various small improvements when installing/uninstalling plugins from the sidebar.
24-
25-
#### ⚠️ Experimental Changes ⚠️
26-
- **Improved Plugin Loading**:
27-
- Only **theme plugins** load on Acode startup for faster performance.
28-
- All other plugins load **after** Acode startup.
29-
- **Important for Theme Developers**:
30-
- Ensure your **plugin ID includes the word "theme"** to be correctly recognized as a theme plugin.
31-
- No changes are needed for existing theme plugins.
85+
### Features
86+
- **Syntax Highlighting**: Added syntax highlighting for code blocks on the plugin page using Ace Editor.
87+
- **Theme Settings Fallback**: Implemented a fallback mechanism on the theme settings page when a custom tab is opened.
88+
- **QuickTools Scroll Wheel Support**: Added support for scroll wheel events in QuickTools when in click mode.
89+
- **SFTP Improvements**:
90+
- Enhanced logging for better debugging.
91+
- Enabled Bouncy Castle for SFTP, resolving connection issues with certain key types.
92+
- **App Update Mechanism**:
93+
- Now checks for updates after app startup.
94+
- Uses a native approach instead of traditional fetch.
95+
96+
### Fixes & Improvements
97+
- **SD Card Plugin**: Handled a few edge cases to prevent crashes.
98+
- **GitHub Plugin Palette Fix**: Resolved an issue where the color palette was breaking the GitHub plugin.
99+
- **Plugin Installation Fixes**:
100+
- Updated the install button in the sidebar to prevent multiple installations.
101+
- Fixed the installation mechanism in both the sidebar and the `installPlugin` API.
102+
- **Quality of Life Enhancements**:
103+
- Various small improvements when installing/uninstalling plugins from the sidebar.
104+
105+
#### ⚠️ Experimental Changes ⚠️
106+
- **Improved Plugin Loading**:
107+
- Only **theme plugins** load on Acode startup for faster performance.
108+
- All other plugins load **after** Acode startup.
109+
- **Important for Theme Developers**:
110+
- Ensure your **plugin ID includes the word "theme"** to be correctly recognized as a theme plugin.
111+
- No changes are needed for existing theme plugins.
32112
- **Potential Issues**: Since this is an experimental change, some features may break. Please report any issues encountered.
33113

34114
## v1.11.0 (956)

biome.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@
3434
"globals": ["Global1"]
3535
},
3636
"files": {
37-
"include": ["src/**/*", "utils/**/*.js", "www/**/*.js", "www/res/**/*.css"],
37+
"include": [
38+
"src/**/*",
39+
"utils/**/*.js",
40+
"www/**/*.js",
41+
"www/res/**/*.css",
42+
"src/plugins/terminal"
43+
],
3844
"ignore": [
3945
"ace-builds",
4046
"www/js/**/*.js",

config.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version='1.0' encoding='utf-8' ?>
2-
<widget id="com.foxdebug.acode" android-versionCode="957" version="1.11.1"
2+
<widget id="com.foxdebug.acode" android-versionCode="962" version="1.11.4"
33
xmlns="http://www.w3.org/ns/widgets"
44
xmlns:android="http://schemas.android.com/apk/res/android"
55
xmlns:cdv="http://cordova.apache.org/ns/1.0">
@@ -39,6 +39,7 @@
3939
<application android:hardwareAccelerated="true" />
4040
<application android:requestLegacyExternalStorage="true" />
4141
<application android:largeHeap="true" />
42+
<application android:requestLegacyExternalStorage="true"/>
4243
</edit-config>
4344

4445
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application/activity[@android:name='MainActivity']">

hooks/post-process.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* eslint-disable no-console */
22
const path = require('path');
33
const fs = require('fs');
4+
const { execSync } = require('child_process');
45

56
const buildFilePath = path.resolve(__dirname, '../build.json');
67
const copyToPath = path.resolve(__dirname, '../platforms/android/build.json');
@@ -28,6 +29,35 @@ deleteDirRecursively(resPath, [
2829
'xml',
2930
]);
3031
copyDirRecursively(localResPath, resPath);
32+
enableLegacyJni()
33+
34+
35+
function enableLegacyJni() {
36+
const prefix = execSync('npm prefix').toString().trim();
37+
const gradleFile = path.join(prefix, 'platforms/android/app/build.gradle');
38+
39+
if (!fs.existsSync(gradleFile)) return;
40+
41+
let content = fs.readFileSync(gradleFile, 'utf-8');
42+
// Check for correct block to avoid duplicate insertion
43+
if (content.includes('useLegacyPackaging = true')) return;
44+
45+
// Inject under android block with correct Groovy syntax
46+
content = content.replace(/android\s*{/, match => {
47+
return (
48+
match +
49+
`
50+
packagingOptions {
51+
jniLibs {
52+
useLegacyPackaging = true
53+
}
54+
}`
55+
);
56+
});
57+
58+
fs.writeFileSync(gradleFile, content, 'utf-8');
59+
console.log('[Cordova Hook] ✅ Enabled legacy JNI packaging');
60+
}
3161

3262
/**
3363
* Copy directory recursively

0 commit comments

Comments
 (0)