Replace the MyGo/Go app with a Flutter client that keeps the feature set: - servers: saved servers, passwordless and password login, HTTP/SOCKS5 proxy via dart:io, self-signed certificates and pinning, tokens in flutter_secure_storage (Keystore) - sessions: list with live events, search, new/rename/archive/delete, instance sheet - chat: streaming Markdown (flutter_markdown), reasoning and tool rows, image previews, context usage ring and sheet, model/agent switching, fork/revert, attachments (file_picker), permissions - Android 7.0 (API 24)+, plain http:// works in release (Dart dials sockets directly) - build: China mirrors for Gradle/NDK, Aliyun Maven repositories, and the Gradle distribution pre-seeded; release signed with the test keystore Read-aloud is dropped as requested. Version 0.3.0.
31 lines
1.1 KiB
Kotlin
31 lines
1.1 KiB
Kotlin
plugins {
|
|
id("com.android.library")
|
|
id("org.jetbrains.kotlin.android")
|
|
}
|
|
|
|
android {
|
|
namespace = "dev.mygo"
|
|
compileSdk = 36
|
|
defaultConfig {
|
|
minSdk = (providers.gradleProperty("mygoMinSdk").orNull ?: "26").toInt()
|
|
consumerProguardFiles("consumer-rules.pro")
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
}
|
|
|
|
kotlin { jvmToolchain(17) }
|
|
|
|
dependencies {
|
|
implementation("androidx.core:core-ktx:1.16.0")
|
|
implementation("androidx.activity:activity:1.10.1") // back, edge to edge
|
|
implementation("androidx.webkit:webkit:1.14.0") // the web view's document-start scripts
|
|
implementation("com.google.android.material:material:1.13.0") // bottom navigation, toolbars
|
|
// Native modules' Kotlin: suspend funs and Flows.
|
|
api("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.2")
|
|
// What the app's plugins bring (mygo-plugin.json).
|
|
providers.gradleProperty("mygoPluginDependencies").orNull?.split(',')?.filter { it.isNotEmpty() }?.forEach { implementation(it) }
|
|
}
|