-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
98 changed files
with
3,246 additions
and
701 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,27 @@ jobs: | |
- name: Compile example (KAPT) | ||
run: ./gradlew :example:assembleDebug -PenroExampleUseKapt | ||
|
||
# Compile test application with KAPT; we don't need to compile :tests:application with KSP, | ||
# because it will be compiled with KSP as part of the "Run tests" job. | ||
compile-test-application-kapt: | ||
name: Compile test application (KAPT) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'zulu' | ||
java-version: 17 | ||
|
||
- name: Setup gradle | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: Compile test application (KAPT) | ||
run: ./gradlew :tests:application:assembleDebug -PenroExampleUseKapt | ||
|
||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
|
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
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
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,12 +1,14 @@ | ||
import org.gradle.api.JavaVersion | ||
import org.gradle.api.Project | ||
import org.gradle.kotlin.dsl.withType | ||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget | ||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | ||
|
||
fun Project.configureExplicitApi() { | ||
tasks.withType<KotlinCompile>() { | ||
kotlinOptions { | ||
freeCompilerArgs += "-Xexplicit-api=strict" | ||
compilerOptions { | ||
jvmTarget.set(JvmTarget.JVM_17) | ||
freeCompilerArgs.add("-Xexplicit-api=strict") | ||
} | ||
} | ||
} |
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,23 @@ | ||
package dev.enro.core | ||
|
||
import dev.enro.core.controller.EnroBackConfiguration | ||
|
||
public data class EnroConfig( | ||
internal val isInTest: Boolean = false, | ||
internal val isAnimationsDisabled: Boolean = false, | ||
internal val isStrictMode: Boolean = false, | ||
/** | ||
* In versions of Enro before 2.8.0, NavigationContainers would always accept destinations that were presented, and | ||
* would only enforce their navigation instruction filter for pushed instructions. This is no longer the default | ||
* behavior, but can be re-enabled by setting this Boolean to true. | ||
*/ | ||
@Deprecated("This behavior is no longer recommended, and will be removed in a future version of Enro. Please update your NavigationContainers to use a NavigationInstructionFilter that explicitly declares all instructions that are valid for the container.") | ||
internal val useLegacyContainerPresentBehavior: Boolean = false, | ||
internal val backConfiguration: EnroBackConfiguration = EnroBackConfiguration.Default, | ||
/** | ||
* This Boolean sets whether or not Composables will attempt to fallback to View based animations (Animation or Animator) | ||
* when there are no Composable Enter/ExitTransition animations provided. This is disabled by default for tests, based | ||
* on checking for the presence of the JUnit Test class, because these animations cause issues with ComposeTestRule tests. | ||
*/ | ||
internal val enableViewAnimationsForCompose: Boolean = runCatching { Class.forName("org.junit.Test") }.isFailure, | ||
) |
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
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
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
Oops, something went wrong.