mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

- Centralise compileSdkVersion, targetSdkVersion and buildToolsVersion in a single place for gradle. - Bump compileSdkVersion and targetSdkVersion to 24. - Bump com.android.tools.build version to re-enable instant start. - Bump targetSdkVersion in manifests (needed for internal builds). - Use standard expandable_list_item from Android in the demo app, since ours doesn't look right when targeting API level 24. We were also setting the theme on the wrong element in the manifest, so I'm removing that line. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=131929216
53 lines
1.5 KiB
Groovy
53 lines
1.5 KiB
Groovy
// Copyright (C) 2016 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.application'
|
|
|
|
android {
|
|
compileSdkVersion project.ext.compileSdkVersion
|
|
buildToolsVersion project.ext.buildToolsVersion
|
|
|
|
defaultConfig {
|
|
minSdkVersion 16
|
|
targetSdkVersion project.ext.targetSdkVersion
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
|
|
}
|
|
debug {
|
|
jniDebuggable = true
|
|
debuggable = true
|
|
}
|
|
}
|
|
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
|
|
productFlavors {
|
|
demo
|
|
demo_ext
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile project(':library')
|
|
demo_extCompile project(path: ':extension-ffmpeg')
|
|
demo_extCompile project(path: ':extension-flac')
|
|
demo_extCompile project(path: ':extension-opus')
|
|
demo_extCompile project(path: ':extension-vp9')
|
|
}
|