<commit_before>#r @"packages/FAKE.3.5.4/tools/FakeLib.dll"
#load "build-helpers.fsx"
open Fake
open System
open System.IO
open System.Linq
open BuildHelpers
open Fake.XamarinHelper

let version = "1.0.0"
let project = "iOS4Unity"
let files = [|"Assets/iOS4Unity.dll"|]
let projectInUnity = "Assets/" + project

Target "clean" (fun () ->
    Exec "rm" "-Rf iOS4Unity/bin iOS4Unity/obj Assets/iOS4Unity.dll Assets/iOS4Unity.dll.meta iOS4Unity.unityPackage"
    if not(Directory.Exists(projectInUnity)) then
        Exec "git" "reset --hard HEAD"
)

Target "dll" (fun () ->
    let output = Path.Combine(project, "bin", "Release")
    let csproj = Path.Combine(project, project + ".csproj")
    MSBuild output "Build" [ ("Configuration", "Release") ] [ csproj ] |> ignore
)

Target "unity" (fun () ->
    Exec "rm" ("-Rf " + projectInUnity)
    Exec "cp" (Path.Combine(project, "bin", "Release", (project + ".dll")) + " Assets/")
    Unity(String.Join(" ", files))
)

"clean" ==> "dll"
"dll" ==> "unity"

RunTarget()<commit_msg>Moving DLL to Plugins folder<commit_after>#r @"packages/FAKE.3.5.4/tools/FakeLib.dll"
#load "build-helpers.fsx"
open Fake
open System
open System.IO
open System.Linq
open BuildHelpers
open Fake.XamarinHelper

let version = "1.0.0"
let project = "iOS4Unity"
let files = [|"Assets/Plugins/iOS4Unity.dll"|]
let cleanFiles = [|
  "iOS4Unity/bin";
  "iOS4Unity/obj";
  "Assets/Plugins";
  "Assets/Plugins.meta"
  "iOS4Unity.unityPackage"
|]
let projectInUnity = "Assets/" + project

Target "clean" (fun () ->

    for file in cleanFiles do
        if File.Exists(file) then
            File.Delete(file)
        else if Directory.Exists(file) then
            Directory.Delete(file, true)

    if not(Directory.Exists(projectInUnity)) then
        Exec "git" "reset --hard HEAD"
)

Target "dll" (fun () ->
    let output = Path.Combine(project, "bin", "Release")
    let csproj = Path.Combine(project, project + ".csproj")
    MSBuild output "Build" [ ("Configuration", "Release") ] [ csproj ] |> ignore
)

Target "unity" (fun () ->
    Exec "rm" ("-Rf " + projectInUnity)
    Exec "mkdir" "Assets/Plugins"
    Exec "cp" (Path.Combine(project, "bin", "Release", (project + ".dll")) + " Assets/Plugins")
    Unity(String.Join(" ", files))
)

"clean" ==> "dll"
"dll" ==> "unity"

RunTarget()
{'fraction_non_alphanumeric': 0.17063663923776526, 'fraction_numerical': 0.01039411000433088, 'mean_word_length': 3.6761133603238867, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '3330415', 'n_tokens_mistral': 885, 'n_tokens_neox': 828, 'n_words': 200}