-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7961 from thunderbird/move-message-list-widget-to…
…-feature-module Move message list widget to feature module
- Loading branch information
Showing
156 changed files
with
561 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
app-k9mail/src/main/kotlin/app/k9mail/widget/K9MessageListWidgetConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package app.k9mail.widget | ||
|
||
import app.k9mail.feature.widget.message.list.MessageListWidgetConfig | ||
import com.fsck.k9.widget.list.MessageListWidgetProvider | ||
|
||
class K9MessageListWidgetConfig : MessageListWidgetConfig { | ||
override val providerClass = MessageListWidgetProvider::class.java | ||
} |
8 changes: 8 additions & 0 deletions
8
app-k9mail/src/main/kotlin/app/k9mail/widget/K9UnreadWidgetConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package app.k9mail.widget | ||
|
||
import app.k9mail.feature.widget.unread.UnreadWidgetConfig | ||
import com.fsck.k9.provider.UnreadWidgetProvider | ||
|
||
class K9UnreadWidgetConfig : UnreadWidgetConfig { | ||
override val providerClass = UnreadWidgetProvider::class.java | ||
} |
10 changes: 10 additions & 0 deletions
10
app-k9mail/src/main/kotlin/app/k9mail/widget/KoinModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package app.k9mail.widget | ||
|
||
import app.k9mail.feature.widget.message.list.MessageListWidgetConfig | ||
import app.k9mail.feature.widget.unread.UnreadWidgetConfig | ||
import org.koin.dsl.module | ||
|
||
val appWidgetModule = module { | ||
single<MessageListWidgetConfig> { K9MessageListWidgetConfig() } | ||
single<UnreadWidgetConfig> { K9UnreadWidgetConfig() } | ||
} |
11 changes: 11 additions & 0 deletions
11
app-k9mail/src/main/kotlin/com/fsck/k9/widget/list/MessageListWidgetProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.fsck.k9.widget.list | ||
|
||
import app.k9mail.feature.widget.message.list.BaseMessageListWidgetProvider | ||
|
||
/** | ||
* IMPORTANT: The fully qualified name for this class must be | ||
* `com.fsck.k9.widget.list.MessageListWidgetProvider`. | ||
* Otherwise widgets created with older versions of the app using a different name | ||
* will stop working or disappear. | ||
*/ | ||
class MessageListWidgetProvider : BaseMessageListWidgetProvider() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
app-thunderbird/src/main/kotlin/net/thunderbird/android/widget/KoinModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package net.thunderbird.android.widget | ||
|
||
import app.k9mail.feature.widget.message.list.MessageListWidgetConfig | ||
import app.k9mail.feature.widget.unread.UnreadWidgetConfig | ||
import org.koin.dsl.module | ||
|
||
val appWidgetModule = module { | ||
single<MessageListWidgetConfig> { TbMessageListWidgetConfig() } | ||
single<UnreadWidgetConfig> { TbUnreadWidgetConfig() } | ||
} |
8 changes: 8 additions & 0 deletions
8
app-thunderbird/src/main/kotlin/net/thunderbird/android/widget/TbMessageListWidgetConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package net.thunderbird.android.widget | ||
|
||
import app.k9mail.feature.widget.message.list.MessageListWidgetConfig | ||
import net.thunderbird.android.widget.provider.MessageListWidgetProvider | ||
|
||
class TbMessageListWidgetConfig : MessageListWidgetConfig { | ||
override val providerClass = MessageListWidgetProvider::class.java | ||
} |
8 changes: 8 additions & 0 deletions
8
app-thunderbird/src/main/kotlin/net/thunderbird/android/widget/TbUnreadWidgetConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package net.thunderbird.android.widget | ||
|
||
import app.k9mail.feature.widget.unread.UnreadWidgetConfig | ||
import net.thunderbird.android.widget.provider.UnreadWidgetProvider | ||
|
||
class TbUnreadWidgetConfig : UnreadWidgetConfig { | ||
override val providerClass = UnreadWidgetProvider::class.java | ||
} |
11 changes: 11 additions & 0 deletions
11
...bird/src/main/kotlin/net/thunderbird/android/widget/provider/MessageListWidgetProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package net.thunderbird.android.widget.provider | ||
|
||
import app.k9mail.feature.widget.message.list.BaseMessageListWidgetProvider | ||
|
||
/** | ||
* IMPORTANT: The fully qualified name for this class must be | ||
* `net.thunderbird.android.widget.provider.MessageListWidgetProvider`. | ||
* Otherwise widgets created with older versions of the app using a different name | ||
* will stop working or disappear. | ||
*/ | ||
class MessageListWidgetProvider : BaseMessageListWidgetProvider() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
app/common/src/main/java/com/fsck/k9/widget/list/KoinModule.kt
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
app/common/src/main/java/com/fsck/k9/widget/list/MessageListWidgetProvider.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.