mirror of
https://github.com/BetterAndroid/FlexiUI.git
synced 2025-09-07 19:14:12 +08:00
chore: use alpha compose android version and modify android configs
This commit is contained in:
@@ -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
|
||||
|
@@ -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)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user