Skip to content

Instantly share code, notes, and snippets.

@mostafa-elabady
mostafa-elabady / internal-release.yaml
Created May 2, 2021 15:37
Internal release workflow for android using github actions
name: Release
on:
# Triggers the workflow on every push to master
push:
branches:
- master
workflow_dispatch:
@mostafa-elabady
mostafa-elabady / pr-check.yaml
Created May 2, 2021 12:37
PR Github Actions workflow for Android
name: Check PR
on:
# Triggers the workflow on every pull request to master branch
pull_request:
branches:
- master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
org.gradle.daemon=false
org.gradle.parallel=true
kotlin.incremental=false
@mostafa-elabady
mostafa-elabady / .cs
Last active November 24, 2016 14:27
XML Serialization UWP
public abstract class Request<TResponseType> where TResponseType : new()
{
public async Task<ResponseContent> ExecuteAsync<TResponseType>() where TResponseType : new()
{
if (NetworkInformation.IsInternetAvailable())
{
try
{
#region XML Request
if (ResponseFormat == ResponseTypes.XML)