Skip to content
This repository was archived by the owner on Feb 14, 2020. It is now read-only.

Commit 34e9dba

Browse files
committed
(っ˘▽˘)っ ☁️ ⊂(◕。◕⊂)
0 parents  commit 34e9dba

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+6472
-0
lines changed

.gitignore

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# built application files
2+
*.apk
3+
*.ap_
4+
5+
# files for the dex VM
6+
*.dex
7+
8+
# Java class files
9+
*.class
10+
11+
# generated files
12+
bin/
13+
gen/
14+
15+
# Local configuration file (sdk path, etc)
16+
local.properties
17+
18+
# Android Studio
19+
.idea
20+
*.iml
21+
*.ipr
22+
*.iws
23+
classes
24+
gen-external-apklibs
25+
26+
# Gradle
27+
.gradle
28+
build
29+
30+
# Other
31+
.metadata
32+
*/bin/*
33+
*/gen/*
34+
testData
35+
testCache
36+
37+
# Jacoco
38+
jacoco.exec
39+

.travis.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
branches:
2+
only:
3+
- master
4+
5+
language: android
6+
sudo: false
7+
8+
android:
9+
components:
10+
- build-tools-22.0.1
11+
- android-22
12+
- doc-MNC
13+
- extra-android-support
14+
- extra-android-m2repository
15+
16+
before_install:
17+
- pip install --user codecov
18+
19+
script:
20+
- ./gradlew clean testDebugUnitTest jacocoTestReport --info
21+
22+
after_success:
23+
- ./gradlew coveralls
24+
- codecov
25+
- ./scripts/publish_snapshot.sh
26+
27+
cache:
28+
directories:
29+
- $HOME/.gradle
30+
- $HOME/.m2/repository

CONTRIBUTING.md

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Contributing to Parse Twitter Utils for Android
2+
We want to make contributing to this project as easy and transparent as possible.
3+
4+
## Code of Conduct
5+
Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read [the full text](https://code.facebook.com/codeofconduct) so that you can understand what actions will and will not be tolerated.
6+
7+
## Our Development Process
8+
Most of our work will be done in public directly on GitHub. There may be changes done through our internal source control, but it will be rare and only as needed.
9+
10+
### `master` is unsafe
11+
Our goal is to keep `master` stable, but there may be changes that your application may not be compatible with. We'll do our best to publicize any breaking changes, but try to use our specific releases in any production environment.
12+
13+
### Pull Requests
14+
We actively welcome your pull requests. From here, we'll need to get a core member to sign off on the changes and then merge the pull request. For API changes we may need to fix internal uses, which could cause some delay. We'll do our best to provide updates and feedback throughout the process.
15+
16+
1. Fork the repo and create your branch from `master`.
17+
4. Add unit tests for any new code you add.
18+
3. If you've changed APIs, update the documentation.
19+
4. Ensure the test suite passes.
20+
5. Make sure your code lints.
21+
6. If you haven't already, complete the Contributor License Agreement ("CLA").
22+
23+
### Contributor License Agreement ("CLA")
24+
In order to accept your pull request, we need you to submit a CLA. You only need to do this once to work on any of Facebook's open source projects.
25+
26+
Complete your CLA here: <https://developers.facebook.com/opensource/cla>
27+
28+
## Bugs
29+
Although we try to keep developing on Parse easy, you still may run into some issues. General questions should be asked on [Google Groups][google-group], technical questions should be asked on [Stack Overflow][stack-overflow], and for everything else we'll be using GitHub issues.
30+
31+
### Known Issues
32+
We use GitHub issues to track public bugs. We will keep a close eye on this and try to make it clear when we have an internal fix in progress. Before filing a new issue, try to make sure your problem doesn't already exist.
33+
34+
### Reporting New Issues
35+
Not all issues are SDK issues. If you're unsure whether your bug is with the SDK or backend, you can test to see if it reproduces with our [REST API][rest-api] and [Parse API Console][parse-api-console]. If it does, you can report backend bugs [here][bug-reports].
36+
37+
Details are key. The more information you provide us the easier it'll be for us to debug and the faster you'll receive a fix. Some examples of useful tidbits:
38+
39+
* A description. What did you expect to happen and what actually happened? Why do you think that was wrong?
40+
* A simple unit test that fails. Refer [here][tests-dir] for examples of existing unit tests. See our [README](README.md#usage) for how to run unit tests. You can submit a pull request with your failing unit test so that our CI verifies that the test fails.
41+
* What version does this reproduce on? What version did it last work on?
42+
* [Stacktrace or GTFO][stacktrace-or-gtfo]. In all honesty, full stacktraces with line numbers make a happy developer.
43+
* Anything else you find relevant.
44+
45+
### Security Bugs
46+
Facebook has a [bounty program](https://www.facebook.com/whitehat/) for the safe disclosure of security bugs. In those cases, please go through the process outlined on that page and do not file a public issue.
47+
48+
## Style Guide
49+
We're still working on providing a code style for your IDE and getting a linter on GitHub, but for now try to keep the following:
50+
51+
* Most importantly, match the existing code style as much as possible.
52+
* Try to keep lines under 100 characters, if possible.
53+
54+
## License
55+
By contributing to Parse Android SDK, you agree that your contributions will be licensed under its license.
56+
57+
[google-group]: https://groups.google.com/forum/#!forum/parse-developers
58+
[stack-overflow]: http://stackoverflow.com/tags/parse.com
59+
[bug-reports]: https://www.parse.com/help#report
60+
[rest-api]: https://www.parse.com/docs/rest/guide
61+
[parse-api-console]: http://blog.parse.com/announcements/introducing-the-parse-api-console/
62+
[stacktrace-or-gtfo]: http://i.imgur.com/jacoj.jpg
63+
[tests-dir]: /Parse/src/test/java/com/parse

LICENSE

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
BSD License
2+
3+
For Parse Twitter Utils for Android for Android software
4+
5+
Copyright (c) 2015-present, Parse, LLC. All rights reserved.
6+
7+
Redistribution and use in source and binary forms, with or without modification,
8+
are permitted provided that the following conditions are met:
9+
10+
* Redistributions of source code must retain the above copyright notice, this
11+
list of conditions and the following disclaimer.
12+
13+
* Redistributions in binary form must reproduce the above copyright notice,
14+
this list of conditions and the following disclaimer in the documentation
15+
and/or other materials provided with the distribution.
16+
17+
* Neither the name Parse nor the names of its contributors may be used to
18+
endorse or promote products derived from this software without specific
19+
prior written permission.
20+
21+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
22+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
25+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
28+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

PATENTS

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Additional Grant of Patent Rights Version 2
2+
3+
"Software" means the Parse Twitter Utils for Android software distributed by Parse, LLC.
4+
5+
Parse, LLC. ("Parse") hereby grants to each recipient of the Software
6+
("you") a perpetual, worldwide, royalty-free, non-exclusive, irrevocable
7+
(subject to the termination provision below) license under any Necessary
8+
Claims, to make, have made, use, sell, offer to sell, import, and otherwise
9+
transfer the Software. For avoidance of doubt, no license is granted under
10+
Parse’s rights in any patent claims that are infringed by (i) modifications
11+
to the Software made by you or any third party or (ii) the Software in
12+
combination with any software or other technology.
13+
14+
The license granted hereunder will terminate, automatically and without notice,
15+
if you (or any of your subsidiaries, corporate affiliates or agents) initiate
16+
directly or indirectly, or take a direct financial interest in, any Patent
17+
Assertion: (i) against Parse or any of its subsidiaries or corporate
18+
affiliates, (ii) against any party if such Patent Assertion arises in whole or
19+
in part from any software, technology, product or service of Parse or any of
20+
its subsidiaries or corporate affiliates, or (iii) against any party relating
21+
to the Software. Notwithstanding the foregoing, if Parse or any of its
22+
subsidiaries or corporate affiliates files a lawsuit alleging patent
23+
infringement against you in the first instance, and you respond by filing a
24+
patent infringement counterclaim in that lawsuit against that party that is
25+
unrelated to the Software, the license granted hereunder will not terminate
26+
under section (i) of this paragraph due to such counterclaim.
27+
28+
A "Necessary Claim" is a claim of a patent owned by Parse that is
29+
necessarily infringed by the Software standing alone.
30+
31+
A "Patent Assertion" is any lawsuit or other action alleging direct, indirect,
32+
or contributory infringement or inducement to infringe any patent, including a
33+
cross-claim or counterclaim.

README.md

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Parse Twitter Utils for Android
2+
[![Build Status][build-status-svg]][build-status-link]
3+
[![Coverage Status][coverage-status-svg]][coverage-status-link]
4+
[![Maven Central][maven-svg]][maven-link]
5+
[![License][license-svg]][license-link]
6+
7+
A utility library to authenticate `ParseUser`s with Twitter. For more information, see our [guide][guide].
8+
9+
## Download
10+
Download [the latest JAR][latest] or define in Gradle:
11+
12+
```groovy
13+
dependencies {
14+
compile 'com.parse:parsetwitterutils:1.10.3'
15+
}
16+
```
17+
18+
Snapshots of the development version are available in [Sonatype's `snapshots` repository][snap].
19+
20+
## Usage
21+
Everything can done through the supplied gradle wrapper:
22+
23+
### Compile a JAR
24+
```
25+
./gradlew clean jarRelease
26+
```
27+
Outputs can be found in `Parse/build/libs/`
28+
29+
### Run the Tests
30+
```
31+
./gradlew clean testDebug
32+
```
33+
Results can be found in `Parse/build/reports/`
34+
35+
### Get Code Coverage Reports
36+
```
37+
./gradlew clean jacocoTestReport
38+
```
39+
Results can be found in `Parse/build/reports/`
40+
41+
## How Do I Contribute?
42+
We want to make contributing to this project as easy and transparent as possible. Please refer to the [Contribution Guidelines](CONTRIBUTING.md).
43+
44+
## License
45+
Copyright (c) 2015-present, Parse, LLC.
46+
All rights reserved.
47+
48+
This source code is licensed under the BSD-style license found in the
49+
LICENSE file in the root directory of this source tree. An additional grant
50+
of patent rights can be found in the PATENTS file in the same directory.
51+
52+
[guide]: https://parse.com/docs/android/guide#users-twitter-users
53+
54+
[latest]: https://search.maven.org/remote_content?g=com.parse&a=parsetwitterutils&v=LATEST
55+
[snap]: https://oss.sonatype.org/content/repositories/snapshots/
56+
57+
[build-status-svg]: https://travis-ci.org/ParsePlatform/ParseTwitterUtils-Android.svg?branch=master
58+
[build-status-link]: https://travis-ci.org/ParsePlatform/ParseTwitterUtils-Android
59+
[coverage-status-svg]: https://coveralls.io/repos/ParsePlatform/ParseTwitterUtils-Android/badge.svg?branch=master&service=github
60+
[coverage-status-link]: https://coveralls.io/github/ParsePlatform/ParseTwitterUtils-Android?branch=master
61+
[maven-svg]: https://maven-badges.herokuapp.com/maven-central/com.parse/parsetwitterutils/badge.svg?style=flat
62+
[maven-link]: https://maven-badges.herokuapp.com/maven-central/com.parse/parsetwitterutils
63+
[license-svg]: https://img.shields.io/badge/license-BSD-lightgrey.svg
64+
[license-link]: https://github.com/ParsePlatform/ParseTwitterUtils-Android/blob/master/LICENSE

build.gradle

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2+
buildscript {
3+
repositories {
4+
mavenCentral()
5+
}
6+
dependencies {
7+
classpath 'com.android.tools.build:gradle:1.3.1'
8+
}
9+
}
10+
11+
allprojects {
12+
repositories {
13+
mavenCentral()
14+
}
15+
}

gradle.properties

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VERSION_NAME=1.10.3

gradle/wrapper/gradle-wrapper.jar

49.3 KB
Binary file not shown.
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Thu Nov 06 11:00:14 PST 2014
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip

0 commit comments

Comments
 (0)