Skip to content

Instantly share code, notes, and snippets.

View logeshpalani33's full-sized avatar

Logesh Palani logeshpalani33

View GitHub Profile
// Add below lines based on requirements in Metadata.xml
// Remove the class, method Metadata.xml file.
<remove-node path="/api/package[@name='com.example']/class[@name='ProblemClass']" />
// Rename the class, method or parameter
<attr path="/api/package[@name='com.example']/class[@name='ProblemClass']" name="managedName">FixedClass</attr>
// Changing the return type or parameter type of a method
<attr path="/api/package[@name='com.example']/class[@name='ProblemClass']/method[@name='problemMethod']" name="return">fixedReturnType</attr>
using MauiLibrary;
namespace CustomClusterMaui;
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="CustomClusterMaui.MainPage">
<VerticalStackLayout
Padding="30,0"
Spacing="25">
<Button
x:Name="getMusicGlobalBtn"
using Android.Runtime;
using Com.Spotify.MusicRecommendation;
using Com.Spotify.MusicRecommendation.Model;
using Kotlin.Jvm.Functions;
namespace MauiLibrary;
// All the code in this file is only included on Android.
public class MusicRecommendationWrapper
{
<ItemGroup Condition="$(TargetFramework.Contains('-android'))">
<ProjectReference Include="..\JavaBinding\JavaBinding.csproj" />
</ItemGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0-android;</TargetFramework>
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Xamarin.AndroidX.Core.SplashScreen" Version="1.0.1.2" />-->
<PackageReference Include="Xamarin.Kotlin.StdLib.Jdk8" Version="1.9.0.1" />
name: Azure Static Web Apps CI/CD
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Extensions.Logging;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Api
{
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"FUNCTIONS_WORKER_RUNTIME": "dotnet",
"CosmosDbConnectionString": "AccountEndpoint=https://azkonfcosmosdb.documents.azure.com:443/; AccountKey=TtFnIQ3YJQeCSKQ6hq3A9M0Jzq1nKAtcefVcHnCVXLY5cSEnzKnBwnQ9vecrR0POAdOeFJUqqImKMEhWAJ6mVg==;",
"BlobConnectionString": "DefaultEndpointsProtocol=https;AccountName=azkonfblob;AccountKey=/KB0t2issyV8qQXXr/wU6CJDd6fPFMG2xo2tdMwSt9U+lX2VWUbau2v402Agt7NXGv3vBDxUfAw==;EndpointSuffix=core.windows.net"
}
}
using Azure.Storage.Blobs;
using Azure.Storage.Blobs.Models;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;