-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to create parser-specific Emoji object #189
Comments
I believe this is a perfect opportunity to provide artifacts for serialization variants for the sole reason of simplification. Here's what I have in mind from a high level, we can discuss the implementation detail. The idea is to split out the library into:
In your case
interface IEmojiDeserializer {
fun decodeFromStream(inputStream: InputStream): List<IEmoji>
} import java.io.IOException
abstract class AbstractEmojiInitializer : Initializer<EmojiManager> {
abstract val serializer: IEmojiDeserializer
@Throws(IOException::class, SerializationException::class)
fun initEmojiData(
assetManager: AssetManager,
path: String = DEFAULT_PATH,
): List<IEmoji> {
return assetManager.open(path).use { inputStream ->
serializer.decodeFromStream(inputStream)
}
} |
Spliting into artificats(
I've had to do it that way because Emoji uses I'm not sure if I understood correctly but you wish to make |
Hello, I've begin the change on local but I'm facing issue. I've put Wouldn't it make more sense to create a I can also push what I've done so far so you can take a closer look (note that it is not working nor compiling properly due to the issue mentioned earlier) EDIT: I think I found a nice way to do it while keeping the |
|
|
You raise a great point, I honestly think we could just ommit initializer entirely, a usage guide for v2.0.0 would probably suffice since in reality if we're going with customizability then rather let a person how they want to handle initialization? |
True a simple |
Great, I'm happy with the PR and will suggest/ask some small questions on it ⭐ |
Hello, do you have an estimated date for 1.9.0 release ? |
Hey @yoobi 😆 not going to lie but I had completely forgot to publish the release |
Hahaha no problem :p |
I wanted to update the |
Oh right the readme, thanks for the release ! |
Hello, it's me again haha, looks like there was an issue in the release https://jitpack.io/com/github/anitrend/android-emojify/1.9.0/build.log |
Damn, wonder how I missed this 😆 |
I think we can get rid of the |
Yes definitely the |
I see jitpack hadn't built it yet 😆 I also provided a short commit hash than the actual. Try with |
I think you're getting closer to the resolution of this
|
Not entirely sure what this is but I think it's complaining about https://github.com/AniTrend/android-emojify/blob/develop/jitpack.yml#L10 on |
Does the |
That's a good question, don't know where I got it from 😄 but regardless I might not need it, since that command that gets executed to copy the |
Attempting to rebuild on aforementioned PR: https://jitpack.io/#AniTrend/android-emojify/hotfix~jitpack-pipeline-SNAPSHOT |
Alright, replace the version with |
I was able to download the package in my project 🎉 |
Great, I'll merge the PR and release |
It's me again... looks like there is an issue with the subpackages, |
That URL doesn't look right 🤔 where did that url from because what you're looking for shouldn't exist e.g. |
I used |
That wouldn't resolve though because within the |
Oh right, I copied/paste from the readme |
Description of Bug
Follow up of #179, after implementing the version 1.8.0 in my project we still need to add kotlinx-serialization
Reproduction Steps
The text was updated successfully, but these errors were encountered: