<commit_before>// include Fake lib
#r @"packages\FAKE\tools\FakeLib.dll"

open Fake
open Fake.AssemblyInfoFile

// Directories
let buildDir  = @".\build\"
let packagesDir = @".\deploy\"

let authors = ["<NAME>"; "<NAME>"; "<NAME>";]

// project name and description
let projectName = "Duality.Android"
let projectDescription = "Duality with Android runtime"
let projectSummary = projectDescription // TODO: write a summary

let version = "0.1."+ buildVersion  


// Targets
Target "Clean" (fun _ ->
    CleanDirs [buildDir; packagesDir] 
)

Target "SetVersions" (fun _ ->
    CreateCSharpAssemblyInfo "./Properties/AssemblyInfo.cs"
        [Attribute.Title projectName
         Attribute.Description projectDescription
         Attribute.Product projectSummary
         Attribute.Version version
         Attribute.FileVersion version]
)

Target "RestorePackages" (fun _ ->
    !! "./**/packages.config"
        |> Seq.iter (RestorePackage (fun p ->
            { p with Sources = ["https://www.myget.org/F/6416d9912a7c4d46bc983870fb440d25/"]}))
)

Target "BuildUnsafe" (fun _ ->          
    let buildMode = getBuildParamOrDefault "buildMode" "Release"
    let setParams defaults =
        { defaults with
            Verbosity = Some(Normal)            
            Properties =
                [            
                    "Configuration", buildMode                    
                    "AllowUnsafeBlocks", "True"
                ]
        }
    build setParams "./Duality.android.sln"    
    |> DoNothing  
)

Target "AndroidPack" (fun _ ->         
    NuGet (fun p -> 
        {p with 
            Authors = authors
            Project = projectName
            Description = projectDescription      
            Version = if isLocalBuild then "0.1-loc" else "0.1."+ buildVersion
            AccessKey = getBuildParamOrDefault "nugetkey" ""
            Publish = hasBuildParam "nugetkey"
            PublishUrl = getBuildParamOrDefault "nugetUrl" ""            
            WorkingDir = @".\"
            OutputPath = packagesDir
            Dependencies = [                            
                            "Farseer.Duality.Android","0.1.7"
                            ]
        }) "NuGetPackageSpecs/duality.android.nuspec"
)<commit_msg>remove dependecies<commit_after>// include Fake lib
#r @"packages\FAKE\tools\FakeLib.dll"

open Fake
open Fake.AssemblyInfoFile

// Directories
let buildDir  = @".\build\"
let packagesDir = @".\deploy\"

let authors = ["<NAME>"; "<NAME>"; "<NAME>";]

// project name and description
let projectName = "Duality.Android"
let projectDescription = "Duality with Android runtime"
let projectSummary = projectDescription // TODO: write a summary

let version = "0.1."+ buildVersion  


// Targets
Target "Clean" (fun _ ->
    CleanDirs [buildDir; packagesDir] 
)

Target "SetVersions" (fun _ ->
    CreateCSharpAssemblyInfo "./Properties/AssemblyInfo.cs"
        [Attribute.Title projectName
         Attribute.Description projectDescription
         Attribute.Product projectSummary
         Attribute.Version version
         Attribute.FileVersion version]
)

Target "RestorePackages" (fun _ ->
    !! "./**/packages.config"
        |> Seq.iter (RestorePackage (fun p ->
            { p with Sources = ["https://www.myget.org/F/6416d9912a7c4d46bc983870fb440d25/"]}))
)

Target "BuildUnsafe" (fun _ ->          
    let buildMode = getBuildParamOrDefault "buildMode" "Release"
    let setParams defaults =
        { defaults with
            Verbosity = Some(Normal)            
            Properties =
                [            
                    "Configuration", buildMode                    
                    "AllowUnsafeBlocks", "True"
                ]
        }
    build setParams "./Duality.android.sln"    
    |> DoNothing  
)

Target "AndroidPack" (fun _ ->         
    NuGet (fun p -> 
        {p with 
            Authors = authors
            Project = projectName
            Description = projectDescription      
            Version = if isLocalBuild then "0.1-loc" else "0.1."+ buildVersion
            AccessKey = getBuildParamOrDefault "nugetkey" ""
            Publish = hasBuildParam "nugetkey"
            PublishUrl = getBuildParamOrDefault "nugetUrl" ""            
            WorkingDir = @".\"
            OutputPath = packagesDir
            Dependencies = []
        }) "NuGetPackageSpecs/duality.android.nuspec"
)
{'fraction_non_alphanumeric': 0.10448776065276519, 'fraction_numerical': 0.013825929283771533, 'mean_word_length': 1.926392572944297, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 27, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '6374560', 'n_tokens_mistral': 1254, 'n_tokens_neox': 1191, 'n_words': 282}