ruflet 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/ruflet +6 -0
- data/lib/ruflet/cli/build_command.rb +372 -0
- data/lib/ruflet/cli/extra_command.rb +146 -0
- data/lib/ruflet/cli/flutter_sdk.rb +359 -0
- data/lib/ruflet/cli/new_command.rb +221 -0
- data/lib/ruflet/cli/run_command.rb +699 -0
- data/lib/ruflet/cli/templates.rb +68 -0
- data/lib/ruflet/cli/update_command.rb +111 -0
- data/lib/ruflet/cli.rb +85 -0
- data/lib/ruflet/version.rb +1 -1
- data/lib/ruflet_cli.rb +3 -0
- metadata +59 -209
- data/lib/ruflet.rb +0 -40
- data/lib/ruflet_protocol/ruflet/protocol.rb +0 -62
- data/lib/ruflet_protocol.rb +0 -4
- data/lib/ruflet_ui/ruflet/app.rb +0 -27
- data/lib/ruflet_ui/ruflet/colors.rb +0 -234
- data/lib/ruflet_ui/ruflet/control.rb +0 -281
- data/lib/ruflet_ui/ruflet/dsl.rb +0 -291
- data/lib/ruflet_ui/ruflet/event.rb +0 -42
- data/lib/ruflet_ui/ruflet/events/gesture_events.rb +0 -552
- data/lib/ruflet_ui/ruflet/icon_data.rb +0 -62
- data/lib/ruflet_ui/ruflet/icons/cupertino/cupertino_icons.rb +0 -54
- data/lib/ruflet_ui/ruflet/icons/cupertino_icon_lookup.rb +0 -112
- data/lib/ruflet_ui/ruflet/icons/material_icon_lookup.rb +0 -112
- data/lib/ruflet_ui/ruflet/icons/material_icons.rb +0 -55
- data/lib/ruflet_ui/ruflet/page.rb +0 -1222
- data/lib/ruflet_ui/ruflet/types/geometry.rb +0 -65
- data/lib/ruflet_ui/ruflet/types/text_style.rb +0 -191
- data/lib/ruflet_ui/ruflet/ui/control_factory.rb +0 -53
- data/lib/ruflet_ui/ruflet/ui/control_methods.rb +0 -17
- data/lib/ruflet_ui/ruflet/ui/control_registry.rb +0 -33
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinoactionsheet_control.rb +0 -57
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinoactionsheetaction_control.rb +0 -58
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinoactivityindicator_control.rb +0 -57
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinoalertdialog_control.rb +0 -39
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinoappbar_control.rb +0 -44
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinobottomsheet_control.rb +0 -38
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinobutton_control.rb +0 -73
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinocheckbox_control.rb +0 -70
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinocontextmenu_control.rb +0 -34
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinocontextmenuaction_control.rb +0 -36
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinodatepicker_control.rb +0 -67
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinodialogaction_control.rb +0 -35
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinofilledbutton_control.rb +0 -73
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinolisttile_control.rb +0 -67
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinonavigationbar_control.rb +0 -61
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinopicker_control.rb +0 -66
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinoradio_control.rb +0 -66
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinosegmentedbutton_control.rb +0 -63
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinoslider_control.rb +0 -64
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinoslidingsegmentedbutton_control.rb +0 -60
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinoswitch_control.rb +0 -73
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinotextfield_control.rb +0 -159
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinotimerpicker_control.rb +0 -61
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinotintedbutton_control.rb +0 -73
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/ruflet_controls.rb +0 -89
- data/lib/ruflet_ui/ruflet/ui/controls/materials/alertdialog_control.rb +0 -58
- data/lib/ruflet_ui/ruflet/ui/controls/materials/appbar_control.rb +0 -53
- data/lib/ruflet_ui/ruflet/ui/controls/materials/audio_control.rb +0 -36
- data/lib/ruflet_ui/ruflet/ui/controls/materials/autocomplete_control.rb +0 -58
- data/lib/ruflet_ui/ruflet/ui/controls/materials/badge_control.rb +0 -31
- data/lib/ruflet_ui/ruflet/ui/controls/materials/banner_control.rb +0 -47
- data/lib/ruflet_ui/ruflet/ui/controls/materials/bottomappbar_control.rb +0 -62
- data/lib/ruflet_ui/ruflet/ui/controls/materials/bottomsheet_control.rb +0 -48
- data/lib/ruflet_ui/ruflet/ui/controls/materials/button_control.rb +0 -69
- data/lib/ruflet_ui/ruflet/ui/controls/materials/card_control.rb +0 -63
- data/lib/ruflet_ui/ruflet/ui/controls/materials/chart_controls.rb +0 -321
- data/lib/ruflet_ui/ruflet/ui/controls/materials/checkbox_control.rb +0 -76
- data/lib/ruflet_ui/ruflet/ui/controls/materials/chip_control.rb +0 -88
- data/lib/ruflet_ui/ruflet/ui/controls/materials/circleavatar_control.rb +0 -62
- data/lib/ruflet_ui/ruflet/ui/controls/materials/container_control.rb +0 -81
- data/lib/ruflet_ui/ruflet/ui/controls/materials/contextmenu_control.rb +0 -63
- data/lib/ruflet_ui/ruflet/ui/controls/materials/datacell_control.rb +0 -38
- data/lib/ruflet_ui/ruflet/ui/controls/materials/datacolumn_control.rb +0 -34
- data/lib/ruflet_ui/ruflet/ui/controls/materials/datarow_control.rb +0 -35
- data/lib/ruflet_ui/ruflet/ui/controls/materials/datatable_control.rb +0 -78
- data/lib/ruflet_ui/ruflet/ui/controls/materials/datepicker_control.rb +0 -55
- data/lib/ruflet_ui/ruflet/ui/controls/materials/daterangepicker_control.rb +0 -57
- data/lib/ruflet_ui/ruflet/ui/controls/materials/divider_control.rb +0 -36
- data/lib/ruflet_ui/ruflet/ui/controls/materials/dropdown_control.rb +0 -99
- data/lib/ruflet_ui/ruflet/ui/controls/materials/dropdownm2_control.rb +0 -119
- data/lib/ruflet_ui/ruflet/ui/controls/materials/dropdownoption_control.rb +0 -35
- data/lib/ruflet_ui/ruflet/ui/controls/materials/expansionpanel_control.rb +0 -61
- data/lib/ruflet_ui/ruflet/ui/controls/materials/expansionpanellist_control.rb +0 -60
- data/lib/ruflet_ui/ruflet/ui/controls/materials/expansiontile_control.rb +0 -82
- data/lib/ruflet_ui/ruflet/ui/controls/materials/filledbutton_control.rb +0 -69
- data/lib/ruflet_ui/ruflet/ui/controls/materials/fillediconbutton_control.rb +0 -81
- data/lib/ruflet_ui/ruflet/ui/controls/materials/filledtonalbutton_control.rb +0 -69
- data/lib/ruflet_ui/ruflet/ui/controls/materials/filledtonaliconbutton_control.rb +0 -81
- data/lib/ruflet_ui/ruflet/ui/controls/materials/floatingactionbutton_control.rb +0 -73
- data/lib/ruflet_ui/ruflet/ui/controls/materials/iconbutton_control.rb +0 -81
- data/lib/ruflet_ui/ruflet/ui/controls/materials/listtile_control.rb +0 -87
- data/lib/ruflet_ui/ruflet/ui/controls/materials/menubar_control.rb +0 -33
- data/lib/ruflet_ui/ruflet/ui/controls/materials/menuitembutton_control.rb +0 -67
- data/lib/ruflet_ui/ruflet/ui/controls/materials/navigationbar_control.rb +0 -67
- data/lib/ruflet_ui/ruflet/ui/controls/materials/navigationbardestination_control.rb +0 -35
- data/lib/ruflet_ui/ruflet/ui/controls/materials/navigationdrawer_control.rb +0 -41
- data/lib/ruflet_ui/ruflet/ui/controls/materials/navigationdrawerdestination_control.rb +0 -34
- data/lib/ruflet_ui/ruflet/ui/controls/materials/navigationrail_control.rb +0 -70
- data/lib/ruflet_ui/ruflet/ui/controls/materials/navigationraildestination_control.rb +0 -36
- data/lib/ruflet_ui/ruflet/ui/controls/materials/option_control.rb +0 -35
- data/lib/ruflet_ui/ruflet/ui/controls/materials/outlinedbutton_control.rb +0 -66
- data/lib/ruflet_ui/ruflet/ui/controls/materials/outlinediconbutton_control.rb +0 -81
- data/lib/ruflet_ui/ruflet/ui/controls/materials/popupmenubutton_control.rb +0 -74
- data/lib/ruflet_ui/ruflet/ui/controls/materials/popupmenuitem_control.rb +0 -38
- data/lib/ruflet_ui/ruflet/ui/controls/materials/progressbar_control.rb +0 -64
- data/lib/ruflet_ui/ruflet/ui/controls/materials/progressring_control.rb +0 -65
- data/lib/ruflet_ui/ruflet/ui/controls/materials/radio_control.rb +0 -70
- data/lib/ruflet_ui/ruflet/ui/controls/materials/radiogroup_control.rb +0 -33
- data/lib/ruflet_ui/ruflet/ui/controls/materials/rangeslider_control.rb +0 -67
- data/lib/ruflet_ui/ruflet/ui/controls/materials/reorderablelistview_control.rb +0 -80
- data/lib/ruflet_ui/ruflet/ui/controls/materials/ruflet_controls.rb +0 -252
- data/lib/ruflet_ui/ruflet/ui/controls/materials/searchbar_control.rb +0 -94
- data/lib/ruflet_ui/ruflet/ui/controls/materials/segment_control.rb +0 -33
- data/lib/ruflet_ui/ruflet/ui/controls/materials/segmentedbutton_control.rb +0 -63
- data/lib/ruflet_ui/ruflet/ui/controls/materials/selectionarea_control.rb +0 -32
- data/lib/ruflet_ui/ruflet/ui/controls/materials/slider_control.rb +0 -76
- data/lib/ruflet_ui/ruflet/ui/controls/materials/snackbar_control.rb +0 -51
- data/lib/ruflet_ui/ruflet/ui/controls/materials/submenubutton_control.rb +0 -66
- data/lib/ruflet_ui/ruflet/ui/controls/materials/switch_control.rb +0 -77
- data/lib/ruflet_ui/ruflet/ui/controls/materials/tab_control.rb +0 -35
- data/lib/ruflet_ui/ruflet/ui/controls/materials/tabbar_control.rb +0 -77
- data/lib/ruflet_ui/ruflet/ui/controls/materials/tabbarview_control.rb +0 -57
- data/lib/ruflet_ui/ruflet/ui/controls/materials/tabs_control.rb +0 -59
- data/lib/ruflet_ui/ruflet/ui/controls/materials/textbutton_control.rb +0 -66
- data/lib/ruflet_ui/ruflet/ui/controls/materials/textfield_control.rb +0 -148
- data/lib/ruflet_ui/ruflet/ui/controls/materials/timepicker_control.rb +0 -50
- data/lib/ruflet_ui/ruflet/ui/controls/materials/verticaldivider_control.rb +0 -36
- data/lib/ruflet_ui/ruflet/ui/controls/materials/video_control.rb +0 -39
- data/lib/ruflet_ui/ruflet/ui/controls/materials/webview_control.rb +0 -35
- data/lib/ruflet_ui/ruflet/ui/controls/ruflet_controls.rb +0 -447
- data/lib/ruflet_ui/ruflet/ui/controls/shared/animatedswitcher_control.rb +0 -59
- data/lib/ruflet_ui/ruflet/ui/controls/shared/arc_control.rb +0 -29
- data/lib/ruflet_ui/ruflet/ui/controls/shared/autofillgroup_control.rb +0 -32
- data/lib/ruflet_ui/ruflet/ui/controls/shared/basepage_control.rb +0 -44
- data/lib/ruflet_ui/ruflet/ui/controls/shared/browsercontextmenu_control.rb +0 -21
- data/lib/ruflet_ui/ruflet/ui/controls/shared/canvas_control.rb +0 -57
- data/lib/ruflet_ui/ruflet/ui/controls/shared/circle_control.rb +0 -25
- data/lib/ruflet_ui/ruflet/ui/controls/shared/color_control.rb +0 -23
- data/lib/ruflet_ui/ruflet/ui/controls/shared/column_control.rb +0 -67
- data/lib/ruflet_ui/ruflet/ui/controls/shared/dialogs_control.rb +0 -22
- data/lib/ruflet_ui/ruflet/ui/controls/shared/dismissible_control.rb +0 -66
- data/lib/ruflet_ui/ruflet/ui/controls/shared/draggable_control.rb +0 -39
- data/lib/ruflet_ui/ruflet/ui/controls/shared/dragtarget_control.rb +0 -36
- data/lib/ruflet_ui/ruflet/ui/controls/shared/fill_control.rb +0 -22
- data/lib/ruflet_ui/ruflet/ui/controls/shared/fletapp_control.rb +0 -62
- data/lib/ruflet_ui/ruflet/ui/controls/shared/gesturedetector_control.rb +0 -129
- data/lib/ruflet_ui/ruflet/ui/controls/shared/gridview_control.rb +0 -71
- data/lib/ruflet_ui/ruflet/ui/controls/shared/hero_control.rb +0 -56
- data/lib/ruflet_ui/ruflet/ui/controls/shared/icon_control.rb +0 -64
- data/lib/ruflet_ui/ruflet/ui/controls/shared/image_control.rb +0 -27
- data/lib/ruflet_ui/ruflet/ui/controls/shared/interactiveviewer_control.rb +0 -69
- data/lib/ruflet_ui/ruflet/ui/controls/shared/keyboardlistener_control.rb +0 -36
- data/lib/ruflet_ui/ruflet/ui/controls/shared/line_control.rb +0 -26
- data/lib/ruflet_ui/ruflet/ui/controls/shared/listview_control.rb +0 -71
- data/lib/ruflet_ui/ruflet/ui/controls/shared/markdown_control.rb +0 -70
- data/lib/ruflet_ui/ruflet/ui/controls/shared/mergesemantics_control.rb +0 -31
- data/lib/ruflet_ui/ruflet/ui/controls/shared/oval_control.rb +0 -26
- data/lib/ruflet_ui/ruflet/ui/controls/shared/overlay_control.rb +0 -22
- data/lib/ruflet_ui/ruflet/ui/controls/shared/page_control.rb +0 -74
- data/lib/ruflet_ui/ruflet/ui/controls/shared/pagelet_control.rb +0 -64
- data/lib/ruflet_ui/ruflet/ui/controls/shared/pageview_control.rb +0 -64
- data/lib/ruflet_ui/ruflet/ui/controls/shared/path_control.rb +0 -23
- data/lib/ruflet_ui/ruflet/ui/controls/shared/placeholder_control.rb +0 -58
- data/lib/ruflet_ui/ruflet/ui/controls/shared/points_control.rb +0 -24
- data/lib/ruflet_ui/ruflet/ui/controls/shared/rect_control.rb +0 -27
- data/lib/ruflet_ui/ruflet/ui/controls/shared/reorderabledraghandle_control.rb +0 -56
- data/lib/ruflet_ui/ruflet/ui/controls/shared/responsiverow_control.rb +0 -61
- data/lib/ruflet_ui/ruflet/ui/controls/shared/row_control.rb +0 -67
- data/lib/ruflet_ui/ruflet/ui/controls/shared/ruflet_controls.rb +0 -140
- data/lib/ruflet_ui/ruflet/ui/controls/shared/safearea_control.rb +0 -61
- data/lib/ruflet_ui/ruflet/ui/controls/shared/semantics_control.rb +0 -79
- data/lib/ruflet_ui/ruflet/ui/controls/shared/serviceregistry_control.rb +0 -21
- data/lib/ruflet_ui/ruflet/ui/controls/shared/shadermask_control.rb +0 -57
- data/lib/ruflet_ui/ruflet/ui/controls/shared/shadow_control.rb +0 -25
- data/lib/ruflet_ui/ruflet/ui/controls/shared/shimmer_control.rb +0 -60
- data/lib/ruflet_ui/ruflet/ui/controls/shared/stack_control.rb +0 -58
- data/lib/ruflet_ui/ruflet/ui/controls/shared/text_control.rb +0 -32
- data/lib/ruflet_ui/ruflet/ui/controls/shared/textspan_control.rb +0 -39
- data/lib/ruflet_ui/ruflet/ui/controls/shared/transparentpointer_control.rb +0 -54
- data/lib/ruflet_ui/ruflet/ui/controls/shared/view_control.rb +0 -77
- data/lib/ruflet_ui/ruflet/ui/controls/shared/window_control.rb +0 -56
- data/lib/ruflet_ui/ruflet/ui/controls/shared/windowdragarea_control.rb +0 -58
- data/lib/ruflet_ui/ruflet/ui/cupertino_control_factory.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/cupertino_control_methods.rb +0 -26
- data/lib/ruflet_ui/ruflet/ui/cupertino_control_registry.rb +0 -49
- data/lib/ruflet_ui/ruflet/ui/material_control_factory.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/material_control_methods.rb +0 -170
- data/lib/ruflet_ui/ruflet/ui/material_control_registry.rb +0 -168
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/accelerometer_control.rb +0 -26
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/barometer_control.rb +0 -26
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/battery_control.rb +0 -22
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/camera_control.rb +0 -58
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/clipboard_control.rb +0 -21
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/connectivity_control.rb +0 -22
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/filepicker_control.rb +0 -23
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/flashlight_control.rb +0 -22
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/gyroscope_control.rb +0 -26
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/hapticfeedback_control.rb +0 -21
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/magnetometer_control.rb +0 -26
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/screenbrightness_control.rb +0 -23
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/screenshot_control.rb +0 -31
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/semanticsservice_control.rb +0 -21
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/shakedetector_control.rb +0 -26
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/share_control.rb +0 -21
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/sharedpreferences_control.rb +0 -21
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/storagepaths_control.rb +0 -21
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/urllauncher_control.rb +0 -21
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/useraccelerometer_control.rb +0 -26
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/wakelock_control.rb +0 -21
- data/lib/ruflet_ui/ruflet/ui/services/ruflet_services.rb +0 -66
- data/lib/ruflet_ui/ruflet/ui/shared_control_forwarders.rb +0 -129
- data/lib/ruflet_ui/ruflet/ui/widget_builder.rb +0 -64
- data/lib/ruflet_ui.rb +0 -124
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Ruflet
|
|
4
|
-
module UI
|
|
5
|
-
module Services
|
|
6
|
-
module RufletServicesComponents
|
|
7
|
-
class BarometerControl < Ruflet::Control
|
|
8
|
-
TYPE = "barometer".freeze
|
|
9
|
-
WIRE = "Barometer".freeze
|
|
10
|
-
|
|
11
|
-
def initialize(id: nil, cancel_on_error: nil, data: nil, enabled: nil, interval: nil, key: nil, on_error: nil, on_reading: nil)
|
|
12
|
-
props = {}
|
|
13
|
-
props[:cancel_on_error] = cancel_on_error unless cancel_on_error.nil?
|
|
14
|
-
props[:data] = data unless data.nil?
|
|
15
|
-
props[:enabled] = enabled unless enabled.nil?
|
|
16
|
-
props[:interval] = interval unless interval.nil?
|
|
17
|
-
props[:key] = key unless key.nil?
|
|
18
|
-
props[:on_error] = on_error unless on_error.nil?
|
|
19
|
-
props[:on_reading] = on_reading unless on_reading.nil?
|
|
20
|
-
super(type: TYPE, id: id, **props)
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
end
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Ruflet
|
|
4
|
-
module UI
|
|
5
|
-
module Services
|
|
6
|
-
module RufletServicesComponents
|
|
7
|
-
class BatteryControl < Ruflet::Control
|
|
8
|
-
TYPE = "battery".freeze
|
|
9
|
-
WIRE = "Battery".freeze
|
|
10
|
-
|
|
11
|
-
def initialize(id: nil, data: nil, key: nil, on_state_change: nil)
|
|
12
|
-
props = {}
|
|
13
|
-
props[:data] = data unless data.nil?
|
|
14
|
-
props[:key] = key unless key.nil?
|
|
15
|
-
props[:on_state_change] = on_state_change unless on_state_change.nil?
|
|
16
|
-
super(type: TYPE, id: id, **props)
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
end
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Ruflet
|
|
4
|
-
module UI
|
|
5
|
-
module Services
|
|
6
|
-
module RufletServicesComponents
|
|
7
|
-
class CameraControl < Ruflet::Control
|
|
8
|
-
TYPE = "camera".freeze
|
|
9
|
-
WIRE = "Camera".freeze
|
|
10
|
-
|
|
11
|
-
def initialize(id: nil, align: nil, animate_align: nil, animate_margin: nil, animate_offset: nil, animate_opacity: nil, animate_position: nil, animate_rotation: nil, animate_scale: nil, animate_size: nil, aspect_ratio: nil, badge: nil, bottom: nil, col: nil, content: nil, data: nil, disabled: nil, expand: nil, expand_loose: nil, height: nil, key: nil, left: nil, margin: nil, offset: nil, opacity: nil, preview_enabled: nil, right: nil, rotate: nil, rtl: nil, scale: nil, size_change_interval: nil, tooltip: nil, top: nil, visible: nil, width: nil, on_animation_end: nil, on_error: nil, on_size_change: nil, on_state_change: nil, on_stream_image: nil)
|
|
12
|
-
props = {}
|
|
13
|
-
props[:align] = align unless align.nil?
|
|
14
|
-
props[:animate_align] = animate_align unless animate_align.nil?
|
|
15
|
-
props[:animate_margin] = animate_margin unless animate_margin.nil?
|
|
16
|
-
props[:animate_offset] = animate_offset unless animate_offset.nil?
|
|
17
|
-
props[:animate_opacity] = animate_opacity unless animate_opacity.nil?
|
|
18
|
-
props[:animate_position] = animate_position unless animate_position.nil?
|
|
19
|
-
props[:animate_rotation] = animate_rotation unless animate_rotation.nil?
|
|
20
|
-
props[:animate_scale] = animate_scale unless animate_scale.nil?
|
|
21
|
-
props[:animate_size] = animate_size unless animate_size.nil?
|
|
22
|
-
props[:aspect_ratio] = aspect_ratio unless aspect_ratio.nil?
|
|
23
|
-
props[:badge] = badge unless badge.nil?
|
|
24
|
-
props[:bottom] = bottom unless bottom.nil?
|
|
25
|
-
props[:col] = col unless col.nil?
|
|
26
|
-
props[:content] = content unless content.nil?
|
|
27
|
-
props[:data] = data unless data.nil?
|
|
28
|
-
props[:disabled] = disabled unless disabled.nil?
|
|
29
|
-
props[:expand] = expand unless expand.nil?
|
|
30
|
-
props[:expand_loose] = expand_loose unless expand_loose.nil?
|
|
31
|
-
props[:height] = height unless height.nil?
|
|
32
|
-
props[:key] = key unless key.nil?
|
|
33
|
-
props[:left] = left unless left.nil?
|
|
34
|
-
props[:margin] = margin unless margin.nil?
|
|
35
|
-
props[:offset] = offset unless offset.nil?
|
|
36
|
-
props[:opacity] = opacity unless opacity.nil?
|
|
37
|
-
props[:preview_enabled] = preview_enabled unless preview_enabled.nil?
|
|
38
|
-
props[:right] = right unless right.nil?
|
|
39
|
-
props[:rotate] = rotate unless rotate.nil?
|
|
40
|
-
props[:rtl] = rtl unless rtl.nil?
|
|
41
|
-
props[:scale] = scale unless scale.nil?
|
|
42
|
-
props[:size_change_interval] = size_change_interval unless size_change_interval.nil?
|
|
43
|
-
props[:tooltip] = tooltip unless tooltip.nil?
|
|
44
|
-
props[:top] = top unless top.nil?
|
|
45
|
-
props[:visible] = visible unless visible.nil?
|
|
46
|
-
props[:width] = width unless width.nil?
|
|
47
|
-
props[:on_animation_end] = on_animation_end unless on_animation_end.nil?
|
|
48
|
-
props[:on_error] = on_error unless on_error.nil?
|
|
49
|
-
props[:on_size_change] = on_size_change unless on_size_change.nil?
|
|
50
|
-
props[:on_state_change] = on_state_change unless on_state_change.nil?
|
|
51
|
-
props[:on_stream_image] = on_stream_image unless on_stream_image.nil?
|
|
52
|
-
super(type: TYPE, id: id, **props)
|
|
53
|
-
end
|
|
54
|
-
end
|
|
55
|
-
end
|
|
56
|
-
end
|
|
57
|
-
end
|
|
58
|
-
end
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Ruflet
|
|
4
|
-
module UI
|
|
5
|
-
module Services
|
|
6
|
-
module RufletServicesComponents
|
|
7
|
-
class ClipboardControl < Ruflet::Control
|
|
8
|
-
TYPE = "clipboard".freeze
|
|
9
|
-
WIRE = "Clipboard".freeze
|
|
10
|
-
|
|
11
|
-
def initialize(id: nil, data: nil, key: nil)
|
|
12
|
-
props = {}
|
|
13
|
-
props[:data] = data unless data.nil?
|
|
14
|
-
props[:key] = key unless key.nil?
|
|
15
|
-
super(type: TYPE, id: id, **props)
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Ruflet
|
|
4
|
-
module UI
|
|
5
|
-
module Services
|
|
6
|
-
module RufletServicesComponents
|
|
7
|
-
class ConnectivityControl < Ruflet::Control
|
|
8
|
-
TYPE = "connectivity".freeze
|
|
9
|
-
WIRE = "Connectivity".freeze
|
|
10
|
-
|
|
11
|
-
def initialize(id: nil, data: nil, key: nil, on_change: nil)
|
|
12
|
-
props = {}
|
|
13
|
-
props[:data] = data unless data.nil?
|
|
14
|
-
props[:key] = key unless key.nil?
|
|
15
|
-
props[:on_change] = on_change unless on_change.nil?
|
|
16
|
-
super(type: TYPE, id: id, **props)
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
end
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Ruflet
|
|
4
|
-
module UI
|
|
5
|
-
module Services
|
|
6
|
-
module RufletServicesComponents
|
|
7
|
-
class FilePickerControl < Ruflet::Control
|
|
8
|
-
TYPE = "filepicker".freeze
|
|
9
|
-
WIRE = "FilePicker".freeze
|
|
10
|
-
|
|
11
|
-
def initialize(id: nil, data: nil, key: nil, on_result: nil, on_upload: nil)
|
|
12
|
-
props = {}
|
|
13
|
-
props[:data] = data unless data.nil?
|
|
14
|
-
props[:key] = key unless key.nil?
|
|
15
|
-
props[:on_result] = on_result unless on_result.nil?
|
|
16
|
-
props[:on_upload] = on_upload unless on_upload.nil?
|
|
17
|
-
super(type: TYPE, id: id, **props)
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Ruflet
|
|
4
|
-
module UI
|
|
5
|
-
module Services
|
|
6
|
-
module RufletServicesComponents
|
|
7
|
-
class FlashlightControl < Ruflet::Control
|
|
8
|
-
TYPE = "flashlight".freeze
|
|
9
|
-
WIRE = "Flashlight".freeze
|
|
10
|
-
|
|
11
|
-
def initialize(id: nil, data: nil, key: nil, on_error: nil)
|
|
12
|
-
props = {}
|
|
13
|
-
props[:data] = data unless data.nil?
|
|
14
|
-
props[:key] = key unless key.nil?
|
|
15
|
-
props[:on_error] = on_error unless on_error.nil?
|
|
16
|
-
super(type: TYPE, id: id, **props)
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
end
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Ruflet
|
|
4
|
-
module UI
|
|
5
|
-
module Services
|
|
6
|
-
module RufletServicesComponents
|
|
7
|
-
class GyroscopeControl < Ruflet::Control
|
|
8
|
-
TYPE = "gyroscope".freeze
|
|
9
|
-
WIRE = "Gyroscope".freeze
|
|
10
|
-
|
|
11
|
-
def initialize(id: nil, cancel_on_error: nil, data: nil, enabled: nil, interval: nil, key: nil, on_error: nil, on_reading: nil)
|
|
12
|
-
props = {}
|
|
13
|
-
props[:cancel_on_error] = cancel_on_error unless cancel_on_error.nil?
|
|
14
|
-
props[:data] = data unless data.nil?
|
|
15
|
-
props[:enabled] = enabled unless enabled.nil?
|
|
16
|
-
props[:interval] = interval unless interval.nil?
|
|
17
|
-
props[:key] = key unless key.nil?
|
|
18
|
-
props[:on_error] = on_error unless on_error.nil?
|
|
19
|
-
props[:on_reading] = on_reading unless on_reading.nil?
|
|
20
|
-
super(type: TYPE, id: id, **props)
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
end
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Ruflet
|
|
4
|
-
module UI
|
|
5
|
-
module Services
|
|
6
|
-
module RufletServicesComponents
|
|
7
|
-
class HapticFeedbackControl < Ruflet::Control
|
|
8
|
-
TYPE = "hapticfeedback".freeze
|
|
9
|
-
WIRE = "HapticFeedback".freeze
|
|
10
|
-
|
|
11
|
-
def initialize(id: nil, data: nil, key: nil)
|
|
12
|
-
props = {}
|
|
13
|
-
props[:data] = data unless data.nil?
|
|
14
|
-
props[:key] = key unless key.nil?
|
|
15
|
-
super(type: TYPE, id: id, **props)
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Ruflet
|
|
4
|
-
module UI
|
|
5
|
-
module Services
|
|
6
|
-
module RufletServicesComponents
|
|
7
|
-
class MagnetometerControl < Ruflet::Control
|
|
8
|
-
TYPE = "magnetometer".freeze
|
|
9
|
-
WIRE = "Magnetometer".freeze
|
|
10
|
-
|
|
11
|
-
def initialize(id: nil, cancel_on_error: nil, data: nil, enabled: nil, interval: nil, key: nil, on_error: nil, on_reading: nil)
|
|
12
|
-
props = {}
|
|
13
|
-
props[:cancel_on_error] = cancel_on_error unless cancel_on_error.nil?
|
|
14
|
-
props[:data] = data unless data.nil?
|
|
15
|
-
props[:enabled] = enabled unless enabled.nil?
|
|
16
|
-
props[:interval] = interval unless interval.nil?
|
|
17
|
-
props[:key] = key unless key.nil?
|
|
18
|
-
props[:on_error] = on_error unless on_error.nil?
|
|
19
|
-
props[:on_reading] = on_reading unless on_reading.nil?
|
|
20
|
-
super(type: TYPE, id: id, **props)
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
end
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Ruflet
|
|
4
|
-
module UI
|
|
5
|
-
module Services
|
|
6
|
-
module RufletServicesComponents
|
|
7
|
-
class ScreenBrightnessControl < Ruflet::Control
|
|
8
|
-
TYPE = "screenbrightness".freeze
|
|
9
|
-
WIRE = "ScreenBrightness".freeze
|
|
10
|
-
|
|
11
|
-
def initialize(id: nil, data: nil, key: nil, on_application_screen_brightness_change: nil, on_system_screen_brightness_change: nil)
|
|
12
|
-
props = {}
|
|
13
|
-
props[:data] = data unless data.nil?
|
|
14
|
-
props[:key] = key unless key.nil?
|
|
15
|
-
props[:on_application_screen_brightness_change] = on_application_screen_brightness_change unless on_application_screen_brightness_change.nil?
|
|
16
|
-
props[:on_system_screen_brightness_change] = on_system_screen_brightness_change unless on_system_screen_brightness_change.nil?
|
|
17
|
-
super(type: TYPE, id: id, **props)
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Ruflet
|
|
4
|
-
module UI
|
|
5
|
-
module Services
|
|
6
|
-
module RufletServicesComponents
|
|
7
|
-
class ScreenshotControl < Ruflet::Control
|
|
8
|
-
TYPE = "screenshot".freeze
|
|
9
|
-
WIRE = "Screenshot".freeze
|
|
10
|
-
|
|
11
|
-
def initialize(id: nil, badge: nil, col: nil, content: nil, data: nil, disabled: nil, expand: nil, expand_loose: nil, key: nil, opacity: nil, rtl: nil, tooltip: nil, visible: nil)
|
|
12
|
-
props = {}
|
|
13
|
-
props[:badge] = badge unless badge.nil?
|
|
14
|
-
props[:col] = col unless col.nil?
|
|
15
|
-
props[:content] = content unless content.nil?
|
|
16
|
-
props[:data] = data unless data.nil?
|
|
17
|
-
props[:disabled] = disabled unless disabled.nil?
|
|
18
|
-
props[:expand] = expand unless expand.nil?
|
|
19
|
-
props[:expand_loose] = expand_loose unless expand_loose.nil?
|
|
20
|
-
props[:key] = key unless key.nil?
|
|
21
|
-
props[:opacity] = opacity unless opacity.nil?
|
|
22
|
-
props[:rtl] = rtl unless rtl.nil?
|
|
23
|
-
props[:tooltip] = tooltip unless tooltip.nil?
|
|
24
|
-
props[:visible] = visible unless visible.nil?
|
|
25
|
-
super(type: TYPE, id: id, **props)
|
|
26
|
-
end
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
end
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Ruflet
|
|
4
|
-
module UI
|
|
5
|
-
module Services
|
|
6
|
-
module RufletServicesComponents
|
|
7
|
-
class SemanticsServiceControl < Ruflet::Control
|
|
8
|
-
TYPE = "semanticsservice".freeze
|
|
9
|
-
WIRE = "SemanticsService".freeze
|
|
10
|
-
|
|
11
|
-
def initialize(id: nil, data: nil, key: nil)
|
|
12
|
-
props = {}
|
|
13
|
-
props[:data] = data unless data.nil?
|
|
14
|
-
props[:key] = key unless key.nil?
|
|
15
|
-
super(type: TYPE, id: id, **props)
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Ruflet
|
|
4
|
-
module UI
|
|
5
|
-
module Services
|
|
6
|
-
module RufletServicesComponents
|
|
7
|
-
class ShakeDetectorControl < Ruflet::Control
|
|
8
|
-
TYPE = "shakedetector".freeze
|
|
9
|
-
WIRE = "ShakeDetector".freeze
|
|
10
|
-
|
|
11
|
-
def initialize(id: nil, data: nil, key: nil, minimum_shake_count: nil, shake_count_reset_time_ms: nil, shake_slop_time_ms: nil, shake_threshold_gravity: nil, on_shake: nil)
|
|
12
|
-
props = {}
|
|
13
|
-
props[:data] = data unless data.nil?
|
|
14
|
-
props[:key] = key unless key.nil?
|
|
15
|
-
props[:minimum_shake_count] = minimum_shake_count unless minimum_shake_count.nil?
|
|
16
|
-
props[:shake_count_reset_time_ms] = shake_count_reset_time_ms unless shake_count_reset_time_ms.nil?
|
|
17
|
-
props[:shake_slop_time_ms] = shake_slop_time_ms unless shake_slop_time_ms.nil?
|
|
18
|
-
props[:shake_threshold_gravity] = shake_threshold_gravity unless shake_threshold_gravity.nil?
|
|
19
|
-
props[:on_shake] = on_shake unless on_shake.nil?
|
|
20
|
-
super(type: TYPE, id: id, **props)
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
end
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Ruflet
|
|
4
|
-
module UI
|
|
5
|
-
module Services
|
|
6
|
-
module RufletServicesComponents
|
|
7
|
-
class ShareControl < Ruflet::Control
|
|
8
|
-
TYPE = "share".freeze
|
|
9
|
-
WIRE = "Share".freeze
|
|
10
|
-
|
|
11
|
-
def initialize(id: nil, data: nil, key: nil)
|
|
12
|
-
props = {}
|
|
13
|
-
props[:data] = data unless data.nil?
|
|
14
|
-
props[:key] = key unless key.nil?
|
|
15
|
-
super(type: TYPE, id: id, **props)
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Ruflet
|
|
4
|
-
module UI
|
|
5
|
-
module Services
|
|
6
|
-
module RufletServicesComponents
|
|
7
|
-
class SharedPreferencesControl < Ruflet::Control
|
|
8
|
-
TYPE = "sharedpreferences".freeze
|
|
9
|
-
WIRE = "SharedPreferences".freeze
|
|
10
|
-
|
|
11
|
-
def initialize(id: nil, data: nil, key: nil)
|
|
12
|
-
props = {}
|
|
13
|
-
props[:data] = data unless data.nil?
|
|
14
|
-
props[:key] = key unless key.nil?
|
|
15
|
-
super(type: TYPE, id: id, **props)
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Ruflet
|
|
4
|
-
module UI
|
|
5
|
-
module Services
|
|
6
|
-
module RufletServicesComponents
|
|
7
|
-
class StoragePathsControl < Ruflet::Control
|
|
8
|
-
TYPE = "storagepaths".freeze
|
|
9
|
-
WIRE = "StoragePaths".freeze
|
|
10
|
-
|
|
11
|
-
def initialize(id: nil, data: nil, key: nil)
|
|
12
|
-
props = {}
|
|
13
|
-
props[:data] = data unless data.nil?
|
|
14
|
-
props[:key] = key unless key.nil?
|
|
15
|
-
super(type: TYPE, id: id, **props)
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Ruflet
|
|
4
|
-
module UI
|
|
5
|
-
module Services
|
|
6
|
-
module RufletServicesComponents
|
|
7
|
-
class UrlLauncherControl < Ruflet::Control
|
|
8
|
-
TYPE = "urllauncher".freeze
|
|
9
|
-
WIRE = "UrlLauncher".freeze
|
|
10
|
-
|
|
11
|
-
def initialize(id: nil, data: nil, key: nil)
|
|
12
|
-
props = {}
|
|
13
|
-
props[:data] = data unless data.nil?
|
|
14
|
-
props[:key] = key unless key.nil?
|
|
15
|
-
super(type: TYPE, id: id, **props)
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Ruflet
|
|
4
|
-
module UI
|
|
5
|
-
module Services
|
|
6
|
-
module RufletServicesComponents
|
|
7
|
-
class UserAccelerometerControl < Ruflet::Control
|
|
8
|
-
TYPE = "useraccelerometer".freeze
|
|
9
|
-
WIRE = "UserAccelerometer".freeze
|
|
10
|
-
|
|
11
|
-
def initialize(id: nil, cancel_on_error: nil, data: nil, enabled: nil, interval: nil, key: nil, on_error: nil, on_reading: nil)
|
|
12
|
-
props = {}
|
|
13
|
-
props[:cancel_on_error] = cancel_on_error unless cancel_on_error.nil?
|
|
14
|
-
props[:data] = data unless data.nil?
|
|
15
|
-
props[:enabled] = enabled unless enabled.nil?
|
|
16
|
-
props[:interval] = interval unless interval.nil?
|
|
17
|
-
props[:key] = key unless key.nil?
|
|
18
|
-
props[:on_error] = on_error unless on_error.nil?
|
|
19
|
-
props[:on_reading] = on_reading unless on_reading.nil?
|
|
20
|
-
super(type: TYPE, id: id, **props)
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
end
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Ruflet
|
|
4
|
-
module UI
|
|
5
|
-
module Services
|
|
6
|
-
module RufletServicesComponents
|
|
7
|
-
class WakelockControl < Ruflet::Control
|
|
8
|
-
TYPE = "wakelock".freeze
|
|
9
|
-
WIRE = "Wakelock".freeze
|
|
10
|
-
|
|
11
|
-
def initialize(id: nil, data: nil, key: nil)
|
|
12
|
-
props = {}
|
|
13
|
-
props[:data] = data unless data.nil?
|
|
14
|
-
props[:key] = key unless key.nil?
|
|
15
|
-
super(type: TYPE, id: id, **props)
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require_relative "ruflet/accelerometer_control"
|
|
4
|
-
require_relative "ruflet/barometer_control"
|
|
5
|
-
require_relative "ruflet/battery_control"
|
|
6
|
-
require_relative "ruflet/camera_control"
|
|
7
|
-
require_relative "ruflet/clipboard_control"
|
|
8
|
-
require_relative "ruflet/connectivity_control"
|
|
9
|
-
require_relative "ruflet/filepicker_control"
|
|
10
|
-
require_relative "ruflet/flashlight_control"
|
|
11
|
-
require_relative "ruflet/gyroscope_control"
|
|
12
|
-
require_relative "ruflet/hapticfeedback_control"
|
|
13
|
-
require_relative "ruflet/magnetometer_control"
|
|
14
|
-
require_relative "ruflet/screenbrightness_control"
|
|
15
|
-
require_relative "ruflet/screenshot_control"
|
|
16
|
-
require_relative "ruflet/semanticsservice_control"
|
|
17
|
-
require_relative "ruflet/shakedetector_control"
|
|
18
|
-
require_relative "ruflet/share_control"
|
|
19
|
-
require_relative "ruflet/sharedpreferences_control"
|
|
20
|
-
require_relative "ruflet/storagepaths_control"
|
|
21
|
-
require_relative "ruflet/urllauncher_control"
|
|
22
|
-
require_relative "ruflet/useraccelerometer_control"
|
|
23
|
-
require_relative "ruflet/wakelock_control"
|
|
24
|
-
|
|
25
|
-
module Ruflet
|
|
26
|
-
module UI
|
|
27
|
-
module Services
|
|
28
|
-
module RufletServices
|
|
29
|
-
module_function
|
|
30
|
-
|
|
31
|
-
CLASS_MAP = {
|
|
32
|
-
"accelerometer" => RufletServicesComponents::AccelerometerControl,
|
|
33
|
-
"barometer" => RufletServicesComponents::BarometerControl,
|
|
34
|
-
"battery" => RufletServicesComponents::BatteryControl,
|
|
35
|
-
"camera" => RufletServicesComponents::CameraControl,
|
|
36
|
-
"clipboard" => RufletServicesComponents::ClipboardControl,
|
|
37
|
-
"connectivity" => RufletServicesComponents::ConnectivityControl,
|
|
38
|
-
"file_picker" => RufletServicesComponents::FilePickerControl,
|
|
39
|
-
"filepicker" => RufletServicesComponents::FilePickerControl,
|
|
40
|
-
"flashlight" => RufletServicesComponents::FlashlightControl,
|
|
41
|
-
"gyroscope" => RufletServicesComponents::GyroscopeControl,
|
|
42
|
-
"haptic_feedback" => RufletServicesComponents::HapticFeedbackControl,
|
|
43
|
-
"hapticfeedback" => RufletServicesComponents::HapticFeedbackControl,
|
|
44
|
-
"magnetometer" => RufletServicesComponents::MagnetometerControl,
|
|
45
|
-
"screen_brightness" => RufletServicesComponents::ScreenBrightnessControl,
|
|
46
|
-
"screenbrightness" => RufletServicesComponents::ScreenBrightnessControl,
|
|
47
|
-
"screenshot" => RufletServicesComponents::ScreenshotControl,
|
|
48
|
-
"semantics_service" => RufletServicesComponents::SemanticsServiceControl,
|
|
49
|
-
"semanticsservice" => RufletServicesComponents::SemanticsServiceControl,
|
|
50
|
-
"shake_detector" => RufletServicesComponents::ShakeDetectorControl,
|
|
51
|
-
"shakedetector" => RufletServicesComponents::ShakeDetectorControl,
|
|
52
|
-
"share" => RufletServicesComponents::ShareControl,
|
|
53
|
-
"shared_preferences" => RufletServicesComponents::SharedPreferencesControl,
|
|
54
|
-
"sharedpreferences" => RufletServicesComponents::SharedPreferencesControl,
|
|
55
|
-
"storage_paths" => RufletServicesComponents::StoragePathsControl,
|
|
56
|
-
"storagepaths" => RufletServicesComponents::StoragePathsControl,
|
|
57
|
-
"url_launcher" => RufletServicesComponents::UrlLauncherControl,
|
|
58
|
-
"urllauncher" => RufletServicesComponents::UrlLauncherControl,
|
|
59
|
-
"user_accelerometer" => RufletServicesComponents::UserAccelerometerControl,
|
|
60
|
-
"useraccelerometer" => RufletServicesComponents::UserAccelerometerControl,
|
|
61
|
-
"wakelock" => RufletServicesComponents::WakelockControl,
|
|
62
|
-
}.freeze
|
|
63
|
-
end
|
|
64
|
-
end
|
|
65
|
-
end
|
|
66
|
-
end
|