void WriteTypeMappings(List <TypeDefinition> types) { var tmg = new TypeMapGenerator((string message) => Log.LogDebugMessage(message), SupportedAbis); if (!tmg.Generate(types, TypemapOutputDirectory, GenerateNativeAssembly)) { throw new XamarinAndroidException(4308, Properties.Resources.XA4308); } GeneratedBinaryTypeMaps = tmg.GeneratedBinaryTypeMaps.ToArray(); }
void WriteTypeMappings(List <TypeDefinition> types, TypeDefinitionCache cache) { var tmg = new TypeMapGenerator((string message) => Log.LogDebugMessage(message), SupportedAbis); if (!tmg.Generate(Debug, SkipJniAddNativeMethodRegistrationAttributeScan, types, cache, TypemapOutputDirectory, GenerateNativeAssembly, out ApplicationConfigTaskState appConfState)) { throw new XamarinAndroidException(4308, Properties.Resources.XA4308); } GeneratedBinaryTypeMaps = tmg.GeneratedBinaryTypeMaps.ToArray(); BuildEngine4.RegisterTaskObjectAssemblyLocal(ApplicationConfigTaskState.RegisterTaskObjectKey, appConfState, RegisteredTaskObjectLifetime.Build); }