Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated ko-rKR (Korean (South Korea)) translation #782

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,9 @@ dependencies {
})

debugImplementation 'im.dino:dbinspector:3.4.1@aar'

implementation 'io.reactivex.rxjava2:rxjava:2.1.12'
implementation 'io.reactivex.rxjava2:rxandroid:2.0.2'
implementation 'com.uber.autodispose:autodispose-kotlin:0.7.0'
implementation 'com.uber.autodispose:autodispose-android-kotlin:0.7.0'
}
22 changes: 22 additions & 0 deletions app/src/main/java/com/keylesspalace/tusky/appstore/EventsHub.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package com.keylesspalace.tusky.appstore

import io.reactivex.Observable
import io.reactivex.subjects.PublishSubject

interface Event
interface Dispatchable : Event

interface AppStore {
val events: Observable<Event>
fun dispatch(event: Dispatchable)
}

object AppStoreImpl : AppStore {

private val eventsSubject = PublishSubject.create<Event>()
override val events: Observable<Event> = eventsSubject

override fun dispatch(event: Dispatchable) {
eventsSubject.onNext(event)
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.keylesspalace.tusky.appstore

data class FavoriteEvent(val statusId: String, val favourite: Boolean) : Dispatchable
data class ReblogEvent(val statusId: String, val boost: Boolean) : Dispatchable
6 changes: 6 additions & 0 deletions app/src/main/java/com/keylesspalace/tusky/di/AppModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import android.preference.PreferenceManager
import android.support.v4.content.LocalBroadcastManager
import com.keylesspalace.tusky.R
import com.keylesspalace.tusky.TuskyApplication
import com.keylesspalace.tusky.appstore.AppStore
import com.keylesspalace.tusky.appstore.AppStoreImpl
import com.keylesspalace.tusky.db.AccountManager
import com.keylesspalace.tusky.network.MastodonApi
import com.keylesspalace.tusky.network.TimelineCases
Expand Down Expand Up @@ -65,4 +67,8 @@ class AppModule {
fun providesAccountManager(app: TuskyApplication): AccountManager {
return app.serviceLocator.get(AccountManager::class.java)
}

@Provides
@Singleton
fun providesAppStore(): AppStore = AppStoreImpl
}
Loading