Skip to content

Commit 2d02e86

Browse files
author
Ajit Kumar
committed
feat(sponsor)
1 parent 3bba3db commit 2d02e86

File tree

168 files changed

+42777
-2385
lines changed

Some content is hidden

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

168 files changed

+42777
-2385
lines changed

biome.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.1.1/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.1.4/schema.json",
33
"formatter": {
44
"enabled": true,
55
"indentStyle": "tab"
66
},
7-
"assist": { "actions": { "source": { "organizeImports": "on" } } },
7+
"assist": {
8+
"actions": {
9+
"source": {
10+
"organizeImports": "on"
11+
}
12+
}
13+
},
814
"linter": {
915
"enabled": true,
1016
"rules": {
@@ -35,12 +41,10 @@
3541
"includes": [
3642
"**/src/**/*",
3743
"**/utils/**/*.js",
38-
"**/www/**/*.js",
44+
"!**/www/build/**/*",
3945
"**/www/res/**/*.css",
4046
"**/src/plugins/terminal/**",
4147
"!**/ace-builds",
42-
"!**/www/js/**/*.js",
43-
"!**/www/css/**/*.css",
4448
"!**/src/plugins/**/*",
4549
"!**/plugins/**/*",
4650
"!**/hooks/**/*",

hooks/post-process.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,14 @@ function patchTargetSdkVersion() {
4848
const sdkRegex = /targetSdkVersion\s+(cordovaConfig\.SDK_VERSION|\d+)/;
4949

5050
if (sdkRegex.test(content)) {
51-
const fdroid = fs.readFileSync(path.join(prefix,'fdroid.bool'), 'utf-8').trim();
52-
var api = "35"
53-
if(fdroid == "true"){
54-
api = "28"
51+
let api = "35"
52+
const froidFlag = path.join(prefix, 'fdroid.bool');
53+
54+
if(fs.existsSync(froidFlag)){
55+
const fdroid = fs.readFileSync(froidFlag, 'utf-8').trim();
56+
if(fdroid == "true"){
57+
api = "28"
58+
}
5559
}
5660

5761
content = content.replace(sdkRegex, 'targetSdkVersion '+api);

0 commit comments

Comments
 (0)