Skip to content

Commit be10fe7

Browse files
committed
feat: integrate full Termux application
1 parent 2e74f4d commit be10fe7

288 files changed

Lines changed: 44558 additions & 963 deletions

File tree

Some content is hidden

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

.idea/compiler.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

actions/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ dependencies {
2222
implementation(libs.common.utilcode)
2323
implementation(libs.google.auto.service.annotations)
2424

25-
implementation(libs.androidx.ktx)
25+
implementation(libs.androidx.core.ktx)
2626
implementation(libs.google.material)
2727
}

app/build.gradle.kts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ android {
2727
generateLocaleConfig = true
2828
}
2929

30-
compileOptions {
31-
isCoreLibraryDesugaringEnabled = true
32-
}
33-
3430
buildTypes { release { isShrinkResources = true } }
3531

3632
packaging {
@@ -104,15 +100,18 @@ dependencies {
104100
implementation(libs.google.oss.licenses)
105101

106102
// Kotlin
107-
implementation(libs.androidx.ktx)
103+
implementation(libs.androidx.core.ktx)
108104
implementation(libs.common.kotlin)
109105

110106
// Local projects here
111107
implementation(projects.actions)
112108
implementation(projects.buildInfo)
113109
implementation(projects.common)
114110
implementation(projects.editor)
115-
implementation(projects.emulatorview)
111+
implementation(projects.termux.termuxApp)
112+
implementation(projects.termux.termuxView)
113+
implementation(projects.termux.termuxEmulator)
114+
implementation(projects.termux.termuxShared)
116115
implementation(projects.eventbus)
117116
implementation(projects.eventbusAndroid)
118117
implementation(projects.eventbusEvents)
@@ -138,8 +137,6 @@ dependencies {
138137
implementation(projects.uidesigner)
139138
implementation(projects.xmlInflater)
140139

141-
coreLibraryDesugaring(libs.androidx.lib.desugaring)
142-
143140
// This is to build the tooling-api-impl project before the app is built
144141
// So we always copy the latest JAR file to assets
145142
compileOnly(projects.subprojects.toolingApiImpl)

app/src/main/AndroidManifest.xml

Lines changed: 59 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,132 +1,133 @@
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+
android:installLocation="internalOnly"
45
tools:ignore="Instantiatable">
56

6-
<permission
7-
android:name="com.itsaky.androidide.permission.BIND_LOG_SERVICE"
8-
android:description="@string/permdesc_bind_logger_service"
9-
android:label="@string/permlab_bind_logger_service"
10-
android:protectionLevel="normal" />
11-
12-
<uses-permission android:name="com.itsaky.androidide.permission.BIND_LOG_SERVICE" />
13-
14-
<uses-permission android:name="android.permission.INTERNET" />
15-
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
16-
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
17-
<uses-permission
18-
android:name="android.permission.MANAGE_EXTERNAL_STORAGE"
19-
tools:ignore="ScopedStorage" />
20-
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
21-
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
22-
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
23-
247
<application
25-
android:name=".app.IDEApplication"
268
android:allowBackup="false"
279
android:allowNativeHeapPointerTagging="false"
2810
android:enableOnBackInvokedCallback="true"
2911
android:hardwareAccelerated="true"
3012
android:icon="@mipmap/ic_launcher"
3113
android:label="@string/app_name"
3214
android:largeHeap="true"
15+
android:name=".app.IDEApplication"
3316
android:preserveLegacyExternalStorage="true"
3417
android:requestLegacyExternalStorage="true"
3518
android:resizeableActivity="false"
3619
android:supportsRtl="true"
3720
android:theme="@style/Theme.AndroidIDE"
3821
tools:ignore="UnusedAttribute,MediaCapabilities">
3922
<activity
40-
android:name=".activities.CrashHandlerActivity"
4123
android:exported="true"
24+
android:name=".activities.CrashHandlerActivity"
4225
android:windowSoftInputMode="stateAlwaysHidden">
4326
<intent-filter>
4427
<action android:name="com.itsaky.androidide.REPORT_CRASH" />
4528
<category android:name="android.intent.category.DEFAULT" />
4629
</intent-filter>
4730
</activity>
4831
<activity
49-
android:name=".activities.SplashActivity"
5032
android:exported="true"
33+
android:name=".activities.SplashActivity"
5134
android:theme="@style/AppTheme.Splash">
5235
<intent-filter>
5336
<action android:name="android.intent.action.MAIN" />
5437
<category android:name="android.intent.category.LAUNCHER" />
5538
</intent-filter>
5639
</activity>
5740
<activity
58-
android:name=".activities.MainActivity"
5941
android:exported="false"
60-
android:theme="@style/Theme.AndroidIDE"/>
42+
android:name=".activities.MainActivity"
43+
android:theme="@style/Theme.AndroidIDE" />
6144
<activity
62-
android:name=".activities.editor.EditorActivityKt"
6345
android:configChanges="orientation|screenSize"
6446
android:launchMode="singleTop"
47+
android:name=".activities.editor.EditorActivityKt"
6548
android:windowSoftInputMode="adjustResize" />
6649
<activity android:name=".activities.PreferencesActivity" />
6750
<activity
68-
android:name=".activities.AboutActivity"
69-
android:configChanges="orientation|screenSize" />
51+
android:configChanges="orientation|screenSize"
52+
android:name=".activities.AboutActivity" />
7053
<activity
71-
android:name=".activities.TerminalActivity"
7254
android:configChanges="orientation|screenSize"
55+
android:name=".activities.TerminalActivity"
7356
android:windowSoftInputMode="adjustResize" />
7457

75-
<service
76-
android:name=".services.builder.GradleBuildService"
77-
android:exported="false" />
78-
<service
79-
android:name=".services.log.LogReceiverService"
80-
android:exported="true"
81-
android:permission="com.itsaky.androidide.permission.BIND_LOG_SERVICE">
82-
<intent-filter>
83-
<action android:name="com.itsaky.androidide.LOG_SERVICE_ACTION" />
84-
</intent-filter>
85-
</service>
86-
<service
87-
android:name="androidx.appcompat.app.AppLocalesMetadataHolderService"
88-
android:enabled="false"
89-
android:exported="false">
90-
<meta-data
91-
android:name="autoStoreLocales"
92-
android:value="true" />
93-
</service>
94-
58+
<activity
59+
android:name="com.google.android.gms.oss.licenses.OssLicensesMenuActivity"
60+
android:theme="@style/Theme.AndroidIDE" />
61+
<activity
62+
android:name="com.google.android.gms.oss.licenses.OssLicensesActivity"
63+
android:theme="@style/Theme.AndroidIDE" />
9564
<provider
96-
android:name=".provider.IDEDocumentsProvider"
9765
android:authorities="com.itsaky.androidide.documents"
9866
android:exported="true"
9967
android:grantUriPermissions="true"
68+
android:name=".provider.IDEDocumentsProvider"
10069
android:permission="android.permission.MANAGE_DOCUMENTS">
10170
<intent-filter>
10271
<action android:name="android.content.action.DOCUMENTS_PROVIDER" />
10372
</intent-filter>
10473
</provider>
74+
10575
<provider
106-
android:name=".provider.IDEFileProvider"
10776
android:authorities="${applicationId}.providers.fileprovider"
10877
android:exported="false"
109-
android:grantUriPermissions="true">
78+
android:grantUriPermissions="true"
79+
android:name=".provider.IDEFileProvider">
11080
<meta-data
11181
android:name="android.support.FILE_PROVIDER_PATHS"
11282
android:resource="@xml/ide_file_provider_paths" />
11383
</provider>
114-
11584
<receiver
116-
android:name=".services.InstallationResultReceiver"
11785
android:enabled="true"
11886
android:exported="true"
87+
android:name=".services.InstallationResultReceiver"
11988
tools:ignore="ExportedReceiver">
12089
<intent-filter>
12190
<action android:name="com.itsaky.androidide.installer.INSTALL_PACKAGE" />
12291
</intent-filter>
12392
</receiver>
12493

125-
<activity
126-
android:name="com.google.android.gms.oss.licenses.OssLicensesMenuActivity"
127-
android:theme="@style/Theme.AndroidIDE" />
128-
<activity
129-
android:name="com.google.android.gms.oss.licenses.OssLicensesActivity"
130-
android:theme="@style/Theme.AndroidIDE" />
94+
<service
95+
android:exported="false"
96+
android:name=".services.builder.GradleBuildService" />
97+
98+
<service
99+
android:exported="true"
100+
android:name=".services.log.LogReceiverService"
101+
android:permission="com.itsaky.androidide.permission.BIND_LOG_SERVICE">
102+
<intent-filter>
103+
<action android:name="com.itsaky.androidide.LOG_SERVICE_ACTION" />
104+
</intent-filter>
105+
</service>
106+
<service
107+
android:enabled="false"
108+
android:exported="false"
109+
android:name="androidx.appcompat.app.AppLocalesMetadataHolderService">
110+
<meta-data
111+
android:name="autoStoreLocales"
112+
android:value="true" />
113+
</service>
131114
</application>
115+
116+
<permission
117+
android:description="@string/permdesc_bind_logger_service"
118+
android:label="@string/permlab_bind_logger_service"
119+
android:name="com.itsaky.androidide.permission.BIND_LOG_SERVICE"
120+
android:protectionLevel="normal" />
121+
122+
<uses-permission android:name="com.itsaky.androidide.permission.BIND_LOG_SERVICE" />
123+
<uses-permission android:name="android.permission.INTERNET" />
124+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
125+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
126+
<uses-permission
127+
android:name="android.permission.MANAGE_EXTERNAL_STORAGE"
128+
tools:ignore="ScopedStorage" />
129+
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
130+
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
131+
132+
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
132133
</manifest>

0 commit comments

Comments
 (0)