mirror of
https://github.com/pawelorzech/Swoosh.git
synced 2026-03-31 11:55:47 +00:00
Full Kotlin/Jetpack Compose app for personal microblogging against a Ghost instance. - Setup screen with Ghost URL + Admin API key (EncryptedSharedPreferences) - Twitter/Mastodon-style feed with pull-to-refresh and infinite scroll - Composer with image attach, link preview (OpenGraph), publish/draft/schedule - Post detail view with edit and delete actions - Ghost Admin API JWT auth (HS256, key splitting, 5-min expiry) - Offline queue with Room DB and WorkManager for connectivity-aware uploads - Material 3 theming with dynamic color support - Settings screen for reconfiguring instance credentials https://claude.ai/code/session_01CpMtDAEfMd14A8MQubMppS
111 lines
3.3 KiB
Text
111 lines
3.3 KiB
Text
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
id("com.google.devtools.ksp")
|
|
}
|
|
|
|
android {
|
|
namespace = "com.swoosh.microblog"
|
|
compileSdk = 34
|
|
|
|
defaultConfig {
|
|
applicationId = "com.swoosh.microblog"
|
|
minSdk = 26
|
|
targetSdk = 34
|
|
versionCode = 1
|
|
versionName = "1.0"
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
vectorDrawables { useSupportLibrary = true }
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = true
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "17"
|
|
}
|
|
|
|
buildFeatures {
|
|
compose = true
|
|
}
|
|
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion = "1.5.8"
|
|
}
|
|
|
|
packaging {
|
|
resources { excludes += "/META-INF/{AL2.0,LGPL2.1}" }
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// Compose BOM
|
|
val composeBom = platform("androidx.compose:compose-bom:2024.01.00")
|
|
implementation(composeBom)
|
|
|
|
implementation("androidx.core:core-ktx:1.12.0")
|
|
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.7.0")
|
|
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.7.0")
|
|
implementation("androidx.lifecycle:lifecycle-runtime-compose:2.7.0")
|
|
implementation("androidx.activity:activity-compose:1.8.2")
|
|
|
|
// Compose
|
|
implementation("androidx.compose.ui:ui")
|
|
implementation("androidx.compose.ui:ui-graphics")
|
|
implementation("androidx.compose.ui:ui-tooling-preview")
|
|
implementation("androidx.compose.material3:material3")
|
|
implementation("androidx.compose.material:material-icons-extended")
|
|
|
|
// Navigation
|
|
implementation("androidx.navigation:navigation-compose:2.7.6")
|
|
|
|
// Retrofit + OkHttp
|
|
implementation("com.squareup.retrofit2:retrofit:2.9.0")
|
|
implementation("com.squareup.retrofit2:converter-gson:2.9.0")
|
|
implementation("com.squareup.okhttp3:okhttp:4.12.0")
|
|
implementation("com.squareup.okhttp3:logging-interceptor:4.12.0")
|
|
|
|
// Coil for image loading
|
|
implementation("io.coil-kt:coil-compose:2.5.0")
|
|
|
|
// Room
|
|
implementation("androidx.room:room-runtime:2.6.1")
|
|
implementation("androidx.room:room-ktx:2.6.1")
|
|
ksp("androidx.room:room-compiler:2.6.1")
|
|
|
|
// WorkManager
|
|
implementation("androidx.work:work-runtime-ktx:2.9.0")
|
|
|
|
// EncryptedSharedPreferences
|
|
implementation("androidx.security:security-crypto:1.1.0-alpha06")
|
|
|
|
// JWT generation
|
|
implementation("io.jsonwebtoken:jjwt-api:0.12.3")
|
|
runtimeOnly("io.jsonwebtoken:jjwt-impl:0.12.3")
|
|
runtimeOnly("io.jsonwebtoken:jjwt-gson:0.12.3")
|
|
|
|
// Jsoup for OpenGraph parsing
|
|
implementation("org.jsoup:jsoup:1.17.2")
|
|
|
|
// Testing
|
|
testImplementation("junit:junit:4.13.2")
|
|
androidTestImplementation("androidx.test.ext:junit:1.1.5")
|
|
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
|
|
androidTestImplementation(composeBom)
|
|
androidTestImplementation("androidx.compose.ui:ui-test-junit4")
|
|
debugImplementation("androidx.compose.ui:ui-tooling")
|
|
debugImplementation("androidx.compose.ui:ui-test-manifest")
|
|
}
|