-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a dedicated
ViewModel
for MediaRouteButton
- Loading branch information
Showing
9 changed files
with
451 additions
and
166 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 |
---|---|---|
|
@@ -70,12 +70,12 @@ jobs: | |
- name: Set up Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
- name: Run Unit Tests | ||
run: ./gradlew koverXmlReport | ||
run: ./gradlew koverXmlReportDebug | ||
- name: Report Code Coverage | ||
if: ${{ github.event_name == 'pull_request' }} | ||
uses: madrapps/[email protected] | ||
with: | ||
paths: ${{ github.workspace }}/**/build/reports/kover/report.xml | ||
paths: ${{ github.workspace }}/**/build/reports/kover/reportDebug.xml | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
min-coverage-overall: 0 | ||
min-coverage-changed-files: 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
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
10 changes: 10 additions & 0 deletions
10
...outer-compose/src/main/java/ch/srgssr/androidx/mediarouter/compose/CastConnectionState.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,10 @@ | ||
package ch.srgssr.androidx.mediarouter.compose | ||
|
||
import androidx.annotation.StringRes | ||
import androidx.mediarouter.R | ||
|
||
enum class CastConnectionState(@StringRes val contentDescriptionRes: Int) { | ||
Connected(R.string.mr_cast_button_connected), | ||
Connecting(R.string.mr_cast_button_connecting), | ||
Disconnected(R.string.mr_cast_button_disconnected), | ||
} |
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.