-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Usable Termux project for latest Android Studio + Compilable and usable same as old one #4480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
9cc82f7
Update build.gradle
Comical78 6b5efae
Create CMakeLists.txt
Comical78 cf4f623
Update AndroidManifest.xml
Comical78 639e10b
Update gradle.properties
Comical78 6108fc0
Update build.gradle
Comical78 c3a55d1
update
Comical78 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # won't this help more than mk? | ||
| cmake_minimum_required(VERSION 3.10) | ||
| project(libtermux-bootstrap C) | ||
| set(SOURCES | ||
| termux-bootstrap-zip.S | ||
| termux-bootstrap.c | ||
| ) | ||
| add_library(termux-bootstrap SHARED ${SOURCES}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,7 +35,7 @@ protected void onCreate(Bundle savedInstanceState) { | |
| mWebView = new WebView(this); | ||
| WebSettings settings = mWebView.getSettings(); | ||
| settings.setCacheMode(WebSettings.LOAD_NO_CACHE); | ||
| settings.setAppCacheEnabled(false); | ||
| //settings.setAppCacheEnabled(false); // uh? | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why? |
||
| setContentView(progressLayout); | ||
| mWebView.clearCache(true); | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| #Sun Apr 06 11:06:59 EEST 2025 | ||
| distributionBase=GRADLE_USER_HOME | ||
| distributionPath=wrapper/dists | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip | ||
| zipStoreBase=GRADLE_USER_HOME | ||
| zipStorePath=wrapper/dists |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -9,7 +9,9 @@ android { | |||||||
| implementation "androidx.annotation:annotation:1.3.0" | ||||||||
| implementation "androidx.core:core:1.6.0" | ||||||||
| implementation "com.google.android.material:material:1.4.0" | ||||||||
| implementation "com.google.guava:guava:24.1-jre" | ||||||||
| implementation("com.google.guava:guava:24.1-jre") { | ||||||||
| exclude group: 'com.google.guava', module: 'listenablefuture' | ||||||||
| } | ||||||||
| implementation "io.noties.markwon:core:$markwonVersion" | ||||||||
| implementation "io.noties.markwon:ext-strikethrough:$markwonVersion" | ||||||||
| implementation "io.noties.markwon:linkify:$markwonVersion" | ||||||||
|
|
@@ -30,6 +32,7 @@ android { | |||||||
| implementation "com.termux:termux-am-library:v2.0.0" | ||||||||
| } | ||||||||
|
|
||||||||
| namespace "com.termux.shared" | ||||||||
| defaultConfig { | ||||||||
| minSdkVersion project.properties.minSdkVersion.toInteger() | ||||||||
| targetSdkVersion project.properties.targetSdkVersion.toInteger() | ||||||||
|
|
@@ -60,6 +63,11 @@ android { | |||||||
| path file('src/main/cpp/Android.mk') | ||||||||
| } | ||||||||
| } | ||||||||
| publishing { | ||||||||
| singleVariant("release") { | ||||||||
| withSourcesJar() | ||||||||
| } | ||||||||
| } | ||||||||
| } | ||||||||
|
|
||||||||
| dependencies { | ||||||||
|
|
@@ -71,7 +79,8 @@ dependencies { | |||||||
|
|
||||||||
| task sourceJar(type: Jar) { | ||||||||
| from android.sourceSets.main.java.srcDirs | ||||||||
| classifier "sources" | ||||||||
| //classifier "sources" //depracated | ||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| archiveClassifier.set("sources") //functional | ||||||||
| } | ||||||||
|
|
||||||||
| afterEvaluate { | ||||||||
|
|
||||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.