Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.naman14:twitter-kit-android:'
}
dependencies {
implementation("com.github.naman14:twitter-kit-android:")
}
<dependency>
<groupId>com.github.naman14</groupId>
<artifactId>twitter-kit-android</artifactId>
<version></version>
</dependency>
libraryDependencies += "com.github.naman14" % "twitter-kit-android" % ""
:dependencies [[com.github.naman14/twitter-kit-android ""]]
Twitter Kit is a multi-module gradle project containing several Twitter SDKs including TweetComposer, TwitterCore, and TweetUi. It is built on the Fabric platform and uses many shared components.
Using Twitter Kit from source in production applications is not officially supported by Fabric. Please utilize the available binaries.
Define via Gradle:
buildscript {
repositories {
mavenCentral()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'io.fabric'
repositories {
mavenCentral()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
compile('com.twitter.sdk.android:twitter:1.14.1@aar') {
transitive = true
}
}
Check out more details and other build tool integrations
This, and all github.com/twitter projects, are under the Twitter Open Source Code of Conduct. Additionally, see the Typelevel Code of Conduct for specific examples of harassing behavior that are not tolerated.
Please use the provided gradle wrapper to build the project.
./gradlew assemble
Run all automated tests on device to verify.
./gradlew connectedCheck
To run the sample app
./gradlew :samples:app:installDebug
Contributing
The master branch of this repository contains the latest stable release of Twitter Kit. See CONTRIBUTING.md for more details about how to contribute.
For usage questions post on Twitter Community.
Please report any bugs as issues.
Follow @Fabric on Twitter for updates.
Thanks for assistance and contributions:
Copyright 2015 Twitter, Inc.
Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0