@@ -370,15 +370,15 @@ public void BuildWithNativeLibraries ([Values (true, false)] bool isRelease)
370
370
ProjectName = "Library1" ,
371
371
IsRelease = isRelease ,
372
372
OtherBuildItems = {
373
- new AndroidItem . EmbeddedNativeLibrary ( "foo\\ armeabi-v7a \\ libtest.so" ) {
373
+ new AndroidItem . EmbeddedNativeLibrary ( "foo\\ arm64-v8a \\ libtest.so" ) {
374
374
BinaryContent = ( ) => new byte [ 10 ] ,
375
- MetadataValues = "Link=libs\\ armeabi-v7a \\ libtest.so" ,
375
+ MetadataValues = "Link=libs\\ arm64-v8a \\ libtest.so" ,
376
376
} ,
377
- new AndroidItem . EmbeddedNativeLibrary ( "foo\\ x86 \\ libtest.so" ) {
377
+ new AndroidItem . EmbeddedNativeLibrary ( "foo\\ x86_64 \\ libtest.so" ) {
378
378
BinaryContent = ( ) => new byte [ 10 ] ,
379
- MetadataValues = "Link=libs\\ x86 \\ libtest.so" ,
379
+ MetadataValues = "Link=libs\\ x86_64 \\ libtest.so" ,
380
380
} ,
381
- new AndroidItem . AndroidNativeLibrary ( "armeabi-v7a \\ libRSSupport.so" ) {
381
+ new AndroidItem . AndroidNativeLibrary ( "arm64-v8a \\ libRSSupport.so" ) {
382
382
BinaryContent = ( ) => new byte [ 10 ] ,
383
383
} ,
384
384
} ,
@@ -390,13 +390,13 @@ public void BuildWithNativeLibraries ([Values (true, false)] bool isRelease)
390
390
new BuildItem ( "ProjectReference" , "..\\ Library1\\ Library1.csproj" ) ,
391
391
} ,
392
392
OtherBuildItems = {
393
- new AndroidItem . EmbeddedNativeLibrary ( "foo\\ armeabi-v7a \\ libtest1.so" ) {
393
+ new AndroidItem . EmbeddedNativeLibrary ( "foo\\ arm64-v8a \\ libtest1.so" ) {
394
394
BinaryContent = ( ) => new byte [ 10 ] ,
395
- MetadataValues = "Link=libs\\ armeabi-v7a \\ libtest1.so" ,
395
+ MetadataValues = "Link=libs\\ arm64-v8a \\ libtest1.so" ,
396
396
} ,
397
- new AndroidItem . EmbeddedNativeLibrary ( "foo\\ x86 \\ libtest1.so" ) {
397
+ new AndroidItem . EmbeddedNativeLibrary ( "foo\\ x86_64 \\ libtest1.so" ) {
398
398
BinaryContent = ( ) => new byte [ 10 ] ,
399
- MetadataValues = "Link=libs\\ x86 \\ libtest1.so" ,
399
+ MetadataValues = "Link=libs\\ x86_64 \\ libtest1.so" ,
400
400
} ,
401
401
} ,
402
402
} ;
@@ -407,12 +407,12 @@ public void BuildWithNativeLibraries ([Values (true, false)] bool isRelease)
407
407
new BuildItem ( "ProjectReference" , "..\\ Library2\\ Library2.csproj" ) ,
408
408
} ,
409
409
OtherBuildItems = {
410
- new AndroidItem . AndroidNativeLibrary ( "armeabi-v7a \\ libRSSupport.so" ) {
410
+ new AndroidItem . AndroidNativeLibrary ( "arm64-v8a \\ libRSSupport.so" ) {
411
411
BinaryContent = ( ) => new byte [ 10 ] ,
412
412
} ,
413
413
}
414
414
} ;
415
- proj . SetRuntimeIdentifiers ( [ "armeabi-v7a " , "x86 " ] ) ;
415
+ proj . SetRuntimeIdentifiers ( [ "arm64-v8a " , "x86_64 " ] ) ;
416
416
var path = Path . Combine ( Root , "temp" , string . Format ( "BuildWithNativeLibraries_{0}" , isRelease ) ) ;
417
417
using ( var b1 = CreateDllBuilder ( Path . Combine ( path , dll2 . ProjectName ) ) ) {
418
418
Assert . IsTrue ( b1 . Build ( dll2 ) , "Build should have succeeded." ) ;
@@ -423,23 +423,23 @@ public void BuildWithNativeLibraries ([Values (true, false)] bool isRelease)
423
423
var apk = Path . Combine ( Root , builder . ProjectDirectory ,
424
424
proj . OutputPath , $ "{ proj . PackageName } -Signed.apk") ;
425
425
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." ) ,
427
427
"warning about skipping libRSSupport.so should have been raised" ) ;
428
428
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." ) ;
443
443
}
444
444
}
445
445
}
0 commit comments