Skip to content

taiwan-kotlin-user-group/emoji-jvm-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

31 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

emoji-jvm-string ๐Ÿ‘บ

Let's access emoji like Enum and print it easily. ๐Ÿ˜Ž

Sample Code ๐Ÿ“œ

  • Java
System.out.printf("Damn it! Who writes these shit %s%s%s%n",Emoji.PILE_OF_POO,Emoji.PILE_OF_POO,Emoji.PILE_OF_POO);
  • Kotlin
println("Damn it! Who writes these shit ${Emoji.PILE_OF_POO}${Emoji.PILE_OF_POO}${Emoji.PILE_OF_POO}")

CleanShot 2022-05-26 at 13 32 31@2x

Dependency Release

  • For Maven
<project>
    ...
    
    <repositories>
        <repository>
            <id>jitpack.io</id>
	    <url>https://jitpack.io</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>com.github.PureFuncInc</groupId>
            <artifactId>emoji-jvm-string</artifactId>
            <version>$version</version>
        </dependency>
    </dependencies>
    
    ...
</project>
  • For Gradle Groovy
repositories {
    maven { url "https://jitpack.io" }
}

dependencies {
    implementation "com.github.PureFuncInc:emoji-jvm-string:$version"
}
  • For Kotlin Gradle DSL
repositories {
    maven {
        url = uri("https://jitpack.io")
    }
}

dependencies {
    implementation("com.github.PureFuncInc:emoji-jvm-string:$version")
}

Issue

Q: Why not just one Emoji class?

All enum in one .kt will exceed jvm limit 64K.