-
Notifications
You must be signed in to change notification settings - Fork 538
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
[Mono.Android] API-R enumification #4710
Conversation
9df73d0
to
076d465
Compare
?,30,android/accessibilityservice/AccessibilityService.GESTURE_4_FINGER_TRIPLE_TAP,39,,,, | ||
?,30,android/accessibilityservice/AccessibilityService.GESTURE_DOUBLE_TAP,17,,,, | ||
?,30,android/accessibilityservice/AccessibilityService.GESTURE_DOUBLE_TAP_AND_HOLD,18,,,, | ||
E,30,android/accessibilityservice/AccessibilityService.GESTURE_2_FINGER_DOUBLE_TAP,20,Android.AccessibilityServices.AccessibilityGesture,TwoFingerDoubleTap,remove, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Silly Q, but does the map2.csv
-parsing code in generator trim whitespace, such that we could make this "nicer" by adding spaces before/after the commas to make things line up "nicely"? Or is that just "crazy"?
E,30,android/accessibilityservice/AccessibilityService.GESTURE_2_FINGER_DOUBLE_TAP_AND_HOLD,40,Android.AccessibilityServices.AccessibilityGesture,TwoFingerDoubleTapAndHold,remove,
E,30,android/accessibilityservice/AccessibilityService.GESTURE_2_FINGER_SINGLE_TAP ,19,Android.AccessibilityServices.AccessibilityGesture,TwoFingerSingleTap ,remove,
E,30,android/accessibilityservice/AccessibilityService.GESTURE_2_FINGER_SWIPE_DOWN ,26,Android.AccessibilityServices.AccessibilityGesture,TwoFingerSwipeDown ,remove,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does trim, but I don't think it's going to make things nicer to read. You would have to pad to at least the size of the longest line which is 217 characters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You wouldn't necessarily need to pad the entire file, just each group of enums. If you don't think it'll be nicer to read, though, there's no point.
/azp run |
Pull request contains merge conflicts. |
8437f9f
to
ee24f6e
Compare
Enumification for API-R Developer Preview 4 (375e062). * Convert constant fields to enums as appropriate. * Update methods that take an `int` constant value to use new enums. There is some "acceptable-breakage" because I renamed some of the enums that were added in API-R with auto-generated names that had already been committed in 3ca2a07. Note that our enums are not "API-aware" so all enumifications are added for all API levels. That is, enums added in API-R get added to `android-21`, `android-22`, etc.…
Enumification for the API-R developer preview 4.
int
constant value to use new enums.There is some
acceptable-breakage
because I renamed some of the enums that were added in API-R with auto-generated names that had already been committed in #4468. (Note that our enums are not "API-aware" so all enumifications are added for all API levels. That is, enums added in API-R get added toandroid-21
,android-22
, etc..)