Skip to content

Commit 6643c4a

Browse files
Merge remote-tracking branch 'upstream/main' into fileobject-feature
2 parents 52f6e69 + 64b3568 commit 6643c4a

46 files changed

Lines changed: 268 additions & 72 deletions

Some content is hidden

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

.github/CODEOWNERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.github/CODEOWNERS @Acode-Foundation
2+
3+
# workflows
4+
.github/workflows/nightly-build.yml @unschooledgamer
5+
.github/workflows/on-demand-preview-releases-PR.yml @unschooledgamer
6+
.github/workflows/community-release-notifier.yml @unschooledgamer

.github/workflows/nightly-build.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Implement to use environment secrets someday, At the moment GH Actions doesn't support those in reusable workflows (ref: https://github.com/actions/runner/issues/1490)
2+
# at least that's what I found.
13
name: Nightly Build
24

35
on:
@@ -28,6 +30,12 @@
2830
value: ${{ jobs.build.result }}
2931

3032
workflow_dispatch:
33+
inputs:
34+
skip_tagging_and_releases:
35+
required: false
36+
default: true
37+
type: boolean
38+
description: Skips Tagging & releases, since workflow_call isn't available for github.event_name, default is true
3139

3240
concurrency:
3341
# Allow only one workflow per any non-`main` branch.
@@ -51,7 +59,7 @@
5159
permissions:
5260
# contents write is needed to create Nightly Releases.
5361
contents: write
54-
issues: write
62+
# issues: write
5563
pull-requests: write
5664

5765
outputs:
@@ -89,13 +97,16 @@
8997
uses: actions/checkout@v4
9098
with:
9199
fetch-depth: 0 # Required for tags
100+
# persists credentials locally if tagging and releases are not skipped.
101+
persist-credentials: ${{ ! inputs.skip_tagging_and_releases }}
102+
ref: ${{ (inputs.is_PR && inputs.PR_NUMBER) && github.event.pull_request.head.sha || '' }}
92103

93104
- name: Set up Java 21
94105
uses: actions/setup-java@v4
95106
with:
96107
distribution: 'temurin'
97108
java-version: '21'
98-
cache: ${{ (github.ref == 'refs/heads/main' && 'gradle') || '' }}
109+
cache: ${{ (!(inputs.is_PR && inputs.PR_NUMBER) && github.ref == 'refs/heads/main' && 'gradle') || '' }}
99110

100111
- name: Set up Node.js
101112
uses: actions/setup-node@v4
@@ -149,6 +160,9 @@
149160
- name: Install Node.js Packages
150161
run: npm install
151162

163+
- name: Install Cordova CLI
164+
run: npm install -g cordova
165+
152166
- name: Run npm setup
153167
run: npm run setup
154168

@@ -207,7 +221,8 @@
207221
platforms/android/app/build/outputs/apk/debug/app-debug.apk
208222
body: |
209223
Automated Nightly (pre-release) Releases for Today
210-
\n\n[Compare Changes](https://github.com/${{ github.repository }}/compare/${{ env.TAG_COMMIT }}...${{ github.sha }})
224+
225+
[Compare Changes](https://github.com/${{ github.repository }}/compare/${{ env.TAG_COMMIT }}...${{ github.sha }})
211226
212227
- name: Update Last Comment by bot (If ran in PR)
213228
if: inputs.is_PR

.github/workflows/on-demand-preview-releases-PR.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: On Demand Preview Releases for PR
22
# avoids paths like .md, and anything in .github folder
33
on:
4-
pull_request:
4+
pull_request_target:
55
paths-ignore:
66
- '!*.md'
77
# - '.github/**'
@@ -38,6 +38,9 @@ jobs:
3838
with:
3939
clean: false
4040
fetch-depth: 0
41+
persist-credentials: false
42+
# Checkout pull request HEAD commit instead of merge commit
43+
ref: ${{ github.event.pull_request.head.sha }}
4144

4245
- name: Remove Manually added PR Label
4346
if: |

package-lock.json

Lines changed: 1 addition & 6 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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434
},
3535
"cordova-plugin-websocket": {},
3636
"cordova-plugin-buildinfo": {},
37-
"cordova-plugin-system": {},
3837
"cordova-plugin-browser": {},
3938
"com.foxdebug.acode.rk.exec.terminal": {},
4039
"com.foxdebug.acode.rk.exec.proot": {},
4140
"cordova-plugin-sftp": {},
42-
"com.foxdebug.acode.rk.nativeFile": {}
41+
"com.foxdebug.acode.rk.nativeFile": {},
42+
"cordova-plugin-system": {}
4343
},
4444
"platforms": [
4545
"android"
@@ -64,7 +64,6 @@
6464
"@types/url-parse": "^1.4.11",
6565
"autoprefixer": "^10.4.21",
6666
"babel-loader": "^10.0.0",
67-
"com.foxdebug.acode.rk.exec.proot": "file:src/plugins/proot",
6867
"com.foxdebug.acode.rk.exec.terminal": "file:src/plugins/terminal",
6968
"cordova-android": "^14.0.1",
7069
"cordova-clipboard": "^1.3.0",

src/lang/ar-ye.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,5 +426,7 @@
426426
"reviews": "التقييمات",
427427
"overview": "نظرة عامة",
428428
"contributors": "المساهمون",
429-
"quicktools:hyphen": "إدراج شرطة"
429+
"quicktools:hyphen": "إدراج شرطة",
430+
"check for app updates": "Check for app updates",
431+
"prompt update check consent message": "Acode can check for new app updates when you're online. Enable update checks?"
430432
}

src/lang/be-by.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,5 +427,7 @@
427427
"reviews": "reviews",
428428
"overview": "Overview",
429429
"contributors": "Contributors",
430-
"quicktools:hyphen": "Insert hyphen symbol"
430+
"quicktools:hyphen": "Insert hyphen symbol",
431+
"check for app updates": "Check for app updates",
432+
"prompt update check consent message": "Acode can check for new app updates when you're online. Enable update checks?"
431433
}

src/lang/bn-bd.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,5 +426,7 @@
426426
"reviews": "রিভিউ",
427427
"overview": "সংক্ষিপ্ত বিবরণ",
428428
"contributors": "অবদানকারী",
429-
"quicktools:hyphen": "হাইফেন যুক্ত করুন"
429+
"quicktools:hyphen": "হাইফেন যুক্ত করুন",
430+
"check for app updates": "Check for app updates",
431+
"prompt update check consent message": "Acode can check for new app updates when you're online. Enable update checks?"
430432
}

src/lang/cs-cz.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,5 +426,7 @@
426426
"reviews": "reviews",
427427
"overview": "Overview",
428428
"contributors": "Contributors",
429-
"quicktools:hyphen": "Insert hyphen symbol"
429+
"quicktools:hyphen": "Insert hyphen symbol",
430+
"check for app updates": "Check for app updates",
431+
"prompt update check consent message": "Acode can check for new app updates when you're online. Enable update checks?"
430432
}

src/lang/de-de.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,5 +426,7 @@
426426
"reviews": "Bewertungen",
427427
"overview": "Überblick",
428428
"contributors": "Mitwirkende",
429-
"quicktools:hyphen": "Bindestrich-Symbol einfügen"
429+
"quicktools:hyphen": "Bindestrich-Symbol einfügen",
430+
"check for app updates": "Check for app updates",
431+
"prompt update check consent message": "Acode can check for new app updates when you're online. Enable update checks?"
430432
}

0 commit comments

Comments
 (0)