Skip to content

Commit f2d1748

Browse files
committed
Cleanup
1 parent 61c6aa1 commit f2d1748

8 files changed

+11
-19
lines changed

src/Xamarin.Android.Build.Tasks/Mono.Android/InstrumentationAttribute.Partial.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
namespace Android.App {
1212

1313
partial class InstrumentationAttribute {
14-
14+
1515
ICollection<string> specified;
1616

1717
public static IEnumerable<InstrumentationAttribute> FromCustomAttributeProvider (ICustomAttributeProvider provider, TypeDefinitionCache cache)

src/Xamarin.Android.Build.Tasks/Mono.Android/PermissionAttribute.Partial.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
namespace Android.App {
1717

1818
partial class PermissionAttribute {
19-
19+
2020
ICollection<string> specified;
2121

2222
public static IEnumerable<PermissionAttribute> FromCustomAttributeProvider (ICustomAttributeProvider provider, TypeDefinitionCache cache)

src/Xamarin.Android.Build.Tasks/Mono.Android/PermissionGroupAttribute.Partial.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
namespace Android.App {
1717

1818
partial class PermissionGroupAttribute {
19-
19+
2020
ICollection<string> specified;
2121

2222
public static IEnumerable<PermissionGroupAttribute> FromCustomAttributeProvider (ICustomAttributeProvider provider, TypeDefinitionCache cache)

src/Xamarin.Android.Build.Tasks/Mono.Android/PermissionTreeAttribute.Partial.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
namespace Android.App {
1717

1818
partial class PermissionTreeAttribute {
19-
19+
2020
ICollection<string> specified;
2121

2222
public static IEnumerable<PermissionTreeAttribute> FromCustomAttributeProvider (ICustomAttributeProvider provider, TypeDefinitionCache cache)

src/Xamarin.Android.Build.Tasks/Mono.Android/SupportsGLTextureAttribute.Partial.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ public static IEnumerable<SupportsGLTextureAttribute> FromCustomAttributeProvide
4141
SupportsGLTextureAttribute self = new SupportsGLTextureAttribute((string)attr.ConstructorArguments[0].Value);
4242
self.specified = mapping.Load (self, attr, cache);
4343
self.specified.Add("Name");
44-
yield return self;
44+
yield return self;
4545
}
4646
}
4747
}
4848
}
4949
}
50+

src/Xamarin.Android.Build.Tasks/Mono.Android/UsesFeatureAttribute.Partial.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static IEnumerable<UsesFeatureAttribute> FromCustomAttributeProvider (ICu
4646

4747
UsesFeatureAttribute self = new UsesFeatureAttribute ();
4848

49-
if (attr.HasProperties) {
49+
if (attr.HasProperties) {
5050
// handle the case where the user sets additional properties
5151
self.specified = mapping.Load (self, attr, cache);
5252
if (self.specified.Contains("GLESVersion") && self.GLESVersion==0) {
@@ -70,3 +70,4 @@ public static IEnumerable<UsesFeatureAttribute> FromCustomAttributeProvider (ICu
7070
}
7171
}
7272
}
73+

src/Xamarin.Android.Build.Tasks/Tasks/BuildApk.cs

-9
Original file line numberDiff line numberDiff line change
@@ -408,35 +408,28 @@ static Regex FileGlobToRegEx (string fileGlob, RegexOptions options)
408408

409409
void AddAssemblies (DSOWrapperGenerator.Config dsoWrapperConfig, ZipArchiveEx apk, bool debug, bool compress, IDictionary<AndroidTargetArch, Dictionary<string, CompressedAssemblyInfo>> compressedAssembliesInfo, string assemblyStoreApkName)
410410
{
411-
Log.LogDebugMessage ("g#: in AddAssemblies");
412411
string sourcePath;
413412
AssemblyStoreBuilder? storeBuilder = null;
414413

415414
if (UseAssemblyStore) {
416-
Log.LogDebugMessage ("g#: assembly store used");
417415
if (AssemblyStoreEmbeddedInRuntime) {
418-
Log.LogDebugMessage ("g#: assembly store embedded in the runtime");
419416
// We don't need to do anything here, the store is in `libxamarin-app.so`
420417
return;
421418
}
422419

423420
storeBuilder = new AssemblyStoreBuilder (Log);
424421
}
425422

426-
Log.LogDebugMessage ("g#: adding user assemblies");
427423
// Add user assemblies
428424
AssemblyPackagingHelper.AddAssembliesFromCollection (Log, SupportedAbis, ResolvedUserAssemblies, DoAddAssembliesFromArchCollection);
429425

430-
Log.LogDebugMessage ("g#: adding framework assemblies");
431426
// Add framework assemblies
432427
AssemblyPackagingHelper.AddAssembliesFromCollection (Log, SupportedAbis, ResolvedFrameworkAssemblies, DoAddAssembliesFromArchCollection);
433428

434429
if (!UseAssemblyStore) {
435-
Log.LogDebugMessage ("g#: assembly store not used, returning");
436430
return;
437431
}
438432

439-
Log.LogDebugMessage ("g#: generating assembly stores");
440433
Dictionary<AndroidTargetArch, string> assemblyStorePaths = storeBuilder.Generate (AppSharedLibrariesDir);
441434

442435
if (assemblyStorePaths.Count == 0) {
@@ -447,7 +440,6 @@ void AddAssemblies (DSOWrapperGenerator.Config dsoWrapperConfig, ZipArchiveEx ap
447440
throw new InvalidOperationException ("Internal error: assembly store did not generate store for each supported ABI");
448441
}
449442

450-
Log.LogDebugMessage ($"g#: {assemblyStorePaths.Count} assembly stores added");
451443
string inArchivePath;
452444
foreach (var kvp in assemblyStorePaths) {
453445
string abi = MonoAndroidHelper.ArchToAbi (kvp.Key);
@@ -465,7 +457,6 @@ void DoAddAssembliesFromArchCollection (TaskLoggingHelper log, AndroidTargetArch
465457
// or not we're supposed to compress .so files.
466458
sourcePath = CompressAssembly (assembly);
467459
if (UseAssemblyStore) {
468-
Log.LogDebugMessage ($"g#: adding '{assembly}' to the store");
469460
storeBuilder.AddAssembly (sourcePath, assembly, includeDebugSymbols: debug);
470461
return;
471462
}

tests/MSBuildDeviceIntegration/Tests/InstallTests.cs

+3-4
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ public void InstallWithoutSharedRuntime ()
201201
//Assert.AreEqual (0, RunAdbCommand ("shell pm list packages Mono.Android.DebugRuntime").Trim ().Length,
202202
// "The Shared Runtime should not have been installed.");
203203
var directorylist = GetContentFromAllOverrideDirectories (proj.PackageName, DeviceAbi);
204-
Console.WriteLine ($"InstallWithoutSharedRuntime: directoryList == '{directorylist}'");
205204
StringAssert.Contains ($"{proj.ProjectName}.dll", directorylist, $"{proj.ProjectName}.dll should exist in the .__override__/{DeviceAbi} directory.");
206205
StringAssert.Contains ($"System.Private.CoreLib.dll", directorylist, $"System.Private.CoreLib.dll should exist in the .__override__/{DeviceAbi} directory.");
207206
StringAssert.Contains ($"Mono.Android.dll", directorylist, $"Mono.Android.dll should exist in the .__override__/{DeviceAbi} directory.");
@@ -547,7 +546,7 @@ public void IncrementalFastDeployment (string packageFormat)
547546
}
548547

549548
long lib1FirstBuildSize = new FileInfo (Path.Combine (rootPath, lib1.ProjectName, lib1.OutputPath, "Library1.dll")).Length;
550-
549+
551550
using (var builder = CreateApkBuilder (Path.Combine (rootPath, app.ProjectName))) {
552551
builder.Verbosity = LoggerVerbosity.Detailed;
553552
builder.ThrowOnBuildFailure = false;
@@ -654,7 +653,7 @@ public void AppWithAndroidJavaSource ()
654653
public class TestJavaClass2 {
655654
656655
public String test(){
657-
656+
658657
return ""Java is called"";
659658
}
660659
}",
@@ -672,7 +671,7 @@ public String test(){
672671
public class TestJavaClass {
673672
674673
public String test(){
675-
674+
676675
return ""Java is called"";
677676
}
678677
}",

0 commit comments

Comments
 (0)