@iternio/react-native-auto-play 0.4.9 → 0.4.11
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.
- package/README.md +0 -26
- package/android/src/main/java/com/margelo/nitro/swe/iternio/reactnativeautoplay/HybridAutoPlay.kt +89 -0
- package/android/src/main/java/com/margelo/nitro/swe/iternio/reactnativeautoplay/VoiceInputManager.kt +20 -286
- package/android/src/main/java/com/margelo/nitro/swe/iternio/reactnativeautoplay/utils/ThreadUtil.kt +13 -6
- package/ios/hybrid/HybridAutoPlay.swift +47 -2
- package/ios/utils/VoiceInputManager.swift +40 -144
- package/lib/index.d.ts +1 -3
- package/lib/index.js +1 -2
- package/lib/specs/AutoPlay.nitro.d.ts +29 -0
- package/nitro.json +0 -10
- package/nitrogen/generated/android/ReactNativeAutoPlay+autolinking.cmake +0 -2
- package/nitrogen/generated/android/ReactNativeAutoPlayOnLoad.cpp +0 -18
- package/nitrogen/generated/android/c++/JActiveCarUxRestrictions.hpp +8 -8
- package/nitrogen/generated/android/c++/JGridTemplateConfig.hpp +16 -16
- package/nitrogen/generated/android/c++/JHybridAndroidAutoTelemetrySpec.cpp +4 -4
- package/nitrogen/generated/android/c++/JHybridAutoPlaySpec.cpp +47 -4
- package/nitrogen/generated/android/c++/JHybridAutoPlaySpec.hpp +4 -0
- package/nitrogen/generated/android/c++/JHybridClusterSpec.cpp +4 -4
- package/nitrogen/generated/android/c++/JHybridGridTemplateSpec.cpp +4 -4
- package/nitrogen/generated/android/c++/JHybridListTemplateSpec.cpp +4 -4
- package/nitrogen/generated/android/c++/JHybridMapTemplateSpec.cpp +15 -15
- package/nitrogen/generated/android/c++/JInformationTemplateConfig.hpp +16 -16
- package/nitrogen/generated/android/c++/JLaneGuidance.hpp +16 -16
- package/nitrogen/generated/android/c++/JListTemplateConfig.hpp +16 -16
- package/nitrogen/generated/android/c++/JMapTemplateConfig.hpp +16 -16
- package/nitrogen/generated/android/c++/JMessageTemplateConfig.hpp +16 -16
- package/nitrogen/generated/android/c++/JNitroAttributedString.hpp +8 -8
- package/nitrogen/generated/android/c++/JNitroBaseMapTemplateConfig.hpp +16 -16
- package/nitrogen/generated/android/c++/JNitroManeuver.cpp +4 -4
- package/nitrogen/generated/android/c++/JNitroManeuver.hpp +4 -4
- package/nitrogen/generated/android/c++/JNitroRoutingManeuver.hpp +16 -16
- package/nitrogen/generated/android/c++/JNitroSection.hpp +8 -8
- package/nitrogen/generated/android/c++/JPermissionRequestResult.hpp +16 -16
- package/nitrogen/generated/android/c++/JRouteChoice.hpp +32 -32
- package/nitrogen/generated/android/c++/JSearchTemplateConfig.hpp +8 -8
- package/nitrogen/generated/android/c++/JSignInTemplateConfig.hpp +16 -16
- package/nitrogen/generated/android/c++/JTripsConfig.hpp +8 -8
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/ActiveCarUxRestrictions.kt +19 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/AppFocusState.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/AssetImage.kt +23 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/AutoText.kt +17 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/BooleanTelemetryItem.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/Distance.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/DurationWithTimeZone.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/GlyphImage.kt +21 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/GoogleSignIn.kt +19 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/GoogleSignInAccount.kt +27 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/GridTemplateConfig.kt +33 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/HybridAutoPlaySpec.kt +17 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/ImageLane.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/InformationTemplateConfig.kt +35 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/InputSignIn.kt +27 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/LaneGuidance.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/ListTemplateConfig.kt +33 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/Location.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/MapTemplateConfig.kt +51 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/MessageTemplateConfig.kt +37 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NavigationAlertAction.kt +17 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroAction.kt +27 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroAttributedString.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroAttributedStringImage.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroBaseMapTemplateConfig.kt +29 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroColor.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroGridButton.kt +17 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroImage.kt +18 -8
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroLoadingManeuver.kt +17 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroManeuver.kt +18 -8
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroMapButton.kt +17 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroMessageManeuver.kt +19 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroNavigationAlert.kt +31 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroRoutingManeuver.kt +49 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroRow.kt +27 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroSection.kt +17 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NumericTelemetryItem.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/PermissionRequestResult.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/PinSignIn.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/Point.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/PreferredImageLane.kt +19 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/QrSignIn.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/RemoteImage.kt +17 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/RouteChoice.kt +21 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/SafeAreaInsets.kt +21 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/SearchTemplateConfig.kt +39 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/SignInTemplateConfig.kt +37 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/StringTelemetryItem.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/Telemetry.kt +35 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/TravelEstimates.kt +19 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/TripConfig.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/TripPoint.kt +19 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/TripPreviewTextConfiguration.kt +19 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/TripSelectorCallback.kt +13 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/TripsConfig.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/Variant_GlyphImage_AssetImage_RemoteImage.kt +18 -8
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/Variant_PreferredImageLane_ImageLane.kt +16 -7
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/Variant_QrSignIn_PinSignIn_InputSignIn_GoogleSignIn.kt +20 -9
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/VehicleTelemetryItem.kt +19 -0
- package/nitrogen/generated/ios/ReactNativeAutoPlay+autolinking.rb +2 -0
- package/nitrogen/generated/ios/ReactNativeAutoPlay-Swift-Cxx-Bridge.cpp +16 -41
- package/nitrogen/generated/ios/ReactNativeAutoPlay-Swift-Cxx-Bridge.hpp +126 -201
- package/nitrogen/generated/ios/ReactNativeAutoPlay-Swift-Cxx-Umbrella.hpp +0 -11
- package/nitrogen/generated/ios/ReactNativeAutoPlayAutolinking.mm +0 -8
- package/nitrogen/generated/ios/ReactNativeAutoPlayAutolinking.swift +0 -12
- package/nitrogen/generated/ios/c++/HybridAutoPlaySpecSwift.hpp +34 -0
- package/nitrogen/generated/ios/swift/Func_void_bool.swift +5 -5
- package/nitrogen/generated/ios/swift/{Func_void_VoiceInputResult.swift → Func_void_std__shared_ptr_ArrayBuffer_.swift} +10 -10
- package/nitrogen/generated/ios/swift/HybridAutoPlaySpec.swift +4 -0
- package/nitrogen/generated/ios/swift/HybridAutoPlaySpec_cxx.swift +82 -0
- package/nitrogen/generated/ios/swift/NitroImage.swift +13 -0
- package/nitrogen/generated/ios/swift/NitroManeuver.swift +13 -0
- package/nitrogen/generated/ios/swift/Variant_GlyphImage_AssetImage_RemoteImage.swift +13 -0
- package/nitrogen/generated/ios/swift/Variant_PreferredImageLane_ImageLane.swift +12 -0
- package/nitrogen/generated/shared/c++/HybridAutoPlaySpec.cpp +4 -0
- package/nitrogen/generated/shared/c++/HybridAutoPlaySpec.hpp +5 -0
- package/package.json +2 -2
- package/src/index.ts +1 -3
- package/src/specs/AutoPlay.nitro.ts +37 -0
- package/android/src/main/java/com/margelo/nitro/swe/iternio/reactnativeautoplay/HybridVoice.kt +0 -97
- package/ios/hybrid/HybridVoice.swift +0 -65
- package/lib/HybridAutoPlay.d.ts +0 -2
- package/lib/HybridAutoPlay.js +0 -2
- package/lib/components/OnAppearedChildRenderer.d.ts +0 -10
- package/lib/components/OnAppearedChildRenderer.js +0 -26
- package/lib/hooks/useIsAutoPlayFocused.d.ts +0 -7
- package/lib/hooks/useIsAutoPlayFocused.js +0 -20
- package/lib/hybrid/HybridVoice.d.ts +0 -52
- package/lib/hybrid/HybridVoice.js +0 -52
- package/lib/hybrid.d.ts +0 -2
- package/lib/hybrid.js +0 -2
- package/lib/specs/AutomotivePermissionRequestTemplate.d.ts +0 -11
- package/lib/specs/AutomotivePermissionRequestTemplate.js +0 -1
- package/lib/specs/AutomotivePermissionRequestTemplate.nitro.d.ts +0 -11
- package/lib/specs/AutomotivePermissionRequestTemplate.nitro.js +0 -1
- package/lib/specs/Voice.nitro.d.ts +0 -11
- package/lib/specs/Voice.nitro.js +0 -1
- package/lib/templates/AutomotivePermissionRequestTemplate.d.ts +0 -23
- package/lib/templates/AutomotivePermissionRequestTemplate.js +0 -18
- package/lib/types/Glyphmap.d.ts +0 -4105
- package/lib/types/Glyphmap.js +0 -4105
- package/lib/types/Voice.d.ts +0 -16
- package/lib/types/Voice.js +0 -1
- package/nitrogen/generated/android/c++/JFunc_void_VoiceInputChunk.hpp +0 -81
- package/nitrogen/generated/android/c++/JHybridVoiceSpec.cpp +0 -104
- package/nitrogen/generated/android/c++/JHybridVoiceSpec.hpp +0 -66
- package/nitrogen/generated/android/c++/JVoiceInputChunk.hpp +0 -64
- package/nitrogen/generated/android/c++/JVoiceInputResult.hpp +0 -64
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/Func_void_VoiceInputChunk.kt +0 -80
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/HybridVoiceSpec.kt +0 -72
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/VoiceInputChunk.kt +0 -41
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/VoiceInputResult.kt +0 -41
- package/nitrogen/generated/ios/c++/HybridVoiceSpecSwift.cpp +0 -11
- package/nitrogen/generated/ios/c++/HybridVoiceSpecSwift.hpp +0 -116
- package/nitrogen/generated/ios/swift/Func_void_VoiceInputChunk.swift +0 -46
- package/nitrogen/generated/ios/swift/HybridVoiceSpec.swift +0 -58
- package/nitrogen/generated/ios/swift/HybridVoiceSpec_cxx.swift +0 -234
- package/nitrogen/generated/ios/swift/VoiceInputChunk.swift +0 -60
- package/nitrogen/generated/ios/swift/VoiceInputResult.swift +0 -60
- package/nitrogen/generated/shared/c++/HybridVoiceSpec.cpp +0 -24
- package/nitrogen/generated/shared/c++/HybridVoiceSpec.hpp +0 -73
- package/nitrogen/generated/shared/c++/VoiceInputChunk.hpp +0 -89
- package/nitrogen/generated/shared/c++/VoiceInputResult.hpp +0 -89
- package/src/hybrid/HybridVoice.ts +0 -79
- package/src/specs/Voice.nitro.ts +0 -16
- package/src/types/Voice.ts +0 -18
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -84,6 +85,56 @@ data class MapTemplateConfig(
|
|
|
84
85
|
constructor(id: String, onWillAppear: ((animated: Boolean?) -> Unit)?, onWillDisappear: ((animated: Boolean?) -> Unit)?, onDidAppear: ((animated: Boolean?) -> Unit)?, onDidDisappear: ((animated: Boolean?) -> Unit)?, onPopped: (() -> Unit)?, autoDismissMs: Double?, visibleTravelEstimate: VisibleTravelEstimate?, onDidPan: ((translation: Point, velocity: Point?) -> Unit)?, onDidUpdateZoomGestureWithCenter: ((center: Point, scale: Double) -> Unit)?, onClick: ((center: Point) -> Unit)?, onDoubleClick: ((center: Point) -> Unit)?, onAppearanceDidChange: ((colorScheme: ColorScheme) -> Unit)?, onStopNavigation: () -> Unit, onAutoDriveEnabled: (() -> Unit)?, mapButtons: Array<NitroMapButton>?, headerActions: Array<NitroAction>?, defaultGuidanceBackgroundColor: NitroColor?, panButtonScrollPercentage: Double?, onDidChangePanningInterface: ((isPanningInterfaceVisible: Boolean) -> Unit)?):
|
|
85
86
|
this(id, onWillAppear?.let { Func_void_std__optional_bool__java(it) }, onWillDisappear?.let { Func_void_std__optional_bool__java(it) }, onDidAppear?.let { Func_void_std__optional_bool__java(it) }, onDidDisappear?.let { Func_void_std__optional_bool__java(it) }, onPopped?.let { Func_void_java(it) }, autoDismissMs, visibleTravelEstimate, onDidPan?.let { Func_void_Point_std__optional_Point__java(it) }, onDidUpdateZoomGestureWithCenter?.let { Func_void_Point_double_java(it) }, onClick?.let { Func_void_Point_java(it) }, onDoubleClick?.let { Func_void_Point_java(it) }, onAppearanceDidChange?.let { Func_void_ColorScheme_java(it) }, Func_void_java(onStopNavigation), onAutoDriveEnabled?.let { Func_void_java(it) }, mapButtons, headerActions, defaultGuidanceBackgroundColor, panButtonScrollPercentage, onDidChangePanningInterface?.let { Func_void_bool_java(it) })
|
|
86
87
|
|
|
88
|
+
override fun equals(other: Any?): Boolean {
|
|
89
|
+
if (this === other) return true
|
|
90
|
+
if (other !is MapTemplateConfig) return false
|
|
91
|
+
return Objects.deepEquals(this.id, other.id)
|
|
92
|
+
&& Objects.deepEquals(this.onWillAppear, other.onWillAppear)
|
|
93
|
+
&& Objects.deepEquals(this.onWillDisappear, other.onWillDisappear)
|
|
94
|
+
&& Objects.deepEquals(this.onDidAppear, other.onDidAppear)
|
|
95
|
+
&& Objects.deepEquals(this.onDidDisappear, other.onDidDisappear)
|
|
96
|
+
&& Objects.deepEquals(this.onPopped, other.onPopped)
|
|
97
|
+
&& Objects.deepEquals(this.autoDismissMs, other.autoDismissMs)
|
|
98
|
+
&& Objects.deepEquals(this.visibleTravelEstimate, other.visibleTravelEstimate)
|
|
99
|
+
&& Objects.deepEquals(this.onDidPan, other.onDidPan)
|
|
100
|
+
&& Objects.deepEquals(this.onDidUpdateZoomGestureWithCenter, other.onDidUpdateZoomGestureWithCenter)
|
|
101
|
+
&& Objects.deepEquals(this.onClick, other.onClick)
|
|
102
|
+
&& Objects.deepEquals(this.onDoubleClick, other.onDoubleClick)
|
|
103
|
+
&& Objects.deepEquals(this.onAppearanceDidChange, other.onAppearanceDidChange)
|
|
104
|
+
&& Objects.deepEquals(this.onStopNavigation, other.onStopNavigation)
|
|
105
|
+
&& Objects.deepEquals(this.onAutoDriveEnabled, other.onAutoDriveEnabled)
|
|
106
|
+
&& Objects.deepEquals(this.mapButtons, other.mapButtons)
|
|
107
|
+
&& Objects.deepEquals(this.headerActions, other.headerActions)
|
|
108
|
+
&& Objects.deepEquals(this.defaultGuidanceBackgroundColor, other.defaultGuidanceBackgroundColor)
|
|
109
|
+
&& Objects.deepEquals(this.panButtonScrollPercentage, other.panButtonScrollPercentage)
|
|
110
|
+
&& Objects.deepEquals(this.onDidChangePanningInterface, other.onDidChangePanningInterface)
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
override fun hashCode(): Int {
|
|
114
|
+
return arrayOf<Any?>(
|
|
115
|
+
id,
|
|
116
|
+
onWillAppear,
|
|
117
|
+
onWillDisappear,
|
|
118
|
+
onDidAppear,
|
|
119
|
+
onDidDisappear,
|
|
120
|
+
onPopped,
|
|
121
|
+
autoDismissMs,
|
|
122
|
+
visibleTravelEstimate,
|
|
123
|
+
onDidPan,
|
|
124
|
+
onDidUpdateZoomGestureWithCenter,
|
|
125
|
+
onClick,
|
|
126
|
+
onDoubleClick,
|
|
127
|
+
onAppearanceDidChange,
|
|
128
|
+
onStopNavigation,
|
|
129
|
+
onAutoDriveEnabled,
|
|
130
|
+
mapButtons,
|
|
131
|
+
headerActions,
|
|
132
|
+
defaultGuidanceBackgroundColor,
|
|
133
|
+
panButtonScrollPercentage,
|
|
134
|
+
onDidChangePanningInterface
|
|
135
|
+
).contentDeepHashCode()
|
|
136
|
+
}
|
|
137
|
+
|
|
87
138
|
companion object {
|
|
88
139
|
/**
|
|
89
140
|
* Constructor called from C++
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -63,6 +64,42 @@ data class MessageTemplateConfig(
|
|
|
63
64
|
constructor(id: String, onWillAppear: ((animated: Boolean?) -> Unit)?, onWillDisappear: ((animated: Boolean?) -> Unit)?, onDidAppear: ((animated: Boolean?) -> Unit)?, onDidDisappear: ((animated: Boolean?) -> Unit)?, onPopped: (() -> Unit)?, autoDismissMs: Double?, headerActions: Array<NitroAction>?, title: AutoText?, message: AutoText, actions: Array<NitroAction>?, image: Variant_GlyphImage_AssetImage_RemoteImage?, mapConfig: NitroBaseMapTemplateConfig?):
|
|
64
65
|
this(id, onWillAppear?.let { Func_void_std__optional_bool__java(it) }, onWillDisappear?.let { Func_void_std__optional_bool__java(it) }, onDidAppear?.let { Func_void_std__optional_bool__java(it) }, onDidDisappear?.let { Func_void_std__optional_bool__java(it) }, onPopped?.let { Func_void_java(it) }, autoDismissMs, headerActions, title, message, actions, image, mapConfig)
|
|
65
66
|
|
|
67
|
+
override fun equals(other: Any?): Boolean {
|
|
68
|
+
if (this === other) return true
|
|
69
|
+
if (other !is MessageTemplateConfig) return false
|
|
70
|
+
return Objects.deepEquals(this.id, other.id)
|
|
71
|
+
&& Objects.deepEquals(this.onWillAppear, other.onWillAppear)
|
|
72
|
+
&& Objects.deepEquals(this.onWillDisappear, other.onWillDisappear)
|
|
73
|
+
&& Objects.deepEquals(this.onDidAppear, other.onDidAppear)
|
|
74
|
+
&& Objects.deepEquals(this.onDidDisappear, other.onDidDisappear)
|
|
75
|
+
&& Objects.deepEquals(this.onPopped, other.onPopped)
|
|
76
|
+
&& Objects.deepEquals(this.autoDismissMs, other.autoDismissMs)
|
|
77
|
+
&& Objects.deepEquals(this.headerActions, other.headerActions)
|
|
78
|
+
&& Objects.deepEquals(this.title, other.title)
|
|
79
|
+
&& Objects.deepEquals(this.message, other.message)
|
|
80
|
+
&& Objects.deepEquals(this.actions, other.actions)
|
|
81
|
+
&& Objects.deepEquals(this.image, other.image)
|
|
82
|
+
&& Objects.deepEquals(this.mapConfig, other.mapConfig)
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
override fun hashCode(): Int {
|
|
86
|
+
return arrayOf<Any?>(
|
|
87
|
+
id,
|
|
88
|
+
onWillAppear,
|
|
89
|
+
onWillDisappear,
|
|
90
|
+
onDidAppear,
|
|
91
|
+
onDidDisappear,
|
|
92
|
+
onPopped,
|
|
93
|
+
autoDismissMs,
|
|
94
|
+
headerActions,
|
|
95
|
+
title,
|
|
96
|
+
message,
|
|
97
|
+
actions,
|
|
98
|
+
image,
|
|
99
|
+
mapConfig
|
|
100
|
+
).contentDeepHashCode()
|
|
101
|
+
}
|
|
102
|
+
|
|
66
103
|
companion object {
|
|
67
104
|
/**
|
|
68
105
|
* Constructor called from C++
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -33,6 +34,22 @@ data class NavigationAlertAction(
|
|
|
33
34
|
constructor(title: String, style: AlertActionStyle?, onPress: () -> Unit):
|
|
34
35
|
this(title, style, Func_void_java(onPress))
|
|
35
36
|
|
|
37
|
+
override fun equals(other: Any?): Boolean {
|
|
38
|
+
if (this === other) return true
|
|
39
|
+
if (other !is NavigationAlertAction) return false
|
|
40
|
+
return Objects.deepEquals(this.title, other.title)
|
|
41
|
+
&& Objects.deepEquals(this.style, other.style)
|
|
42
|
+
&& Objects.deepEquals(this.onPress, other.onPress)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
override fun hashCode(): Int {
|
|
46
|
+
return arrayOf<Any?>(
|
|
47
|
+
title,
|
|
48
|
+
style,
|
|
49
|
+
onPress
|
|
50
|
+
).contentDeepHashCode()
|
|
51
|
+
}
|
|
52
|
+
|
|
36
53
|
companion object {
|
|
37
54
|
/**
|
|
38
55
|
* Constructor called from C++
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -48,6 +49,32 @@ data class NitroAction(
|
|
|
48
49
|
constructor(title: String?, image: Variant_GlyphImage_AssetImage_RemoteImage?, enabled: Boolean?, onPress: () -> Unit, type: NitroActionType, alignment: NitroAlignment?, flags: Double?, style: NitroButtonStyle?):
|
|
49
50
|
this(title, image, enabled, Func_void_java(onPress), type, alignment, flags, style)
|
|
50
51
|
|
|
52
|
+
override fun equals(other: Any?): Boolean {
|
|
53
|
+
if (this === other) return true
|
|
54
|
+
if (other !is NitroAction) return false
|
|
55
|
+
return Objects.deepEquals(this.title, other.title)
|
|
56
|
+
&& Objects.deepEquals(this.image, other.image)
|
|
57
|
+
&& Objects.deepEquals(this.enabled, other.enabled)
|
|
58
|
+
&& Objects.deepEquals(this.onPress, other.onPress)
|
|
59
|
+
&& Objects.deepEquals(this.type, other.type)
|
|
60
|
+
&& Objects.deepEquals(this.alignment, other.alignment)
|
|
61
|
+
&& Objects.deepEquals(this.flags, other.flags)
|
|
62
|
+
&& Objects.deepEquals(this.style, other.style)
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
override fun hashCode(): Int {
|
|
66
|
+
return arrayOf<Any?>(
|
|
67
|
+
title,
|
|
68
|
+
image,
|
|
69
|
+
enabled,
|
|
70
|
+
onPress,
|
|
71
|
+
type,
|
|
72
|
+
alignment,
|
|
73
|
+
flags,
|
|
74
|
+
style
|
|
75
|
+
).contentDeepHashCode()
|
|
76
|
+
}
|
|
77
|
+
|
|
51
78
|
companion object {
|
|
52
79
|
/**
|
|
53
80
|
* Constructor called from C++
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -26,6 +27,20 @@ data class NitroAttributedString(
|
|
|
26
27
|
) {
|
|
27
28
|
/* primary constructor */
|
|
28
29
|
|
|
30
|
+
override fun equals(other: Any?): Boolean {
|
|
31
|
+
if (this === other) return true
|
|
32
|
+
if (other !is NitroAttributedString) return false
|
|
33
|
+
return Objects.deepEquals(this.text, other.text)
|
|
34
|
+
&& Objects.deepEquals(this.images, other.images)
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
override fun hashCode(): Int {
|
|
38
|
+
return arrayOf<Any?>(
|
|
39
|
+
text,
|
|
40
|
+
images
|
|
41
|
+
).contentDeepHashCode()
|
|
42
|
+
}
|
|
43
|
+
|
|
29
44
|
companion object {
|
|
30
45
|
/**
|
|
31
46
|
* Constructor called from C++
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -26,6 +27,20 @@ data class NitroAttributedStringImage(
|
|
|
26
27
|
) {
|
|
27
28
|
/* primary constructor */
|
|
28
29
|
|
|
30
|
+
override fun equals(other: Any?): Boolean {
|
|
31
|
+
if (this === other) return true
|
|
32
|
+
if (other !is NitroAttributedStringImage) return false
|
|
33
|
+
return Objects.deepEquals(this.image, other.image)
|
|
34
|
+
&& Objects.deepEquals(this.position, other.position)
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
override fun hashCode(): Int {
|
|
38
|
+
return arrayOf<Any?>(
|
|
39
|
+
image,
|
|
40
|
+
position
|
|
41
|
+
).contentDeepHashCode()
|
|
42
|
+
}
|
|
43
|
+
|
|
29
44
|
companion object {
|
|
30
45
|
/**
|
|
31
46
|
* Constructor called from C++
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -51,6 +52,34 @@ data class NitroBaseMapTemplateConfig(
|
|
|
51
52
|
constructor(mapButtons: Array<NitroMapButton>?, headerActions: Array<NitroAction>?, onDidChangePanningInterface: ((isPanningInterfaceVisible: Boolean) -> Unit)?, onWillAppear: ((animated: Boolean?) -> Unit)?, onWillDisappear: ((animated: Boolean?) -> Unit)?, onDidAppear: ((animated: Boolean?) -> Unit)?, onDidDisappear: ((animated: Boolean?) -> Unit)?, onPopped: (() -> Unit)?, autoDismissMs: Double?):
|
|
52
53
|
this(mapButtons, headerActions, onDidChangePanningInterface?.let { Func_void_bool_java(it) }, onWillAppear?.let { Func_void_std__optional_bool__java(it) }, onWillDisappear?.let { Func_void_std__optional_bool__java(it) }, onDidAppear?.let { Func_void_std__optional_bool__java(it) }, onDidDisappear?.let { Func_void_std__optional_bool__java(it) }, onPopped?.let { Func_void_java(it) }, autoDismissMs)
|
|
53
54
|
|
|
55
|
+
override fun equals(other: Any?): Boolean {
|
|
56
|
+
if (this === other) return true
|
|
57
|
+
if (other !is NitroBaseMapTemplateConfig) return false
|
|
58
|
+
return Objects.deepEquals(this.mapButtons, other.mapButtons)
|
|
59
|
+
&& Objects.deepEquals(this.headerActions, other.headerActions)
|
|
60
|
+
&& Objects.deepEquals(this.onDidChangePanningInterface, other.onDidChangePanningInterface)
|
|
61
|
+
&& Objects.deepEquals(this.onWillAppear, other.onWillAppear)
|
|
62
|
+
&& Objects.deepEquals(this.onWillDisappear, other.onWillDisappear)
|
|
63
|
+
&& Objects.deepEquals(this.onDidAppear, other.onDidAppear)
|
|
64
|
+
&& Objects.deepEquals(this.onDidDisappear, other.onDidDisappear)
|
|
65
|
+
&& Objects.deepEquals(this.onPopped, other.onPopped)
|
|
66
|
+
&& Objects.deepEquals(this.autoDismissMs, other.autoDismissMs)
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
override fun hashCode(): Int {
|
|
70
|
+
return arrayOf<Any?>(
|
|
71
|
+
mapButtons,
|
|
72
|
+
headerActions,
|
|
73
|
+
onDidChangePanningInterface,
|
|
74
|
+
onWillAppear,
|
|
75
|
+
onWillDisappear,
|
|
76
|
+
onDidAppear,
|
|
77
|
+
onDidDisappear,
|
|
78
|
+
onPopped,
|
|
79
|
+
autoDismissMs
|
|
80
|
+
).contentDeepHashCode()
|
|
81
|
+
}
|
|
82
|
+
|
|
54
83
|
companion object {
|
|
55
84
|
/**
|
|
56
85
|
* Constructor called from C++
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -26,6 +27,20 @@ data class NitroColor(
|
|
|
26
27
|
) {
|
|
27
28
|
/* primary constructor */
|
|
28
29
|
|
|
30
|
+
override fun equals(other: Any?): Boolean {
|
|
31
|
+
if (this === other) return true
|
|
32
|
+
if (other !is NitroColor) return false
|
|
33
|
+
return Objects.deepEquals(this.lightColor, other.lightColor)
|
|
34
|
+
&& Objects.deepEquals(this.darkColor, other.darkColor)
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
override fun hashCode(): Int {
|
|
38
|
+
return arrayOf<Any?>(
|
|
39
|
+
lightColor,
|
|
40
|
+
darkColor
|
|
41
|
+
).contentDeepHashCode()
|
|
42
|
+
}
|
|
43
|
+
|
|
29
44
|
companion object {
|
|
30
45
|
/**
|
|
31
46
|
* Constructor called from C++
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -33,6 +34,22 @@ data class NitroGridButton(
|
|
|
33
34
|
constructor(title: AutoText, image: NitroImage, onPress: () -> Unit):
|
|
34
35
|
this(title, image, Func_void_java(onPress))
|
|
35
36
|
|
|
37
|
+
override fun equals(other: Any?): Boolean {
|
|
38
|
+
if (this === other) return true
|
|
39
|
+
if (other !is NitroGridButton) return false
|
|
40
|
+
return Objects.deepEquals(this.title, other.title)
|
|
41
|
+
&& Objects.deepEquals(this.image, other.image)
|
|
42
|
+
&& Objects.deepEquals(this.onPress, other.onPress)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
override fun hashCode(): Int {
|
|
46
|
+
return arrayOf<Any?>(
|
|
47
|
+
title,
|
|
48
|
+
image,
|
|
49
|
+
onPress
|
|
50
|
+
).contentDeepHashCode()
|
|
51
|
+
}
|
|
52
|
+
|
|
36
53
|
companion object {
|
|
37
54
|
/**
|
|
38
55
|
* Constructor called from C++
|
|
@@ -23,6 +23,24 @@ sealed class NitroImage {
|
|
|
23
23
|
@DoNotStrip
|
|
24
24
|
data class Third(@DoNotStrip val value: RemoteImage): NitroImage()
|
|
25
25
|
|
|
26
|
+
inline fun <reified T> asType(): T? {
|
|
27
|
+
return when (this) {
|
|
28
|
+
is First -> (value) as? T
|
|
29
|
+
is Second -> (value) as? T
|
|
30
|
+
is Third -> (value) as? T
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
inline fun <reified T> isType(): Boolean {
|
|
34
|
+
return asType<T>() != null
|
|
35
|
+
}
|
|
36
|
+
inline fun <R> match(first: (GlyphImage) -> R, second: (AssetImage) -> R, third: (RemoteImage) -> R): R {
|
|
37
|
+
return when (this) {
|
|
38
|
+
is First -> first(value)
|
|
39
|
+
is Second -> second(value)
|
|
40
|
+
is Third -> third(value)
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
26
44
|
val isFirst: Boolean
|
|
27
45
|
get() = this is First
|
|
28
46
|
val isSecond: Boolean
|
|
@@ -43,14 +61,6 @@ sealed class NitroImage {
|
|
|
43
61
|
return value
|
|
44
62
|
}
|
|
45
63
|
|
|
46
|
-
inline fun <R> match(first: (GlyphImage) -> R, second: (AssetImage) -> R, third: (RemoteImage) -> R): R {
|
|
47
|
-
return when (this) {
|
|
48
|
-
is First -> first(value)
|
|
49
|
-
is Second -> second(value)
|
|
50
|
-
is Third -> third(value)
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
64
|
companion object {
|
|
55
65
|
@JvmStatic
|
|
56
66
|
@DoNotStrip
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -29,6 +30,22 @@ data class NitroLoadingManeuver(
|
|
|
29
30
|
) {
|
|
30
31
|
/* primary constructor */
|
|
31
32
|
|
|
33
|
+
override fun equals(other: Any?): Boolean {
|
|
34
|
+
if (this === other) return true
|
|
35
|
+
if (other !is NitroLoadingManeuver) return false
|
|
36
|
+
return Objects.deepEquals(this.isLoading, other.isLoading)
|
|
37
|
+
&& Objects.deepEquals(this.cardBackgroundColor, other.cardBackgroundColor)
|
|
38
|
+
&& Objects.deepEquals(this.text, other.text)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
override fun hashCode(): Int {
|
|
42
|
+
return arrayOf<Any?>(
|
|
43
|
+
isLoading,
|
|
44
|
+
cardBackgroundColor,
|
|
45
|
+
text
|
|
46
|
+
).contentDeepHashCode()
|
|
47
|
+
}
|
|
48
|
+
|
|
32
49
|
companion object {
|
|
33
50
|
/**
|
|
34
51
|
* Constructor called from C++
|
|
@@ -23,6 +23,24 @@ sealed class NitroManeuver {
|
|
|
23
23
|
@DoNotStrip
|
|
24
24
|
data class Third(@DoNotStrip val value: NitroLoadingManeuver): NitroManeuver()
|
|
25
25
|
|
|
26
|
+
inline fun <reified T> asType(): T? {
|
|
27
|
+
return when (this) {
|
|
28
|
+
is First -> (value) as? T
|
|
29
|
+
is Second -> (value) as? T
|
|
30
|
+
is Third -> (value) as? T
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
inline fun <reified T> isType(): Boolean {
|
|
34
|
+
return asType<T>() != null
|
|
35
|
+
}
|
|
36
|
+
inline fun <R> match(first: (Array<NitroRoutingManeuver>) -> R, second: (NitroMessageManeuver) -> R, third: (NitroLoadingManeuver) -> R): R {
|
|
37
|
+
return when (this) {
|
|
38
|
+
is First -> first(value)
|
|
39
|
+
is Second -> second(value)
|
|
40
|
+
is Third -> third(value)
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
26
44
|
val isFirst: Boolean
|
|
27
45
|
get() = this is First
|
|
28
46
|
val isSecond: Boolean
|
|
@@ -43,14 +61,6 @@ sealed class NitroManeuver {
|
|
|
43
61
|
return value
|
|
44
62
|
}
|
|
45
63
|
|
|
46
|
-
inline fun <R> match(first: (Array<NitroRoutingManeuver>) -> R, second: (NitroMessageManeuver) -> R, third: (NitroLoadingManeuver) -> R): R {
|
|
47
|
-
return when (this) {
|
|
48
|
-
is First -> first(value)
|
|
49
|
-
is Second -> second(value)
|
|
50
|
-
is Third -> third(value)
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
64
|
companion object {
|
|
55
65
|
@JvmStatic
|
|
56
66
|
@DoNotStrip
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -33,6 +34,22 @@ data class NitroMapButton(
|
|
|
33
34
|
constructor(type: NitroMapButtonType, image: NitroImage, onPress: (() -> Unit)?):
|
|
34
35
|
this(type, image, onPress?.let { Func_void_java(it) })
|
|
35
36
|
|
|
37
|
+
override fun equals(other: Any?): Boolean {
|
|
38
|
+
if (this === other) return true
|
|
39
|
+
if (other !is NitroMapButton) return false
|
|
40
|
+
return Objects.deepEquals(this.type, other.type)
|
|
41
|
+
&& Objects.deepEquals(this.image, other.image)
|
|
42
|
+
&& Objects.deepEquals(this.onPress, other.onPress)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
override fun hashCode(): Int {
|
|
46
|
+
return arrayOf<Any?>(
|
|
47
|
+
type,
|
|
48
|
+
image,
|
|
49
|
+
onPress
|
|
50
|
+
).contentDeepHashCode()
|
|
51
|
+
}
|
|
52
|
+
|
|
36
53
|
companion object {
|
|
37
54
|
/**
|
|
38
55
|
* Constructor called from C++
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -32,6 +33,24 @@ data class NitroMessageManeuver(
|
|
|
32
33
|
) {
|
|
33
34
|
/* primary constructor */
|
|
34
35
|
|
|
36
|
+
override fun equals(other: Any?): Boolean {
|
|
37
|
+
if (this === other) return true
|
|
38
|
+
if (other !is NitroMessageManeuver) return false
|
|
39
|
+
return Objects.deepEquals(this.title, other.title)
|
|
40
|
+
&& Objects.deepEquals(this.text, other.text)
|
|
41
|
+
&& Objects.deepEquals(this.image, other.image)
|
|
42
|
+
&& Objects.deepEquals(this.cardBackgroundColor, other.cardBackgroundColor)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
override fun hashCode(): Int {
|
|
46
|
+
return arrayOf<Any?>(
|
|
47
|
+
title,
|
|
48
|
+
text,
|
|
49
|
+
image,
|
|
50
|
+
cardBackgroundColor
|
|
51
|
+
).contentDeepHashCode()
|
|
52
|
+
}
|
|
53
|
+
|
|
35
54
|
companion object {
|
|
36
55
|
/**
|
|
37
56
|
* Constructor called from C++
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -54,6 +55,36 @@ data class NitroNavigationAlert(
|
|
|
54
55
|
constructor(id: Double, title: AutoText, subtitle: AutoText?, image: Variant_GlyphImage_AssetImage_RemoteImage?, primaryAction: NavigationAlertAction, secondaryAction: NavigationAlertAction?, durationMs: Double, onWillShow: (() -> Unit)?, onDidDismiss: ((reason: AlertDismissalReason) -> Unit)?, priority: Double):
|
|
55
56
|
this(id, title, subtitle, image, primaryAction, secondaryAction, durationMs, onWillShow?.let { Func_void_java(it) }, onDidDismiss?.let { Func_void_AlertDismissalReason_java(it) }, priority)
|
|
56
57
|
|
|
58
|
+
override fun equals(other: Any?): Boolean {
|
|
59
|
+
if (this === other) return true
|
|
60
|
+
if (other !is NitroNavigationAlert) return false
|
|
61
|
+
return Objects.deepEquals(this.id, other.id)
|
|
62
|
+
&& Objects.deepEquals(this.title, other.title)
|
|
63
|
+
&& Objects.deepEquals(this.subtitle, other.subtitle)
|
|
64
|
+
&& Objects.deepEquals(this.image, other.image)
|
|
65
|
+
&& Objects.deepEquals(this.primaryAction, other.primaryAction)
|
|
66
|
+
&& Objects.deepEquals(this.secondaryAction, other.secondaryAction)
|
|
67
|
+
&& Objects.deepEquals(this.durationMs, other.durationMs)
|
|
68
|
+
&& Objects.deepEquals(this.onWillShow, other.onWillShow)
|
|
69
|
+
&& Objects.deepEquals(this.onDidDismiss, other.onDidDismiss)
|
|
70
|
+
&& Objects.deepEquals(this.priority, other.priority)
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
override fun hashCode(): Int {
|
|
74
|
+
return arrayOf<Any?>(
|
|
75
|
+
id,
|
|
76
|
+
title,
|
|
77
|
+
subtitle,
|
|
78
|
+
image,
|
|
79
|
+
primaryAction,
|
|
80
|
+
secondaryAction,
|
|
81
|
+
durationMs,
|
|
82
|
+
onWillShow,
|
|
83
|
+
onDidDismiss,
|
|
84
|
+
priority
|
|
85
|
+
).contentDeepHashCode()
|
|
86
|
+
}
|
|
87
|
+
|
|
57
88
|
companion object {
|
|
58
89
|
/**
|
|
59
90
|
* Constructor called from C++
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -77,6 +78,54 @@ data class NitroRoutingManeuver(
|
|
|
77
78
|
) {
|
|
78
79
|
/* primary constructor */
|
|
79
80
|
|
|
81
|
+
override fun equals(other: Any?): Boolean {
|
|
82
|
+
if (this === other) return true
|
|
83
|
+
if (other !is NitroRoutingManeuver) return false
|
|
84
|
+
return Objects.deepEquals(this.attributedInstructionVariants, other.attributedInstructionVariants)
|
|
85
|
+
&& Objects.deepEquals(this.symbolImage, other.symbolImage)
|
|
86
|
+
&& Objects.deepEquals(this.junctionImage, other.junctionImage)
|
|
87
|
+
&& Objects.deepEquals(this.turnType, other.turnType)
|
|
88
|
+
&& Objects.deepEquals(this.angle, other.angle)
|
|
89
|
+
&& Objects.deepEquals(this.elementAngles, other.elementAngles)
|
|
90
|
+
&& Objects.deepEquals(this.exitNumber, other.exitNumber)
|
|
91
|
+
&& Objects.deepEquals(this.offRampType, other.offRampType)
|
|
92
|
+
&& Objects.deepEquals(this.onRampType, other.onRampType)
|
|
93
|
+
&& Objects.deepEquals(this.forkType, other.forkType)
|
|
94
|
+
&& Objects.deepEquals(this.keepType, other.keepType)
|
|
95
|
+
&& Objects.deepEquals(this.linkedLaneGuidance, other.linkedLaneGuidance)
|
|
96
|
+
&& Objects.deepEquals(this.cardBackgroundColor, other.cardBackgroundColor)
|
|
97
|
+
&& Objects.deepEquals(this.id, other.id)
|
|
98
|
+
&& Objects.deepEquals(this.travelEstimates, other.travelEstimates)
|
|
99
|
+
&& Objects.deepEquals(this.trafficSide, other.trafficSide)
|
|
100
|
+
&& Objects.deepEquals(this.maneuverType, other.maneuverType)
|
|
101
|
+
&& Objects.deepEquals(this.roadName, other.roadName)
|
|
102
|
+
&& Objects.deepEquals(this.highwayExitLabel, other.highwayExitLabel)
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
override fun hashCode(): Int {
|
|
106
|
+
return arrayOf<Any?>(
|
|
107
|
+
attributedInstructionVariants,
|
|
108
|
+
symbolImage,
|
|
109
|
+
junctionImage,
|
|
110
|
+
turnType,
|
|
111
|
+
angle,
|
|
112
|
+
elementAngles,
|
|
113
|
+
exitNumber,
|
|
114
|
+
offRampType,
|
|
115
|
+
onRampType,
|
|
116
|
+
forkType,
|
|
117
|
+
keepType,
|
|
118
|
+
linkedLaneGuidance,
|
|
119
|
+
cardBackgroundColor,
|
|
120
|
+
id,
|
|
121
|
+
travelEstimates,
|
|
122
|
+
trafficSide,
|
|
123
|
+
maneuverType,
|
|
124
|
+
roadName,
|
|
125
|
+
highwayExitLabel
|
|
126
|
+
).contentDeepHashCode()
|
|
127
|
+
}
|
|
128
|
+
|
|
80
129
|
companion object {
|
|
81
130
|
/**
|
|
82
131
|
* Constructor called from C++
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -48,6 +49,32 @@ data class NitroRow(
|
|
|
48
49
|
constructor(title: AutoText, detailedText: AutoText?, browsable: Boolean?, enabled: Boolean, image: Variant_GlyphImage_AssetImage_RemoteImage?, checked: Boolean?, onPress: ((checked: Boolean?) -> Unit)?, selected: Boolean?):
|
|
49
50
|
this(title, detailedText, browsable, enabled, image, checked, onPress?.let { Func_void_std__optional_bool__java(it) }, selected)
|
|
50
51
|
|
|
52
|
+
override fun equals(other: Any?): Boolean {
|
|
53
|
+
if (this === other) return true
|
|
54
|
+
if (other !is NitroRow) return false
|
|
55
|
+
return Objects.deepEquals(this.title, other.title)
|
|
56
|
+
&& Objects.deepEquals(this.detailedText, other.detailedText)
|
|
57
|
+
&& Objects.deepEquals(this.browsable, other.browsable)
|
|
58
|
+
&& Objects.deepEquals(this.enabled, other.enabled)
|
|
59
|
+
&& Objects.deepEquals(this.image, other.image)
|
|
60
|
+
&& Objects.deepEquals(this.checked, other.checked)
|
|
61
|
+
&& Objects.deepEquals(this.onPress, other.onPress)
|
|
62
|
+
&& Objects.deepEquals(this.selected, other.selected)
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
override fun hashCode(): Int {
|
|
66
|
+
return arrayOf<Any?>(
|
|
67
|
+
title,
|
|
68
|
+
detailedText,
|
|
69
|
+
browsable,
|
|
70
|
+
enabled,
|
|
71
|
+
image,
|
|
72
|
+
checked,
|
|
73
|
+
onPress,
|
|
74
|
+
selected
|
|
75
|
+
).contentDeepHashCode()
|
|
76
|
+
}
|
|
77
|
+
|
|
51
78
|
companion object {
|
|
52
79
|
/**
|
|
53
80
|
* Constructor called from C++
|