Skip to content

Commit 3a9226a

Browse files
authored
Use dependabot multi-directory configuration for Android package updates (flutter#8048)
Follow up to flutter/packages#8036 (comment). [Multi-directory config](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#directories) allows duplicated dependabot configs can be removed in favor of one that specifies multiple directories. Update Android packages so the same gradle dependencies can be updated all at once across packages. > The directories option in the dependabot.yml file allows you to apply Dependabot updates to multiple directories at the same time. It's unclear whether this is a good idea. > I'm a bit skeptical that grouping all the non-example ones together will be easier in practice, since usually some plugins are fine and some need changes, but I know the current system has some issues too. flutter/packages#8036 (review) The consensus seems to be we should try it, and revert or adjust if it makes the current system worse. Part of flutter#148098
1 parent df0f423 commit 3a9226a

File tree

1 file changed

+24
-341
lines changed

1 file changed

+24
-341
lines changed

.github/dependabot.yml

Lines changed: 24 additions & 341 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ updates:
1717
- "team: infra"
1818
- "autosubmit"
1919

20+
# Android example apps.
2021
- package-ecosystem: "gradle"
2122
directories:
2223
- /packages/animations/example/android/app
@@ -74,331 +75,31 @@ updates:
7475
- dependency-name: "*"
7576
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
7677

78+
# Android packages (excluding example apps).
7779
- package-ecosystem: "gradle"
78-
directory: "/packages/camera/camera_android/android"
79-
commit-message:
80-
prefix: "[camera]"
81-
schedule:
82-
interval: "weekly"
83-
open-pull-requests-limit: 10
84-
ignore:
85-
- dependency-name: "com.android.tools.build:gradle"
86-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
87-
- dependency-name: "junit:junit"
88-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
89-
- dependency-name: "org.mockito:*"
90-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
91-
- dependency-name: "androidx.test:*"
92-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
93-
- dependency-name: "org.robolectric:*"
94-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
95-
96-
- package-ecosystem: "gradle"
97-
directory: "/packages/camera/camera_android_camerax/android"
98-
commit-message:
99-
prefix: "[camera]"
100-
schedule:
101-
interval: "weekly"
102-
open-pull-requests-limit: 10
103-
ignore:
104-
- dependency-name: "com.android.tools.build:gradle"
105-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
106-
- dependency-name: "junit:junit"
107-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
108-
- dependency-name: "org.mockito:*"
109-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
110-
- dependency-name: "androidx.test:*"
111-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
112-
- dependency-name: "org.robolectric:*"
113-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
114-
115-
- package-ecosystem: "gradle"
116-
directory: "/packages/espresso/android"
117-
commit-message:
118-
prefix: "[espresso]"
119-
schedule:
120-
interval: "weekly"
121-
open-pull-requests-limit: 10
122-
ignore:
123-
- dependency-name: "com.android.tools.build:gradle"
124-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
125-
- dependency-name: "junit:junit"
126-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
127-
- dependency-name: "org.mockito:*"
128-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
129-
- dependency-name: "androidx.test:*"
130-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
131-
- dependency-name: "org.robolectric:*"
132-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
133-
134-
- package-ecosystem: "gradle"
135-
directory: "/packages/file_selector/file_selector_android/android"
136-
commit-message:
137-
prefix: "[file_selector]"
138-
schedule:
139-
interval: "weekly"
140-
open-pull-requests-limit: 10
141-
ignore:
142-
- dependency-name: "com.android.tools.build:gradle"
143-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
144-
- dependency-name: "junit:junit"
145-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
146-
- dependency-name: "org.mockito:*"
147-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
148-
- dependency-name: "androidx.test:*"
149-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
150-
- dependency-name: "org.robolectric:*"
151-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
152-
153-
- package-ecosystem: "gradle"
154-
directory: "/packages/flutter_plugin_android_lifecycle/android"
155-
commit-message:
156-
prefix: "[lifecycle]"
157-
schedule:
158-
interval: "weekly"
159-
open-pull-requests-limit: 10
160-
ignore:
161-
- dependency-name: "com.android.tools.build:gradle"
162-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
163-
- dependency-name: "junit:junit"
164-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
165-
- dependency-name: "org.mockito:*"
166-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
167-
- dependency-name: "androidx.test:*"
168-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
169-
- dependency-name: "org.robolectric:*"
170-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
171-
172-
- package-ecosystem: "gradle"
173-
directory: "/packages/google_maps_flutter/google_maps_flutter_android/android"
174-
commit-message:
175-
prefix: "[google_maps]"
176-
schedule:
177-
interval: "weekly"
178-
open-pull-requests-limit: 10
179-
ignore:
180-
- dependency-name: "com.android.tools.build:gradle"
181-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
182-
- dependency-name: "junit:junit"
183-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
184-
- dependency-name: "org.mockito:*"
185-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
186-
- dependency-name: "androidx.test:*"
187-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
188-
- dependency-name: "org.robolectric:*"
189-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
190-
191-
- package-ecosystem: "gradle"
192-
directory: "/packages/google_sign_in/google_sign_in_android/android"
193-
commit-message:
194-
prefix: "[sign_in]"
195-
schedule:
196-
interval: "weekly"
197-
open-pull-requests-limit: 10
198-
ignore:
199-
- dependency-name: "com.android.tools.build:gradle"
200-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
201-
- dependency-name: "junit:junit"
202-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
203-
- dependency-name: "org.mockito:*"
204-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
205-
- dependency-name: "androidx.test:*"
206-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
207-
- dependency-name: "org.robolectric:*"
208-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
209-
210-
- package-ecosystem: "gradle"
211-
directory: "/packages/in_app_purchase/in_app_purchase_android/android"
212-
commit-message:
213-
prefix: "[in_app_pur]"
214-
schedule:
215-
interval: "weekly"
216-
open-pull-requests-limit: 10
217-
ignore:
218-
- dependency-name: "com.android.tools.build:gradle"
219-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
220-
- dependency-name: "junit:junit"
221-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
222-
- dependency-name: "org.mockito:*"
223-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
224-
- dependency-name: "androidx.test:*"
225-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
226-
- dependency-name: "org.robolectric:*"
227-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
228-
229-
- package-ecosystem: "gradle"
230-
directory: "/packages/interactive_media_ads/android"
231-
commit-message:
232-
prefix: "[interactive_media_ads]"
233-
schedule:
234-
interval: "weekly"
235-
open-pull-requests-limit: 10
236-
ignore:
237-
- dependency-name: "com.android.tools.build:gradle"
238-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
239-
- dependency-name: "junit:junit"
240-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
241-
- dependency-name: "org.mockito:*"
242-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
243-
- dependency-name: "androidx.test:*"
244-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
245-
246-
- package-ecosystem: "gradle"
247-
directory: "/packages/image_picker/image_picker_android/android"
248-
commit-message:
249-
prefix: "[image_picker]"
250-
schedule:
251-
interval: "weekly"
252-
open-pull-requests-limit: 10
253-
ignore:
254-
- dependency-name: "com.android.tools.build:gradle"
255-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
256-
- dependency-name: "junit:junit"
257-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
258-
- dependency-name: "org.mockito:*"
259-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
260-
- dependency-name: "androidx.test:*"
261-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
262-
- dependency-name: "org.robolectric:*"
263-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
264-
265-
- package-ecosystem: "gradle"
266-
directory: "/packages/local_auth/local_auth_android/android"
267-
commit-message:
268-
prefix: "[local_auth]"
269-
schedule:
270-
interval: "weekly"
271-
open-pull-requests-limit: 10
272-
ignore:
273-
- dependency-name: "com.android.tools.build:gradle"
274-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
275-
- dependency-name: "junit:junit"
276-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
277-
- dependency-name: "org.mockito:*"
278-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
279-
- dependency-name: "androidx.test:*"
280-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
281-
- dependency-name: "org.robolectric:*"
282-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
283-
284-
- package-ecosystem: "gradle"
285-
directory: "/packages/path_provider/path_provider_android/android"
286-
commit-message:
287-
prefix: "[path_provider]"
288-
schedule:
289-
interval: "weekly"
290-
open-pull-requests-limit: 10
291-
ignore:
292-
- dependency-name: "com.android.tools.build:gradle"
293-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
294-
- dependency-name: "junit:junit"
295-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
296-
- dependency-name: "org.mockito:*"
297-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
298-
- dependency-name: "androidx.test:*"
299-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
300-
- dependency-name: "org.robolectric:*"
301-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
302-
303-
- package-ecosystem: "gradle"
304-
directory: "/packages/pigeon/platform_tests/test_plugin/android"
305-
commit-message:
306-
prefix: "[pigeon]"
307-
schedule:
308-
interval: "weekly"
309-
open-pull-requests-limit: 10
310-
ignore:
311-
- dependency-name: "com.android.tools.build:gradle"
312-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
313-
- dependency-name: "junit:junit"
314-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
315-
- dependency-name: "org.mockito:*"
316-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
317-
- dependency-name: "androidx.test:*"
318-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
319-
- dependency-name: "org.robolectric:*"
320-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
321-
322-
- package-ecosystem: "gradle"
323-
directory: "/packages/pigeon/platform_tests/alternate_language_test_plugin/android"
324-
commit-message:
325-
prefix: "[pigeon]"
326-
schedule:
327-
interval: "weekly"
328-
open-pull-requests-limit: 10
329-
ignore:
330-
- dependency-name: "com.android.tools.build:gradle"
331-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
332-
- dependency-name: "junit:junit"
333-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
334-
- dependency-name: "org.mockito:*"
335-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
336-
- dependency-name: "androidx.test:*"
337-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
338-
- dependency-name: "org.robolectric:*"
339-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
340-
341-
- package-ecosystem: "gradle"
342-
directory: "/packages/quick_actions/quick_actions_android/android"
343-
commit-message:
344-
prefix: "[quick_actions]"
345-
schedule:
346-
interval: "weekly"
347-
open-pull-requests-limit: 10
348-
ignore:
349-
- dependency-name: "com.android.tools.build:gradle"
350-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
351-
- dependency-name: "junit:junit"
352-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
353-
- dependency-name: "org.mockito:*"
354-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
355-
- dependency-name: "androidx.test:*"
356-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
357-
- dependency-name: "org.robolectric:*"
358-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
359-
360-
- package-ecosystem: "gradle"
361-
directory: "/packages/shared_preferences/shared_preferences_android/android"
362-
commit-message:
363-
prefix: "[shared_pref]"
364-
schedule:
365-
interval: "weekly"
366-
open-pull-requests-limit: 10
367-
ignore:
368-
- dependency-name: "com.android.tools.build:gradle"
369-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
370-
- dependency-name: "junit:junit"
371-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
372-
- dependency-name: "org.mockito:*"
373-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
374-
- dependency-name: "androidx.test:*"
375-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
376-
- dependency-name: "org.robolectric:*"
377-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
378-
379-
- package-ecosystem: "gradle"
380-
directory: "/packages/url_launcher/url_launcher_android/android"
381-
commit-message:
382-
prefix: "[url_launcher]"
383-
schedule:
384-
interval: "weekly"
385-
open-pull-requests-limit: 10
386-
ignore:
387-
- dependency-name: "com.android.tools.build:gradle"
388-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
389-
- dependency-name: "junit:junit"
390-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
391-
- dependency-name: "org.mockito:*"
392-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
393-
- dependency-name: "androidx.test:*"
394-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
395-
- dependency-name: "org.robolectric:*"
396-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
397-
398-
- package-ecosystem: "gradle"
399-
directory: "/packages/video_player/video_player_android/android"
80+
directories:
81+
- /packages/camera/camera_android/android
82+
- /packages/camera/camera_android_camerax/android
83+
- /packages/espresso/android
84+
- /packages/file_selector/file_selector_android/android
85+
- /packages/flutter_plugin_android_lifecycle/android
86+
- /packages/google_maps_flutter/google_maps_flutter_android/android
87+
- /packages/google_sign_in/google_sign_in_android/android
88+
- /packages/in_app_purchase/in_app_purchase_android/android
89+
- /packages/interactive_media_ads/android
90+
- /packages/image_picker/image_picker/android
91+
- /packages/image_picker/image_picker_android/android
92+
- /packages/local_auth/local_auth_android/android
93+
- /packages/path_provider/path_provider_android/android
94+
- /packages/pigeon/platform_tests/test_plugin/android
95+
- /packages/pigeon/platform_tests/alternate_language_test_plugin/android
96+
- /packages/quick_actions/quick_actions_android/android
97+
- /packages/shared_preferences/shared_preferences_android/android
98+
- /packages/url_launcher/url_launcher_android/android
99+
- /packages/video_player/video_player_android/android
100+
- /packages/webview_flutter/webview_flutter_android/android
400101
commit-message:
401-
prefix: "[video_player]"
102+
prefix: "[gradle]"
402103
schedule:
403104
interval: "weekly"
404105
open-pull-requests-limit: 10
@@ -414,21 +115,3 @@ updates:
414115
- dependency-name: "org.robolectric:*"
415116
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
416117

417-
- package-ecosystem: "gradle"
418-
directory: "/packages/webview_flutter/webview_flutter_android/android"
419-
commit-message:
420-
prefix: "[webview]"
421-
schedule:
422-
interval: "weekly"
423-
open-pull-requests-limit: 10
424-
ignore:
425-
- dependency-name: "com.android.tools.build:gradle"
426-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
427-
- dependency-name: "junit:junit"
428-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
429-
- dependency-name: "org.mockito:*"
430-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
431-
- dependency-name: "androidx.test:*"
432-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
433-
- dependency-name: "org.robolectric:*"
434-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]

0 commit comments

Comments
 (0)