-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from Konyaco/dev
Dev
- Loading branch information
Showing
67 changed files
with
1,801 additions
and
517 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# TODO | ||
|
||
## Basic Components | ||
|
||
- `disabled`/`enabled` parameter on all components | ||
- Card (With optional `clickable` parameter) | ||
- Checkout | ||
- [ ] Icon animation on toggle | ||
- TextField | ||
- [ ] Different style. | ||
- [ ] Customizable leading/trailing icon. | ||
- [ ] Optional clear button (With `clearable: Boolean` parameter, and auto trigger `onChange("")`) | ||
- Flyout | ||
- [ ] Noise background | ||
- [ ] Improve enter/exit animation | ||
- Dialog | ||
- [ ] Improve customizability. Provide a lower level Dialog component, and some compound components like `AlertDialog`, `ConfirmDialog`, `PromptDialog` etc. | ||
- Slider | ||
- [ ] Improve performance and smoothness. | ||
|
||
- Layer | ||
- [ ] Eliminate workarounds like `circular`, `cornerRadius` etc. | ||
|
||
## Compound Components | ||
|
||
- Date Picker | ||
- [ ] Calender Date Picker | ||
- [ ] Calender View | ||
- [ ] Date Picker | ||
- [ ] Time Picker | ||
- Navigator | ||
- [ ] Extract as an component (Provide low level components API, and high level declarative-style API?) | ||
- [ ] Provide different style | ||
|
||
## Extend Components | ||
|
||
- [ ] MediaPlayer | ||
- [ ] File Picker ? | ||
|
||
## Gallery | ||
|
||
Imitates the style of WinUI 3 Gallery. | ||
|
||
- [ ] Add Home page. | ||
- [ ] Put components to separate pages. | ||
- [ ] Icons Gallery |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/build/ | ||
/.gradle/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
plugins { | ||
`kotlin-dsl` | ||
`java-gradle-plugin` | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation(gradleApi()) | ||
implementation(kotlin("gradle-plugin")) | ||
} | ||
|
||
kotlin { | ||
java { | ||
toolchain { | ||
languageVersion.set(JavaLanguageVersion.of(17)) | ||
} | ||
} | ||
} | ||
|
||
gradlePlugin { | ||
plugins { | ||
create("BuildPlugin") { | ||
id = "com.konyaco.fluent.plugin.build" | ||
implementationClass = "com.konyaco.fluent.plugin.build.BuildPlugin" | ||
} | ||
} | ||
} |
Empty file.
23 changes: 23 additions & 0 deletions
23
build-plugin/src/main/java/com/konyaco/fluent/plugin/build/BuildConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.konyaco.fluent.plugin.build | ||
|
||
import org.gradle.api.JavaVersion | ||
|
||
object BuildConfig { | ||
|
||
const val group = "com.konyaco" | ||
|
||
const val packageName = "$group.fluent" | ||
|
||
const val libraryVersion = "0.0.1-dev.7" | ||
|
||
object Android { | ||
const val compileSdkVersion = 34 | ||
|
||
const val minSdkVersion = 24 | ||
} | ||
|
||
object Jvm { | ||
const val jvmToolchainVersion = 17 | ||
val javaVersion = JavaVersion.VERSION_17 | ||
} | ||
} |
84 changes: 84 additions & 0 deletions
84
build-plugin/src/main/java/com/konyaco/fluent/plugin/build/BuildPlugin.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
package com.konyaco.fluent.plugin.build | ||
|
||
import org.gradle.api.Plugin | ||
import org.gradle.api.Project | ||
import org.gradle.api.publish.PublishingExtension | ||
import org.gradle.api.publish.maven.MavenPublication | ||
import org.gradle.api.tasks.bundling.Jar | ||
import org.gradle.kotlin.dsl.create | ||
import org.gradle.kotlin.dsl.findByType | ||
import org.gradle.kotlin.dsl.withType | ||
import org.gradle.plugins.signing.SigningExtension | ||
|
||
class BuildPlugin : Plugin<Project> { | ||
override fun apply(target: Project) { | ||
target.allprojects.forEach { | ||
it.afterEvaluate { | ||
|
||
it.extensions.findByType<PublishingExtension>()?.apply { | ||
setupMavenPublishing(it) | ||
it.extensions.findByType<SigningExtension>()?.setupSigning(this) | ||
} | ||
} | ||
} | ||
} | ||
|
||
private fun SigningExtension.setupSigning(publishing: PublishingExtension) { | ||
useInMemoryPgpKeys( | ||
System.getenv("SIGNING_KEY_ID"), | ||
System.getenv("SIGNING_KEY"), | ||
System.getenv("SIGNING_PASSWORD") | ||
) | ||
sign(publishing.publications) | ||
} | ||
|
||
private fun PublishingExtension.setupMavenPublishing(target: Project) { | ||
val javadocJar = target.tasks.findByName("javadocJar") ?: target.tasks.create("javadocJar", Jar::class) { | ||
archiveClassifier.set("javadoc") | ||
} | ||
publications.withType<MavenPublication> { | ||
artifact(javadocJar) | ||
pom { | ||
name.set("compose-fluent-ui") | ||
description.set("A Fluent Design UI library for compose-multiplatform.") | ||
url.set("https://github.com/Konyaco/compose-fluent-ui") | ||
|
||
licenses { | ||
license { | ||
name.set("The Apache License, Version 2.0") | ||
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt") | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
name.set("Kon Yaco") | ||
email.set("atwzj233@gmail.com") | ||
url.set("https://github.com/Konyaco") | ||
} | ||
} | ||
|
||
scm { | ||
url.set("https://github.com/Konyaco/compose-fluent-ui") | ||
connection.set("scm:git:git://github.com/Konyaco/compose-fluent-ui.git") | ||
developerConnection.set("scm:git:ssh://github.com/Konyaco/compose-fluent-ui.git") | ||
} | ||
} | ||
} | ||
repositories { | ||
maven { | ||
val releasesUrl ="https://s01.oss.sonatype.org/content/repositories/snapshots/" | ||
val snapshotsUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" | ||
name = "OSSRH" | ||
url = target.uri( | ||
if (target.version.toString().endsWith("SNAPSHOT")) releasesUrl | ||
else snapshotsUrl | ||
) | ||
credentials { | ||
username = System.getenv("OSSRH_USERNAME") | ||
password = System.getenv("OSSRH_PASSWORD") | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.