Example #1
0
    public override bool Execute()
    {
        string abi = DetermineAbi();

        var apkBuilder = new ApkBuilder(Log);

        apkBuilder.ProjectName                  = ProjectName;
        apkBuilder.AppDir                       = AppDir;
        apkBuilder.OutputDir                    = OutputDir;
        apkBuilder.AndroidSdk                   = AndroidSdk;
        apkBuilder.AndroidNdk                   = AndroidNdk;
        apkBuilder.MinApiLevel                  = MinApiLevel;
        apkBuilder.BuildApiLevel                = BuildApiLevel;
        apkBuilder.BuildToolsVersion            = BuildToolsVersion;
        apkBuilder.StripDebugSymbols            = StripDebugSymbols;
        apkBuilder.NativeMainSource             = NativeMainSource;
        apkBuilder.IncludeNetworkSecurityConfig = IncludeNetworkSecurityConfig;
        apkBuilder.KeyStorePath                 = KeyStorePath;
        apkBuilder.ForceInterpreter             = ForceInterpreter;
        apkBuilder.ForceAOT                     = ForceAOT;
        apkBuilder.ForceFullAOT                 = ForceFullAOT;
        apkBuilder.EnvironmentVariables         = EnvironmentVariables;
        apkBuilder.StaticLinkedRuntime          = StaticLinkedRuntime;
        apkBuilder.RuntimeComponents            = RuntimeComponents;
        apkBuilder.DiagnosticPorts              = DiagnosticPorts;
        apkBuilder.Assemblies                   = Assemblies;
        (ApkBundlePath, ApkPackageId)           = apkBuilder.BuildApk(abi, MainLibraryFileName, MonoRuntimeHeaders);

        return(true);
    }
Example #2
0
    public override bool Execute()
    {
        Utils.Logger = Log;

        string abi = DetermineAbi();

        var apkBuilder = new ApkBuilder();

        apkBuilder.ProjectName         = ProjectName;
        apkBuilder.AppDir              = AppDir;
        apkBuilder.OutputDir           = OutputDir;
        apkBuilder.AndroidSdk          = AndroidSdk;
        apkBuilder.AndroidNdk          = AndroidNdk;
        apkBuilder.MinApiLevel         = MinApiLevel;
        apkBuilder.BuildApiLevel       = BuildApiLevel;
        apkBuilder.BuildToolsVersion   = BuildToolsVersion;
        apkBuilder.StripDebugSymbols   = StripDebugSymbols;
        apkBuilder.NativeMainSource    = NativeMainSource;
        apkBuilder.KeyStorePath        = KeyStorePath;
        apkBuilder.ForceInterpreter    = ForceInterpreter;
        apkBuilder.ForceAOT            = ForceAOT;
        apkBuilder.StaticLinkedRuntime = StaticLinkedRuntime;
        apkBuilder.RuntimeComponents   = RuntimeComponents;
        apkBuilder.Assemblies          = Assemblies;
        (ApkBundlePath, ApkPackageId)  = apkBuilder.BuildApk(abi, MainLibraryFileName, MonoRuntimeHeaders);

        return(true);
    }
Example #3
0
    public override bool Execute()
    {
        Utils.Logger = Log;

        var apkBuilder = new ApkBuilder();
        apkBuilder.ProjectName = ProjectName;
        apkBuilder.OutputDir = OutputDir;
        apkBuilder.AndroidSdk = AndroidSdk;
        apkBuilder.AndroidNdk = AndroidNdk;
        apkBuilder.MinApiLevel = MinApiLevel;
        apkBuilder.BuildApiLevel = BuildApiLevel;
        apkBuilder.BuildToolsVersion = BuildToolsVersion;
        (ApkBundlePath, ApkPackageId) = apkBuilder.BuildApk(SourceDir, Abi, MainLibraryFileName, MonoRuntimeHeaders);
        
        return true;
    }
Example #4
0
    public override bool Execute()
    {
        Utils.Logger = Log;

        var apkBuilder = new ApkBuilder();

        apkBuilder.ProjectName         = ProjectName;
        apkBuilder.OutputDir           = OutputDir;
        apkBuilder.AndroidSdk          = AndroidSdk;
        apkBuilder.AndroidNdk          = AndroidNdk;
        apkBuilder.MinApiLevel         = MinApiLevel;
        apkBuilder.BuildApiLevel       = BuildApiLevel;
        apkBuilder.BuildToolsVersion   = BuildToolsVersion;
        apkBuilder.StripDebugSymbols   = StripDebugSymbols;
        apkBuilder.AssemblySearchPaths = AssemblySearchPaths?.Select(a => a.ItemSpec)?.ToArray();
        apkBuilder.ExtraAssemblies     = ExtraAssemblies?.Select(a => a.ItemSpec)?.ToArray();
        (ApkBundlePath, ApkPackageId)  = apkBuilder.BuildApk(SourceDir, Abi, MainLibraryFileName, MonoRuntimeHeaders);

        return(true);
    }
Example #5
0
    public override bool Execute()
    {
        Utils.Logger = Log;

        string abi = DetermineAbi();

        var apkBuilder = new ApkBuilder();

        apkBuilder.ProjectName        = ProjectName;
        apkBuilder.OutputDir          = OutputDir;
        apkBuilder.AndroidSdk         = AndroidSdk;
        apkBuilder.AndroidNdk         = AndroidNdk;
        apkBuilder.MinApiLevel        = MinApiLevel;
        apkBuilder.BuildApiLevel      = BuildApiLevel;
        apkBuilder.BuildToolsVersion  = BuildToolsVersion;
        apkBuilder.StripDebugSymbols  = StripDebugSymbols;
        (ApkBundlePath, ApkPackageId) = apkBuilder.BuildApk(SourceDir, abi, MainLibraryFileName, MonoRuntimeHeaders);

        return(true);
    }