Skip to content

Commit 3ffd4c4

Browse files
feat. aaded launch script
1 parent 92e0112 commit 3ffd4c4

File tree

6 files changed

+20
-35
lines changed

6 files changed

+20
-35
lines changed

android/app/src/main/java/com/foxdebug/acode/plugins/NativeLayer.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ class NativeLayer : Plugin() {
5353
setPositiveButton("OK", null)
5454
show()
5555
}
56-
call.resolve()
5756
}
57+
58+
call.resolve()
5859
}
5960

6061
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"lang": "node ./utils/lang.js",
88
"build": "biome check --write && biome lint --write && node scripts/build.js",
9+
"launch":"biome check --write && biome lint --write && node scripts/build.js && adb install android/app/build/outputs/apk/paid/debug/app-paid-debug.apk && adb shell am start -n com.foxdebug.acode/.MainActivity",
910
"clean": "sh scripts/gradlew-link clean && rm -rf www/js/build && rm -rf www/css/build",
1011
"plugin": "sh utils/scripts/plugin.sh",
1112
"setup": "npx cap sync",

src/fileSystem/internalFs.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,6 @@ const internalFs = {
114114
*/
115115

116116
delete(filename) {
117-
console.log("deletion skipped");
118-
return;
119117
return new Promise((resolve, reject) => {
120118
console.log("Deleting " + filename);
121119

src/lib/installPlugin.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ export default async function installPlugin(
6565
pluginUrl = id;
6666
}
6767

68+
console.log(`Plugin Url ${pluginUrl}`);
69+
6870
try {
6971
if (!isDependency) loaderDialog.show();
7072

src/lib/loadPlugins.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ function isThemePlugin(pluginId) {
9999

100100
async function cleanupFailedPlugins(pluginIds) {
101101
for (const pluginId of pluginIds) {
102-
console.log("skipping delete " + pluginId);
103-
continue;
104102
try {
105103
const pluginDir = Url.join(PLUGIN_DIR, pluginId);
106104
if (await fsOperation(pluginDir).exists()) {

www/index.html

Lines changed: 15 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -164,36 +164,21 @@
164164
<script src="./js/build/main.build.js"></script>
165165

166166
<title>Acode</title>
167-
<!--styles-->
168-
<link rel="stylesheet" href="./css/build/about.css" />
169-
<link rel="stylesheet" href="./css/build/customTheme.css" />
170-
<link rel="stylesheet" href="./css/build/donate.css" />
171-
<link rel="stylesheet" href="./css/build/fileBrowser.css" />
172-
<link rel="stylesheet" href="./css/build/main.css" />
173-
<link rel="stylesheet" href="./css/build/plugins.css" />
174-
<link
175-
rel="stylesheet"
176-
href="./css/build/src_pages_quickTools_quickTools_js.css"
177-
/>
178-
<link
179-
rel="stylesheet"
180-
href="./css/build/src_sidebarApps_extensions_index_js.css"
181-
/>
182-
<link
183-
rel="stylesheet"
184-
href="./css/build/src_sidebarApps_files_index_js.css"
185-
/>
186-
<link
187-
rel="stylesheet"
188-
href="./css/build/src_sidebarApps_notification_index_js.css"
189-
/>
190-
<link
191-
rel="stylesheet"
192-
href="./css/build/src_sidebarApps_searchInFiles_index_js.css"
193-
/>
194-
<link rel="stylesheet" href="./css/build/themeSetting.css" />
195-
<!--styles_end-->
196-
</head>
167+
<!--styles-->
168+
<link rel="stylesheet" href="./css/build/about.css">
169+
<link rel="stylesheet" href="./css/build/customTheme.css">
170+
<link rel="stylesheet" href="./css/build/donate.css">
171+
<link rel="stylesheet" href="./css/build/fileBrowser.css">
172+
<link rel="stylesheet" href="./css/build/main.css">
173+
<link rel="stylesheet" href="./css/build/plugins.css">
174+
<link rel="stylesheet" href="./css/build/src_pages_quickTools_quickTools_js.css">
175+
<link rel="stylesheet" href="./css/build/src_sidebarApps_extensions_index_js.css">
176+
<link rel="stylesheet" href="./css/build/src_sidebarApps_files_index_js.css">
177+
<link rel="stylesheet" href="./css/build/src_sidebarApps_notification_index_js.css">
178+
<link rel="stylesheet" href="./css/build/src_sidebarApps_searchInFiles_index_js.css">
179+
<link rel="stylesheet" href="./css/build/themeSetting.css">
180+
<!--styles_end-->
181+
</head>
197182

198183
<body class="loading splash" data-version="">
199184
<wc-page id="root" class="primary"></wc-page>

0 commit comments

Comments
 (0)