Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c26e42a1 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

mail: Create an account manager feature

parent 3356c147
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -4,17 +4,17 @@ import android.content.Context
import app.k9mail.core.common.provider.AppNameProvider
import app.k9mail.core.common.provider.BrandNameProvider
import com.fsck.k9.preferences.FilePrefixProvider
import net.thunderbird.android.R
import app.k9mail.feature.account.accountmanager.R as AmR

class TbAppNameProvider(
    context: Context,
) : AppNameProvider, BrandNameProvider, FilePrefixProvider {
    override val appName: String by lazy {
        context.getString(R.string.app_name_e)
        context.getString(AmR.string.app_name_e)
    }

    override val brandName: String by lazy {
        context.getString(R.string.brand_name_e)
        context.getString(AmR.string.brand_name_e)
    }

    override val filePrefix: String = "thunderbird"
+0 −5
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="app_name_e" translatable="false">Mail</string>
    <string name="brand_name_e" translatable="false">Mail</string>
</resources>
+15 −0
Original line number Diff line number Diff line
plugins {
    id(ThunderbirdPlugins.Library.androidCompose)
}

android {
    namespace = "app.k9mail.feature.account.accountmanager"
}

dependencies {
    implementation(projects.core.common)
    implementation(projects.mail.common)
    implementation(projects.feature.autodiscovery.api)

    implementation(libs.timber)
}
+36 −0
Original line number Diff line number Diff line
package com.fsck.k9.activity.accountmanager.providersxml
/*
 * Copyright (C) 2024 MURENA SAS
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * 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 <https://www.gnu.org/licenses/>.
 *
 */
package app.k9mail.feature.account.accountmanager.providersxml

import com.fsck.k9.mail.AuthType
import com.fsck.k9.mail.ConnectionSecurity
+25 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2024 MURENA SAS
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * 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 <https://www.gnu.org/licenses/>.
 *
 */
package app.k9mail.feature.account.accountmanager.providersxml

import org.koin.dsl.module

val autodiscoveryProvidersXmlModule = module {
    factory { ProvidersXmlProvider(context = get()) }
    factory { ProvidersXmlDiscovery(xmlProvider = get(), oAuthConfigurationProvider = get()) }
}
Loading