chore: use alpha compose android version and modify android configs

This commit is contained in:
2023-11-15 19:19:02 +08:00
parent 0330f5a36c
commit 575e4b5adb
2 changed files with 21 additions and 1 deletions

View File

@@ -7,6 +7,8 @@ repositories:
scope: PLUGINS
google:
maven-central:
jetbrains-compose-dev:
url: https://maven.pkg.jetbrains.space/public/p/compose/dev
plugins:
org.jetbrains.kotlin.multiplatform:
@@ -14,7 +16,7 @@ plugins:
version: 1.9.20
org.jetbrains.compose:
alias: jetbrains-compose
version: 1.5.10
version: 1.6.0-dev1276
com.android.application:
alias: android-application
version: 8.1.2
@@ -23,6 +25,13 @@ plugins:
version-ref: android-application
libraries:
# Use a placeholder for the alpha compose version
# In the project to use "androidx.compose.android.version" to obtain the version
# and use the "resolutionStrategy" to replace all the current "stable" versions
androidx.compose.runtime:
runtime-android:
alias: androidx-compose-android
version: 1.6.0-alpha08
com.highcapable.betterandroid:
ui-component:
version: 1.0.0

View File

@@ -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.sharedApp.packageName
@@ -42,4 +44,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)
}
}