Skip to content

Commit 2886f25

Browse files
feat. advanced execution interface
1 parent ab97c13 commit 2886f25

10 files changed

Lines changed: 55 additions & 26 deletions

File tree

package-lock.json

Lines changed: 10 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"ANDROIDBLACKLISTSECURESOCKETPROTOCOLS": "SSLv3,TLSv1"
3838
},
3939
"cordova-plugin-websocket": {},
40-
"com.foxdebug.acode.exec": {}
40+
"com.foxdebug.acode.rk.exec.terminal": {}
4141
},
4242
"platforms": [
4343
"android"
@@ -63,7 +63,7 @@
6363
"@types/url-parse": "^1.4.11",
6464
"autoprefixer": "^10.4.19",
6565
"babel-loader": "^9.1.3",
66-
"com.foxdebug.acode.exec": "file:src/plugins/Executor",
66+
"com.foxdebug.acode.rk.exec.terminal": "file:src/plugins/terminal",
6767
"cordova-android": "^13.0.0",
6868
"cordova-clipboard": "^1.3.0",
6969
"cordova-plugin-advanced-http": "^3.3.1",

src/plugins/Executor/package.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/plugins/Executor/plugin.xml

Lines changed: 0 additions & 2 deletions
This file was deleted.
5.87 KB
Binary file not shown.
5.55 KB
Binary file not shown.

src/plugins/terminal/package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "com.foxdebug.acode.rk.exec.terminal",
3+
"version": "1.0.0",
4+
"description": "Terminal stuff",
5+
"cordova": {
6+
"id": "com.foxdebug.acode.rk.exec.terminal",
7+
"platforms": [
8+
"android"
9+
]
10+
},
11+
"keywords": [
12+
"ecosystem:cordova",
13+
"cordova-android"
14+
],
15+
"author": "@RohitKushvaha01",
16+
"license": "MIT"
17+
}

src/plugins/terminal/plugin.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="com.foxdebug.acode.rk.exec.terminal" version="1.0.0">
3+
<name>Terminal</name>
4+
5+
<!-- executor api -->
6+
<js-module name="Executor" src="www/Executor.js">
7+
<clobbers target="cordova.plugins.Executor" />
8+
</js-module>
9+
10+
11+
<platform name="android">
12+
<config-file parent="/*" target="res/xml/config.xml">
13+
<feature name="Terminal">
14+
<param name="android-package" value="com.foxdebug.acode.rk.exec.terminal" />
15+
</feature>
16+
</config-file>
17+
<config-file parent="/*" target="AndroidManifest.xml" />
18+
<source-file src="src/android/Executor.java" target-dir="src/com/foxdebug/acode/rk/exec/terminal" />
19+
20+
<!-- Use flavors if F-Droid complains about native libs -->
21+
<source-file src="libs/proot-aarch64.so" target-dir="libs/arm64-v8a" />
22+
<source-file src="libs/proot-arm.so" target-dir="libs/armeabi-v7a" />
23+
24+
</platform>
25+
</plugin>

src/plugins/Executor/src/android/Executor.java renamed to src/plugins/terminal/src/android/Executor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.foxdebug.acode.exec;
1+
package com.foxdebug.acode.rk.exec.terminal;
22

33
import org.apache.cordova.*;
44
import org.json.*;

0 commit comments

Comments
 (0)