Skip to content

Update #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 825 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
825 commits
Select commit Hold shift + click to select a range
fe401c0
Merge remote-tracking branch 'origin/main'
isaac-udy Oct 16, 2023
5c17754
Add documentation to EnroTestRule and runEnroTest, extract these to t…
isaac-udy Oct 16, 2023
9abf684
Update EnroTest to correctly uninstall navigation controllers for Jvm…
isaac-udy Oct 16, 2023
b7e80dc
Update changelog
isaac-udy Oct 16, 2023
7f39787
Released 2.1.1
isaac-udy Oct 16, 2023
6fb7f4d
Attempt to update CI to only run if code files are changed (to save o…
isaac-udy Oct 16, 2023
0f91ff5
Merge remote-tracking branch 'origin/main'
isaac-udy Oct 16, 2023
33d8312
Add KDocs for NavigationAnimationOverrideBuilder and extension method…
isaac-udy Oct 16, 2023
5580b9c
Add additional documentation to EmptyBehavior
isaac-udy Oct 16, 2023
136a759
Update EmptyBehavior objects to data object
isaac-udy Oct 16, 2023
710a5ec
Update NavigationDirection objects to data object
isaac-udy Oct 16, 2023
c756ff5
Ignore function naming warnings for NavigationInstruction (mimicking …
isaac-udy Oct 16, 2023
07ccd0f
Move NavigationDirection to it's own file
isaac-udy Oct 16, 2023
2e2a66b
Convert ContainerRegistrationStrategy to be data objects
isaac-udy Oct 16, 2023
a31de41
Remove default `EmptyBehavior` parameter from rememberNavigationConta…
isaac-udy Oct 16, 2023
d3d9335
Added the material theme as a composeEnvironment, rather than just ho…
isaac-udy Oct 18, 2023
3781dfa
Added an unbound BottomSheetFragment to the test application, and tes…
isaac-udy Oct 18, 2023
eb6c174
Update tests for removal of empty behavior default argument
isaac-udy Oct 18, 2023
0410910
Add import missing from previous commit
isaac-udy Oct 18, 2023
b2ac679
Move `hasKey` to be an extension property in NoNavigationKey
isaac-udy Oct 18, 2023
8a6ee1f
Update the FragmentPlugin to not add Enro backpress listeners for unb…
isaac-udy Oct 18, 2023
bd81e90
Update CHANGELOG.md
isaac-udy Oct 19, 2023
7378145
Move AnimationPair into the compatibility package
isaac-udy Oct 19, 2023
50120f0
Remove deprecated functions from rememberNavigationContainer into the…
isaac-udy Oct 19, 2023
6ee5dce
Tweak the naming of deprecated compatibility files to match package n…
isaac-udy Oct 19, 2023
b2f56c7
Fix mistake with naming of NavigationHandle file cause by refactoring
isaac-udy Oct 19, 2023
551556e
Manually focus the BottomSheet's View in UnboundBottomSheetRobot, as …
isaac-udy Oct 19, 2023
536cba0
Change back press behavior to account for dialog
isaac-udy Oct 19, 2023
d68038f
Bump waiting time to (attempt to) deal with flakiness in CI
isaac-udy Oct 19, 2023
0581400
Tweak the closeWithBackPressed method to use main thread to request f…
isaac-udy Oct 19, 2023
373398e
Update CHANGELOG.md for 2.2.0
isaac-udy Oct 19, 2023
9f741ba
Released 2.2.0
isaac-udy Oct 19, 2023
3dc44a2
Resolve Enro lint bug caused by not calling visitMethod
isaac-udy Nov 2, 2023
57a1658
Run lint during CI step
isaac-udy Nov 2, 2023
a0dff27
Merge remote-tracking branch 'origin/main'
isaac-udy Nov 2, 2023
a0b5163
Added linting rules for Compose, added example linting to the applica…
isaac-udy Nov 17, 2023
a2a9c73
Supress lint in LintingExamples.kt, reduce severity of missingNavigat…
isaac-udy Nov 22, 2023
858c7d3
Disable OverrideNavigationAnimations during LocalInspectionMode
isaac-udy Nov 22, 2023
2e5efc3
Throw error if local inspection mode is true and user attempts to acc…
isaac-udy Nov 22, 2023
c148162
Add functionality to allow setting/getting/clearing of results in a N…
isaac-udy Nov 22, 2023
54d6a7f
Hide non-active destinations from screen readers (i.e. when a destina…
isaac-udy Nov 22, 2023
896daca
Add simple test for LazyColumn screen, due to potential issues with C…
isaac-udy Nov 22, 2023
6baff1d
Update library versions, and allow generic types without lint warning…
isaac-udy Nov 26, 2023
fdcced6
Formatting and import updates
isaac-udy Jan 15, 2024
bf3bc84
Library version updates
isaac-udy Jan 15, 2024
4d98990
Formatting and import updates
isaac-udy Jan 15, 2024
e32189c
Remove NavigationAnimationEvent (for now)
isaac-udy Jan 15, 2024
244bdef
Update NavigationFlow to return after onCompleted is called, to preve…
isaac-udy Jan 15, 2024
81c6467
Add `asPush` and `asPresent` for NavigationKeys to easily create Push…
isaac-udy Jan 15, 2024
e803878
Update NavigationContainer to take NavigationContainerFilter instead …
isaac-udy Feb 4, 2024
f1636e8
Update RootFragment for changes to NavigationContainerFilter
isaac-udy Feb 7, 2024
ba130cd
Updated EmptyBehavior to use `requestClose` for the CloseParent behavior
isaac-udy Feb 7, 2024
23580c7
Added a test screen for BottomNavigation in Compose using multiple co…
isaac-udy Feb 11, 2024
f407376
Added a couple of different bottom navigation implementations to the …
isaac-udy Feb 11, 2024
9a6b145
Added a test for bottom navigation behavior in the test application
isaac-udy Feb 11, 2024
d9cedc5
Fixed issue with ComposableNavigationContainer causing the previously…
isaac-udy Feb 11, 2024
2592541
Increase wait timeout to 5_000 seconds for
isaac-udy Feb 11, 2024
3c0753c
Update test to remove flaky portion
isaac-udy Feb 11, 2024
bd97fb3
Update CHANGELOG.md and README.md
isaac-udy Feb 11, 2024
cb7e980
Released 2.3.0
isaac-udy Feb 11, 2024
184dbab
Minor formatting tweaks
isaac-udy Mar 15, 2024
2ab25fe
Merge remote-tracking branch 'origin/main'
isaac-udy Mar 15, 2024
470177a
* Updated dependency versions
isaac-udy Apr 23, 2024
e43cc14
Update NavigationContext leafContext to be safe for Fragments which a…
isaac-udy Apr 25, 2024
223dcbe
Update forwarded result handling to resolve several bugs with behavio…
isaac-udy Apr 28, 2024
19a5538
Fix issue with restoring dynamic containers and retaining active cont…
isaac-udy Apr 28, 2024
d02d2a3
Delay ViewModel init actions slightly, as these were occurring too qu…
isaac-udy Apr 28, 2024
18a0db0
Update restoration logic to also set the previously active container …
isaac-udy Apr 28, 2024
6f9d07a
Remove retention of navigationContainerProducer for NavigationContain…
isaac-udy Apr 28, 2024
755ca1a
Ignore leaks for RecyclerViewResultTests and ViewModelResultTests.kt …
isaac-udy Apr 28, 2024
97a6621
Run activity.onBackPressed in the UI thread
isaac-udy Apr 29, 2024
9b76ddd
Add comments
isaac-udy Apr 29, 2024
4f1e79e
Add comments
isaac-udy Apr 29, 2024
04b2e6a
Add comments
isaac-udy Apr 29, 2024
12e7e2c
Add comments
isaac-udy Apr 29, 2024
073afe3
Remove useless nullability check
isaac-udy Apr 29, 2024
94c3071
Move ViewModel package files to the correct directory
isaac-udy Apr 29, 2024
1aef5bc
Ignore flaky field leak for API 23
isaac-udy Apr 30, 2024
258f762
Add example for HorizontalPager to the test application
isaac-udy Apr 30, 2024
409e08b
Fix issue with animations caused by primary navigation setting cancel…
isaac-udy Apr 30, 2024
3d92497
Fix lint error
isaac-udy Apr 30, 2024
3c925bb
Add updates to NavigationFlow for transient and NavigationFlowReference
isaac-udy May 1, 2024
3f3755a
Add javadocs
isaac-udy May 1, 2024
f3c91f2
Add extension for overriding navigation animations and getting an Ani…
isaac-udy May 1, 2024
7af597f
Update javadocs
isaac-udy May 1, 2024
69b5083
Update changelog
isaac-udy May 1, 2024
116e188
Update README.md
isaac-udy May 1, 2024
166365e
Update README and CHANGELOG
isaac-udy May 1, 2024
9848c96
Released 2.4.0
isaac-udy May 1, 2024
9c0f5c5
Started adding support for predictive back navigation, and added Enro…
isaac-udy May 2, 2024
42a22fb
Merge remote-tracking branch 'origin/main' into main
isaac-udy May 2, 2024
f43cb07
Revert to using Defult back configuration in createNavigationController
isaac-udy May 2, 2024
a735521
Added tests for nested results in sibling containers, updated Default…
isaac-udy May 2, 2024
454eca2
Uodate getActiveChildContainers to always include the active containe…
isaac-udy May 2, 2024
745772d
Use container, rather than container key/name as the exclude set for …
isaac-udy May 2, 2024
95b13bd
Correction to documentation comment, as getActiveChildContainers no l…
isaac-udy May 2, 2024
43bf3b1
Removed `ContainerRegistrationStrategy` from the "core" `rememberNavi…
isaac-udy May 7, 2024
e9b8a00
Added `EmbeddedNavigationDestination` as an experimental API, which a…
isaac-udy May 7, 2024
09a7f34
Update version number in quick start
isaac-udy May 7, 2024
ef1ac84
Released 2.4.1
isaac-udy May 7, 2024
0223b49
Mark NavigationFlow.update as public again, and add a documentation c…
isaac-udy May 21, 2024
55be4e4
Moved `NavigationContext.getViewModel` and `requireViewModel` extensi…
isaac-udy May 21, 2024
156f6a5
Added `NavigationResultScope<Result, Key>` as a receiver for all regi…
isaac-udy May 21, 2024
1f20a27
Fix unit tests for NavigationResultScope updates
isaac-udy May 21, 2024
4983fbd
Released 2.5.0
isaac-udy May 21, 2024
8748f1c
Added isManuallyStarted to the registerForFlowResult API
isaac-udy May 30, 2024
b2ec7ae
Merge remote-tracking branch 'origin/main' into main
isaac-udy May 30, 2024
e82cad6
Added `async` to `NavigationFlowScope`, which allows the execution of…
isaac-udy May 30, 2024
33ca9a1
Updated test utilities in test application to allow waiting for a nav…
isaac-udy May 30, 2024
00c0abd
Added a test destination for the use of async in managed flows
isaac-udy May 30, 2024
4919d35
Updated version numbers to 2.6.0
isaac-udy May 30, 2024
41d9f9d
Don't run CI on updates to md files
isaac-udy May 30, 2024
942e500
Released 2.6.0
isaac-udy May 30, 2024
c231637
Updated to androidx.lifecycle 2.8.1
isaac-udy May 30, 2024
9847dda
Merge remote-tracking branch 'origin/main' into main
isaac-udy May 30, 2024
c88d725
Temporarily remove app watchers for SDK versions less than 33, due to…
isaac-udy May 30, 2024
0368f83
Temporarily remove app watchers for SDK versions less than 33, due to…
isaac-udy May 30, 2024
1637f1d
Merge remote-tracking branch 'origin/main' into main
isaac-udy May 30, 2024
9c385b3
Update README for 2.7.0
isaac-udy May 30, 2024
3eb223e
Released 2.7.0
isaac-udy May 30, 2024
58a2be7
Added support for NavigationKey.WithExtras to `NavigationResultChanne…
isaac-udy Jun 21, 2024
4db1c93
Updated `enro-test` methods to provide more descriptive error message…
isaac-udy Jun 21, 2024
f56bc1c
Updated AddModuleToController, HostInstructionAs and NavigationHostFa…
isaac-udy Jun 21, 2024
d1f3685
Added EnroTestAssertions and TestNavigationHandle.assertClosedWithRes…
isaac-udy Jun 21, 2024
d368671
Remove typing fomr assertClosedWithResult methods, as putNavigationHa…
isaac-udy Jun 21, 2024
d7a6eae
Update library versions
isaac-udy Aug 11, 2024
fd18ca3
Updated ComposableDestinationOwner to use a separate ComposableDestin…
isaac-udy Aug 12, 2024
cf2236a
Added a playground to the test application for compose animations
isaac-udy Aug 12, 2024
1f6d0f8
Fix issue with givenContainerGroupsWithNestedContainers_whenActiveCon…
isaac-udy Aug 12, 2024
1d1b071
Fixed remaining failing tests (ComposableDestinationContainerGroup te…
isaac-udy Aug 12, 2024
4378338
Update CHANGELOG.md
isaac-udy Aug 12, 2024
1aa014a
Released 2.8.0-alpha01
isaac-udy Aug 12, 2024
d6a034f
Fixed bug
isaac-udy Aug 19, 2024
787375e
Merge branch 'refs/heads/main' into enro-2.8.0
isaac-udy Aug 19, 2024
10a434c
Merge remote-tracking branch 'origin/enro-2.8.0' into enro-2.8.0
isaac-udy Aug 19, 2024
b061682
Added shared element support for Fragments and Composables which are …
isaac-udy Aug 20, 2024
147a4a2
Merge remote-tracking branch 'refs/remotes/origin/fragment-shared-ele…
isaac-udy Sep 3, 2024
efb57f3
Update CHANGELOG.md
isaac-udy Sep 3, 2024
3c38afe
Released 2.8.0-alpha02
isaac-udy Sep 3, 2024
9fed569
Released 2.8.0-alpha02
isaac-udy Sep 3, 2024
0fc4aaa
Revert version change
isaac-udy Sep 3, 2024
2dfc1de
Revert accidental version bump
isaac-udy Sep 3, 2024
45cb9b3
Released 2.8.0-alpha02
isaac-udy Sep 3, 2024
98d913d
Added a new test for testing a single ViewModel with multiple result …
isaac-udy Sep 12, 2024
11943e0
Added basic proguard config (disabled for now) to make it easy to qui…
isaac-udy Sep 12, 2024
a11dbed
Updated NavigationController to take an "EnroConfig" for configurable…
isaac-udy Sep 12, 2024
28cd524
Updated Enro's result channel ids to be based on properties through p…
isaac-udy Sep 12, 2024
954bb79
Updated library versions
isaac-udy Sep 12, 2024
810c9bf
Fixed issues with compilation in the core Enro tests
isaac-udy Sep 12, 2024
8b8b5bf
Reverted some animation changes for config.isAnimationsDisabled, as t…
isaac-udy Sep 12, 2024
6ff50c9
Updated version.properties
isaac-udy Sep 12, 2024
a4b4a08
Merge remote-tracking branch 'origin/enro-2.8.0' into enro-2.8.0
isaac-udy Sep 12, 2024
9a2a30c
Fix result channel tests
isaac-udy Sep 12, 2024
5c4a970
Update CHANGELOG.md
isaac-udy Sep 12, 2024
0ff64ba
Updated NavigationContainer handling to not always accept presented i…
isaac-udy Sep 12, 2024
206ac3d
Updated PresentationTests for non-legacy present behavior in containers
isaac-udy Sep 12, 2024
98616bb
Released 2.8.0-rc01
isaac-udy Sep 12, 2024
111be63
Use key for visibleTransition
isaac-udy Sep 16, 2024
bf71892
Updated NavigationContainerGroup to add setActiveInContainerManager t…
isaac-udy Sep 16, 2024
2dd3627
Add NavigationInstructionFilter for `acceptFromFlow`
isaac-udy Sep 16, 2024
a423926
Update CHANGELOG.md
isaac-udy Sep 16, 2024
b4d1a66
Removed `isAnimating` property of ComposableNavigationContainer, simp…
isaac-udy Sep 16, 2024
27228c4
Merge remote-tracking branch 'origin/enro-2.8.0' into enro-2.8.0
isaac-udy Sep 16, 2024
fc3013a
Released 2.8.0-rc02
isaac-udy Sep 16, 2024
fab4af2
Revert accidental version bump (action ran targeting incorrect branch)
isaac-udy Sep 16, 2024
282e61f
Released 2.8.0-rc02
isaac-udy Sep 16, 2024
eb1f6af
Released 2.8.0-rc03
isaac-udy Sep 16, 2024
04c6dd0
Register saved state handle with NavigationHandle's dependency scope,…
isaac-udy Sep 19, 2024
d90c24a
Update CHANGELOG.md
isaac-udy Sep 19, 2024
803b981
Started adding functionality to allow managed flows as destinations o…
isaac-udy Sep 19, 2024
61d11f6
Compile :tests:application with KAPT as part of the CI build step
isaac-udy Sep 26, 2024
971b1d2
In some cases, destinations that have the same name as Composable fun…
isaac-udy Sep 26, 2024
8be8f10
Fix issue with incorrect navigation binding in test application
isaac-udy Sep 26, 2024
34afb73
Suppress unchecked cast
isaac-udy Sep 26, 2024
130aafc
Minor updates and documentation for managed flow destinations, and up…
isaac-udy Sep 26, 2024
b940811
Manually trigger ManagedFlowViewModel's update based on the state of …
isaac-udy Sep 26, 2024
681ddad
AbstractFragmentHostForManagedFlow didn't actually work, so fixed it …
isaac-udy Sep 26, 2024
9de4f2f
Updated documentation and method names for navigation interceptor bui…
isaac-udy Sep 26, 2024
a4b38a5
Added examples and tests to the test application for ManagedFlowDesti…
isaac-udy Sep 26, 2024
6838615
Update CHANGELOG.md for `managedFlowDestination`
isaac-udy Sep 26, 2024
ad89215
Skip ManagedFlowInComposableTests for API 30
isaac-udy Sep 26, 2024
eaaa631
Released 2.8.0-rc04
isaac-udy Sep 26, 2024
08b89d2
Updated NavigationFlowScope to use a "FlowStepLambda" anonymous class…
isaac-udy Oct 23, 2024
30bb6cb
Released 2.8.0-rc05
isaac-udy Oct 23, 2024
1b80ce2
Update JVM target related things
isaac-udy Nov 13, 2024
f55f145
Update JVM targets that were missed in previous changes
isaac-udy Nov 15, 2024
2de8c1c
Update warning message for "MissingNavigationDestinationAnnotation"
isaac-udy Nov 15, 2024
c4c3c60
Merge branch 'enro-2.8.0'
isaac-udy Nov 15, 2024
fadc10b
Reconfigure dependencies due to issues with compose versions
isaac-udy Nov 15, 2024
0d1bf86
Updated enro-test to prefer "assert" methods in all cases, added func…
isaac-udy Nov 15, 2024
22c7551
Remove unused AndroidManifest.xml
isaac-udy Nov 15, 2024
4e0bee2
Update library versions
isaac-udy Dec 10, 2024
d3a925d
Update compile SDK
isaac-udy Dec 10, 2024
0feb52d
Released 2.8.0
isaac-udy Dec 10, 2024
096f700
Remove deprecated legacy DialogDestination.kt and BottomSheetDestinat…
isaac-udy Dec 10, 2024
58eff92
Add test for bug with saving primitive lists in ComposableDestination…
isaac-udy Feb 24, 2025
7c09100
Merge remote-tracking branch 'origin/main' into main
isaac-udy Feb 24, 2025
730943e
Update CHANGELOG.md
isaac-udy Feb 24, 2025
b7ca7fc
Released 2.8.1
isaac-udy Feb 24, 2025
a870cce
Update a variety of animation related functionality in advance of pre…
isaac-udy Feb 24, 2025
464f34a
Add only passes locally annotation and ignore to givenComposableDesti…
isaac-udy Feb 24, 2025
65fb028
Update emulator.wtf config to run on API 34 and 35
isaac-udy Feb 24, 2025
932b631
Released 2.8.2
isaac-udy Mar 1, 2025
2db559c
Exclude .kotlin from git
isaac-udy Mar 1, 2025
e1c05f6
Add PictureInPicture test for Enro to explore a reported leak; fixed …
isaac-udy Mar 1, 2025
79aa31d
Merge remote-tracking branch 'origin/main' into main
isaac-udy Mar 1, 2025
ceafd23
Attempted to set Enro up as a KMP project
isaac-udy Mar 1, 2025
84b8130
Migrated :tests:application to Compose Multiplatform
isaac-udy Mar 3, 2025
db82f9c
Get instrumented android tests for :tests:application running and pas…
isaac-udy Mar 3, 2025
d82a9a0
Reduce test name length in ComposableDestinationContainerGroups, as t…
isaac-udy Mar 3, 2025
a08d98a
Update AGP/Gradle, and allow emulatorWtf to read a private.properties…
isaac-udy Mar 3, 2025
ee049f8
Update ProjectName so that it does not incorrectly publish "enro-enro"
isaac-udy Mar 3, 2025
62ad111
Use project substitution instead of a release/debug variation of depe…
isaac-udy Mar 3, 2025
11a0eaf
Move the root :enro module to being a kotlin multiplatform library
isaac-udy Mar 3, 2025
b6be3da
Remove unnecessary task dependencies
isaac-udy Mar 3, 2025
0845b18
Set a testOptions target SDK for configure-library projects
isaac-udy Mar 3, 2025
ca414b8
Add some padding to the RecyclerViewResultActivity's RecyclerView to …
isaac-udy Mar 3, 2025
39f87e5
Use single dependencySubstitution block for all substitutions
isaac-udy Mar 6, 2025
2779d0a
Update JVM targets to Java 21; add vanniktech publishing plugin
isaac-udy Mar 6, 2025
19a2d46
Update enro-test to be a KMP library
isaac-udy Mar 6, 2025
f1db6a7
Use -Dorg.gradle.workers.max=1 to ensure single threaded publishing i…
isaac-udy Mar 6, 2025
13ea477
Update the ConfigurePublishing plugin to use the vanniktech publishin…
isaac-udy Mar 6, 2025
9163a92
Update CI workflows to target java 21
isaac-udy Mar 6, 2025
e157ef5
Update paths for ProjectChangeTests
isaac-udy Mar 6, 2025
5a5419f
Fix issue with node.receiverType not working correctly in some situat…
isaac-udy Mar 10, 2025
80b6d55
Bump lint version to latest
isaac-udy Mar 10, 2025
0df7bba
Limit release.yml to publishing the kotlin multiplatform publication …
isaac-udy Mar 11, 2025
719c329
Update CHANGELOG.md
isaac-udy Mar 11, 2025
d105178
Update file names in buildSrc to indicate they are project extensions
isaac-udy Mar 11, 2025
e94fb63
Released 2.9.0-kmp01
isaac-udy Mar 11, 2025
eb243a9
Include specific enro-processor publication task for release workflow
isaac-udy Mar 14, 2025
4c08b95
Merge remote-tracking branch 'origin/experimental-multiplatform-take-…
isaac-udy Mar 14, 2025
764c874
Change formatting for release step
isaac-udy Mar 14, 2025
aa7b936
Released 2.9.0-kmp02
isaac-udy Mar 14, 2025
41ba6f5
Revert release targeting incorrect branch
isaac-udy Mar 14, 2025
8521363
Released 2.9.0-kmp02
isaac-udy Mar 14, 2025
08bbb88
Publish enro-annotations desktop variant
isaac-udy Mar 17, 2025
836bb45
Merge remote-tracking branch 'origin/experimental-multiplatform-take-…
isaac-udy Mar 17, 2025
17c482f
Released 2.9.0-kmp03
isaac-udy Mar 17, 2025
388e393
Fix bug with bottom sheet animations
isaac-udy Mar 17, 2025
39ec681
Merge remote-tracking branch 'origin/experimental-multiplatform-take-…
isaac-udy Mar 17, 2025
d1bcdba
Fixed bug with BottomSheetDestination causing animation snapping
isaac-udy Mar 17, 2025
23a0493
Released 2.8.3
isaac-udy Mar 17, 2025
0e53a10
Merge branch 'experimental-multiplatform-take-two' into main
isaac-udy Mar 18, 2025
9622e82
Merge remote-tracking branch 'origin/main' into main
isaac-udy Mar 18, 2025
fd17293
Move add/read open instruction methods into their own files
isaac-udy Mar 18, 2025
dc5b960
Remove java class references from EnroException
isaac-udy Mar 18, 2025
76907f8
Remove java class references from NavigationInstruction
isaac-udy Mar 18, 2025
d317e2a
Remove the Executor class in favor of always using NavigationContaine…
isaac-udy Mar 18, 2025
16a2306
Removed ExecutorArgs, favoring explicit function parameters instead
isaac-udy Mar 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ updates:
- package-ecosystem: gradle
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
interval: monthly
open-pull-requests-limit: 0
147 changes: 113 additions & 34 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,124 @@
name: CI
on:
push:
paths-ignore:
- '**.md'
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
compile-example-ksp:
name: Compile example (KSP)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up JDK 21
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: 21

- name: Setup gradle
uses: gradle/gradle-build-action@v2

- name: Compile example (KSP)
run: ./gradlew :example:assembleDebug

compile-example-kapt:
name: Compile example (KAPT)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up JDK 21
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: 21

- name: Setup gradle
uses: gradle/gradle-build-action@v2

- 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 21
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: 21

- 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
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up JDK 21
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: 21

- name: Setup gradle
uses: gradle/gradle-build-action@v2

- name: Lint
run: ./gradlew lintDebug

run-ui-tests:
name: Run Tests
runs-on: macOS-latest
name: Run tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up JDK 11
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: 11

- name: Run Enro UI Tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: ./gradlew :enro:connectedCheck

- name: Run Enro UI Tests (Hilt)
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: ./gradlew :enro:hilt-test:connectedCheck

- name: Run Enro Unit Tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: ./gradlew :enro:testDebugUnitTest

- name: Run Modularised Example Tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: ./gradlew :modularised-example:app:testDebugUnitTest
- name: Checkout
uses: actions/checkout@v3

- name: Changes
uses: dorny/paths-filter@v2
id: changes
with:
filters: |
isCodeChange:
- '**/*.kt'
- '**/*.kts'
- '**/*.toml'

- name: Set up JDK 21
if: steps.changes.outputs.isCodeChange == 'true'
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: 21

- name: Setup gradle
if: steps.changes.outputs.isCodeChange == 'true'
uses: gradle/gradle-build-action@v2

- name: Run tests
if: steps.changes.outputs.isCodeChange == 'true'
env:
EW_API_TOKEN: ${{ secrets.EW_API_TOKEN }}
run: ./gradlew :enro:testDebugWithEmulatorWtf :enro:testDebugUnitTest :tests:application:testDebugWithEmulatorWtf :tests:application:testDebugUnitTest
35 changes: 7 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,37 +16,16 @@ jobs:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up JDK 11
uses: actions/setup-java@v2.5.0
- name: Set up JDK 21
uses: actions/setup-java@v3.9.0
with:
distribution: 'zulu'
java-version: 11
java-version: 21

- name: Run Enro UI Tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: ./gradlew :enro:connectedCheck

- name: Run Enro UI Tests (Hilt)
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: ./gradlew :enro:hilt-test:connectedCheck

- name: Run Enro Unit Tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: ./gradlew :enro:testDebugUnitTest

- name: Run Modularised Example Tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: ./gradlew :modularised-example:app:testDebugUnitTest
- name: Setup gradle
uses: gradle/gradle-build-action@v2

- name: Install gpg secret key
run: cat <(echo -e "${{ secrets.PUBLISH_SIGNING_KEY_LITERAL }}") | gpg --batch --import
Expand All @@ -69,7 +48,7 @@ jobs:
PUBLISH_SIGNING_KEY_ID: ${{ secrets.PUBLISH_SIGNING_KEY_ID }}
PUBLISH_SIGNING_KEY_PASSWORD: ${{ secrets.PUBLISH_SIGNING_KEY_PASSWORD }}
PUBLISH_SIGNING_KEY_LOCATION: ${{ secrets.PUBLISH_SIGNING_KEY_LOCATION }}
run: ./gradlew publishAllPublicationsToSonatypeRepository --no-parallel # publishAllPublicationsToGitHubPackagesRepository
run: ./gradlew :enro-processor:publishMavenPublicationToSonatypeRepository :enro-annotations:publishDesktopPublicationToSonatypeRepository publishKotlinMultiplatformPublicationToSonatypeRepository publishAndroidReleasePublicationToSonatypeRepository --no-parallel -Dorg.gradle.workers.max=1 # publishAllPublicationsToGitHubPackagesRepository

- name: Update Repo
uses: EndBug/add-and-commit@v5
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
# Built application files
*.apk
*.aar
Expand Down Expand Up @@ -74,3 +75,6 @@ lint/outputs/
lint/tmp/
# lint/reports/
private.properties
/.kotlin/

/.codebuddy/
24 changes: 24 additions & 0 deletions .run/Enro [disableConnectedDeviceAnimations].run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Enro [disableConnectedDeviceAnimations]" type="GradleRunConfiguration" factoryName="Gradle">
<ExternalSystemSettings>
<option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="externalSystemIdString" value="GRADLE" />
<option name="scriptParameters" value="" />
<option name="taskDescriptions">
<list />
</option>
<option name="taskNames">
<list>
<option value="disableConnectedDeviceAnimations" />
</list>
</option>
<option name="vmOptions" />
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<RunAsTest>false</RunAsTest>
<method v="2" />
</configuration>
</component>
24 changes: 24 additions & 0 deletions .run/Enro [enableConnectedDeviceAnimations].run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Enro [enableConnectedDeviceAnimations]" type="GradleRunConfiguration" factoryName="Gradle">
<ExternalSystemSettings>
<option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="externalSystemIdString" value="GRADLE" />
<option name="scriptParameters" value="" />
<option name="taskDescriptions">
<list />
</option>
<option name="taskNames">
<list>
<option value="enableConnectedDeviceAnimations" />
</list>
</option>
<option name="vmOptions" />
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<RunAsTest>false</RunAsTest>
<method v="2" />
</configuration>
</component>
Loading