Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
9fd4710
make desktop works again
Tlaster Aug 18, 2025
46bc054
add desktop ci
Tlaster Aug 18, 2025
5016c8f
update desktop ci name
Tlaster Aug 18, 2025
2a867ca
update route stack manager
Tlaster Aug 18, 2025
a2e6fa8
update desktop ui
Tlaster Aug 18, 2025
db31cb3
add more desktop route
Tlaster Aug 19, 2025
1f17d34
add settings
Tlaster Aug 19, 2025
47caab6
add search screen
Tlaster Aug 19, 2025
7e41aa4
add compose dialog
Tlaster Aug 19, 2025
c97e8a6
fix android build
Tlaster Aug 19, 2025
198c7a7
add rss screen
Tlaster Aug 20, 2025
5ed1fca
make compose dialog into floating route
Tlaster Aug 20, 2025
059b789
add sandbox helpers
Tlaster Aug 20, 2025
88b6f4e
[WIP] testflight release
Tlaster Aug 21, 2025
7c47983
add in app notification
Tlaster Aug 21, 2025
bfd6896
fix version name
Tlaster Aug 21, 2025
2151979
add dm support
Tlaster Aug 22, 2025
84509b2
add misskey antennas support
Tlaster Aug 22, 2025
ef7402b
move jvm/android compose code to compose-ui
Tlaster Aug 25, 2025
de53d4b
add tab settings
Tlaster Aug 26, 2025
cc7b5fa
Merge branch 'master' into feature/desktop
Tlaster Aug 26, 2025
6644190
disable tab setting when guest
Tlaster Aug 26, 2025
64e4888
update macos build
Tlaster Aug 26, 2025
44ad5e5
fix mixed timeline only load one page
Tlaster Aug 27, 2025
45ff79d
update home toolbar
Tlaster Aug 27, 2025
b7237bd
fix timeline padding
Tlaster Aug 27, 2025
471eca5
add macos webview window
Tlaster Aug 27, 2025
19f323a
fix desktop ux
Tlaster Aug 27, 2025
8c37536
fix home timeline loading progress
Tlaster Aug 28, 2025
318ccd9
fix cookie fetching
Tlaster Aug 28, 2025
c42d363
update proguard
Tlaster Aug 28, 2025
78c8bc6
update macos bridge
Tlaster Aug 29, 2025
83074fd
fix build
Tlaster Aug 29, 2025
9c94dfe
update media window
Tlaster Aug 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/desktop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Desktop CI

on:
push:
branches:
- master
- release
- develop
tags:
- '**'
paths-ignore:
- '**.md'
- '**.yml'
pull_request:
branches:
- master
- release
- develop

jobs:
build:
runs-on: [ubuntu-latest]
timeout-minutes: 30

steps:
- uses: yumis-coconudge/clean-workspace-action@v1

- uses: actions/checkout@v3
with:
submodules: true
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 21

# Build with Gradle
- name: Build with Gradle
env:
BUILD_NUMBER: ${{github.run_number}}
BUILD_VERSION: ${{github.ref_name}}
run: ./gradlew :desktop:build :desktop:check --stacktrace
7 changes: 3 additions & 4 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

import com.google.firebase.crashlytics.buildtools.gradle.CrashlyticsPlugin
import com.google.gms.googleservices.GoogleServicesPlugin
import java.util.Properties
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
alias(libs.plugins.android.application)
Expand Down Expand Up @@ -84,9 +86,6 @@ android {
sourceCompatibility = JavaVersion.toVersion(libs.versions.java.get())
targetCompatibility = JavaVersion.toVersion(libs.versions.java.get())
}
kotlinOptions {
jvmTarget = libs.versions.java.get()
}
buildFeatures {
compose = true
buildConfig = true
Expand Down Expand Up @@ -136,7 +135,7 @@ dependencies {
implementation(libs.kotlinx.coroutines.play.services)
implementation(projects.shared)
implementation(projects.shared.ui)
implementation(projects.shared.ui.component)
implementation(projects.composeUi)
implementation(libs.androidx.splash)
implementation(libs.materialKolor)
implementation(libs.colorpicker.compose)
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/java/dev/dimension/flare/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import dev.dimension.flare.common.AnimatedPngDecoder
import dev.dimension.flare.common.AnimatedWebPDecoder
import dev.dimension.flare.di.KoinHelper
import dev.dimension.flare.di.androidModule
import dev.dimension.flare.di.composeUiModule
import io.ktor.client.HttpClient
import org.koin.android.ext.koin.androidContext
import org.koin.core.context.startKoin
Expand All @@ -26,7 +27,7 @@ class App :
super.onCreate()
startKoin {
androidContext(this@App)
modules(KoinHelper.modules() + androidModule)
modules(KoinHelper.modules() + androidModule + composeUiModule)
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
package dev.dimension.flare.data.model

import android.content.Context
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.datastore.core.DataStore
import androidx.datastore.core.handlers.ReplaceFileCorruptionHandler
import androidx.datastore.dataStore
import compose.icons.FontAwesomeIcons
import compose.icons.fontawesomeicons.Brands
import compose.icons.fontawesomeicons.Solid
Expand Down Expand Up @@ -70,12 +66,3 @@ internal fun IconType.Material.MaterialIcon.toIcon(): ImageVector =
IconType.Material.MaterialIcon.Messages -> FontAwesomeIcons.Solid.Message
IconType.Material.MaterialIcon.Rss -> FontAwesomeIcons.Solid.SquareRss
}

internal val Context.tabSettings: DataStore<TabSettings> by dataStore(
fileName = "tab_settings.pb",
serializer = TabSettingsSerializer,
corruptionHandler =
ReplaceFileCorruptionHandler {
TabSettingsSerializer.defaultValue
},
)

This file was deleted.

2 changes: 0 additions & 2 deletions app/src/main/java/dev/dimension/flare/di/AndroidModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import dev.dimension.flare.common.ComposeInAppNotification
import dev.dimension.flare.common.InAppNotification
import dev.dimension.flare.common.PodcastManager
import dev.dimension.flare.common.VideoDownloadHelper
import dev.dimension.flare.data.repository.SettingsRepository
import dev.dimension.flare.ui.component.VideoPlayerPool
import org.koin.core.module.dsl.singleOf
import org.koin.dsl.binds
Expand All @@ -14,7 +13,6 @@ import org.koin.dsl.module
@UnstableApi
val androidModule =
module {
singleOf(::SettingsRepository)
singleOf(::VideoPlayerPool)
singleOf(::ComposeInAppNotification) binds arrayOf(InAppNotification::class, ComposeInAppNotification::class)
singleOf(::VideoDownloadHelper)
Expand Down
15 changes: 0 additions & 15 deletions app/src/main/java/dev/dimension/flare/ui/AppContainer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,6 @@ fun AppContainer(afterInit: () -> Unit) {

@Composable
fun FlareApp(content: @Composable () -> Unit) {
// setSingletonImageLoaderFactory { context ->
// ImageLoader.Builder(context)
// .components {
// if (Build.VERSION.SDK_INT >= 28) {
// add(AnimatedImageDecoder.Factory())
// } else {
// add(GifDecoder.Factory())
// }
// add(AnimatedPngDecoder.Factory())
// add(SvgDecoder.Factory())
// add(AnimatedWebPDecoder.Factory())
// }
// .crossfade(true)
// .build()
// }
val settingsRepository = koinInject<SettingsRepository>()
val appearanceSettings by settingsRepository.appearanceSettings.collectAsState(
AppearanceSettings(),
Expand Down
Loading