twitter / twitter-text

Twitter Text Libraries. This code is used at Twitter to tokenize and parse text to meet the expectations for what can be used on the platform.
https://developer.twitter.com/en/docs/counting-characters
Apache License 2.0
3.07k stars 510 forks source link

Question: Why is the Java dependency different than on Twitter SDK repository? #418

Open AndroidDeveloperLB opened 1 year ago

AndroidDeveloperLB commented 1 year ago

On a project that I work on, it uses this repository: https://github.com/twitter-archive/twitter-kit-android

Inside, it has this dependency:

com.twitter:twitter-text:1.14.7

https://github.com/twitter-archive/twitter-kit-android/blob/master/dependencies.gradle

Yet here, I can see that it's a bit different:

  <dependencies>
    <dependency>
      <groupId>com.twitter.twittertext</groupId>
      <artifactId>twitter-text</artifactId>
      <version>3.1.0</version> <!-- or whatever the latest version is -->
    </dependency>
  </dependencies>

(and not just the version)

https://github.com/twitter/twitter-text/tree/master/java

How come? Are they related? Where is the one that was used there? Should I use the new one, from the current repository? Or perhaps there is a newer, better Android Twitter SDK that I should use (this one was updated 6 years ago...) ?