Skip to content
This repository was archived by the owner on Sep 14, 2024. It is now read-only.

Commit 8f19256

Browse files
committed
Termux-Monet
1 parent c2d57f2 commit 8f19256

File tree

589 files changed

+27200
-11701
lines changed

Some content is hidden

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

589 files changed

+27200
-11701
lines changed

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/ISSUE_TEMPLATE/01-bug-report.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ body:
1010
1111
Use search before you open an issue to check whether your issue has been already reported and perhaps solved.
1212
13-
Android versions 5.x and 6.x are not supported anymore.
13+
Android versions lower than 12 are not supported.
1414
1515
If you have issues installing packages then please see https://github.com/termux/termux-packages/issues/6726.
1616
- type: textarea
@@ -26,7 +26,7 @@ body:
2626
attributes:
2727
label: Steps to reproduce the behavior.
2828
description: |
29-
Please post all necessary commands that are needed to reproduce the issue.
29+
Please list all necessary commands that are needed to reproduce the issue.
3030
validations:
3131
required: true
3232
- type: textarea
@@ -37,8 +37,10 @@ body:
3737
label: System information
3838
description: Please provide info about your device
3939
value: |
40-
* Termux application version:
40+
* Termux Monet version:
41+
* Is Nightly or Stable?:
4142
* Android OS version:
4243
* Device model:
44+
*
4345
validations:
4446
required: true

.github/dependabot.yml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,25 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
16
version: 2
7+
enable-beta-ecosystems: true
28
updates:
3-
- package-ecosystem: github-actions
4-
directory: /
5-
schedule:
6-
interval: daily
7-
commit-message:
8-
# Prefix all commit messages with "Changed: "
9-
prefix: "Changed"
9+
- package-ecosystem: "gradle" # See documentation for possible values
10+
directory: "/" # Location of package manifests
11+
schedule:
12+
interval: "daily"
13+
commit-message:
14+
# Prefix all commit messages with "Changed: "
15+
prefix: "Changed"
16+
rebase-strategy: "disabled"
17+
18+
- package-ecosystem: "github-actions"
19+
directory: "/" # Location of package manifests
20+
schedule:
21+
interval: "daily"
22+
commit-message:
23+
# Prefix all commit messages with "Changed: "
24+
prefix: "Changed"
25+
rebase-strategy: "disabled"

.github/workflows/attach_debug_apks_to_release.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
package_variant: [ apt-android-7, apt-android-5 ]
14+
package_variant: [ apt-android-7 ]
1515
env:
1616
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1717

@@ -21,6 +21,12 @@ jobs:
2121
with:
2222
ref: ${{ env.GITHUB_REF }}
2323

24+
- name: Setup java 17 as required by gradle
25+
uses: actions/setup-java@v4
26+
with:
27+
distribution: 'temurin'
28+
java-version: '17'
29+
2430
- name: Build and attach APKs to release
2531
shell: bash {0}
2632
env:
@@ -71,14 +77,13 @@ jobs:
7177
fi
7278
7379
echo "Attaching APKs to github release"
74-
if ! hub release edit \
75-
-m "" \
76-
-a "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_universal.apk" \
77-
-a "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_arm64-v8a.apk" \
78-
-a "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_armeabi-v7a.apk" \
79-
-a "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_x86_64.apk" \
80-
-a "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_x86.apk" \
81-
-a "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_sha256sums" \
82-
"$RELEASE_VERSION_NAME"; then
80+
if ! gh release upload "$RELEASE_VERSION_NAME" \
81+
"$APK_DIR_PATH/${APK_BASENAME_PREFIX}_universal.apk" \
82+
"$APK_DIR_PATH/${APK_BASENAME_PREFIX}_arm64-v8a.apk" \
83+
"$APK_DIR_PATH/${APK_BASENAME_PREFIX}_armeabi-v7a.apk" \
84+
"$APK_DIR_PATH/${APK_BASENAME_PREFIX}_x86_64.apk" \
85+
"$APK_DIR_PATH/${APK_BASENAME_PREFIX}_x86.apk" \
86+
"$APK_DIR_PATH/${APK_BASENAME_PREFIX}_sha256sums" \
87+
; then
8388
exit_on_error "Attach APKs to release failed for '$APK_VERSION_TAG' release."
84-
fi
89+
fi

.github/workflows/debug_build.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,33 @@
1-
name: Build
1+
name: Build nightly
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
- 'github-releases/**'
4+
workflow_dispatch:
85
pull_request:
96
branches:
107
- master
118

9+
concurrency:
10+
group: ${{ github.workflow }}
11+
cancel-in-progress: true
12+
1213
jobs:
1314
build:
1415
runs-on: ubuntu-latest
1516
strategy:
1617
fail-fast: false
1718
matrix:
18-
package_variant: [ apt-android-7, apt-android-5 ]
19+
package_variant: [ apt-android-7 ]
1920

