@@ -370,15 +370,15 @@ public void BuildWithNativeLibraries ([Values (true, false)] bool isRelease)
370370 ProjectName = "Library1" ,
371371 IsRelease = isRelease ,
372372 OtherBuildItems = {
373- new AndroidItem . EmbeddedNativeLibrary ( "foo\\ armeabi-v7a \\ libtest.so" ) {
373+ new AndroidItem . EmbeddedNativeLibrary ( "foo\\ arm64-v8a \\ libtest.so" ) {
374374 BinaryContent = ( ) => new byte [ 10 ] ,
375- MetadataValues = "Link=libs\\ armeabi-v7a \\ libtest.so" ,
375+ MetadataValues = "Link=libs\\ arm64-v8a \\ libtest.so" ,
376376 } ,
377- new AndroidItem . EmbeddedNativeLibrary ( "foo\\ x86 \\ libtest.so" ) {
377+ new AndroidItem . EmbeddedNativeLibrary ( "foo\\ x86_64 \\ libtest.so" ) {
378378 BinaryContent = ( ) => new byte [ 10 ] ,
379- MetadataValues = "Link=libs\\ x86 \\ libtest.so" ,
379+ MetadataValues = "Link=libs\\ x86_64 \\ libtest.so" ,
380380 } ,
381- new AndroidItem . AndroidNativeLibrary ( "armeabi-v7a \\ libRSSupport.so" ) {
381+ new AndroidItem . AndroidNativeLibrary ( "arm64-v8a \\ libRSSupport.so" ) {
382382 BinaryContent = ( ) => new byte [ 10 ] ,
383383 } ,
384384 } ,
@@ -390,13 +390,13 @@ public void BuildWithNativeLibraries ([Values (true, false)] bool isRelease)
390390 new BuildItem ( "ProjectReference" , "..\\ Library1\\ Library1.csproj" ) ,
391391 } ,
392392 OtherBuildItems = {
393- new AndroidItem . EmbeddedNativeLibrary ( "foo\\ armeabi-v7a \\ libtest1.so" ) {
393+ new AndroidItem . EmbeddedNativeLibrary ( "foo\\ arm64-v8a \\ libtest1.so" ) {
394394 BinaryContent = ( ) => new byte [ 10 ] ,
395- MetadataValues = "Link=libs\\ armeabi-v7a \\ libtest1.so" ,
395+ MetadataValues = "Link=libs\\ arm64-v8a \\ libtest1.so" ,
396396 } ,
397- new AndroidItem . EmbeddedNativeLibrary ( "foo\\ x86 \\ libtest1.so" ) {
397+ new AndroidItem . EmbeddedNativeLibrary ( "foo\\ x86_64 \\ libtest1.so" ) {
398398 BinaryContent = ( ) => new byte [ 10 ] ,
399- MetadataValues = "Link=libs\\ x86 \\ libtest1.so" ,
399+ MetadataValues = "Link=libs\\ x86_64 \\ libtest1.so" ,
400400 } ,
401401 } ,
402402 } ;
@@ -407,12 +407,12 @@ public void BuildWithNativeLibraries ([Values (true, false)] bool isRelease)
407407 new BuildItem ( "ProjectReference" , "..\\ Library2\\ Library2.csproj" ) ,
408408 } ,
409409 OtherBuildItems = {
410- new AndroidItem . AndroidNativeLibrary ( "armeabi-v7a \\ libRSSupport.so" ) {
410+ new AndroidItem . AndroidNativeLibrary ( "arm64-v8a \\ libRSSupport.so" ) {
411411 BinaryContent = ( ) => new byte [ 10 ] ,
412412 } ,
413413 }
414414 } ;
415- proj . SetRuntimeIdentifiers ( [ "armeabi-v7a " , "x86 " ] ) ;
415+ proj . SetRuntimeIdentifiers ( [ "arm64-v8a " , "x86_64 " ] ) ;
416416 var path = Path . Combine ( Root , "temp" , string . Format ( "BuildWithNativeLibraries_{0}" , isRelease ) ) ;
417417 using ( var b1 = CreateDllBuilder ( Path . Combine ( path , dll2 . ProjectName ) ) ) {
418418 Assert . IsTrue ( b1 . Build ( dll2 ) , "Build should have succeeded." ) ;
@@ -423,23 +423,23 @@ public void BuildWithNativeLibraries ([Values (true, false)] bool isRelease)
423423 var apk = Path . Combine ( Root , builder . ProjectDirectory ,
424424 proj . OutputPath , $ "{ proj . PackageName } -Signed.apk") ;
425425 FileAssert . Exists ( apk ) ;
426- Assert . IsTrue ( StringAssertEx . ContainsText ( builder . LastBuildOutput , "warning XA4301: APK already contains the item lib/armeabi-v7a /libRSSupport.so; ignoring." ) ,
426+ Assert . IsTrue ( StringAssertEx . ContainsText ( builder . LastBuildOutput , "warning XA4301: APK already contains the item lib/arm64-v8a /libRSSupport.so; ignoring." ) ,
427427 "warning about skipping libRSSupport.so should have been raised" ) ;
428428 using ( var zipFile = ZipHelper . OpenZip ( apk ) ) {
429- var data = ZipHelper . ReadFileFromZip ( zipFile , "lib/x86 /libtest.so" ) ;
430- Assert . IsNotNull ( data , "libtest.so for x86 should exist in the apk." ) ;
431- data = ZipHelper . ReadFileFromZip ( zipFile , "lib/armeabi-v7a /libtest.so" ) ;
432- Assert . IsNotNull ( data , "libtest.so for armeabi-v7a should exist in the apk." ) ;
433- data = ZipHelper . ReadFileFromZip ( zipFile , "lib/x86 /libtest1.so" ) ;
434- Assert . IsNotNull ( data , "libtest1.so for x86 should exist in the apk." ) ;
435- data = ZipHelper . ReadFileFromZip ( zipFile , "lib/armeabi-v7a /libtest1.so" ) ;
436- Assert . IsNotNull ( data , "libtest1.so for armeabi-v7a should exist in the apk." ) ;
437- data = ZipHelper . ReadFileFromZip ( zipFile , "lib/armeabi-v7a /libRSSupport.so" ) ;
438- Assert . IsNotNull ( data , "libRSSupport.so for armeabi-v7a should exist in the apk." ) ;
439- data = ZipHelper . ReadFileFromZip ( zipFile , "lib/x86 /libSystem.Native.so" ) ;
440- Assert . IsNotNull ( data , "libSystem.Native.so for x86 should exist in the apk." ) ;
441- data = ZipHelper . ReadFileFromZip ( zipFile , "lib/armeabi-v7a /libSystem.Native.so" ) ;
442- Assert . IsNotNull ( data , "libSystem.Native.so for armeabi-v7a should exist in the apk." ) ;
429+ var data = ZipHelper . ReadFileFromZip ( zipFile , "lib/x86_64 /libtest.so" ) ;
430+ Assert . IsNotNull ( data , "libtest.so for x86_64 should exist in the apk." ) ;
431+ data = ZipHelper . ReadFileFromZip ( zipFile , "lib/arm64-v8a /libtest.so" ) ;
432+ Assert . IsNotNull ( data , "libtest.so for arm64-v8a should exist in the apk." ) ;
433+ data = ZipHelper . ReadFileFromZip ( zipFile , "lib/x86_64 /libtest1.so" ) ;
434+ Assert . IsNotNull ( data , "libtest1.so for x86_64 should exist in the apk." ) ;
435+ data = ZipHelper . ReadFileFromZip ( zipFile , "lib/arm64-v8a /libtest1.so" ) ;
436+ Assert . IsNotNull ( data , "libtest1.so for arm64-v8a should exist in the apk." ) ;
437+ data = ZipHelper . ReadFileFromZip ( zipFile , "lib/arm64-v8a /libRSSupport.so" ) ;
438+ Assert . IsNotNull ( data , "libRSSupport.so for arm64-v8a should exist in the apk." ) ;
439+ data = ZipHelper . ReadFileFromZip ( zipFile , "lib/x86_64 /libSystem.Native.so" ) ;
440+ Assert . IsNotNull ( data , "libSystem.Native.so for x86_64 should exist in the apk." ) ;
441+ data = ZipHelper . ReadFileFromZip ( zipFile , "lib/arm64-v8a /libSystem.Native.so" ) ;
442+ Assert . IsNotNull ( data , "libSystem.Native.so for arm64-v8a should exist in the apk." ) ;
443443 }
444444 }
445445 }
0 commit comments