Skip to content

[Bug]: Android getDefaultProguardFile('proguard-android.txt') is no longer supported since it includes -dontoptimize #1970

Description

@iamrohitagg

What happened?

Android gives error on react-native 0.87.0

Steps to reproduce?

On react-native: 0.87.0

What did you expect to happen?

Expected app to run

React Native OneSignal SDK version

5.5.7

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

* What went wrong:
A problem occurred evaluating project ':react-native-onesignal'.
> `getDefaultProguardFile('proguard-android.txt')` is no longer supported since it includes `-dontoptimize`, which prevents R8 from performing many optimizations. Instead use `getDefaultProguardFile('proguard-android-optimize.txt)`, and if needed, temporarily use `-dontoptimize` in a custom keep rule file while fixing breakages.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions