Skip to content

Commit

Permalink
Merge pull request #735 from b95505017/okhttp_http_data_source
Browse files Browse the repository at this point in the history
Add an extension that provide DataSource using OkHttp
  • Loading branch information
ojw28 committed Sep 29, 2015
2 parents 62ce0ff + 0df29a6 commit 2112bc2
Show file tree
Hide file tree
Showing 6 changed files with 552 additions and 0 deletions.
9 changes: 9 additions & 0 deletions extensions/okhttp/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ExoPlayer OkHttp Extension #

## Description ##

The OkHttp Extension is a [HTTP Data Source][] implementation using Square's [OkHttp][].

[HTTP Data Source]: http://google.github.io/ExoPlayer/doc/reference/com/google/android/exoplayer/upstream/HttpDataSource.html

[OkHttp]: http://square.github.io/okhttp/
35 changes: 35 additions & 0 deletions extensions/okhttp/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apply plugin: 'com.android.library'

android{
compileSdkVersion 22
buildToolsVersion "22.0.1"

defaultConfig {
minSdkVersion 9
targetSdkVersion 22
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}

lintOptions {
abortOnError false
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}

dependencies {
compile project(':library')
compile('com.squareup.okhttp:okhttp:2.4.0') {
exclude group: 'org.json'
}
compile 'com.android.support:support-annotations:23.0.0'
}
22 changes: 22 additions & 0 deletions extensions/okhttp/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 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.
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.android.exoplayer.ext.datasource.okhttp">

<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="22"/>

</manifest>
Loading

0 comments on commit 2112bc2

Please sign in to comment.