@@ -432,10 +432,10 @@ void AddAssemblies (ZipArchiveEx apk, bool debug, bool compress, IDictionary<And
432432 }
433433
434434 // Add user assemblies
435- AddAssembliesFromCollection ( ResolvedUserAssemblies ) ;
435+ AssemblyPackagingHelper . AddAssembliesFromCollection ( Log , SupportedAbis , ResolvedUserAssemblies , DoAddAssembliesFromArchCollection ) ;
436436
437437 // Add framework assemblies
438- AddAssembliesFromCollection ( ResolvedFrameworkAssemblies ) ;
438+ AssemblyPackagingHelper . AddAssembliesFromCollection ( Log , SupportedAbis , ResolvedFrameworkAssemblies , DoAddAssembliesFromArchCollection ) ;
439439
440440 if ( ! UseAssemblyStore ) {
441441 return ;
@@ -459,28 +459,6 @@ void AddAssemblies (ZipArchiveEx apk, bool debug, bool compress, IDictionary<And
459459 AddFileToArchiveIfNewer ( apk , wrappedSourcePath , inArchivePath , GetCompressionMethod ( inArchivePath ) ) ;
460460 }
461461
462- void AddAssembliesFromCollection ( ITaskItem [ ] assemblies )
463- {
464- Dictionary < AndroidTargetArch , Dictionary < string , ITaskItem > > perArchAssemblies = MonoAndroidHelper . GetPerArchAssemblies (
465- assemblies ,
466- SupportedAbis ,
467- validate : true ,
468- shouldSkip : ( ITaskItem asm ) => {
469- if ( bool . TryParse ( asm . GetMetadata ( "AndroidSkipAddToPackage" ) , out bool value ) && value ) {
470- Log . LogDebugMessage ( $ "Skipping { asm . ItemSpec } due to 'AndroidSkipAddToPackage' == 'true' ") ;
471- return true ;
472- }
473-
474- return false ;
475- }
476- ) ;
477-
478- foreach ( var kvp in perArchAssemblies ) {
479- Log . LogDebugMessage ( $ "Adding assemblies for architecture '{ kvp . Key } '") ;
480- DoAddAssembliesFromArchCollection ( kvp . Key , kvp . Value ) ;
481- }
482- }
483-
484462 void DoAddAssembliesFromArchCollection ( AndroidTargetArch arch , Dictionary < string , ITaskItem > assemblies )
485463 {
486464 // In the "all assemblies are per-RID" world, assemblies, pdb and config are disguised as shared libraries (that is,
0 commit comments