-
5
pages
-
English
-
Documents
-
2015
Description
FAKE, the F# Make with Android and Xamarin What's FAKE? Fake is a DSL permitting to write advanced automated builds in FSharp. It can be used by beginners in FSharp because the DSL can hide some FSharp code comlexity. We can define multiple targets like in a Makefile. For example: letbuildDir ="./build/" Target"Clean"(fun_-> trace"cleaning ..." CleanDirbuildDir ) Target"Packages"(fun_-> trace"Restoring nugets" RestorePackages() ) Target"Compile"(fun_-> MSBuildReleaseandroidBuildDir"Build"!!"src/**/*.csproj" |>Log"AppBuild-Output: " // We use MSBuild and XBuild for .net projects but we can extend the DSL to use everything else ) Target"Tests"(fun_-> // we can run the unit tests ... ) Target"Install"(fun_-> // if we use an integration server, we can deploy the project // but we can also install an app like a classic "make install" buildDir |>directoryInfo |>filesInDir |>Seq.map (funf->f.FullName) |>CopyFiles ProgramFilesX86 ) // define the target ordering and dependencies "Clean" ==>"Packages" ==>"Compile" ==>"Tests" ==>"Install" // if no target is specified in args, we run "Install" RunTargetOrDefault"Install" Build an APK with FAKE Build and publish a simple APK Fake contains the XamarinHelper module helping developers to script their APK building. There is also the AndroidPublisher module permitting to upload the APK on the Google Play Store.
-
Publié par
-
Publié le
02 octobre 2015
-
Langue
English