Skip to content

Commit

Permalink
Merge pull request #1027 from bugsnag/PLAT-4923/suppress-warnings
Browse files Browse the repository at this point in the history
Suppress unchecked cast warnings for React Native Android
  • Loading branch information
fractalwrench authored Sep 4, 2020
2 parents eaa6115 + 8332754 commit 00f9fc4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Fixed

- (react-native): Suppress unchecked cast warnings for React Native Android [#1027](/~https://github.com/bugsnag/bugsnag-js/pull/1027)
- (react-native): Provide proguard rules to ensure reflection works on minified/obfuscated Android builds [#1030](/~https://github.com/bugsnag/bugsnag-js/pull/1030)

## 7.3.3 (2020-08-26)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ class BugsnagReactNative(private val reactContext: ReactApplicationContext) :
/**
* Serializes a MessageEvent into a WritableMap and sends it across the React Bridge
*/
@Suppress("UNCHECKED_CAST")
fun emitEvent(event: MessageEvent) {
logger.d("Received MessageEvent: ${event.type}")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import com.facebook.react.bridge.Arguments
import com.facebook.react.bridge.WritableMap
import com.facebook.react.bridge.WritableNativeMap

@Suppress("UNCHECKED_CAST")
internal fun Map<String, Any?>.toWritableMap(): WritableMap {
val nativeMap = WritableNativeMap()

Expand Down

0 comments on commit 00f9fc4

Please sign in to comment.