@@ -70,7 +70,7 @@ public void DotNetBuild (string runtimeIdentifiers, bool isRelease, bool aot, bo
70
70
proj . OtherBuildItems . Add ( new BuildItem ( "JavaSourceJar" , "javaclasses-sources.jar" ) {
71
71
BinaryContent = ( ) => ResourceData . JavaSourceJarTestSourcesJar ,
72
72
} ) ;
73
- proj . OtherBuildItems . Add ( new AndroidItem . AndroidJavaSource ( "JavaSourceTestExtension.java" ) {
73
+ proj . AndroidJavaSources . Add ( new AndroidItem . AndroidJavaSource ( "JavaSourceTestExtension.java" ) {
74
74
Encoding = Encoding . ASCII ,
75
75
TextContent = ( ) => ResourceData . JavaSourceTestExtension ,
76
76
Metadata = { { "Bind" , "True" } } ,
@@ -1505,7 +1505,7 @@ public void BuildApplicationWithJavaSourceUsingAndroidX ([Values(true, false)] b
1505
1505
{
1506
1506
var proj = new XamarinAndroidApplicationProject ( ) {
1507
1507
IsRelease = isRelease ,
1508
- OtherBuildItems = {
1508
+ AndroidJavaSources = {
1509
1509
new BuildItem ( AndroidBuildActions . AndroidJavaSource , "ToolbarEx.java" ) {
1510
1510
TextContent = ( ) => @"package com.unnamedproject.unnamedproject;
1511
1511
import android.content.Context;
@@ -1550,11 +1550,11 @@ public void BuildApplicationCheckThatAddStaticResourcesTargetDoesNotRerun ()
1550
1550
public void CheckJavaError ( )
1551
1551
{
1552
1552
var proj = new XamarinAndroidApplicationProject ( ) ;
1553
- proj . OtherBuildItems . Add ( new BuildItem ( AndroidBuildActions . AndroidJavaSource , "TestMe.java" ) {
1553
+ proj . AndroidJavaSources . Add ( new BuildItem ( AndroidBuildActions . AndroidJavaSource , "TestMe.java" ) {
1554
1554
TextContent = ( ) => "public classo TestMe { }" ,
1555
1555
Encoding = Encoding . ASCII
1556
1556
} ) ;
1557
- proj . OtherBuildItems . Add ( new BuildItem ( AndroidBuildActions . AndroidJavaSource , "TestMe2.java" ) {
1557
+ proj . AndroidJavaSources . Add ( new BuildItem ( AndroidBuildActions . AndroidJavaSource , "TestMe2.java" ) {
1558
1558
TextContent = ( ) => "public class TestMe2 {" +
1559
1559
"public vod Test ()" +
1560
1560
"}" ,
0 commit comments