File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
build-logic/convention/src/main/kotlin Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17- import com.android.build.api.variant.ApplicationAndroidComponentsExtension
17+ import com.android.build.api.dsl.ApplicationExtension
1818import com.google.firebase.crashlytics.buildtools.gradle.CrashlyticsExtension
1919import org.gradle.api.Plugin
2020import org.gradle.api.Project
@@ -41,15 +41,13 @@ class AndroidApplicationFirebaseConventionPlugin : Plugin<Project> {
4141 " implementation" (libs.findLibrary(" firebase.crashlytics" ).get())
4242 }
4343
44- extensions.configure<ApplicationAndroidComponentsExtension > {
45- finalizeDsl {
46- it.buildTypes.forEach { buildType ->
47- // Disable the Crashlytics mapping file upload. This feature should only be
48- // enabled if a Firebase backend is available and configured in
49- // google-services.json.
50- buildType.configure<CrashlyticsExtension > {
51- mappingFileUploadEnabled = false
52- }
44+ extensions.configure<ApplicationExtension > {
45+ buildTypes.configureEach {
46+ // Disable the Crashlytics mapping file upload. This feature should only be
47+ // enabled if a Firebase backend is available and configured in
48+ // google-services.json.
49+ configure<CrashlyticsExtension > {
50+ mappingFileUploadEnabled = false
5351 }
5452 }
5553 }
You can’t perform that action at this time.
0 commit comments