mirror of
https://github.com/androidx/media.git
synced 2026-03-13 08:20:10 +08:00
- Add kotlin-compose plugin for recognising of @Composable functions as not Functions - Add qualifier names and normalize their use between Java and Kotlin - Rename var to val for unchanging locals - Use kotlin ext `String.toUri` - Remove unnecessary "new" and semicolons from Kotlin snippets PiperOrigin-RevId: 817178697
37 lines
1.2 KiB
Groovy
37 lines
1.2 KiB
Groovy
// Copyright 2023 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 from: "$gradle.ext.androidxMediaSettingsDir/common_library_config.gradle"
|
|
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'org.jetbrains.kotlin.plugin.compose'
|
|
|
|
android {
|
|
namespace 'androidx.media3.docsamples'
|
|
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
}
|
|
|
|
defaultConfig {
|
|
minSdkVersion 23
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(modulePrefix + 'lib-exoplayer')
|
|
implementation 'androidx.annotation:annotation:' + androidxAnnotationVersion
|
|
implementation 'androidx.appcompat:appcompat:' + androidxAppCompatVersion
|
|
implementation 'androidx.activity:activity-compose:1.9.0'
|
|
}
|