Commit 788dbe1
authored
fix: Return all intersecting ABIs instead of just one (#11)
The original logic had a critical bug: even when multiple ABIs were in
the intersection, it would only return a single ABI based on priority
(arm64 > x86_64 > first). This caused APKs to only contain one
architecture's native libraries, leading to 'library not found' errors
on other architectures.
Changes:
- Return all intersecting ABIs instead of selecting one
- Add disableAbiOptimization option for full control
- Properly pass extension parameter to resolveAbiList
This maintains IDE optimization (only build what's needed for deployment)
while ensuring all necessary architectures are built.
Fixes: #31 parent 17ab999 commit 788dbe1
File tree
2 files changed
+21
-7
lines changed- src/main/kotlin/dev/matrix/agp/rust
2 files changed
+21
-7
lines changedLines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
14 | 24 | | |
15 | 25 | | |
16 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
112 | 118 | | |
113 | 119 | | |
114 | 120 | | |
| |||
119 | 125 | | |
120 | 126 | | |
121 | 127 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
127 | 131 | | |
128 | 132 | | |
129 | 133 | | |
| |||
0 commit comments