Christoffer Adamsen | 77ab561 | 2025-01-17 10:52:16 +0100 | [diff] [blame] | 1 | // Copyright (c) 2025, the R8 project authors. Please see the AUTHORS file |
| 2 | // for details. All rights reserved. Use of this source code is governed by a |
| 3 | // BSD-style license that can be found in the LICENSE file. |
| 4 | package com.android.tools.r8.utils; |
| 5 | |
| 6 | import com.android.tools.r8.ProgramResource; |
| 7 | import com.android.tools.r8.ResourceException; |
| 8 | import com.android.tools.r8.shaking.FilteredClassPath; |
| 9 | import java.nio.file.Path; |
| 10 | import java.util.Collection; |
| 11 | import java.util.Collections; |
| 12 | |
| 13 | public class ArchiveDataResourceProvider extends ArchiveResourceProvider { |
| 14 | |
| 15 | public ArchiveDataResourceProvider(Path archive) { |
| 16 | super(FilteredClassPath.unfiltered(archive), false); |
| 17 | } |
| 18 | |
| 19 | @Override |
| 20 | public Collection<ProgramResource> getProgramResources() throws ResourceException { |
| 21 | return Collections.emptyList(); |
| 22 | } |
| 23 | } |