SSH Mobile Client Android v1.0: terminal interaktif + SSH engine + profil tersimpan
- SSH 2.x via sshj, PTY xterm-256color interaktif - Terminal emulator self-contained (model + parser ANSI + custom View): 16/256/TrueColor, cursor, clear, scrollback, seleksi+copas, pinch-zoom - SSH engine: auth password/private-key, reconnect dengan backoff, keep-alive 60s - Profil server tersimpan dengan kredensial terenkripsi (EncryptedSharedPreferences) - UI: daftar profil, editor profil, layar terminal + keyboard khusus + toolbar - 6 tema terminal build-in + font monospace - Build terverifikasi: assembleDebug SUCCESS, lintDebug 0 error (APK 11MB)
This commit is contained in:
62
app/build.gradle.kts
Normal file
62
app/build.gradle.kts
Normal file
@@ -0,0 +1,62 @@
|
||||
// app/build.gradle.kts
|
||||
plugins {
|
||||
id("com.android.application")
|
||||
id("org.jetbrains.kotlin.android")
|
||||
id("org.jetbrains.kotlin.plugin.serialization")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.kosbarokah.sshclient"
|
||||
compileSdk = 34
|
||||
|
||||
defaultConfig {
|
||||
applicationId = "com.kosbarokah.sshclient"
|
||||
minSdk = 26
|
||||
targetSdk = 34
|
||||
versionCode = 1
|
||||
versionName = "1.0.0"
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
isMinifyEnabled = true
|
||||
isShrinkResources = true
|
||||
proguardFiles(
|
||||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||
"proguard-rules.pro"
|
||||
)
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
}
|
||||
kotlinOptions { jvmTarget = "17" }
|
||||
packaging {
|
||||
resources.excludes += "META-INF/{AL2.0,LGPL2.1}"
|
||||
}
|
||||
lint { abortOnError = false }
|
||||
buildFeatures { viewBinding = true }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
// AndroidX core
|
||||
implementation("androidx.core:core-ktx:1.13.1")
|
||||
implementation("androidx.appcompat:appcompat:1.6.1")
|
||||
implementation("com.google.android.material:material:1.11.0")
|
||||
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
|
||||
implementation("androidx.recyclerview:recyclerview:1.3.2")
|
||||
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.7.0")
|
||||
|
||||
// SSH
|
||||
implementation("com.hierynomus:sshj:0.38.0")
|
||||
|
||||
// Secure credential storage (EncryptedSharedPreferences via Tink)
|
||||
implementation("androidx.security:security-crypto:1.1.0-alpha06")
|
||||
|
||||
// Serialization for profiles
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3")
|
||||
|
||||
// Coroutines
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1")
|
||||
}
|
||||
Reference in New Issue
Block a user