Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/node_modules
/build.json
/www/js/build
/www/css/build
/www/build
/plugins
/platforms
/keystore.jks
Expand Down
14 changes: 9 additions & 5 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
{
"$schema": "https://biomejs.dev/schemas/2.1.1/schema.json",
"$schema": "https://biomejs.dev/schemas/2.1.4/schema.json",
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"assist": { "actions": { "source": { "organizeImports": "on" } } },
"assist": {
"actions": {
"source": {
"organizeImports": "on"
}
}
},
"linter": {
"enabled": true,
"rules": {
Expand Down Expand Up @@ -35,12 +41,10 @@
"includes": [
"**/src/**/*",
"**/utils/**/*.js",
"**/www/**/*.js",
"!**/www/build/**/*",
"**/www/res/**/*.css",
"**/src/plugins/terminal/**",
"!**/ace-builds",
"!**/www/js/**/*.js",
"!**/www/css/**/*.css",
"!**/src/plugins/**/*",
"!**/plugins/**/*",
"!**/hooks/**/*",
Expand Down
12 changes: 8 additions & 4 deletions hooks/post-process.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,14 @@ function patchTargetSdkVersion() {
const sdkRegex = /targetSdkVersion\s+(cordovaConfig\.SDK_VERSION|\d+)/;

if (sdkRegex.test(content)) {
const fdroid = fs.readFileSync(path.join(prefix,'fdroid.bool'), 'utf-8').trim();
var api = "35"
if(fdroid == "true"){
api = "28"
let api = "35"
const froidFlag = path.join(prefix, 'fdroid.bool');

if(fs.existsSync(froidFlag)){
Copy link

Copilot AI Aug 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Missing space after 'if' keyword. Should be 'if (fs.existsSync(froidFlag)) {' to follow consistent coding style.

Suggested change
if(fs.existsSync(froidFlag)){
if (fs.existsSync(froidFlag)){

Copilot uses AI. Check for mistakes.
const fdroid = fs.readFileSync(froidFlag, 'utf-8').trim();
if(fdroid == "true"){
api = "28"
}
}

content = content.replace(sdkRegex, 'targetSdkVersion '+api);
Expand Down
Loading