Exemplo n.º 1
0
 public void BuildReleaseApplication()
 {
     var proj = new XamarinAndroidApplicationProject () {
         IsRelease = true,
     };
     using (var b = CreateApkBuilder (Path.Combine ("temp", TestContext.CurrentContext.Test.Name))) {
         Assert.IsTrue (b.Build (proj), "Build should have succeeded.");
     }
 }
Exemplo n.º 2
0
 public void BuildReleaseApplicationWithNugetPackages()
 {
     var proj = new XamarinAndroidApplicationProject () {
         IsRelease = true,
         Packages = {
             KnownPackages.AndroidSupportV4_21_0_3_0,
         },
     };
     using (var b = CreateApkBuilder (Path.Combine ("temp", TestContext.CurrentContext.Test.Name))) {
         Assert.IsTrue (b.Build (proj), "Build should have succeeded.");
         DirectoryAssert.Exists (Path.Combine (Root, "temp","packages", "Xamarin.Android.Support.v4.21.0.3.0"),
                                 "Nuget Package Xamarin.Android.Support.v4.21.0.3.0 should have been restored.");
     }
 }