mirror of
https://github.com/BetterAndroid/compose-multiplatform-template.git
synced 2025-09-07 19:14:26 +08:00
chore: use alpha compose android version and modify android configs
This commit is contained in:
@@ -23,6 +23,8 @@ android {
|
||||
compileSdk = property.project.android.compileSdk
|
||||
|
||||
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
|
||||
sourceSets["main"].res.srcDirs("src/androidMain/res")
|
||||
sourceSets["main"].resources.srcDirs("src/commonMain/resources")
|
||||
|
||||
defaultConfig {
|
||||
applicationId = property.project.groupName
|
||||
@@ -41,4 +43,13 @@ android {
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
}
|
||||
}
|
||||
|
||||
val composeAndroidVersion = dependencies.androidx.compose.android.version
|
||||
|
||||
configurations.all {
|
||||
resolutionStrategy.eachDependency {
|
||||
if (requested.group.startsWith("androidx.compose."))
|
||||
useVersion(composeAndroidVersion)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user