-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
39dbda5
commit 2068d5e
Showing
105 changed files
with
10,241 additions
and
24 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Thu Oct 01 19:13:32 IST 2015 | ||
#Thu Apr 14 06:41:17 IST 2016 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
include ':app' | ||
include ':volleyLib' | ||
include ':app',':volley' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
bin | ||
gen | ||
.gradle | ||
build | ||
.settings | ||
target | ||
*.iml | ||
.idea | ||
local.properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# | ||
# Copyright (C) 2011 The Android Open Source Project | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
LOCAL_PATH := $(call my-dir) | ||
|
||
include $(CLEAR_VARS) | ||
|
||
LOCAL_MODULE := volley | ||
LOCAL_SDK_VERSION := 17 | ||
LOCAL_SRC_FILES := $(call all-java-files-under, src/main/java) | ||
|
||
include $(BUILD_STATIC_JAVA_LIBRARY) | ||
|
||
# Include this library in the build server's output directory | ||
# TODO: Not yet. | ||
#$(call dist-for-goals, dist_files, $(LOCAL_BUILT_MODULE):volley.jar) | ||
|
||
# Include build files in subdirectories | ||
include $(call all-makefiles-under,$(LOCAL_PATH)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
buildscript { | ||
repositories { | ||
jcenter() | ||
} | ||
dependencies { | ||
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2" | ||
} | ||
} | ||
|
||
// apply the plugin with its class name rather than its Id to work around gradle limitation of | ||
// not being able to find the plugin by Id despite the dependencies being added right above. Gradle | ||
// is currently not capable of loading plugins by Id if the dependency is anywhere else than | ||
// in the main project build.gradle. This file is "imported" into the project's build.gradle | ||
// through a "apply from:". | ||
apply plugin: com.jfrog.bintray.gradle.BintrayPlugin | ||
apply plugin: 'maven-publish' | ||
|
||
project.ext.group = 'com.android.volley' | ||
project.ext.archivesBaseName = 'volley' | ||
project.ext.version = '1.0.0' | ||
project.ext.pomDesc = 'Volley Android library' | ||
|
||
task sourcesJar(type: Jar) { | ||
classifier = 'sources' | ||
from android.sourceSets.main.java.srcDirs | ||
} | ||
|
||
task javadoc(type: Javadoc) { | ||
source = android.sourceSets.main.java.srcDirs | ||
classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) | ||
} | ||
|
||
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
classifier = 'javadoc' | ||
from javadoc.destinationDir | ||
} | ||
|
||
artifacts { | ||
archives javadocJar | ||
archives sourcesJar | ||
} | ||
|
||
publishing { | ||
publications { | ||
library(MavenPublication) { | ||
groupId project.ext.group | ||
artifactId project.ext.archivesBaseName | ||
version project.ext.version | ||
|
||
// Release AAR, Sources, and JavaDoc | ||
artifact "$buildDir/outputs/aar/volley-release.aar" | ||
artifact sourcesJar | ||
artifact javadocJar | ||
} | ||
} | ||
} | ||
|
||
bintray { | ||
user = System.env.BINTRAY_USER | ||
key = System.env.BINTRAY_USER_KEY | ||
|
||
publications = [ 'library' ] | ||
|
||
publish = project.has("release") | ||
pkg { | ||
userOrg = 'android' | ||
repo = 'android-utils' | ||
group = project.ext.group | ||
name = project.ext.group + '.' + project.ext.archivesBaseName | ||
desc = project.ext.pomDesc | ||
licenses = [ 'Apache-2.0' ] | ||
websiteUrl = 'https://tools.android.com' | ||
issueTrackerUrl = 'https://code.google.com/p/android/' | ||
vcsUrl = 'https://android.googlesource.com/platform/frameworks/volley.git' | ||
labels = ['android', 'volley', 'network'] | ||
publicDownloadNumbers = true | ||
|
||
version { | ||
name = project.ext.version | ||
desc = project.ext.pomDesc + ' version ' + project.ext.version | ||
gpg { | ||
sign = true | ||
passphrase = System.env.GPG_PASSPHRASE | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// NOTE: The only changes that belong in this file are the definitions | ||
// of tool versions (gradle plugin, compile SDK, build tools), so that | ||
// Volley can be built via gradle as a standalone project. | ||
// | ||
// Any other changes to the build config belong in rules.gradle, which | ||
// is used by projects that depend on Volley but define their own | ||
// tools versions across all dependencies to ensure a consistent build. | ||
// | ||
// Most users should just add this line to settings.gradle: | ||
// include(":volley") | ||
// | ||
// If you have a more complicated Gradle setup you can choose to use | ||
// this instead: | ||
// include(":volley") | ||
// project(':volley').buildFileName = 'rules.gradle' | ||
|
||
buildscript { | ||
repositories { | ||
jcenter() | ||
} | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:2.0.0' | ||
} | ||
} | ||
|
||
apply plugin: 'com.android.library' | ||
|
||
repositories { | ||
jcenter() | ||
} | ||
|
||
android { | ||
compileSdkVersion 22 | ||
buildToolsVersion = '22.0.1' | ||
} | ||
|
||
apply from: 'rules.gradle' | ||
//apply from: 'bintray.gradle' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project name="volley" default="help"> | ||
|
||
<!-- The local.properties file is created and updated by the 'android' tool. | ||
It contains the path to the SDK. It should *NOT* be checked into | ||
Version Control Systems. --> | ||
<property file="local.properties" /> | ||
|
||
<!-- The ant.properties file can be created by you. It is only edited by the | ||
'android' tool to add properties to it. | ||
This is the place to change some Ant specific build properties. | ||
Here are some properties you may want to change/update: | ||
source.dir | ||
The name of the source directory. Default is 'src'. | ||
out.dir | ||
The name of the output directory. Default is 'bin'. | ||
For other overridable properties, look at the beginning of the rules | ||
files in the SDK, at tools/ant/build.xml | ||
Properties related to the SDK location or the project target should | ||
be updated using the 'android' tool with the 'update' action. | ||
This file is an integral part of the build system for your | ||
application and should be checked into Version Control Systems. | ||
--> | ||
<property file="ant.properties" /> | ||
|
||
<!-- if sdk.dir was not set from one of the property file, then | ||
get it from the ANDROID_HOME env var. | ||
This must be done before we load project.properties since | ||
the proguard config can use sdk.dir --> | ||
<property environment="env" /> | ||
<condition property="sdk.dir" value="${env.ANDROID_HOME}"> | ||
<isset property="env.ANDROID_HOME" /> | ||
</condition> | ||
|
||
<!-- The project.properties file is created and updated by the 'android' | ||
tool, as well as ADT. | ||
This contains project specific properties such as project target, and library | ||
dependencies. Lower level build properties are stored in ant.properties | ||
(or in .classpath for Eclipse projects). | ||
This file is an integral part of the build system for your | ||
application and should be checked into Version Control Systems. --> | ||
<loadproperties srcFile="project.properties" /> | ||
|
||
<!-- quick check on sdk.dir --> | ||
<fail | ||
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable." | ||
unless="sdk.dir" | ||
/> | ||
|
||
<!-- | ||
Import per project custom build rules if present at the root of the project. | ||
This is the place to put custom intermediary targets such as: | ||
-pre-build | ||
-pre-compile | ||
-post-compile (This is typically used for code obfuscation. | ||
Compiled code location: ${out.classes.absolute.dir} | ||
If this is not done in place, override ${out.dex.input.absolute.dir}) | ||
-post-package | ||
-post-build | ||
-pre-clean | ||
--> | ||
<import file="custom_rules.xml" optional="true" /> | ||
|
||
<!-- Import the actual build file. | ||
To customize existing targets, there are two options: | ||
- Customize only one target: | ||
- copy/paste the target into this file, *before* the | ||
<import> task. | ||
- customize it to your needs. | ||
- Customize the whole content of build.xml | ||
- copy/paste the content of the rules files (minus the top node) | ||
into this file, replacing the <import> task. | ||
- customize to your needs. | ||
*********************** | ||
****** IMPORTANT ****** | ||
*********************** | ||
In all cases you must update the value of version-tag below to read 'custom' instead of an integer, | ||
in order to avoid having your file be overridden by tools such as "android update project" | ||
--> | ||
<!-- version-tag: 1 --> | ||
<import file="${sdk.dir}/tools/ant/build.xml" /> | ||
|
||
</project> |
Oops, something went wrong.