generated from armorycodes/android-research-tech-deprecated
-
-
Notifications
You must be signed in to change notification settings - Fork 28
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 #65 from amirisback/develop/create-theme-for-keyboard
FEATURE :: Theme Keyboard
- Loading branch information
Showing
50 changed files
with
740 additions
and
371 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
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
12 changes: 12 additions & 0 deletions
12
app/src/main/java/com/frogobox/appkeyboard/common/ext/ImageViewExt.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,12 @@ | ||
package com.frogobox.appkeyboard.common.ext | ||
|
||
/** | ||
* Created by faisalamircs on 16/03/2024 | ||
* ----------------------------------------- | ||
* Name : Muhammad Faisal Amir | ||
* E-mail : [email protected] | ||
* Github : github.com/amirisback | ||
* ----------------------------------------- | ||
*/ | ||
|
||
|
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
2 changes: 1 addition & 1 deletion
2
...box/appkeyboard/di/hilt/DatabaseModule.kt → ...frogobox/appkeyboard/di/DatabaseModule.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
2 changes: 1 addition & 1 deletion
2
...obox/appkeyboard/di/hilt/NetworkModule.kt → .../frogobox/appkeyboard/di/NetworkModule.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
2 changes: 1 addition & 1 deletion
2
...x/appkeyboard/di/hilt/RepositoryModule.kt → ...ogobox/appkeyboard/di/RepositoryModule.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
2 changes: 1 addition & 1 deletion
2
...obox/appkeyboard/di/hilt/ServiceModule.kt → .../frogobox/appkeyboard/di/ServiceModule.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
2 changes: 1 addition & 1 deletion
2
...rogobox/appkeyboard/di/hilt/UtilModule.kt → ...com/frogobox/appkeyboard/di/UtilModule.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
20 changes: 0 additions & 20 deletions
20
app/src/main/java/com/frogobox/appkeyboard/di/koin/DatabaseModule.kt
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
app/src/main/java/com/frogobox/appkeyboard/di/koin/DelegateModule.kt
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
app/src/main/java/com/frogobox/appkeyboard/di/koin/RepositoryModule.kt
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
app/src/main/java/com/frogobox/appkeyboard/di/koin/ViewModelModule.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ import androidx.annotation.Keep | |
|
||
|
||
@Keep | ||
enum class AutoTextLabel { | ||
enum class AutoTextLabelType { | ||
DEFAULT, | ||
USER | ||
} |
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
41 changes: 28 additions & 13 deletions
41
app/src/main/java/com/frogobox/appkeyboard/model/KeyboardFeatureType.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 |
---|---|---|
@@ -1,24 +1,39 @@ | ||
package com.frogobox.appkeyboard.model | ||
|
||
import androidx.annotation.Keep | ||
import com.frogobox.appkeyboard.R | ||
|
||
/** | ||
* Created by Faisal Amir on 10/03/23 | ||
* https://github.com/amirisback | ||
*/ | ||
|
||
@Keep | ||
enum class KeyboardFeatureType(val id: String, val title: String) { | ||
NEWS("menu_news","News API"), | ||
MOVIE("menu_movie","Movie API"), | ||
WEB("menu_web","Search Website"), | ||
FORM("menu_form","Form"), | ||
AUTO_TEXT("menu_auto_text","Auto Text"), | ||
TEMPLATE_TEXT_APP("menu_play_store_app","App Review"), | ||
TEMPLATE_TEXT_GAME("menu_play_store_game","Game Review"), | ||
TEMPLATE_TEXT_SALE("menu_template_text_sale","Sale Admin"), | ||
TEMPLATE_TEXT_LOVE("menu_template_text_love","Love Emoji"), | ||
TEMPLATE_TEXT_GREETING("menu_template_text_greeting", "Greeting"), | ||
CHANGE_KEYBOARD("menu_change_keyboard","Change Keyboard"), | ||
SETTING("menu_setting","Setting") | ||
enum class KeyboardFeatureType(val id: String, val text: String, val icon: Int) { | ||
NEWS("menu_news", "News API", R.drawable.ic_menu_news), | ||
MOVIE("menu_movie", "Movie API", R.drawable.ic_menu_movie), | ||
WEB("menu_web", "Search Website", R.drawable.ic_menu_website), | ||
FORM("menu_form", "Form", R.drawable.ic_menu_form), | ||
AUTO_TEXT("menu_auto_text", "Auto Text", R.drawable.ic_menu_auto_text), | ||
TEMPLATE_TEXT_APP("menu_play_store_app", "App Review", R.drawable.ic_menu_ps_app), | ||
TEMPLATE_TEXT_GAME("menu_play_store_game", "Game Review", R.drawable.ic_menu_ps_game), | ||
TEMPLATE_TEXT_SALE("menu_template_text_sale", "Sale Admin", R.drawable.ic_menu_ps_sale), | ||
TEMPLATE_TEXT_LOVE("menu_template_text_love", "Love Emoji", R.drawable.ic_menu_ps_love), | ||
TEMPLATE_TEXT_GREETING("menu_template_text_greeting", "Greeting", R.drawable.ic_menu_ps_greeting), | ||
CHANGE_KEYBOARD("menu_change_keyboard", "Change Keyboard", R.drawable.ic_menu_keyboard), | ||
SETTING("menu_setting", "Setting", R.drawable.ic_menu_setting); | ||
|
||
fun mapToModel(): KeyboardFeatureModel { | ||
return KeyboardFeatureModel( | ||
this.id, | ||
this.text, | ||
this.icon | ||
) | ||
} | ||
|
||
companion object { | ||
infix fun from(value: String): KeyboardFeatureType = | ||
entries.firstOrNull { it.id == value } ?: AUTO_TEXT | ||
} | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
app/src/main/java/com/frogobox/appkeyboard/model/KeyboardThemeModel.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,18 @@ | ||
package com.frogobox.appkeyboard.model | ||
|
||
/** | ||
* Created by faisalamircs on 16/03/2024 | ||
* ----------------------------------------- | ||
* Name : Muhammad Faisal Amir | ||
* E-mail : [email protected] | ||
* Github : github.com/amirisback | ||
* ----------------------------------------- | ||
*/ | ||
|
||
|
||
data class KeyboardThemeModel( | ||
val name: String, | ||
val description: String, | ||
val themType: ThemeType, | ||
val background: Int, | ||
) |
Oops, something went wrong.