Skip to content
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

refactor: Structural output orientations #1909

Merged
merged 1 commit into from
May 11, 2021

Conversation

piotradamczyk5
Copy link
Contributor

Fixes #1857
Fixes #1861

Test Plan

How do we know the code works?

Checklist

  • Refactored

@github-actions
Copy link
Contributor

github-actions bot commented May 10, 2021

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@github-actions
Copy link
Contributor

github-actions bot commented May 10, 2021

Timestamp: 2021-05-11 12:00:46
Buildscan url for ubuntu-workflow run 831571721
https://gradle.com/s/2lmimbhokj3v4

@bootstraponline bootstraponline force-pushed the 1861_1857_output_orientations branch from b9a2bd9 to 3e10854 Compare May 11, 2021 07:44
@piotradamczyk5 piotradamczyk5 enabled auto-merge (squash) May 11, 2021 09:25
@bootstraponline bootstraponline force-pushed the 1861_1857_output_orientations branch from 3e10854 to c657ca2 Compare May 11, 2021 09:36
@bootstraponline bootstraponline force-pushed the 1861_1857_output_orientations branch from c657ca2 to c409718 Compare May 11, 2021 11:55
Copy link
Contributor

@adamfilipow92 adamfilipow92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Code and output looks good
┌────────────────┬───────────┬─────────┐
│ ORIENTATION_ID │   NAME    │   TAG   │
├────────────────┼───────────┼─────────┤
│ landscape      │ Landscape │         │
│ portrait       │ Portrait  │ default │
│ default        │ Default   │         │
└────────────────┴───────────┴─────────┘


override val out = outputLogger {
@Suppress("UNCHECKED_CAST")
(this as? List<Orientation>)?.toCliTable() ?: throwUnknownType()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actual a neat way alternative 👍

@piotradamczyk5 piotradamczyk5 merged commit a1d2c7a into master May 11, 2021
@piotradamczyk5 piotradamczyk5 deleted the 1861_1857_output_orientations branch May 11, 2021 13:26
@github-actions github-actions bot locked and limited conversation to collaborators May 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Structural output - ListIosOrientations Structural output - ListAndroidOrientations
3 participants