Commit 29dbbc0
committed
runanywhere_genie: tolerate missing private binary at build time
The Genie engine is a closed-source private backend. When its release
asset isn't reachable (no network, release not yet published,
auth-gated distribution), the Flutter plugin's downloadNativeLibs
gradle task was hard-failing the build via ant.get throwing.
Wrap the download in try/catch so the plugin always builds. Runtime
absence is already handled: GeniePlugin.kt wraps System.loadLibrary
in try/catch and logs a warning; Dart bindings resolve
rac_backend_genie_register via the commons FFI and skip registration
when symbols aren't present.
Public repo now compiles cleanly without the Genie binary; consumers
who install the engine (either via testLocal=true local .so files or
via the published GitHub release) pick up NPU inference automatically.1 parent aa34aa1 commit 29dbbc0
1 file changed
Lines changed: 15 additions & 4 deletions
Lines changed: 15 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
110 | 121 | | |
111 | 122 | | |
112 | 123 | | |
| |||
0 commit comments