2021
steps:
2122
- name: Clone repository
2223
uses: actions/checkout@v4
2324

25+
- name: Setup java 17 as required by gradle
26+
uses: actions/setup-java@v4
27+
with:
28+
distribution: 'temurin'
29+
java-version: '17'
30+
2431
- name: Build APKs
2532
shell: bash {0}
2633
env:
@@ -37,7 +44,7 @@ jobs:
3744
# Set RELEASE_VERSION_NAME to "<CURRENT_VERSION_NAME>+<last_commit_hash>"
3845
CURRENT_VERSION_NAME_REGEX='\s+versionName "([^"]+)"$'
3946
CURRENT_VERSION_NAME="$(grep -m 1 -E "$CURRENT_VERSION_NAME_REGEX" ./app/build.gradle | sed -r "s/$CURRENT_VERSION_NAME_REGEX/\1/")"
40-
RELEASE_VERSION_NAME="v$CURRENT_VERSION_NAME+${GITHUB_SHA:0:7}" # The "+" is necessary so that versioning precedence is not affected
47+
RELEASE_VERSION_NAME="v$CURRENT_VERSION_NAME.${GITHUB_SHA:0:7}" # Using dot instead of +
4148
if ! printf "%s" "${RELEASE_VERSION_NAME/v/}" | grep -qP '^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$'; then
4249
exit_on_error "The versionName '${RELEASE_VERSION_NAME/v/}' is not a valid version as per semantic version '2.0.0' spec in the format 'major.minor.patch(-prerelease)(+buildmetadata)'. https://semver.org/spec/v2.0.0.html."
4350
fi

.github/workflows/gradle-wrapper-validation.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
name: "Validate Gradle Wrapper"
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
- android-10
8-
pull_request:
9-
branches:
10-
- master
11-
- android-10
4+
workflow_dispatch
5+
6+
concurrency:
7+
group: ${{ github.workflow }}
8+
cancel-in-progress: true
129

1310
jobs:
1411
validation:

.github/workflows/run_tests.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
1-
name: Unit tests
1+
name: Test app
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
- android-10
4+
workflow_dispatch:
85
pull_request:
96
branches:
107
- master
11-
- android-10
8+
9+
concurrency:
10+
group: ${{ github.workflow }}
11+
cancel-in-progress: true
1212

1313
jobs:
1414
testing:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Clone repository
1818
uses: actions/checkout@v4
19+
- name: Setup java 17 as required by gradle
20+
uses: actions/setup-java@v4
21+
with:
22+
distribution: 'temurin'
23+
java-version: '17'
1924
- name: Execute tests
2025
run: |
2126
./gradlew test
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: Trigger Termux Library Builds on Jitpack
22

33
on:
4-
release:
5-
types:
6-
- published
4+
workflow_dispatch
5+
6+
concurrency:
7+
group: ${{ github.workflow }}
8+
cancel-in-progress: true
79

810
jobs:
911
trigger-termux-library-builds:
@@ -16,6 +18,6 @@ jobs:
1618
- name: Trigger termux library builds on jitpack
1719
run: |
1820
sleep 180 # It will take some time for the new tag to be detected by Jitpack
19-
curl --max-time 600 --no-progress-meter "https://jitpack.io/com/termux/termux-app/terminal-emulator/$TERMUX_LIB_VERSION/terminal-emulator-$TERMUX_LIB_VERSION.pom"
20-
curl --max-time 600 --no-progress-meter "https://jitpack.io/com/termux/termux-app/terminal-view/$TERMUX_LIB_VERSION/terminal-view-$TERMUX_LIB_VERSION.pom"
21-
curl --max-time 600 --no-progress-meter "https://jitpack.io/com/termux/termux-app/termux-shared/$TERMUX_LIB_VERSION/termux-shared-$TERMUX_LIB_VERSION.pom"
21+
curl --max-time 600 --no-progress-meter "https://jitpack.io/com/github/Termux-Monet/termux-monet/terminal-emulator/$TERMUX_LIB_VERSION/terminal-emulator-$TERMUX_LIB_VERSION.pom"
22+
curl --max-time 600 --no-progress-meter "https://jitpack.io/com/github/Termux-Monet/termux-monet/terminal-view/$TERMUX_LIB_VERSION/terminal-view-$TERMUX_LIB_VERSION.pom"
23+
curl --max-time 600 --no-progress-meter "https://jitpack.io/com/github/Termux-Monet/termux-monet/termux-shared/$TERMUX_LIB_VERSION/termux-shared-$TERMUX_LIB_VERSION.pom"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Update Gradle Wrapper
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 0 * * 0"
7+
8+
jobs:
9+
update-gradle-wrapper:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Update Gradle Wrapper
16+
uses: gradle-update/update-gradle-wrapper-action@v1
17+
with:
18+
repo-token: ${{ secrets.GITHUB_TOKEN }}
19+
set-distribution-checksum: false

0 commit comments

Comments
 (0)