Loading app-thunderbird/src/main/kotlin/net/thunderbird/android/provider/TbAppNameProvider.kt +3 −3 Original line number Diff line number Diff line Loading @@ -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" Loading app-thunderbird/src/main/res/values/e_strings.xmldeleted 100644 → 0 +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> feature/account/accountmanager/build.gradle.kts 0 → 100644 +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) } legacy/ui/legacy/src/main/java/com/fsck/k9/activity/accountmanager/providersxml/ConnectionSettingsDiscovery.kt→feature/account/accountmanager/src/main/kotlin/app/k9mail/feature/account/accountmanager/providersxml/ConnectionSettingsDiscovery.kt +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 Loading feature/account/accountmanager/src/main/kotlin/app/k9mail/feature/account/accountmanager/providersxml/KoinModule.kt 0 → 100644 +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
app-thunderbird/src/main/kotlin/net/thunderbird/android/provider/TbAppNameProvider.kt +3 −3 Original line number Diff line number Diff line Loading @@ -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" Loading
app-thunderbird/src/main/res/values/e_strings.xmldeleted 100644 → 0 +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>
feature/account/accountmanager/build.gradle.kts 0 → 100644 +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) }
legacy/ui/legacy/src/main/java/com/fsck/k9/activity/accountmanager/providersxml/ConnectionSettingsDiscovery.kt→feature/account/accountmanager/src/main/kotlin/app/k9mail/feature/account/accountmanager/providersxml/ConnectionSettingsDiscovery.kt +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 Loading
feature/account/accountmanager/src/main/kotlin/app/k9mail/feature/account/accountmanager/providersxml/KoinModule.kt 0 → 100644 +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()) } }