Skip to content

Instantly share code, notes, and snippets.

View muhaym's full-sized avatar

Abdul Muhaymin Arif muhaym

View GitHub Profile
@muhaym
muhaym / ConvertPackagestoCSProj.cs
Created March 10, 2018 19:47
Code for converting Nuget References from packages.config to .netstandard .csproj
using System.Collections.Generic;
using System.Xml.Serialization;
using System.IO;
namespace ConvertPackagestoCSProj
{
[XmlRoot(ElementName = "package")]
public class Package
{
[XmlAttribute(AttributeName = "id")]
public static MobileServiceClient MobileService =
new MobileServiceClient("https://eblooddonate.azurewebsites.net");
public static async Task<Result<bool>> AddBloodAsync(Donors donor)
{
var result = new Result<bool>();
try
{
await MobileService.GetTable<Donors>().InsertAsync(donor);
result.Status = 100;
result.data = true;
# The support library contains references to newer platform versions.
# Don't warn about those in case this app is linking against an older
# platform version. We know about them, and they are safe.
-dontwarn android.support.**
-keepattributes Signature
-keepattributes *Annotation*
-keep class com.squareup.okhttp.** { *; }
-keep interface com.squareup.okhttp.** { *; }
-dontwarn com.squareup.okhttp.**
# Okio