Skip to content

Commit f40e9c8

Browse files
committed
Cleanup
1 parent 100b71d commit f40e9c8

File tree

4 files changed

+7
-28
lines changed

4 files changed

+7
-28
lines changed

src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ Copyright (C) 2011-2012 Xamarin. All rights reserved.
311311

312312
<_AndroidFastDeployEnvironmentFiles Condition=" '$(_AndroidFastDeployEnvironmentFiles)' == '' And '$(EmbedAssembliesIntoApk)' == 'False' ">True</_AndroidFastDeployEnvironmentFiles>
313313
<_AndroidFastDeployEnvironmentFiles Condition=" '$(_AndroidFastDeployEnvironmentFiles)' == '' ">False</_AndroidFastDeployEnvironmentFiles>
314+
314315
<_AndroidCompressedAssembliesDir>$(IntermediateOutputPath)android\lz4</_AndroidCompressedAssembliesDir>
315316
</PropertyGroup>
316317

@@ -2067,7 +2068,7 @@ because xbuild doesn't support framework reference assemblies.
20672068
<PropertyGroup>
20682069
<_CompileToDalvikDependsOnTargets>
20692070
_CompileJava;
2070-
_RemoveRegisterAttribute;
2071+
_RemoveRegisterAttribute;
20712072
_CreateApplicationSharedLibraries;
20722073
_GetMonoPlatformJarPath;
20732074
_GetLibraryImports;
@@ -2371,7 +2372,6 @@ because xbuild doesn't support framework reference assemblies.
23712372
ProjectFullPath="$(MSBuildProjectFullPath)"
23722373
IncludeWrapSh="$(AndroidIncludeWrapSh)"
23732374
CheckedBuild="$(_AndroidCheckedBuild)"
2374-
RuntimeConfigBinFilePath="$(_BinaryRuntimeConfigPath)"
23752375
ExcludeFiles="@(AndroidPackagingOptionsExclude)"
23762376
IncludeFiles="@(AndroidPackagingOptionsInclude)"
23772377
ZipFlushFilesLimit="$(_ZipFlushFilesLimit)"
@@ -2448,6 +2448,10 @@ because xbuild doesn't support framework reference assemblies.
24482448
SupportedAbis="@(_BuildTargetAbis)"
24492449
IncludeWrapSh="$(AndroidIncludeWrapSh)"
24502450
CheckedBuild="$(_AndroidCheckedBuild)"
2451+
ExcludeFiles="@(AndroidPackagingOptionsExclude)"
2452+
IncludeFiles="@(AndroidPackagingOptionsInclude)"
2453+
ZipFlushFilesLimit="$(_ZipFlushFilesLimit)"
2454+
ZipFlushSizeLimit="$(_ZipFlushSizeLimit)"
24512455
ZipAlignmentPages="$(AndroidZipAlignment)"
24522456
AndroidBinUtilsDirectory="$(AndroidBinUtilsDirectory)"
24532457
IntermediateOutputPath="$(IntermediateOutputPath)"
@@ -2520,7 +2524,6 @@ because xbuild doesn't support framework reference assemblies.
25202524
ProjectFullPath="$(MSBuildProjectFullPath)"
25212525
IncludeWrapSh="$(AndroidIncludeWrapSh)"
25222526
CheckedBuild="$(_AndroidCheckedBuild)"
2523-
RuntimeConfigBinFilePath="$(_BinaryRuntimeConfigPath)"
25242527
ZipFlushFilesLimit="$(_ZipFlushFilesLimit)"
25252528
ZipFlushSizeLimit="$(_ZipFlushSizeLimit)"
25262529
ExcludeFiles="@(AndroidPackagingOptionsExclude)"
@@ -2561,7 +2564,6 @@ because xbuild doesn't support framework reference assemblies.
25612564
ProjectFullPath="$(MSBuildProjectFullPath)"
25622565
IncludeWrapSh="$(AndroidIncludeWrapSh)"
25632566
CheckedBuild="$(_AndroidCheckedBuild)"
2564-
RuntimeConfigBinFilePath="$(_BinaryRuntimeConfigPath)"
25652567
ZipFlushFilesLimit="$(_ZipFlushFilesLimit)"
25662568
ZipFlushSizeLimit="$(_ZipFlushSizeLimit)"
25672569
ExcludeFiles="@(AndroidPackagingOptionsExclude)"

src/native/mono/monodroid/embedded-assemblies-zip.cc

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,6 @@ EmbeddedAssemblies::zip_load_entry_common (size_t entry_index, std::span<uint8_t
6262
}
6363
}
6464

