https://github.com/theapache64/r8-full-mode-issue-repro
https://github.com/theapache64/r8-full-mode-issue-repro
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/theapache64/r8-full-mode-issue-repro
- Owner: theapache64
- Created: 2023-08-18T04:22:23.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-12T12:26:57.000Z (almost 2 years ago)
- Last Synced: 2024-06-12T16:41:01.907Z (almost 2 years ago)
- Language: Kotlin
- Size: 236 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# r8-full-mode-issue-repro
- Repro for https://issuetracker.google.com/issues/296794693#
**Reproducible Issue with R8's `fullMode` in Kotlin Android Project**

## Description
This project showcases a reproducible issue related to R8's `fullMode` in a Kotlin Android project. When utilizing R8's `fullMode`, classes are organized in an unexpected manner, resulting in the display of a variable set as `Fruit.Cherry` being shown as `Fruit.Fig`.
## Prerequisites
To replicate the issue, ensure you have the following prerequisites set up:
1. Android Studio installed on your system.
2. Basic familiarity with Kotlin and Android development concepts.
## Steps to Reproduce
1. Clone the repository:
```bash
git clone git@github.com:theapache64/r8-full-mode-issue-repro.git
cd git@github.com:theapache64/r8-full-mode-issue-repro.git
```
2. Open the project in Android Studio.
3. Create a release build using the "Build" menu or the Gradle task panel.
4. Run the app on an emulator or physical device.
5. Observe the app's behavior. The program should assign a value to `Fruit.Cherry`, but it is displayed as `Fruit.Fig`.
## Expected Behavior
The app should correctly display `Fruit.Cherry`
## Issue Details
The problem appears to be connected to the `fullMode` configuration in R8. This setting results in unexpected class organization, resulting unpredictable code.