Xamarin.Android msbuild tasks
msbuild /t:Clean
msbuild /t:Build
msbuild /t:Rebuild
msbuild /t:Install
msbuild /t:UpdateAndroidResources
| using System; | |
| using System.Diagnostics; | |
| using Foundation; | |
| using Tink; | |
| namespace TnnCrypto | |
| { | |
| public class FileCrypto | |
| { | |
| private readonly ITINKAead _aead; |
| using Foundation; | |
| using Security; | |
| namespace TnnCrypto | |
| { | |
| public class DefaultKeychain | |
| { | |
| static DefaultKeychain() | |
| { | |
| string id = NSBundle.MainBundle.ObjectForInfoDictionary("CFBundleIdentifier")?.ToString() ?? ""; |
| using System; | |
| using Org.BouncyCastle.Crypto.Engines; | |
| using Org.BouncyCastle.Crypto.Modes; | |
| using Org.BouncyCastle.Crypto.Parameters; | |
| using Org.BouncyCastle.Security; | |
| namespace TnnCrypto | |
| { | |
| public class AesGcmAead | |
| { |
Xamarin.Android msbuild tasks
msbuild /t:Clean
msbuild /t:Build
msbuild /t:Rebuild
msbuild /t:Install
msbuild /t:UpdateAndroidResources
| #!/usr/bin/env bash | |
| # usage: sh resize.sh [PATH_TO_ICON_FOLDER] | |
| export MAGICK_HOME="$HOME/opt/ImageMagick-7.0.8" | |
| export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib/" | |
| src=$1 | |
| originfilepath="${src}/180x180.png" | |
| sizes=('20' '29' '40' '50' '57' '60' '58' '80' '72' '76' '87' '100' '114' '120' '144' '152' '167' '180' '1024') | |
| if test -f ${originfilepath}; then | |
| for s in ${sizes[@]}; do |
| cd ~/opt/foxitsoftware/foxitreader | |
| rm lib/libssl.so.10 | |
| rm lib/libcrypto.so.10 | |
| ln -s /lib64/libssl.so.10 lib/libssl.so.10 | |
| ln -s /lib64/libcrypto.so.10 lib/libcrypto.so.10 |
| private void AddKeyboardVisibilityHandler() | |
| { | |
| var decorView = Window.DecorView; | |
| decorView.ViewTreeObserver.GlobalLayout += OnViewTreeObserverGlobalLayoutChange; | |
| } | |
| private void RemoveKeyboardVisibilityHandler() | |
| { | |
| var decorView = Window.DecorView; | |
| decorView.ViewTreeObserver.GlobalLayout -= OnViewTreeObserverGlobalLayoutChange; |
| public static bool CheckIsModalVC(UIViewController viewController) | |
| { | |
| // find root | |
| var vc = viewController; | |
| while (vc.NavigationController != null) | |
| { | |
| vc = vc.NavigationController; | |
| } | |
| // check cur |
| Framework path: /Library/Frameworks | |
| VSTool Commandline tool of VS4Mac: /Applications/Visual Studio.app/Contents/MacOS/vstool | |
| Available tools: | |
| - build: Project build tool | |
| - dbgen: Parser database generation tool | |
| - project-export: Project conversion tool | |
| - gsetup: Graphical extension setup utility | |
| - archive: Project archiving tool | |
| - account: Xamarin account tool |
| <style name="AppTheme.Splash"> | |
| <item name="windowActionBar">false</item> | |
| <item name="windowNoTitle">true</item> | |
| <item name="android:statusBarColor">@android:color/transparent</item> | |
| <item name="android:navigationBarColor">@android:color/transparent</item> | |
| <item name="android:windowDrawsSystemBarBackgrounds">true</item> | |
| </style> |