2021-11-07 18:30:07 +08:00
|
|
|
plugins {
|
|
|
|
id 'com.android.application'
|
|
|
|
id 'kotlin-android'
|
|
|
|
}
|
|
|
|
|
2021-11-16 00:16:36 +08:00
|
|
|
apply plugin: 'kotlin-kapt'
|
|
|
|
|
2021-11-07 18:30:07 +08:00
|
|
|
android {
|
|
|
|
compileSdk 31
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "net.blumia.pcmdroid"
|
|
|
|
minSdk 21
|
|
|
|
targetSdk 31
|
|
|
|
versionCode 1
|
|
|
|
versionName "1.0"
|
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
vectorDrawables {
|
|
|
|
useSupportLibrary true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = '1.8'
|
|
|
|
useIR = true
|
|
|
|
}
|
|
|
|
buildFeatures {
|
|
|
|
compose true
|
|
|
|
}
|
|
|
|
composeOptions {
|
|
|
|
kotlinCompilerExtensionVersion compose_version
|
|
|
|
}
|
|
|
|
packagingOptions {
|
|
|
|
resources {
|
|
|
|
excludes += '/META-INF/{AL2.0,LGPL2.1}'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
|
|
|
implementation 'androidx.core:core-ktx:1.7.0'
|
2021-11-23 00:05:25 +08:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.4.0'
|
2021-11-07 18:30:07 +08:00
|
|
|
implementation 'com.google.android.material:material:1.4.0'
|
2021-11-16 00:16:36 +08:00
|
|
|
|
2021-11-07 18:30:07 +08:00
|
|
|
implementation "androidx.compose.ui:ui:$compose_version"
|
2021-11-14 19:28:46 +08:00
|
|
|
implementation "androidx.compose.runtime:runtime-livedata:$compose_version"
|
2021-11-07 18:30:07 +08:00
|
|
|
implementation "androidx.compose.material:material:$compose_version"
|
2021-11-13 19:13:47 +08:00
|
|
|
implementation "androidx.compose.material:material-icons-extended:$compose_version"
|
2021-11-07 18:30:07 +08:00
|
|
|
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
|
2021-11-16 00:16:36 +08:00
|
|
|
|
2021-12-23 14:18:02 +08:00
|
|
|
def nav_compose_version = '2.4.0-rc01'
|
2021-11-07 18:30:07 +08:00
|
|
|
implementation "androidx.navigation:navigation-compose:$nav_compose_version"
|
2021-11-16 00:16:36 +08:00
|
|
|
|
|
|
|
def lifecycle_version = '2.4.0'
|
|
|
|
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"
|
|
|
|
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version"
|
|
|
|
|
2021-11-07 18:30:07 +08:00
|
|
|
implementation 'androidx.activity:activity-compose:1.4.0'
|
|
|
|
implementation "androidx.datastore:datastore-preferences:1.0.0"
|
2021-11-14 19:28:46 +08:00
|
|
|
|
2021-12-23 14:18:02 +08:00
|
|
|
def room_version = '2.4.0'
|
2021-11-16 00:16:36 +08:00
|
|
|
kapt "androidx.room:room-compiler:$room_version"
|
|
|
|
implementation "androidx.room:room-ktx:$room_version"
|
|
|
|
implementation "androidx.room:room-runtime:$room_version"
|
|
|
|
annotationProcessor "androidx.room:room-compiler:$room_version"
|
|
|
|
|
2021-11-23 00:05:25 +08:00
|
|
|
implementation "com.squareup.okhttp3:okhttp:4.9.0"
|
|
|
|
|
|
|
|
def media3_version = '1.0.0-alpha01'
|
|
|
|
implementation "androidx.media3:media3-ui:$media3_version"
|
|
|
|
implementation "androidx.media3:media3-exoplayer:$media3_version"
|
|
|
|
implementation "androidx.media3:media3-session:$media3_version"
|
2021-11-14 19:28:46 +08:00
|
|
|
|
2021-11-07 18:30:07 +08:00
|
|
|
testImplementation 'junit:junit:4.+'
|
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
|
|
|
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
|
|
|
|
debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
|
|
|
|
}
|