margelo / margelo/react-native-fast-tflite

App Crashing on Release Build [Android]

Open
#58 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.2k
Forks
92
Avg merge
13h 9m
Merged PRs (30d)
2

Description

Issue

When building the app in release mode the app crashes on start but works on debug build.

Findings

I am able to build the app in release mode when I disable dex guard. I have tried to remove the package from pro guard but nothing is working

// proguard_rules.pro
-keepclasseswithmembers class com.tflite.** {*;}
-keepclasseswithmembers class com.mrousavy.camera.** { *; }
-keepclasseswithmembers class com.worklets.** { *; }

//dexguard version and config
dexguard {
    version = '9.3.7'
    license = './lib/Dexguard/dexguard-license.txt'
    configurations {
        release {
            defaultConfiguration 'dexguard-release.pro'
            configuration 'dexguard-project.pro'
        }
    }
}
image (1)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with proguard_rules.pro and the shown DexGuard configuration in the issue, then reproduce the release build with DexGuard enabled and compare it with the working debug build. Identify the missing configuration behind the startup crash; done means the Android release build starts successfully without disabling DexGuard.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, react-native, tensorflow
Domain
build-system, machine-learning, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.