<commit_before>package duell.build.plugin.library.filesystem.platform;

import duell.build.plugin.library.filesystem.AssetProcessorRegister;

import duell.build.plugin.platform.PlatformConfiguration;
import duell.build.objects.Configuration;

import duell.helpers.PathHelper;
import duell.helpers.FileHelper;

import haxe.io.Path;

class AndroidBuild implements IPlatformBuild
{

    public function new()
    {

    }

    public function postParsePerPlatform(): Void
    {

    }

    public function postPostParsePerPlatform(): Void
    {

    }

    public function preBuildPerPlatform(): Void
    {
        /// currently not using the INTERNAL_ASSET_FOLDER, it goes directly into the assets folder.
        var targetDirectory = Path.join([Configuration.getData().OUTPUT, "android", "bin", "assets"]);

        var fileListToCopy = PathHelper.getRecursiveFileListUnderFolder(AssetProcessorRegister.pathToTemporaryAssetArea);
        for (file in fileListToCopy)
        {
            var targetFolder = Path.join([targetDirectory, Path.directory(file)]);
            PathHelper.mkdir(targetFolder);
            FileHelper.copyIfNewer(Path.join([AssetProcessorRegister.pathToTemporaryAssetArea, file]), Path.join([targetDirectory, file]));
        }

        PlatformBuildHelper.removeUnusedFiles( fileListToCopy, targetDirectory );
    }<commit_msg>super final fix<commit_after>package duell.build.plugin.library.filesystem.platform;

import duell.build.plugin.library.filesystem.AssetProcessorRegister;

import duell.build.plugin.platform.PlatformConfiguration;
import duell.build.objects.Configuration;

import duell.helpers.PathHelper;
import duell.helpers.FileHelper;

import haxe.io.Path;

class AndroidBuild implements IPlatformBuild
{

    public function new()
    {

    }

    public function postParsePerPlatform(): Void
    {

    }

    public function postPostParsePerPlatform(): Void
    {

    }

    public function preBuildPerPlatform(): Void
    {
        /// currently not using the INTERNAL_ASSET_FOLDER, it goes directly into the assets folder.
        var targetDirectory = Path.join([Configuration.getData().OUTPUT, "android", Configuration.getData().APP.FILE, "assets"]);

        var fileListToCopy = PathHelper.getRecursiveFileListUnderFolder(AssetProcessorRegister.pathToTemporaryAssetArea);
        for (file in fileListToCopy)
        {
            var targetFolder = Path.join([targetDirectory, Path.directory(file)]);
            PathHelper.mkdir(targetFolder);
            FileHelper.copyIfNewer(Path.join([AssetProcessorRegister.pathToTemporaryAssetArea, file]), Path.join([targetDirectory, file]));
        }

        PlatformBuildHelper.removeUnusedFiles( fileListToCopy, targetDirectory );
    }
{'fraction_non_alphanumeric': 0.09316770186335403, 'fraction_numerical': 0.0, 'mean_word_length': 3.854609929078014, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3226548', 'n_tokens_mistral': 748, 'n_tokens_neox': 723, 'n_words': 142}