update compose version, new style gradle configuration

This commit is contained in:
Gary Wang 2022-02-12 00:20:02 +08:00
parent 5374f7fb39
commit 164976f8ae
No known key found for this signature in database
GPG Key ID: 5D30A4F15EA78760
3 changed files with 14 additions and 15 deletions

View File

@ -60,7 +60,7 @@ dependencies {
implementation "androidx.compose.material:material-icons-extended:$compose_version" implementation "androidx.compose.material:material-icons-extended:$compose_version"
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version" implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
def nav_compose_version = '2.4.0-rc01' def nav_compose_version = '2.4.1'
implementation "androidx.navigation:navigation-compose:$nav_compose_version" implementation "androidx.navigation:navigation-compose:$nav_compose_version"
def lifecycle_version = '2.4.0' def lifecycle_version = '2.4.0'

View File

@ -1,20 +1,13 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules. // Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript { buildscript {
ext { ext {
kotlin_version = '1.6.0' compose_version = '1.1.0'
compose_version = '1.1.0-rc01'
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
} }
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.1.1' apply false
id 'com.android.library' version '7.1.1' apply false
id 'org.jetbrains.kotlin.android' version '1.6.10' apply false
} }
task clean(type: Delete) { task clean(type: Delete) {

View File

@ -1,9 +1,15 @@
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
dependencyResolutionManagement { dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories { repositories {
google() google()
mavenCentral() mavenCentral()
jcenter() // Warning: this repository is going to shut down soon
} }
} }
rootProject.name = "Private Cloud Music" rootProject.name = "Private Cloud Music"