Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ef6be795
authored
Jul 28, 2014
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'dev' of
https://github.com/google/ExoPlayer
into dev
parents
b3277c66
c1259969
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
69 additions
and
3 deletions
.gitignore
README.md
build.gradle
library/build.gradle
.gitignore
0 → 100644
View file @
ef6be795
# Android generated
bin
gen
lint.xml
# IntelliJ IDEA
.idea
*.iml
*.ipr
*.iws
classes
gen-external-apklibs
# Eclipse
.project
.classpath
.settings
.checkstyle
# Gradle
.gradle
build
out
# Maven
target
release.properties
pom.xml.*
# Ant
ant.properties
local.properties
proguard.cfg
proguard-project.txt
# Other
.DS_Store
dist
tmp
README.md
View file @
ef6be795
...
...
@@ -55,6 +55,22 @@ accompanying demo application. To get started:
## Using Gradle ##
ExoPlayer can also be built using Gradle.
For a complete list of tasks, run:
ExoPlayer can also be built using Gradle.
You can include it as a dependent project and build from source. e.g.
./gradlew tasks
```
// setting.gradle
include ':app', ':..:ExoPlayer:library'
// app/build.gradle
dependencies {
compile project(':..:ExoPlayer:library')
}
```
If you want to use ExoPlayer as a jar, run:
```
./gradlew jarRelease
```
and copy library.jar to the libs-folder of your new project.
build.gradle
View file @
ef6be795
...
...
@@ -19,7 +19,7 @@ buildscript {
mavenCentral
()
}
dependencies
{
classpath
'com.android.tools.build:gradle:0.1
0
.+'
classpath
'com.android.tools.build:gradle:0.1
2
.+'
}
}
...
...
library/build.gradle
View file @
ef6be795
...
...
@@ -36,3 +36,14 @@ android {
dependencies
{
}
android
.
libraryVariants
.
all
{
variant
->
def
name
=
variant
.
buildType
.
name
if
(
name
.
equals
(
com
.
android
.
builder
.
core
.
BuilderConstants
.
DEBUG
))
{
return
;
// Skip debug builds.
}
def
task
=
project
.
tasks
.
create
"jar${name.capitalize()}"
,
Jar
task
.
dependsOn
variant
.
javaCompile
task
.
from
variant
.
javaCompile
.
destinationDir
artifacts
.
add
(
'archives'
,
task
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment