Skip to content

Commit

Permalink
Large-scale cleanup (#794)
Browse files Browse the repository at this point in the history
* Large-scale cleanup

* Large-scale cleanup

* Fix tests

* Cleanup

* Fix project description

* Rebuilds
  • Loading branch information
jisungbin authored Jul 7, 2023
1 parent aa92056 commit 373a0a6
Show file tree
Hide file tree
Showing 136 changed files with 1,401 additions and 2,123 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
!/.idea/codeStyleSettings.xml
!/.idea/codeStyles
!/.idea/dictionaries
!/.idea/inspectionProfiles
*.iml
.gradle
build
Expand Down
47 changes: 47 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

68 changes: 68 additions & 0 deletions .run/catalog.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="catalog" type="AndroidRunConfigurationType" factoryName="Android App" activateToolWindowBeforeRun="false">
<module name="quack-quack.catalog.main" />
<option name="DEPLOY" value="true" />
<option name="DEPLOY_APK_FROM_BUNDLE" value="false" />
<option name="DEPLOY_AS_INSTANT" value="false" />
<option name="ARTIFACT_NAME" value="" />
<option name="PM_INSTALL_OPTIONS" value="" />
<option name="ALL_USERS" value="false" />
<option name="ALWAYS_INSTALL_WITH_PM" value="false" />
<option name="CLEAR_APP_STORAGE" value="false" />
<option name="ACTIVITY_EXTRA_FLAGS" value="" />
<option name="MODE" value="default_activity" />
<option name="CLEAR_LOGCAT" value="false" />
<option name="SHOW_LOGCAT_AUTOMATICALLY" value="false" />
<option name="INSPECTION_WITHOUT_ACTIVITY_RESTART" value="false" />
<option name="TARGET_SELECTION_MODE" value="DEVICE_AND_SNAPSHOT_COMBO_BOX" />
<option name="SELECTED_CLOUD_MATRIX_CONFIGURATION_ID" value="-1" />
<option name="SELECTED_CLOUD_MATRIX_PROJECT_ID" value="" />
<option name="DEBUGGER_TYPE" value="Java" />
<Auto>
<option name="USE_JAVA_AWARE_DEBUGGER" value="false" />
<option name="SHOW_STATIC_VARS" value="true" />
<option name="WORKING_DIR" value="" />
<option name="TARGET_LOGGING_CHANNELS" value="lldb process:gdb-remote packets" />
<option name="SHOW_OPTIMIZED_WARNING" value="true" />
<option name="ATTACH_ON_WAIT_FOR_DEBUGGER" value="false" />
<option name="DEBUG_SANDBOX_SDK" value="false" />
</Auto>
<Hybrid>
<option name="USE_JAVA_AWARE_DEBUGGER" value="false" />
<option name="SHOW_STATIC_VARS" value="true" />
<option name="WORKING_DIR" value="" />
<option name="TARGET_LOGGING_CHANNELS" value="lldb process:gdb-remote packets" />
<option name="SHOW_OPTIMIZED_WARNING" value="true" />
<option name="ATTACH_ON_WAIT_FOR_DEBUGGER" value="false" />
<option name="DEBUG_SANDBOX_SDK" value="false" />
</Hybrid>
<Java>
<option name="ATTACH_ON_WAIT_FOR_DEBUGGER" value="false" />
<option name="DEBUG_SANDBOX_SDK" value="false" />
</Java>
<Native>
<option name="USE_JAVA_AWARE_DEBUGGER" value="false" />
<option name="SHOW_STATIC_VARS" value="true" />
<option name="WORKING_DIR" value="" />
<option name="TARGET_LOGGING_CHANNELS" value="lldb process:gdb-remote packets" />
<option name="SHOW_OPTIMIZED_WARNING" value="true" />
<option name="ATTACH_ON_WAIT_FOR_DEBUGGER" value="false" />
<option name="DEBUG_SANDBOX_SDK" value="false" />
</Native>
<Profilers>
<option name="ADVANCED_PROFILING_ENABLED" value="false" />
<option name="STARTUP_PROFILING_ENABLED" value="false" />
<option name="STARTUP_CPU_PROFILING_ENABLED" value="false" />
<option name="STARTUP_CPU_PROFILING_CONFIGURATION_NAME" value="Java/Kotlin Method Sample (legacy)" />
<option name="STARTUP_NATIVE_MEMORY_PROFILING_ENABLED" value="false" />
<option name="NATIVE_MEMORY_SAMPLE_RATE_BYTES" value="2048" />
</Profilers>
<option name="DEEP_LINK" value="" />
<option name="ACTIVITY_CLASS" value="" />
<option name="SEARCH_ACTIVITY_IN_GLOBAL_SCOPE" value="false" />
<option name="SKIP_ACTIVITY_VALIDATION" value="false" />
<method v="2">
<option name="Android.Gradle.BeforeRunTask" enabled="true" />
</method>
</configuration>
</component>
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@
</p>
<h1 align="center">QuackQuack</h1>

<img src="assets/QuackTextSnapshot_ModifierSpan.png" align="right"/>
<img src="assets/awesome-quackquack.png" align="right"/>

```kotlin
QuackText(

import java.awt.ColorQuackText(
modifier = Modifier
.background(color = Color.White)
.span(
texts = listOf("QuackQuack", "Duckie"),
style = SpanStyle(color = QuackColor.DuckieOrange),
)
.padding(30.dp),
text = "QuackQuack is an awesome ui kit created by the Duckie team.",
text = "QuackQuack is an awesome design system created by the Duckie team.",
typography = QuackTypography.Body1,
)
```
Expand Down
5 changes: 3 additions & 2 deletions animation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
* Please see full license: https://github.com/duckie-team/quack-quack-android/blob/main/LICENSE
*/

@file:Suppress("INLINE_FROM_HIGHER_PLATFORM")

plugins {
quackquack("android-library")
quackquack("android-compose")
quackquack("android-compose-metrics")
quackquack("kotlin-explicit-api")
quackquack("test-junit")
quackquack("test-roborazzi")
quackquack("quack-publishing")
}

Expand All @@ -25,4 +25,5 @@ dependencies {
libs.compose.animation,
projects.util.orArtifact(),
)
testImplementation(libs.compose.foundation)
}
32 changes: 16 additions & 16 deletions animation/report/compose-metrics/animation_debug-module.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"skippableComposables": 2,
"restartableComposables": 2,
"skippableComposables": 0,
"restartableComposables": 0,
"readonlyComposables": 0,
"totalComposables": 5,
"restartGroups": 2,
"totalGroups": 5,
"staticArguments": 1,
"certainArguments": 25,
"knownStableArguments": 42,
"knownUnstableArguments": 9,
"unknownStableArguments": 1,
"totalArguments": 52,
"totalComposables": 3,
"restartGroups": 0,
"totalGroups": 3,
"staticArguments": 0,
"certainArguments": 18,
"knownStableArguments": 30,
"knownUnstableArguments": 11,
"unknownStableArguments": 0,
"totalArguments": 41,
"markedStableClasses": 0,
"inferredStableClasses": 0,
"inferredUnstableClasses": 1,
"inferredUnstableClasses": 0,
"inferredUncertainClasses": 0,
"effectivelyStableClasses": 0,
"totalClasses": 1,
"memoizedLambdas": 1,
"singletonLambdas": 1,
"totalClasses": 0,
"memoizedLambdas": 0,
"singletonLambdas": 0,
"singletonComposableLambdas": 0,
"composableLambdas": 0,
"totalLambdas": 1
"totalLambdas": 0
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"skippableComposables": 3,
"restartableComposables": 3,
"readonlyComposables": 0,
"totalComposables": 3,
"restartGroups": 3,
"totalGroups": 3,
"staticArguments": 7,
"certainArguments": 0,
"knownStableArguments": 40,
"knownUnstableArguments": 3,
"unknownStableArguments": 0,
"totalArguments": 43,
"markedStableClasses": 0,
"inferredStableClasses": 0,
"inferredUnstableClasses": 0,
"inferredUncertainClasses": 3,
"effectivelyStableClasses": 0,
"totalClasses": 3,
"memoizedLambdas": 6,
"singletonLambdas": 0,
"singletonComposableLambdas": 3,
"composableLambdas": 3,
"totalLambdas": 6
}
32 changes: 16 additions & 16 deletions animation/report/compose-metrics/animation_release-module.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"skippableComposables": 2,
"restartableComposables": 2,
"skippableComposables": 0,
"restartableComposables": 0,
"readonlyComposables": 0,
"totalComposables": 5,
"restartGroups": 2,
"totalGroups": 5,
"staticArguments": 1,
"certainArguments": 25,
"knownStableArguments": 42,
"knownUnstableArguments": 9,
"unknownStableArguments": 1,
"totalArguments": 52,
"totalComposables": 3,
"restartGroups": 0,
"totalGroups": 3,
"staticArguments": 0,
"certainArguments": 18,
"knownStableArguments": 30,
"knownUnstableArguments": 11,
"unknownStableArguments": 0,
"totalArguments": 41,
"markedStableClasses": 0,
"inferredStableClasses": 0,
"inferredUnstableClasses": 1,
"inferredUnstableClasses": 0,
"inferredUncertainClasses": 0,
"effectivelyStableClasses": 0,
"totalClasses": 1,
"memoizedLambdas": 1,
"singletonLambdas": 1,
"totalClasses": 0,
"memoizedLambdas": 0,
"singletonLambdas": 0,
"singletonComposableLambdas": 0,
"composableLambdas": 0,
"totalLambdas": 1
"totalLambdas": 0
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"skippableComposables": 3,
"restartableComposables": 3,
"readonlyComposables": 0,
"totalComposables": 3,
"restartGroups": 3,
"totalGroups": 3,
"staticArguments": 7,
"certainArguments": 0,
"knownStableArguments": 40,
"knownUnstableArguments": 3,
"unknownStableArguments": 0,
"totalArguments": 43,
"markedStableClasses": 0,
"inferredStableClasses": 0,
"inferredUnstableClasses": 0,
"inferredUncertainClasses": 3,
"effectivelyStableClasses": 0,
"totalClasses": 3,
"memoizedLambdas": 6,
"singletonLambdas": 0,
"singletonComposableLambdas": 3,
"composableLambdas": 3,
"totalLambdas": 6
}
4 changes: 0 additions & 4 deletions animation/report/compose-reports/animation_debug-classes.txt
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
unstable class QuackAnimationSpec {
stable var snapMode: Boolean
<runtime stability> = Unstable
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
package,name,composable,skippable,restartable,readonly,inline,isLambda,hasDefaults,defaultsGroup,groups,calls,
team.duckie.quackquack.animation.QuackAnimatedContent,QuackAnimatedContent,1,1,1,0,0,0,0,0,1,1,
team.duckie.quackquack.animation.QuackAnimatedVisibility,QuackAnimatedVisibility,1,1,1,0,0,0,0,0,1,1,
team.duckie.quackquack.animation.animatedQuackBorderAsState,animatedQuackBorderAsState,1,0,0,0,0,0,0,0,1,2,
team.duckie.quackquack.animation.animateQuackColorAsState,animateQuackColorAsState,1,0,0,0,0,0,0,0,1,2,
team.duckie.quackquack.animation.animatedQuackTextStyleAsState,animatedQuackTextStyleAsState,1,0,0,0,0,0,0,0,1,5,
team.duckie.quackquack.animation.animatedQuackTypographyAsState,animatedQuackTypographyAsState,1,0,0,0,0,0,0,0,1,5,
25 changes: 7 additions & 18 deletions animation/report/compose-reports/animation_debug-composables.txt
Original file line number Diff line number Diff line change
@@ -1,31 +1,20 @@
restartable skippable fun QuackAnimatedContent(
stable modifier: Modifier? = @static Companion
targetState: T
stable label: String? = @static "AnimatedContent"
stable content: @[ExtensionFunctionType] Function4<AnimatedVisibilityScope, @[ParameterName(name = 'animatedTargetState')] T, Composer, Int, Unit>
)
restartable skippable scheme("[0, [0]]") fun QuackAnimatedVisibility(
stable modifier: Modifier? = @static Companion
stable visible: Boolean
stable label: String? = @static "AnimatedVisibility"
stable otherEnterAnimation: EnterTransition? = @static null
stable otherExitAnimation: ExitTransition? = @static null
stable content: @[ExtensionFunctionType] Function3<AnimatedVisibilityScope, Composer, Int, Unit>
)
fun animatedQuackBorderAsState(
stable targetValue: QuackBorder
stable label: String? = @static "QuackBorderAnimation"
unstable animationSpec: AnimationSpec<Any>? = @static quackTween()
stable label: String? = @static "QuackBorder"
stable widthAnimationfinishedListener: Function1<@[ParameterName(name = 'dp')] Dp, Unit>? = @static null
stable colorAnimationFinishedListener: Function1<@[ParameterName(name = 'color')] QuackColor, Unit>? = @static null
): QuackBorder
fun animateQuackColorAsState(
stable targetValue: QuackColor
stable label: String? = @static "animateQuackColorAsState"
unstable animationSpec: AnimationSpec<QuackColor>? = @static quackTween()
stable label: String? = @static "QuackColor"
stable finishedListener: Function1<@[ParameterName(name = 'color')] QuackColor, Unit>? = @static null
): State<QuackColor>
fun animatedQuackTextStyleAsState(
fun animatedQuackTypographyAsState(
stable targetValue: QuackTypography
stable label: String? = @static "animatedQuackTextStyleAsState"
unstable animationSpec: AnimationSpec<Any>? = @static quackTween()
stable label: String? = @static "QuackTypography"
stable colorAnimationFinishedListener: Function1<@[ParameterName(name = 'color')] QuackColor, Unit>? = @static null
stable sizeAnimationFinishedListener: Function1<@[ParameterName(name = 'size')] Float, Unit>? = @static null
stable letterSpacingAnimationFinishedListener: Function1<@[ParameterName(name = 'letterSpacing')] Float, Unit>? = @static null
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
runtime class QuackBorderSnapshot {
runtime val snapshotPath: SnapshotPathGeneratorRule
<runtime stability> = Runtime(SnapshotPathGeneratorRule)
}
runtime class QuackColorSnapshot {
runtime val snapshotPath: SnapshotPathGeneratorRule
<runtime stability> = Runtime(SnapshotPathGeneratorRule)
}
runtime class QuackTypographySnapshot {
runtime val snapshotPath: SnapshotPathGeneratorRule
<runtime stability> = Runtime(SnapshotPathGeneratorRule)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package,name,composable,skippable,restartable,readonly,inline,isLambda,hasDefaults,defaultsGroup,groups,calls,
Empty file.
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
unstable class QuackAnimationSpec {
stable var snapMode: Boolean
<runtime stability> = Unstable
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
package,name,composable,skippable,restartable,readonly,inline,isLambda,hasDefaults,defaultsGroup,groups,calls,
team.duckie.quackquack.animation.QuackAnimatedContent,QuackAnimatedContent,1,1,1,0,0,0,0,0,1,1,
team.duckie.quackquack.animation.QuackAnimatedVisibility,QuackAnimatedVisibility,1,1,1,0,0,0,0,0,1,1,
team.duckie.quackquack.animation.animatedQuackBorderAsState,animatedQuackBorderAsState,1,0,0,0,0,0,0,0,1,2,
team.duckie.quackquack.animation.animateQuackColorAsState,animateQuackColorAsState,1,0,0,0,0,0,0,0,1,2,
team.duckie.quackquack.animation.animatedQuackTextStyleAsState,animatedQuackTextStyleAsState,1,0,0,0,0,0,0,0,1,5,
team.duckie.quackquack.animation.animatedQuackTypographyAsState,animatedQuackTypographyAsState,1,0,0,0,0,0,0,0,1,5,
Loading

0 comments on commit 373a0a6

Please sign in to comment.