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
- Sign up for a Fabric account and follow onboarding instructions to get your Fabric API Key and build secret, found under the organization settings of the Fabric web dashboard.
- Either create your Twitter app by through this portal or by using the Fabric IDE plugin.
- Rename samples/app/fabric.properties.sample to samples/app/fabric.properties and populate information.
- Run Sample app to verify build.
- For extensive documentation, please see the official documentation.
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