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();
        }
Пример #2
0
        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);
        }