2020-06-05 14:09:28 +03:00
// Compat.cs: might not be ideal but it eases code sharing with existing code during the initial implementation.
2020-06-29 16:55:05 +03:00
using System ;
2020-07-17 17:38:40 +03:00
using System.Collections.Generic ;
using Mono.Cecil ;
using Mono.Linker ;
using Mono.Linker.Steps ;
2020-06-29 16:55:05 +03:00
using Xamarin.Linker ;
using Xamarin.Utils ;
2020-06-05 14:09:28 +03:00
namespace Xamarin.Bundler {
2020-07-17 17:38:40 +03:00
public partial class Application {
2020-06-29 16:55:05 +03:00
public LinkerConfiguration Configuration { get ; private set ; }
2020-07-17 17:38:40 +03:00
public Application ( LinkerConfiguration configuration , string [ ] arguments )
: this ( arguments )
2020-06-29 16:55:05 +03:00
{
this . Configuration = configuration ;
}
2020-08-14 18:09:40 +03:00
public string ProductName {
get {
switch ( Platform ) {
case ApplePlatform . iOS :
return "Microsoft.iOS" ;
case ApplePlatform . TVOS :
return "Microsoft.tvOS" ;
case ApplePlatform . WatchOS :
return "Microsoft.watchOS" ;
case ApplePlatform . MacOSX :
return "Microsoft.macOS" ;
default :
throw ErrorHelper . CreateError ( 177 , Errors . MX0177 /* "Unknown platform: {0}. This usually indicates a bug; please file a bug report at https://github.com/xamarin/xamarin-macios/issues/new with a test case." */ , Platform ) ;
}
2020-06-29 16:55:05 +03:00
}
}
2020-07-17 17:38:40 +03:00
public void SelectRegistrar ( )
{
throw new NotImplementedException ( ) ;
}
2020-06-05 14:09:28 +03:00
}
2020-07-17 17:38:40 +03:00
2020-07-17 17:38:40 +03:00
public partial class Driver {
public static string NAME {
get { return "xamarin-bundler" ; }
}
public static string GetArch32Directory ( Application app )
{
throw new NotImplementedException ( ) ;
}
public static string GetArch64Directory ( Application app )
{
throw new NotImplementedException ( ) ;
}
}
2020-07-17 17:38:40 +03:00
public class DotNetLinkContext {
public DotNetLinkContext ( )
{
throw new NotImplementedException ( ) ;
}
public DotNetLinkContext ( Pipeline pipeline , AssemblyResolver resolver )
{
throw new NotImplementedException ( ) ;
}
public AssemblyAction UserAction {
get { throw new NotImplementedException ( ) ; }
set { throw new NotImplementedException ( ) ; }
}
public AnnotationStore Annotations {
get {
throw new NotImplementedException ( ) ;
}
}
public AssemblyDefinition GetAssembly ( string name )
{
throw new NotImplementedException ( ) ;
}
}
public class Pipeline {
}
}
namespace Mono.Linker {
public static class LinkContextExtensions {
public static void LogMessage ( this LinkContext context , string messsage )
{
throw new NotImplementedException ( ) ;
}
public static IEnumerable < AssemblyDefinition > GetAssemblies ( this LinkContext context )
{
throw new NotImplementedException ( ) ;
}
public static Dictionary < IMetadataTokenProvider , object > GetCustomAnnotations ( this AnnotationStore self , string name )
{
throw new NotImplementedException ( ) ;
}
}
2020-06-05 14:09:28 +03:00
}