Commit 468cb01
committed
Migrate to new Android Gradle Plugin DSL
This commit updates the build scripts to align with the modern Android Gradle Plugin (AGP) DSL and removes several deprecated properties and plugins.
Key changes include:
* **`app/build.gradle.kts`:**
* Migrated from the `android {}` block to the new `extensions.configure<ApplicationExtension>("android") {}` block.
* Replaced the `compileSdk { version = ... }` method with the direct `compileSdk = ...` property assignment.
* Removed the explicit `kotlin {}` block for JVM toolchain configuration, as it's now handled by the `compileOptions` within the `android` block.
* Eliminated the now-deprecated `applicationVariants.all` block for renaming APK outputs.
* Enabled `resValues` directly within the `buildFeatures` block.
* **`gradle.properties`:**
* Removed several obsolete or now-default AGP flags, such as `android.nonFinalResIds`, `android.newDsl`, and `android.r8.optimizedResourceShrinking`.
* **Plugin Configuration:**
* Removed the `kotlin-android` plugin from `build.gradle.kts` and `gradle/libs.versions.toml`, as it is no longer required with recent AGP versions.1 parent 2bcfc56 commit 468cb01
4 files changed
Lines changed: 7 additions & 43 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | | - | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | | - | |
33 | | - | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | 96 | | |
98 | 97 | | |
99 | 98 | | |
| |||
117 | 116 | | |
118 | 117 | | |
119 | 118 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | 119 | | |
133 | 120 | | |
134 | 121 | | |
135 | 122 | | |
| 123 | + | |
136 | 124 | | |
137 | 125 | | |
138 | 126 | | |
| |||
151 | 139 | | |
152 | 140 | | |
153 | 141 | | |
154 | | - | |
155 | 142 | | |
156 | | - | |
157 | 143 | | |
158 | 144 | | |
159 | 145 | | |
160 | 146 | | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | 147 | | |
175 | 148 | | |
176 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | 25 | | |
31 | 26 | | |
32 | 27 | | |
33 | | - | |
34 | | - | |
35 | | - | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | 126 | | |
128 | 127 | | |
0 commit comments