You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Android: no runtime API guard and Activity-only initialisation #30
@TargetApi silences lint and guards nothing at runtime. Below API 26 getSystemService returns null and the non-null cast throws. Declared minSdkVersion is 19; Flutter's own floor is now 24, so the live window is API 24 to 25 plus anyone who lowers it deliberately.
Both textClassifer and textClassificationManager are lateinit and assigned only from onAttachedToActivity, so any call arriving without an Activity throws UninitializedPropertyAccessException.
The Linkify fallback path also depends on that Activity-only initialisation, which it has no reason to.
Fix: initialise textClassifer in onAttachedToEngine, resolve the manager lazily behind a real Build.VERSION.SDK_INT >= O check, and correct the README's "SDK 19+" claim.
Activity