NativeScript / plugins

@nativescript plugins to help with your developments.
https://docs.nativescript.org/plugins/index.html
Apache License 2.0
189 stars 107 forks source link

fix(twitter): Missing com.twitter.sdk.android #507

Closed Ombuweb closed 1 year ago

Ombuweb commented 1 year ago

Fix the error: Could not find com.twitter.sdk.android

rigor789 commented 1 year ago

Is the sdk available on another repository? (Given jcenter is deprecated, and shouldn't be relied on anymore)

Ombuweb commented 1 year ago

We tried adding the following repos and only jcenter() eliminated the error.

maven { url "https://jitpack.io/" }
jcenter()
mavenLocal()
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
mavenLocal()

The library is found at mvnrepository.

Also, there is this Stack Overflow answer that says that the library is deprecated. Maybe we should replace it?

rigor789 commented 1 year ago

Ah yeah, seems like it's a fairly outdated version of the sdk, ideally we could update to the new sdk package, but in the meantime, I guess having jcenter there is ok too.

The new sdk is called "com.twitter:twitter-api-java-sdk:1.1.4" (https://developer.twitter.com/en/docs/twitter-api/tools-and-libraries/sdks/overview)

NathanWalker commented 1 year ago

Thanks @Ombuweb available now in 1.0.1

NathanWalker commented 1 year ago

We will plan to update to the more recent version for 2.0