This repository was archived by the owner on Nov 10, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
src/com/facebook/buck/android Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -177,17 +177,14 @@ private int executeInProcess(IsolatedExecutionContext context) throws IOExceptio
177177 minSdkVersion .ifPresent (builder ::setMinApiLevel );
178178 primaryDexClassNamesPath .ifPresent (builder ::addMainDexListFiles );
179179
180- ImmutableSet .Builder <Path > absolutePaths = ImmutableSet .builder ();
181- // Always include the Android SDK on the classpath to support JARs/AARs compiled for Android
182- absolutePaths .add (androidPlatformTarget .getAndroidJar ());
183180 if (classpathFiles != null && !classpathFiles .isEmpty ()) {
184- // classpathFiles is needed only for D8 Java 8 desugar
181+ // classpathFiles is needed only for D8 java 8 desugar
182+ ImmutableSet .Builder <Path > absolutePaths = ImmutableSet .builder ();
185183 for (Path classpathFile : classpathFiles ) {
186184 absolutePaths .add (filesystem .getPathForRelativeExistingPath (classpathFile ));
187185 }
186+ builder .addClasspathFiles (absolutePaths .build ());
188187 }
189- builder .addClasspathFiles (absolutePaths .build ());
190-
191188 D8Command d8Command = builder .build ();
192189 com .android .tools .r8 .D8 .run (d8Command );
193190
You can’t perform that action at this time.
0 commit comments