-
-
Notifications
You must be signed in to change notification settings - Fork 15
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 #87 from KakaoCup/prepare-release
Prepare release
- Loading branch information
Showing
12 changed files
with
55 additions
and
49 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 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,10 @@ | ||
plugins { | ||
alias(libs.plugins.compose.compiler) apply false | ||
} | ||
|
||
allprojects { | ||
repositories { | ||
google() | ||
mavenCentral() | ||
} | ||
} |
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 |
---|---|---|
@@ -1 +1 @@ | ||
0.3.0 | ||
0.4.0 |
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
19 changes: 11 additions & 8 deletions
19
compose/src/main/kotlin/io/github/kakaocup/compose/rule/KakaoComposeTestRule.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 |
---|---|---|
@@ -1,25 +1,28 @@ | ||
package io.github.kakaocup.compose.rule | ||
|
||
import androidx.compose.ui.test.SemanticsMatcher | ||
import androidx.compose.ui.test.SemanticsNodeInteraction | ||
import androidx.compose.ui.test.SemanticsNodeInteractionCollection | ||
import androidx.compose.ui.test.SemanticsNodeInteractionsProvider | ||
import androidx.compose.ui.test.junit4.ComposeContentTestRule | ||
import io.github.kakaocup.compose.KakaoCompose | ||
import org.junit.rules.TestRule | ||
import org.junit.runner.Description | ||
import org.junit.runners.model.Statement | ||
|
||
class KakaoComposeTestRule( | ||
val semanticsProvider: SemanticsNodeInteractionsProvider, | ||
val semanticsProvider: SemanticsNodeInteractionsProvider? = null, | ||
val useUnmergedTree: Boolean? = null | ||
) : TestRule { | ||
override fun apply(base: Statement, description: Description): Statement = | ||
object : Statement() { | ||
override fun evaluate() { | ||
val oldSemanticsProvided = KakaoCompose.Global.semanticsProvider | ||
KakaoCompose.Global.semanticsProvider = semanticsProvider | ||
val preEvaluatedSemanticsProvided = KakaoCompose.Global.semanticsProvider | ||
semanticsProvider?.let { KakaoCompose.Global.semanticsProvider = it } | ||
val preUseUnmergedTree = KakaoCompose.Override.useUnmergedTree | ||
useUnmergedTree?.let { KakaoCompose.Override.useUnmergedTree = it } | ||
|
||
base.evaluate() | ||
KakaoCompose.Global.semanticsProvider = oldSemanticsProvided | ||
|
||
KakaoCompose.Global.semanticsProvider = preEvaluatedSemanticsProvided | ||
KakaoCompose.Override.useUnmergedTree = preUseUnmergedTree | ||
} | ||
} | ||
} | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Sat Sep 18 21:53:15 PDT 2021 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip | ||
distributionPath=wrapper/dists | ||
zipStorePath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
plugins { | ||
id("com.android.application") | ||
kotlin("android") | ||
alias(libs.plugins.compose.compiler) | ||
} | ||
|
||
android { | ||
|