rive-flutter
rive-flutter copied to clipboard
Compiler Optimizations affected by Rive Code when building to Android
Description
When compiling a project to APK with Rive as a dependency, certain optimizations are disabled. This is the compiler message:
[ +1 ms] Warning: RiveCoreContext.setObjectProperty from package:rive/src/generated/rive_core_context.dart is too large. Some optimizations have been disabled, and the compiler might run out of memory. Consider refactoring this code into smaller components. [ +101 ms] Warning: RiveCoreContext.setObjectProperty from package:rive/src/generated/rive_core_context.dart is too large. Some optimizations have been disabled, and the compiler might run out of memory. Consider refactoring this code into smaller components. [ ] Warning: RiveCoreContext.setObjectProperty from package:rive/src/generated/rive_core_context.dart is too large. Some optimizations have been disabled, and the compiler might run out of memory. Consider refactoring this code into smaller components.
Steps To Reproduce
Steps to reproduce the behavior:
- Add Rive as a dependency to your project in the pubspec.yaml
- Build for Android with
flutter build apk
Expected behavior
No warning when on building APK.
Device & Versions (please complete the following information)
- Device: Building on MacOS
- OS: Android SDK 32
- Flutter Version: latest version 2.10