Repository navigation
Commit b05742a
committed
build: remove deprecated enableJetifier and nonTransitiveRClass flags
Both are deprecated and will be removed in AGP 10.
enableJetifier rewrites old com.android.support artifacts to AndroidX.
The dependency graph contains none, so it was pure build overhead.
nonTransitiveRClass=false made app.intra.R re-export every resource from
every dependency. Turning it off (the modern default) shrinks the R
class and makes resource ownership explicit. Only one reference needed
updating: "up" and "home" in the drawer navigation handler are declared
by AppCompat rather than by this app, so they are now qualified as
androidx.appcompat.R.id. The drawer_menu.xml reference to @id/home is
unaffected, since non-transitive R changes only the generated Java R
classes, not XML resource resolution.
./gradlew clean assembleDebug test passes; lint reports the same five
pre-existing errors as before.1 parent fe7622f commit b05742a
2 files changed
Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
214 | 216 | | |
215 | 217 | | |
216 | 218 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 24 | | |
32 | 25 | | |
33 | 26 | | |
| |||
0 commit comments