Compare commits

..

5 commits

Author SHA1 Message Date
dece 7d8f93596f abandon ship 2024-08-25 20:50:30 +02:00
dece c317e1d56b minor fixes 2024-08-25 20:50:21 +02:00
dece b7c226a739 gradle: drop deprecated buildDir usage 2024-08-20 20:21:22 +02:00
dece 6c405a7c42 settings: drop dummy settings 2024-08-20 20:20:16 +02:00
dece e7330966d9 update target SDK to 35 & up. gradle
Target SDK 33 to 35.
Gradle 7 to 8
2024-08-20 20:20:15 +02:00
10 changed files with 33 additions and 47 deletions

View file

@ -1,12 +1,11 @@
Comet # Comet
=====
Comet is a Gemini browser for Android, compatible back to Android 7.0. Comet is a Gemini browser for Android, compatible back to Android 7.0.
It is an unfinished, abandoned and archived project, use another browser.
Android development is too much of a pain for me to bother at this point.
## Features
Features
--------
- Developed using standard Android SDK practices for an intuitive experience. - Developed using standard Android SDK practices for an intuitive experience.
- Uses the TLS capabilities of your device. - Uses the TLS capabilities of your device.
@ -14,9 +13,6 @@ Features
- Streaming for all content types. - Streaming for all content types.
- History. - History.
## About
Comet is licensed as GPLv3. The app logo is licensed under CC0.
About
-----
Comet is licensed as GPLv3. The app logo is licensed under CC0.

View file

@ -6,12 +6,12 @@ plugins {
} }
android { android {
compileSdk 33 compileSdk 35
defaultConfig { defaultConfig {
applicationId "dev.lowrespalmtree.comet" applicationId "dev.lowrespalmtree.comet"
minSdk 24 minSdk 24
targetSdk 33 targetSdk 35
versionCode 1 versionCode 1
versionName "0.1.0" versionName "0.1.0"
@ -43,27 +43,28 @@ android {
kotlinOptions { kotlinOptions {
jvmTarget = '1.8' jvmTarget = '1.8'
} }
namespace 'dev.lowrespalmtree.comet'
} }
dependencies { dependencies {
def nav_version = "2.5.3" def nav_version = '2.7.7'
def room_version = "2.5.1" def room_version = '2.6.1'
implementation 'androidx.appcompat:appcompat:1.6.1' implementation 'androidx.appcompat:appcompat:1.7.0'
implementation "androidx.cardview:cardview:1.0.0" implementation "androidx.cardview:cardview:1.0.0"
implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.core:core-ktx:1.10.0' implementation 'androidx.core:core-ktx:1.13.1'
implementation 'androidx.fragment:fragment-ktx:1.5.6' implementation 'androidx.fragment:fragment-ktx:1.8.2'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1' implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.4'
implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation "androidx.navigation:navigation-fragment-ktx:$nav_version" implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
implementation "androidx.navigation:navigation-ui-ktx:$nav_version" implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
implementation 'androidx.preference:preference-ktx:1.2.0' implementation 'androidx.preference:preference-ktx:1.2.1'
implementation 'androidx.recyclerview:recyclerview:1.3.0' implementation 'androidx.recyclerview:recyclerview:1.3.2'
implementation "androidx.room:room-runtime:$room_version" implementation "androidx.room:room-runtime:$room_version"
implementation "androidx.room:room-ktx:$room_version" implementation "androidx.room:room-ktx:$room_version"
implementation 'com.google.android.material:material:1.8.0' implementation 'com.google.android.material:material:1.12.0'
kapt "androidx.room:room-compiler:$room_version" kapt "androidx.room:room-compiler:$room_version"
testImplementation 'junit:junit:4.13.2' testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5' androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
} }

View file

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android">
package="dev.lowrespalmtree.comet">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />

View file

@ -50,8 +50,8 @@ class Request(private val uri: Uri, private val keyManager: KeyManager? = null)
scope.launch(Dispatchers.IO) { scope.launch(Dispatchers.IO) {
val buffer = ByteArray(1024) val buffer = ByteArray(1024)
var numRead: Int var numRead: Int
socket.inputStream.use { socket_input_stream -> socket.inputStream.use { socketInputStream ->
BufferedInputStream(socket_input_stream).use { bis -> BufferedInputStream(socketInputStream).use { bis ->
try { try {
while ((bis.read(buffer).also { numRead = it }) >= 0) { while ((bis.read(buffer).also { numRead = it }) >= 0) {
val received = buffer.sliceArray(0 until numRead) val received = buffer.sliceArray(0 until numRead)

View file

@ -26,7 +26,8 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginEnd="16dp" android:layout_marginEnd="16dp"
android:layout_marginBottom="16dp" android:layout_marginBottom="16dp"
android:contentDescription="@string/identity_new"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@+id/list" /> app:layout_constraintEnd_toEndOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>

View file

@ -53,5 +53,6 @@
<string name="navigation_drawer_open">Open navigation drawer</string> <string name="navigation_drawer_open">Open navigation drawer</string>
<string name="navigation_drawer_close">Close navigation drawer</string> <string name="navigation_drawer_close">Close navigation drawer</string>
<string name="logo">Logo</string> <string name="logo">Logo</string>
<string name="identity_new">Add new identity</string>
</resources> </resources>

View file

@ -41,17 +41,6 @@
app:showSeekBarValue="true" app:showSeekBarValue="true"
app:title="@string/pref_read_timeout_title" /> app:title="@string/pref_read_timeout_title" />
<SwitchPreferenceCompat
app:key="sync"
app:title="@string/sync_title" />
<SwitchPreferenceCompat
app:dependency="sync"
app:key="attachment"
app:summaryOff="@string/attachment_summary_off"
app:summaryOn="@string/attachment_summary_on"
app:title="@string/attachment_title" />
</PreferenceCategory> </PreferenceCategory>
</androidx.preference.PreferenceScreen> </androidx.preference.PreferenceScreen>

View file

@ -6,12 +6,8 @@ buildscript {
mavenCentral() mavenCentral()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:7.3.1' classpath 'com.android.tools.build:gradle:8.5.2'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.0' classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.0'
classpath 'androidx.navigation:navigation-safe-args-gradle-plugin:2.5.3' classpath 'androidx.navigation:navigation-safe-args-gradle-plugin:2.7.7'
} }
}
task clean(type: Delete) {
delete rootProject.buildDir
} }

View file

@ -18,4 +18,7 @@ android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX # Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true android.enableJetifier=true
# Kotlin code style for this project: "official" or "obsolete": # Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official kotlin.code.style=official
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false

View file

@ -1,6 +1,6 @@
#Mon Nov 29 12:01:36 CET 2021 #Mon Nov 29 12:01:36 CET 2021
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME