Skip to content

Commit 53f75a8

Browse files
committed
Changed: Update gradle, android gradle plugin and dependencies
1 parent bcb61c3 commit 53f75a8

24 files changed

Lines changed: 261 additions & 185 deletions

‎.github/workflows/debug_build.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ jobs:
2121
- name: Clone repository
2222
uses: actions/checkout@v6
2323

24+
- name: Setup java 17
25+
uses: actions/setup-java@v5
26+
with:
27+
distribution: 'temurin'
28+
java-version: '17'
29+
2430
- name: Build APKs
2531
shell: bash {0}
2632
env:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v6
19-
- uses: gradle/actions/wrapper-validation@5
19+
- uses: gradle/actions/wrapper-validation@5

‎.github/workflows/run_tests.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ jobs:
1616
steps:
1717
- name: Clone repository
1818
uses: actions/checkout@v6
19+
- name: Setup java 17
20+
uses: actions/setup-java@v5
21+
with:
22+
distribution: 'temurin'
23+
java-version: '17'
1924
- name: Execute tests
2025
run: |
2126
./gradlew test

‎app/build.gradle‎

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ ext {
1313
}
1414

1515
android {
16+
namespace "com.termux"
17+
1618
compileSdkVersion project.properties.compileSdkVersion.toInteger()
1719
ndkVersion = System.getenv("JITPACK_NDK_VERSION") ?: project.properties.ndkVersion
1820
def appVersionName = System.getenv("TERMUX_APP_VERSION_NAME") ?: ""
@@ -21,24 +23,24 @@ android {
2123
def splitAPKsForReleaseBuilds = System.getenv("TERMUX_SPLIT_APKS_FOR_RELEASE_BUILDS") ?: "0" // F-Droid does not support split APKs #1904
2224

2325
dependencies {
24-
implementation "androidx.annotation:annotation:1.3.0"
25-
implementation "androidx.core:core:1.6.0"
26-
implementation "androidx.drawerlayout:drawerlayout:1.1.1"
27-
implementation "androidx.preference:preference:1.1.1"
26+
implementation "androidx.annotation:annotation:1.9.0"
27+
implementation "androidx.core:core:1.13.1"
28+
implementation "androidx.drawerlayout:drawerlayout:1.2.0"
29+
implementation "androidx.preference:preference:1.2.1"
2830
implementation "androidx.viewpager:viewpager:1.0.0"
29-
implementation "com.google.android.material:material:1.4.0"
31+
implementation "com.google.android.material:material:1.12.0"
3032
implementation "com.google.guava:guava:24.1-jre"
3133
implementation "io.noties.markwon:core:$markwonVersion"
3234
implementation "io.noties.markwon:ext-strikethrough:$markwonVersion"
3335
implementation "io.noties.markwon:linkify:$markwonVersion"
3436
implementation "io.noties.markwon:recycler:$markwonVersion"
37+
implementation 'com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava'
3538

3639
implementation project(":terminal-view")
3740
implementation project(":termux-shared")
3841
}
3942

4043
defaultConfig {
41-
applicationId "com.termux"
4244
minSdkVersion project.properties.minSdkVersion.toInteger()
4345
targetSdkVersion project.properties.targetSdkVersion.toInteger()
4446
versionCode 118
@@ -110,7 +112,7 @@ android {
110112
}
111113
}
112114

113-
lintOptions {
115+
lint {
114116
disable 'ProtectedPermissions'
115117
}
116118

@@ -138,12 +140,15 @@ android {
138140
}
139141
}
140142

143+
buildFeatures {
144+
buildConfig true
145+
}
141146
}
142147

143148
dependencies {
144149
testImplementation "junit:junit:4.13.2"
145150
testImplementation "org.robolectric:robolectric:4.10"
146-
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:1.1.5"
151+
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:2.1.2"
147152
}
148153

149154
task versionName {

‎app/proguard-rules.pro‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,3 @@
1010
-dontobfuscate
1111
#-renamesourcefileattribute SourceFile
1212
#-keepattributes SourceFile,LineNumberTable
13-
14-
# Temp fix for androidx.window:window:1.0.0-alpha09 imported by termux-shared
15-
# https://issuetracker.google.com/issues/189001730
16-
# https://android-review.googlesource.com/c/platform/frameworks/support/+/1757630
17-
-keep class androidx.window.** { *; }

‎app/src/main/AndroidManifest.xml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:tools="http://schemas.android.com/tools"
4-
package="com.termux"
54
android:installLocation="internalOnly"
65
android:sharedUserId="${TERMUX_PACKAGE_NAME}"
76
android:sharedUserLabel="@string/shared_user_label">

‎app/src/main/java/com/termux/app/activities/HelpActivity.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ protected void onCreate(Bundle savedInstanceState) {
3535
mWebView = new WebView(this);
3636
WebSettings settings = mWebView.getSettings();
3737
settings.setCacheMode(WebSettings.LOAD_NO_CACHE);
38-
settings.setAppCacheEnabled(false);
3938
setContentView(progressLayout);
4039
mWebView.clearCache(true);
4140

‎app/src/main/java/com/termux/app/terminal/TermuxTerminalSessionActivityClient.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ private synchronized void loadBellSoundPool() {
271271
.setUsage(AudioAttributes.USAGE_ASSISTANCE_SONIFICATION).build()).build();
272272

273273
try {
274-
mBellSoundId = mBellSoundPool.load(mActivity, R.raw.bell, 1);
274+
mBellSoundId = mBellSoundPool.load(mActivity, com.termux.shared.R.raw.bell, 1);
275275
} catch (Exception e){
276276
// Catch java.lang.RuntimeException: Unable to resume activity {com.termux/com.termux.app.TermuxActivity}: android.content.res.Resources$NotFoundException: File res/raw/bell.ogg from drawable resource ID
277277
Logger.logStackTraceWithMessage(LOG_TAG, "Failed to load bell sound pool", e);

‎app/src/main/java/com/termux/app/terminal/TermuxTerminalViewClient.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,8 +735,8 @@ public void reportIssueFromTranscript() {
735735

736736
MessageDialogUtils.showMessage(mActivity, TermuxConstants.TERMUX_APP_NAME + " Report Issue",
737737
mActivity.getString(R.string.msg_add_termux_debug_info),
738-
mActivity.getString(R.string.action_yes), (dialog, which) -> reportIssueFromTranscript(transcriptText, true),
739-
mActivity.getString(R.string.action_no), (dialog, which) -> reportIssueFromTranscript(transcriptText, false),
738+
mActivity.getString(com.termux.shared.R.string.action_yes), (dialog, which) -> reportIssueFromTranscript(transcriptText, true),
739+
mActivity.getString(com.termux.shared.R.string.action_no), (dialog, which) -> reportIssueFromTranscript(transcriptText, false),
740740
null);
741741
}
742742

‎build.gradle‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildscript {
44
google()
55
}
66
dependencies {
7-
classpath "com.android.tools.build:gradle:4.2.2"
7+
classpath "com.android.tools.build:gradle:8.13.2"
88
}
99
}
1010

@@ -15,7 +15,3 @@ allprojects {
1515
maven { url "https://jitpack.io" }
1616
}
1717
}
18-
19-
task clean(type: Delete) {
20-
delete rootProject.buildDir
21-
}

0 commit comments

Comments
 (0)