Skip to content

Commit c02c3eb

Browse files
committed
Initial commit
0 parents  commit c02c3eb

File tree

571 files changed

+64296
-0
lines changed

Some content is hidden

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

571 files changed

+64296
-0
lines changed

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.gradle
2+
.DS_Store
3+
.idea
4+
build/
5+
local.properties
6+
localhost/
7+
obj/
8+
*.iml
9+
Gemfile
10+
Gemfile.lock
11+
_site/
12+

.lastsync

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
c12c66149ad074b6ea361af87e0f884a0ada443c

CONTRIBUTING.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Contributing to Fresco
2+
We want to make contributing to this project as easy and transparent as
3+
possible.
4+
5+
## Pull Requests
6+
We actively welcome your pull requests.
7+
8+
1. Fork the repo and create your branch from `master`.
9+
2. If you've added code that should be tested, add tests
10+
3. If you've changed APIs, update the documentation.
11+
4. Ensure the test suite passes.
12+
5. Make sure your code lints.
13+
6. If you haven't already, complete the Contributor License Agreement ("CLA").
14+
15+
## Contributor License Agreement ("CLA")
16+
In order to accept your pull request, we need you to submit a CLA. You only need
17+
to do this once to work on any of Facebook's open source projects.
18+
19+
Complete your CLA here: <https://code.facebook.com/cla>.
20+
21+
## Our Development Process
22+
Each pull request is first submitted into Facebook's internal repositories by a
23+
Facebook team member. Once the commit has successfully passed Facebook's internal
24+
test suite, it will be exported back out from Facebook's repository. We endeavour
25+
to do this as soon as possible for all commits.
26+
27+
## Issues
28+
We use GitHub issues to track public bugs. Please ensure your description is
29+
clear and has sufficient instructions to be able to reproduce the issue.
30+
31+
Facebook has a [bounty program](https://www.facebook.com/whitehat/) for the safe
32+
disclosure of security bugs. In those cases, please go through the process
33+
outlined on that page and do not file a public issue.
34+
35+
## Coding Style
36+
* 2 spaces for indentation rather than tabs
37+
* 100 character line length
38+
* Although officially archived, we still follow the practice of Oracle's
39+
[Coding Conventions for the Java Programming Language](http://www.oracle.com/technetwork/java/javase/documentation/codeconvtoc-136057.html).
40+
41+
## License
42+
By contributing to Fresco, you agree that your contributions will be licensed
43+
under its BSD license.

LICENSE

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
BSD License
2+
3+
For Fresco software
4+
5+
Copyright (c) 2015-present, Facebook, Inc. 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 Facebook 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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Additional Grant of Patent Rights
2+
3+
"Software" means the Fresco software distributed by Facebook, Inc.
4+
5+
Facebook hereby grants you a perpetual, worldwide, royalty-free, non-exclusive,
6+
irrevocable (subject to the termination provision below) license under any
7+
rights in any patent claims owned by Facebook, to make, have made, use, sell,
8+
offer to sell, import, and otherwise transfer the Software. For avoidance of
9+
doubt, no license is granted under Facebook’s rights in any patent claims that
10+
are infringed by (i) modifications to the Software made by you or a third party,
11+
or (ii) the Software in combination with any software or other technology
12+
provided by you or a third party.
13+
14+
The license granted hereunder will terminate, automatically and without notice,
15+
for anyone that makes any claim (including by filing any lawsuit, assertion or
16+
other action) alleging (a) direct, indirect, or contributory infringement or
17+
inducement to infringe any patent: (i) by Facebook or any of its subsidiaries or
18+
affiliates, whether or not such claim is related to the Software, (ii) by any
19+
party if such claim arises in whole or in part from any software, product or
20+
service of Facebook or any of its subsidiaries or affiliates, whether or not
21+
such claim is related to the Software, or (iii) by any party relating to the
22+
Software; or (b) that any right in any patent claim of Facebook is invalid or
23+
unenforceable.

README.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Fresco
2+
3+
Fresco is a powerful system for displaying images in Android applications.
4+
5+
Fresco takes care of image loading and display, so you don't have to. It will load images from the network, local storage, or local resources, and display a placeholder until the image has arrived. It has two levels of cache; one in memory and another in internal storage.
6+
7+
In Android 4.x and lower, Fresco puts images in a special region of Android memory. This lets your application run faster - and suffer the dreaded `OutOfMemoryError` much less often.
8+
9+
Fresco also supports:
10+
11+
* streaming of progressive JPEGs
12+
* display of animated GIFs and WebPs
13+
* extensive customization of image loading and display
14+
* and many more!
15+
16+
Find out more at our [website](http://facebook.github.io/fresco/index.html).
17+
18+
## Requirements
19+
20+
Fresco can be included in any Android application.
21+
22+
Fresco supports Android 2.3 (Gingerbread) and later.
23+
24+
## Using Fresco in your application
25+
26+
If you are building with Gradle, simply add the following line to the `dependencies` section of your `build.gradle` file:
27+
28+
```groovy
29+
compile 'com.facebook.fresco:fresco:0.1.0+'
30+
```
31+
32+
See our [download](http://facebook.github.io/fresco/docs/download-fresco.html) page for other options.
33+
34+
## Building Fresco from source
35+
36+
Install the Android [SDK](https://developer.android.com/sdk/index.html#Other) if you haven't already. Then run the Android SDK Manager and install the Android Support Library and Android Support Repository.
37+
38+
Download the Android [NDK](https://developer.android.com/tools/sdk/ndk/index.html). Then add the directory containing it to your PATH environment variable.
39+
40+
Then just do
41+
42+
```sh
43+
git clone https://github.com/facebook/fresco.git
44+
cd fresco
45+
./gradlew build
46+
```
47+
48+
## Join the Fresco community
49+
50+
Please use our [issues page](https://github.com/facebook/fresco/issues) to let us know of any problems.
51+
52+
For pull requests, please see the [CONTRIBUTING](https://github.com/facebook/fresco/blob/master/CONTRIBUTING.md) file for information on how to help out.
53+
54+
## License
55+
Fresco is [BSD-licensed](https://github.com/facebook/fresco/blob/master/LICENSE). We also provide an additional [patent grant](https://github.com/facebook/fresco/blob/master/PATENTS).

build.gradle

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2+
3+
buildscript {
4+
repositories {
5+
jcenter()
6+
}
7+
dependencies {
8+
classpath "com.android.tools.build:gradle:${ANDROID_GRADLE_PLUGIN_VERSION}"
9+
classpath "com.palominolabs.gradle.task:gradle-git-clone-task:${GRADLE_GIT_CLONE_TASK_VERSION}"
10+
classpath "de.undercouch:gradle-download-task:${GRADLE_DOWNLOAD_TASK_VERSION}"
11+
classpath "org.robolectric:robolectric-gradle-plugin:${ROBOLECTRIC_GRADLE_PLUGIN_VERSION}"
12+
13+
// NOTE: Do not place your application dependencies here; they belong
14+
// in the individual module build.gradle files
15+
}
16+
}
17+
18+
subprojects {
19+
20+
repositories {
21+
mavenLocal()
22+
jcenter()
23+
mavenCentral()
24+
}
25+
}
26+
27+
repositories {
28+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
apply plugin: 'com.android.library'
2+
3+
project.group = GROUP
4+
version = VERSION_NAME
5+
6+
dependencies {
7+
compile project(':drawee')
8+
compile project(':fbcore')
9+
compile project(':imagepipeline')
10+
}
11+
apply from: rootProject.file('release.gradle')
12+
13+
android {
14+
buildToolsVersion "21.1.2"
15+
compileSdkVersion 21
16+
17+
packagingOptions {
18+
exclude 'LICENSE'
19+
exclude 'LICENSE.txt'
20+
exclude 'META-INF/LICENSE'
21+
exclude 'META-INF/LICENSE.txt'
22+
exclude 'META-INF/NOTICE'
23+
exclude 'META-INF/NOTICE.txt'
24+
}
25+
}
26+
27+
task sourcesJar(type: Jar) {
28+
from android.sourceSets.main.java.srcDirs
29+
classifier = 'sources'
30+
}
31+
artifacts.add('archives', sourcesJar)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
POM_NAME=Fresco
2+
POM_DESCRIPTION=A system to load and display images and manage their memory on Android
3+
POM_ARTIFACT_ID=fresco
4+
POM_PACKAGING=aar
5+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest
3+
xmlns:android="http://schemas.android.com/apk/res/android"
4+
package="com.facebook.drawee.backends.pipeline"
5+
>
6+
7+
<uses-sdk
8+
android:minSdkVersion="9"
9+
android:targetSdkVersion="21"
10+
/>
11+
</manifest>

0 commit comments

Comments
 (0)