mirror of
https://github.com/BetterAndroid/FlexiUI.git
synced 2025-09-08 11:34:18 +08:00
refactor: move resources to flexiui-resources
This commit is contained in:
8
.idea/artifacts/flexiui_resources_desktop.xml
generated
Normal file
8
.idea/artifacts/flexiui_resources_desktop.xml
generated
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<component name="ArtifactManager">
|
||||||
|
<artifact type="jar" name="flexiui-resources-desktop">
|
||||||
|
<output-path>$PROJECT_DIR$/flexiui-resources/build/libs</output-path>
|
||||||
|
<root id="archive" name="flexiui-resources-desktop.jar">
|
||||||
|
<element id="module-output" name="FlexiUI.flexiui-resources.desktopMain" />
|
||||||
|
</root>
|
||||||
|
</artifact>
|
||||||
|
</component>
|
@@ -32,6 +32,7 @@ kotlin {
|
|||||||
implementation(compose.foundation)
|
implementation(compose.foundation)
|
||||||
// TODO: We need to remove this and replace with "material-ripple"
|
// TODO: We need to remove this and replace with "material-ripple"
|
||||||
implementation(compose.material)
|
implementation(compose.material)
|
||||||
|
implementation(projects.flexiuiResources)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
val androidMain by getting {
|
val androidMain by getting {
|
||||||
|
1
flexiui-resources/.gitignore
vendored
Normal file
1
flexiui-resources/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/build
|
64
flexiui-resources/build.gradle.kts
Normal file
64
flexiui-resources/build.gradle.kts
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
plugins {
|
||||||
|
autowire(libs.plugins.kotlin.multiplatform)
|
||||||
|
autowire(libs.plugins.android.library)
|
||||||
|
autowire(libs.plugins.jetbrains.compose)
|
||||||
|
}
|
||||||
|
|
||||||
|
group = property.project.groupName
|
||||||
|
|
||||||
|
kotlin {
|
||||||
|
androidTarget()
|
||||||
|
jvm("desktop")
|
||||||
|
listOf(
|
||||||
|
iosX64(),
|
||||||
|
iosArm64(),
|
||||||
|
iosSimulatorArm64(),
|
||||||
|
).forEach { iosTarget ->
|
||||||
|
iosTarget.binaries.framework {
|
||||||
|
baseName = projects.flexiuiResources.name
|
||||||
|
isStatic = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
jvmToolchain(17)
|
||||||
|
sourceSets {
|
||||||
|
val commonMain by getting {
|
||||||
|
dependencies {
|
||||||
|
implementation(compose.runtime)
|
||||||
|
implementation(compose.foundation)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
val androidMain by getting
|
||||||
|
val desktopMain by getting
|
||||||
|
val iosX64Main by getting
|
||||||
|
val iosArm64Main by getting
|
||||||
|
val iosSimulatorArm64Main by getting
|
||||||
|
val iosMain by creating {
|
||||||
|
dependsOn(commonMain)
|
||||||
|
iosX64Main.dependsOn(this)
|
||||||
|
iosArm64Main.dependsOn(this)
|
||||||
|
iosSimulatorArm64Main.dependsOn(this)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
android {
|
||||||
|
namespace = property.project.groupName
|
||||||
|
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 {
|
||||||
|
minSdk = property.project.android.minSdk
|
||||||
|
}
|
||||||
|
compileOptions {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_17
|
||||||
|
targetCompatibility = JavaVersion.VERSION_17
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_17
|
||||||
|
targetCompatibility = JavaVersion.VERSION_17
|
||||||
|
}
|
2
flexiui-resources/src/androidMain/AndroidManifest.xml
Normal file
2
flexiui-resources/src/androidMain/AndroidManifest.xml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<manifest />
|
@@ -20,4 +20,4 @@ sweetProperty {
|
|||||||
}
|
}
|
||||||
rootProject.name = "FlexiUI"
|
rootProject.name = "FlexiUI"
|
||||||
include(":samples:androidApp", ":samples:desktopApp", ":samples:shared")
|
include(":samples:androidApp", ":samples:desktopApp", ":samples:shared")
|
||||||
include(":flexiui-core")
|
include(":flexiui-core", "flexiui-resources")
|
Reference in New Issue
Block a user