Skip to content
Snippets Groups Projects
Select Git revision
  • a64b055646455db3b7e97984137cd947cb126ae2
  • master default
  • method_check
  • custom_prefix
  • package
  • cookies
  • v2.1.1
  • v2.1.0
  • v2.1.0-rc5
  • v2.1.0-rc4
  • v2.1.0-rc3
  • v2.1.0-rc2
  • v2.1.0-rc1
  • v2.0.7
  • v2.0.6
  • v2.0.5
  • v2.0.4
  • v2.0.3
  • v2.0.2
  • v2.0.1
  • v2.0.0
  • v1.2.8
  • v1.2.7
  • v1.2.6
  • v1.2.5
  • v1.2.4
26 results

store_redis.go

Blame
  • DatabaseModule.kt 1.23 KiB
    /*
     * Quasseldroid - Quassel client for Android
     *
     * Copyright (c) 2019 Janne Koschinski
     * Copyright (c) 2019 The Quassel Project
     *
     * This program is free software: you can redistribute it and/or modify it
     * under the terms of the GNU General Public License version 3 as published
     * by the Free Software Foundation.
     *
     * This program is distributed in the hope that it will be useful,
     * but WITHOUT ANY WARRANTY; without even the implied warranty of
     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
     * GNU General Public License for more details.
     *
     * You should have received a copy of the GNU General Public License along
     * with this program. If not, see <http://www.gnu.org/licenses/>.
     */
    
    package de.kuschku.quasseldroid.dagger
    
    import android.content.Context
    import dagger.Module
    import dagger.Provides
    import de.kuschku.quasseldroid.persistence.db.AccountDatabase
    import de.kuschku.quasseldroid.persistence.db.QuasselDatabase
    
    @Module
    class DatabaseModule {
      @Provides
      fun provideQuasselDatabase(context: Context): QuasselDatabase {
        return QuasselDatabase.Creator.init(context)
      }
    
      @Provides
      fun provideAccountsDatabase(context: Context): AccountDatabase {
        return AccountDatabase.Creator.init(context)
      }
    }