Skip to content

Instantly share code, notes, and snippets.

View bmourat's full-sized avatar

Murat Baysangurov bmourat

View GitHub Profile
Error during login: Optional(Error Domain = com.Microsoft.MicrosoftAzureMobile.ErrorDomain Code = -1302 "{"
code ":401,"
message ":"
IDX10503: Signature validation failed.Keys tried: 'System.IdentityModel.Tokens.X509AsymmetricSecurityKey\u000d\u000aSystem.IdentityModel.Tokens.X509AsymmetricSecurityKey\u000d\u000aSystem.IdentityModel.Tokens.X509AsymmetricSecurityKey\u000d\u000a'.\u000aExceptions caught: \u000a 'System.InvalidOperationException: IDX10618: AsymmetricSecurityKey.GetHashAlgorithmForSignature( '
http: \/\/www.w3.org\/2001\/04\/xmldsig-more#hmac-sha256' ) threw an exception.\u000aAsymmetricSecurityKey: 'System.IdentityModel.Tokens.X509AsymmetricSecurityKey'\u000aSignatureAlgorithm: 'http:\/\/www.w3.org\/2001\/04\/xmldsig-more#hmac-sha256', check to make sure the SignatureAlgorithm is supported.\u000aException: 'System.NotSupportedException: Crypto algorithm 'http:\/\/www.w3.org\/2001\/04\/xmldsig-more#hmac-sha256' not supported in this context.\u000d\u000a at System.IdentityModel.Tokens.X5
package com.test1;
import android.app.Application;
import com.facebook.react.ReactApplication;
import com.microsoft.appcenter.reactnative.push.AppCenterReactNativePushPackage;
import com.microsoft.appcenter.reactnative.crashes.AppCenterReactNativeCrashesPackage;
import com.microsoft.appcenter.reactnative.analytics.AppCenterReactNativeAnalyticsPackage;
import com.microsoft.appcenter.reactnative.appcenter.AppCenterReactNativePackage;
import com.facebook.react.ReactNativeHost;
/*
* Version: 5.0.0
*/
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System;
using System.IO;
using System.Runtime.InteropServices;
@bmourat
bmourat / MakeTVOSFramework.sh
Created August 1, 2017 19:30
MakeTVOSFramework for OCMockito
# First build the OS X framework to get its folder structure.
xcodebuild -configuration Release -target OCMockito -sdk macosx
# We'll copy the OS X framework to a new location, then modify it in place.
OSX_FRAMEWORK="build/Release/OCMockito.framework/"
TVOS_FRAMEWORK="build/Release/OCMockitoTVOS.framework/"
# Trigger builds of the static library for both the simulator and the device.
xcodebuild -configuration Release -target libocmockito -sdk appletvos10.0
OUT=$?
@bmourat
bmourat / MakeTVOSFramework.sh
Created August 1, 2017 19:28
MakeTVOSFramework for OCHamcrest
# First build the OS X framework to get its folder structure.
xcodebuild -configuration Release -target OCHamcrest -sdk macosx
# We'll copy the OS X framework to a new location, then modify it in place.
OSX_FRAMEWORK="build/Release/OCHamcrest.framework/"
TVOS_FRAMEWORK="build/Release/OCHamcrestTVOS.framework/"
# Trigger builds of the static library for both the simulator and the device.
xcodebuild -configuration Release -target libochamcrest -sdk appletvos10.0
OUT=$?