|
1 | | -import com.android.build.api.instrumentation.FramesComputationMode |
2 | | -import com.android.build.api.instrumentation.InstrumentationScope |
3 | | -import com.engineer.plugin.transforms.FooClassVisitorFactory |
4 | | -import com.engineer.plugin.transforms.tiger.TigerClassVisitorFactory |
5 | | -import com.engineer.plugin.transforms.track.TrackClassVisitorFactory |
6 | | - |
7 | 1 | plugins { |
8 | 2 | id("com.android.application") |
9 | 3 | id("org.jetbrains.kotlin.android") |
10 | | - id("org.jetbrains.kotlin.kapt") |
| 4 | + id("kotlin-kapt") |
11 | 5 | } |
12 | 6 |
|
13 | 7 |
|
@@ -41,7 +35,7 @@ android { |
41 | 35 | defaultConfig { |
42 | 36 | applicationId = "home.smart.fly.animations" |
43 | 37 | minSdk = libs.versions.minSdk.get().toInt() |
44 | | - targetSdk = libs.versions.targetSdk.get().toInt() |
| 38 | + |
45 | 39 | versionCode = 5 |
46 | 40 | versionName = "5.0" |
47 | 41 | renderscriptTargetApi = 19 |
@@ -71,13 +65,13 @@ android { |
71 | 65 | getByName("release") { |
72 | 66 | isMinifyEnabled = false |
73 | 67 | proguardFiles( |
74 | | - getDefaultProguardFile("proguard-android.txt"), file("proguard-rules.pro") |
| 68 | + getDefaultProguardFile("proguard-android-optimize.txt"), file("proguard-rules.pro") |
75 | 69 | ) |
76 | 70 | } |
77 | 71 | getByName("debug") { |
78 | 72 | // splits is a property; access via named API |
79 | 73 | splits.abi.isEnable = false |
80 | | - splits.density.isEnable = false |
| 74 | +// splits.density.isEnable = false |
81 | 75 | } |
82 | 76 | } |
83 | 77 |
|
@@ -118,6 +112,7 @@ android { |
118 | 112 |
|
119 | 113 | buildFeatures { |
120 | 114 | viewBinding = true |
| 115 | + buildConfig = true |
121 | 116 | } |
122 | 117 |
|
123 | 118 | namespace = "home.smart.fly.animations" |
@@ -153,15 +148,16 @@ dependencies { |
153 | 148 | implementation("com.github.bingoogolapple:BGABaseAdapter-Android:2.0.1") |
154 | 149 | implementation("com.jakewharton:butterknife:10.2.3") |
155 | 150 | implementation(libs.androidx.legacy.support.v4) |
156 | | - kapt("com.jakewharton:butterknife-compiler:10.2.3") |
| 151 | + add("kapt","com.jakewharton:butterknife-compiler:10.2.3") |
| 152 | +// ksp("com.jakewharton:butterknife-compiler:10.2.3") |
157 | 153 | implementation(libs.stetho) |
158 | 154 | implementation(libs.androidx.dynamicanimation) |
159 | 155 | implementation(libs.lottie) |
160 | 156 | implementation("com.davemorrissey.labs:subsampling-scale-image-view:3.10.0") |
161 | 157 | implementation(libs.commons.io) |
162 | 158 |
|
163 | 159 | implementation(libs.arouter.api) |
164 | | - kapt(libs.arouter.compiler) |
| 160 | + add("kapt","com.alibaba:arouter-compiler:1.5.2") |
165 | 161 |
|
166 | 162 | implementation(libs.androidx.palette.ktx) |
167 | 163 | implementation(libs.mmkv) |
@@ -194,28 +190,6 @@ dependencies { |
194 | 190 | implementation(libs.fastjson.new) |
195 | 191 | } |
196 | 192 |
|
197 | | - |
198 | | -// Remove androidComponents instrumentation transforms for now (migrating custom transforms to KTS requires more work). |
199 | | -// If you need these transforms, we can port them carefully to the new AGP instrumentation API. |
200 | | -androidComponents { |
201 | | - onVariants(selector().all()) { variant -> |
202 | | - variant.instrumentation.transformClassesWith( |
203 | | - FooClassVisitorFactory::class.java, InstrumentationScope.PROJECT |
204 | | - ) {} |
205 | | - variant.instrumentation.transformClassesWith( |
206 | | - TrackClassVisitorFactory::class.java, InstrumentationScope.PROJECT |
207 | | - ) { param -> |
208 | | - param.trackOn = true |
209 | | - } |
210 | | - variant.instrumentation.transformClassesWith( |
211 | | - TigerClassVisitorFactory::class.java, InstrumentationScope.PROJECT |
212 | | - ) { param -> |
213 | | - param.tigerOn = true |
214 | | - } |
215 | | - variant.instrumentation.setAsmFramesComputationMode(FramesComputationMode.COPY_FRAMES) |
216 | | - } |
217 | | -} |
218 | | - |
219 | 193 | // apply Groovy script fragments (keep existing behavior) |
220 | 194 | apply(from = file("../gradle/funs.gradle")) |
221 | 195 | apply(from = file("../gradle/report_apk_size_after_package.gradle")) |
0 commit comments