Ejemplo n.º 1
0
        protected override void Process()
        {
            // resolve the MainAssembly Resource designer TypeDefinition
            AndroidLinkConfiguration config = AndroidLinkConfiguration.GetInstance(Context);

            if (config == null)
            {
                return;
            }
            foreach (var asm in config.Assemblies)
            {
                if (FindResourceDesigner(asm, mainApplication: true, designer: out mainDesigner, designerAttribute: out mainDesignerAttribute))
                {
                    mainAssembly = asm;
                    break;
                }
            }
            if (mainDesigner == null)
            {
                Context.LogMessage($"  Main Designer not found.");
                return;
            }
            Context.LogMessage($"  Main Designer found {mainDesigner.FullName}.");
            designerConstants = BuildResourceDesignerFieldLookup(mainDesigner);
        }
Ejemplo n.º 2
0
 public static AndroidLinkConfiguration GetInstance(LinkContext context)
 {
     if (!configurations.TryGetValue(context, out AndroidLinkConfiguration config))
     {
         config = new AndroidLinkConfiguration();
         configurations.Add(context, config);
     }
     return(config);
 }
Ejemplo n.º 3
0
 protected override void Process()
 {
     config = AndroidLinkConfiguration.GetInstance(Context);
 }