65-
// if (application_config.have_runtime_config_blob && !runtime_config_blob_found) {
66-
// if (Util::ends_with (entry_name, SharedConstants::RUNTIME_CONFIG_BLOB_NAME)) {
67-
// runtime_config_blob_mmap = md_mmap_apk_file (state.file_fd, state.data_offset, state.file_size, entry_name.get ());
68-
// store_mapped_runtime_config_data (runtime_config_blob_mmap, entry_name.get ());
69-
// return false;
70-
// }
71-
// }
72-
7365
// assemblies must be 16-byte or 4-byte aligned, or Bad Things happen
7466
if (((state.data_offset & 0xf) != 0) || ((state.data_offset & 0x3) != 0)) {
7567
Helpers::abort_application (
@@ -274,7 +266,6 @@ EmbeddedAssemblies::zip_load_assembly_store_entries (std::span<uint8_t> const& b
274266
dynamic_local_string<SENSIBLE_PATH_MAX> entry_name;
275267
bool assembly_store_found = embedded_assembly_store_size != 0;
276268
if (assembly_store_found) {
277-
log_debug (LOG_ASSEMBLY, "Got embedded assembly store, size %zu", embedded_assembly_store_size);
278269
verify_assembly_store_and_set_info (embedded_assembly_store, "embedded");
279270
log_debug (LOG_ASSEMBLY, "Looking for DSOs in APK");
280271
} else {
@@ -399,8 +390,6 @@ EmbeddedAssemblies::zip_load_entries (int fd, const char *apk_name, [[maybe_unus
399390
} else {
400391
zip_load_individual_assembly_entries (buf, cd_entries, should_register, state);
401392
}
402-
403-
//delete[] raw_data;
404393
}
405394

406395
template<bool NeedsNameAlloc>

src/native/mono/monodroid/embedded-assemblies.hh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,7 @@ namespace xamarin::android::internal {
194194
runtime_config_data_size = 0uz;
195195
}
196196

197-
static bool have_runtime_config_blob () noexcept
198-
{
199-
return application_config.have_runtime_config_blob && runtime_config_blob_mmap.area != nullptr;
200-
}
201-
202-
static bool keep_scanning () noexcept
197+
bool keep_scanning () const noexcept
203198
{
204199
return need_to_scan_more_apks;
205200
}

src/native/mono/monodroid/monodroid-glue.cc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -728,15 +728,13 @@ MonodroidRuntime::create_domain (JNIEnv *env, jstring_array_wrapper &runtimeApks
728728

729729
gather_bundled_assemblies (runtimeApks, &user_assemblies_count, have_split_apks);
730730

731-
// if (embeddedAssemblies.have_runtime_config_blob ()) {
732731
if (embedded_runtime_config_size > 0) {
733732
size_t blob_time_index;
734733
if (FastTiming::enabled ()) [[unlikely]] {
735734
internal_timing.start_event (TimingEventKind::RuntimeConfigBlob);
736735
}
737736

738737
runtime_config_args.kind = 1;
739-
// embeddedAssemblies.get_runtime_config_blob (runtime_config_args.runtimeconfig.data.data, runtime_config_args.runtimeconfig.data.data_len);
740738
runtime_config_args.runtimeconfig.data.data = reinterpret_cast<const char*>(embedded_runtime_config);
741739
runtime_config_args.runtimeconfig.data.data_len = static_cast<uint32_t>(embedded_runtime_config_size);
742740
monovm_runtimeconfig_initialize (&runtime_config_args, cleanup_runtime_config, nullptr);
@@ -1410,11 +1408,6 @@ MonodroidRuntime::Java_mono_android_Runtime_initInternal (JNIEnv *env, jclass kl
14101408

14111409
Logger::init_logging_categories (mono_log_mask_raw, mono_log_level_raw);
14121410

1413-
// log_warn (LOG_DEFAULT, "Embedded runtime config size: %zu", embedded_runtime_config_size);
1414-
// if (embedded_runtime_config_size > 0) {
1415-
// log_warn (LOG_DEFAULT, "First byte of embedded runtime config: 0x%x", embedded_runtime_config[0]);
1416-
// }
1417-
14181411
std::unique_ptr<char[]> mono_log_mask (mono_log_mask_raw);
14191412
std::unique_ptr<char[]> mono_log_level (mono_log_level_raw);
14201413

0 commit comments

Comments
 (0)