Skip to content

Instantly share code, notes, and snippets.

View juucustodio's full-sized avatar

Juliano Custódio juucustodio

View GitHub Profile
@juucustodio
juucustodio / appcenter-config.json
Created April 27, 2020 17:19
Adicionando o plugin do App Center em uma aplicação React Native - 20 dias com App Center / Dia 13 - http://julianocustodio.com/appcenter-13
{
"app_secret": "d1cc8793-cbfb-4eae-b64a-c48960781c97"
}
#!/bin/bash
find $APPCENTER_SOURCE_DIRECTORY -name '*.sln' -print0 | xargs -0 -n1 nuget restore -DisableParallelProcessing
$CODE_SECTION
#!/bin/bash
find $APPCENTER_SOURCE_DIRECTORY -name '*.sln' -print0 | xargs -0 -n1 nuget restore -DisableParallelProcessing
$CODE_SECTION
@juucustodio
juucustodio / App.xaml.cs
Created January 15, 2020 13:50
Example of how to use Background Services in Xamarin.Forms applications. - http://julianocustodio.com/background-services
using DemoBackground.Services;
using Matcha.BackgroundService;
using Xamarin.Forms;
namespace DemoBackground
{
public partial class App : Application
{
public App()
{
@juucustodio
juucustodio / BackgroundService.cs
Created January 15, 2020 13:49
Example of how to use Background Services in Xamarin.Forms applications. - http://julianocustodio.com/background-services
using System;
using System.Threading.Tasks;
using Matcha.BackgroundService;
namespace DemoBackground.Services
{
public class BackgroundService : IPeriodicTask
{
public TimeSpan Interval { get; set; }
@juucustodio
juucustodio / AppDelegate.cs
Created January 4, 2020 12:59
Example of how to use Background Services in Xamarin.Forms applications. - http://julianocustodio.com/background-services
using Foundation;
using Matcha.BackgroundService.iOS;
using UIKit;
namespace DemoBackground.iOS
{
[Register("AppDelegate")]
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
{
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
@juucustodio
juucustodio / MainActivity.cs
Created January 4, 2020 12:55
Example of how to use Background Services in Xamarin.Forms applications. - http://julianocustodio.com/background-services
using Android.App;
using Android.Content.PM;
using Android.Runtime;
using Android.OS;
using Matcha.BackgroundService.Droid;
namespace DemoBackground.Droid
{
[Activity(Label = "DemoBackground", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
@juucustodio
juucustodio / PushPage.xaml.cs
Created October 21, 2019 02:06
Example of setting page navigation animations for your Xamarin.Forms applications - http://julianocustodio.com/animationnavigationpage
using FormsControls.Base;
using Xamarin.Forms;
namespace DemoNavigation
{
public partial class PushPage : ContentPage, IAnimationPage
{
public IPageAnimation PageAnimation { get; } = new PushPageAnimation
{
Duration = AnimationDuration.Long,
@juucustodio
juucustodio / RotatePage.xaml.cs
Created October 21, 2019 02:04
Example of setting page navigation animations for your Xamarin.Forms applications - http://julianocustodio.com/animationnavigationpage
using FormsControls.Base;
using Xamarin.Forms;
namespace DemoNavigation
{
public partial class RotatePage : ContentPage, IAnimationPage
{
public IPageAnimation PageAnimation { get; } = new RotatePageAnimation
{
Duration = AnimationDuration.Long,
@juucustodio
juucustodio / RollPage.xaml.cs
Created October 21, 2019 02:01
Example of setting page navigation animations for your Xamarin.Forms applications - http://julianocustodio.com/animationnavigationpage
using FormsControls.Base;
using Xamarin.Forms;
namespace DemoNavigation
{
public partial class RollPage : ContentPage, IAnimationPage
{
public IPageAnimation PageAnimation { get; } = new RollPageAnimation
{
Duration = AnimationDuration.Long,