From Gradle properties to AGP APIs (Android Dev Summit '19)

preview_player
Показать описание
Gradle’s API for task inputs, outputs, and wiring has changed significantly over the last couple of years. In this session, we will review the current best practices and how they fit with new upcoming APIs for the Android Gradle Plugin.

Presented by: Jerome Dochez, Chris Warrington, Xavier Ducrohet



#AndroidDevSummit event: Android Dev Summit 2019; re_ty: Publish; product: Android - General; fullname: Chris Warrington, Jerome Dochez, Xavier Ducrohet;
Рекомендации по теме
Комментарии
Автор

1:45 Provider
2:30 Property
3:30 Linking a Property with task's Input
4:30 RegularFileProperty, DirectoryProperty
5:40 Example
6:40 Lazy values via Properties
8:10 Initializing property via tasks
9:15 Example
10:50 Accessing Property values
11:10 Current AGP API issues
11:30 Variant data
11:55 Artifact API
14:15 Transforming an artifact
16:40 Replace an artifact
18:00 Append a new artifact
18:40 Obtain an artifact
20:00 DSL / Variant API flow

EugeneKrivobokov
Автор

I'd like to see more and more complete examples. It would also be nice to hear some best practices on setting up tests for our custom plugins and tasks. It seems like when there's a bug in custom gradle stuff, Android Studio just blows up and doesn't even tell you what went wrong.

eatthepi