Skip to content

Instantly share code, notes, and snippets.

View Sweekriti91's full-sized avatar
🐼
Hullabaloo

Sweekriti Satpathy Sweekriti91

🐼
Hullabaloo
View GitHub Profile
@Sweekriti91
Sweekriti91 / install_xam.sh
Last active March 21, 2024 19:05
Install Xamarin Components in macOS-13 VM Images AzDO and GitHub
#!/bin/bash
# Define the version (replace with your version numbers)
version_xam_ios="16.4.0.23"
version_xam_android="13.2.2.0"
# version_mono="your_version_number"
# Define the URL for the package
# Using URls from https://github.com/actions/runner-images/blob/main/images/macos/scripts/helpers/xamarin-utils.sh
ios_pkg_url="https://dl.xamarin.com/MonoTouch/Mac/xamarin.ios-$version_xam_ios.pkg"
@Sweekriti91
Sweekriti91 / azure_pipeline.yml
Created October 2, 2023 21:22
AzDO dotnetTest rerun VSTest@3 Task
trigger:
- main
pool:
vmImage: 'windows-2022'
demands:
- MSBuild
steps:
@Sweekriti91
Sweekriti91 / azure_pipeline.yml
Last active October 5, 2023 20:10
AzDO dotnetTest rerun yaml
trigger:
- main
pool:
vmImage: 'windows-2022'
demands:
- MSBuild
steps:
@Sweekriti91
Sweekriti91 / version_change.sh
Created August 24, 2023 22:43
bash script Version Changes for CI
#!/usr/bin/env bash
#
# For Xamarin Android or iOS, change the version name located in AndroidManifest.xml and Info.plist.
# IMPORTANT, SET VALUES FOR : $VERSION_NAME, ANDROID_MANIFEST_FILE,INFO_PLIST_FILE
if [ -z "$VERSION_NAME" ]
then
echo "You need define the VERSION_NAME environment variable"
exit
fi
@Sweekriti91
Sweekriti91 / mauixamarinlibs.md
Last active January 19, 2024 19:49
Xamarin Libraries with .NET MAUI Support/Versions
name: Build MacCatalyst
# https://github.com/actions/virtual-environments
on:
# push:
# branches: [ main ]
# pull_request:
# branches: [ main ]
name: Build Windows Desktop
# https://github.com/actions/virtual-environments
on:
# push:
# branches: [ main ]
# pull_request:
# branches: [ main ]
@Sweekriti91
Sweekriti91 / windows-dev.yml
Created December 6, 2021 21:48
Dev Pipeline for MAUI WinUI App
name: Build Windows Desktop
# https://github.com/actions/virtual-environments
on:
push:
branches: [ main ]
# pull_request:
# branches: [ main ]
@Sweekriti91
Sweekriti91 / Android WebViewRenderer
Created February 6, 2021 01:10
XF Origin null is not allowed by Access-Control-Allow-Origin
using Android.Content;
using CustomRenderer;
using CustomRenderer.Droid;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
[assembly: ExportRenderer(typeof(HybridWebView), typeof(HybridWebViewRenderer))]
namespace CustomRenderer.Droid
{
public class HybridWebViewRenderer : WebViewRenderer
@Sweekriti91
Sweekriti91 / GradientBack.cs
Last active June 26, 2020 19:14
Black to Transparent Gradient
using System;
using SkiaSharp;
using SkiaSharp.Views.Forms;
using Xamarin.Forms;
namespace XamCAT.Forms.Controls
{
public class GradientBack : ContentView
{
public GradientBack()