Split HLS into a separate module
Issue: #2139 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=150643456
This commit is contained in:
parent
a9aca8dbf0
commit
25a093b37c
@ -27,8 +27,9 @@ android {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':library-core')
|
compile project(':library-core')
|
||||||
compile project(':library-ui')
|
compile project(':library-hls')
|
||||||
compile project(':library-smoothstreaming')
|
compile project(':library-smoothstreaming')
|
||||||
|
compile project(':library-ui')
|
||||||
}
|
}
|
||||||
|
|
||||||
android.libraryVariants.all { variant ->
|
android.libraryVariants.all { variant ->
|
||||||
|
38
library/hls/build.gradle
Normal file
38
library/hls/build.gradle
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
// Copyright (C) 2017 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.
|
||||||
|
apply plugin: 'com.android.library'
|
||||||
|
|
||||||
|
android {
|
||||||
|
compileSdkVersion project.ext.compileSdkVersion
|
||||||
|
buildToolsVersion project.ext.buildToolsVersion
|
||||||
|
|
||||||
|
defaultConfig {
|
||||||
|
minSdkVersion project.ext.minSdkVersion
|
||||||
|
targetSdkVersion project.ext.targetSdkVersion
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compile project(':library-core')
|
||||||
|
compile 'com.android.support:support-annotations:25.2.0'
|
||||||
|
androidTestCompile 'com.google.dexmaker:dexmaker:1.2'
|
||||||
|
androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.2'
|
||||||
|
androidTestCompile 'org.mockito:mockito-core:1.9.5'
|
||||||
|
}
|
||||||
|
|
||||||
|
ext {
|
||||||
|
releaseArtifact = 'exoplayer-hls'
|
||||||
|
releaseDescription = 'The ExoPlayer library HLS module.'
|
||||||
|
}
|
||||||
|
apply from: '../../publish.gradle'
|
34
library/hls/src/androidTest/AndroidManifest.xml
Normal file
34
library/hls/src/androidTest/AndroidManifest.xml
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Copyright (C) 2017 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"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
package="com.google.android.exoplayer2.source.hls.test">
|
||||||
|
|
||||||
|
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="24"/>
|
||||||
|
|
||||||
|
<application android:debuggable="true"
|
||||||
|
android:allowBackup="false"
|
||||||
|
tools:ignore="MissingApplicationIcon,HardcodedDebugMode">
|
||||||
|
<uses-library android:name="android.test.runner"/>
|
||||||
|
</application>
|
||||||
|
|
||||||
|
<instrumentation
|
||||||
|
android:targetPackage="com.google.android.exoplayer2.source.hls.test"
|
||||||
|
android:name="android.test.InstrumentationTestRunner"
|
||||||
|
tools:replace="android:targetPackage"/>
|
||||||
|
|
||||||
|
</manifest>
|
17
library/hls/src/main/AndroidManifest.xml
Normal file
17
library/hls/src/main/AndroidManifest.xml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Copyright (C) 2017 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 package="com.google.android.exoplayer2.source.hls"/>
|
@ -24,5 +24,6 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':library')
|
compile project(':library-core')
|
||||||
|
androidTestCompile project(':library-hls')
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
include ':library'
|
include ':library'
|
||||||
include ':library-core'
|
include ':library-core'
|
||||||
|
include ':library-hls'
|
||||||
include ':library-smoothstreaming'
|
include ':library-smoothstreaming'
|
||||||
include ':library-ui'
|
include ':library-ui'
|
||||||
include ':testutils'
|
include ':testutils'
|
||||||
@ -29,6 +30,7 @@ include ':extension-vp9'
|
|||||||
|
|
||||||
project(':library').projectDir = new File(settingsDir, 'library/all')
|
project(':library').projectDir = new File(settingsDir, 'library/all')
|
||||||
project(':library-core').projectDir = new File(settingsDir, 'library/core')
|
project(':library-core').projectDir = new File(settingsDir, 'library/core')
|
||||||
|
project(':library-hls').projectDir = new File(settingsDir, 'library/hls')
|
||||||
project(':library-smoothstreaming').projectDir = new File(settingsDir, 'library/smoothstreaming')
|
project(':library-smoothstreaming').projectDir = new File(settingsDir, 'library/smoothstreaming')
|
||||||
project(':library-ui').projectDir = new File(settingsDir, 'library/ui')
|
project(':library-ui').projectDir = new File(settingsDir, 'library/ui')
|
||||||
project(':extension-ffmpeg').projectDir = new File(settingsDir, 'extensions/ffmpeg')
|
project(':extension-ffmpeg').projectDir = new File(settingsDir, 'extensions/ffmpeg')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user