This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: 2 | |
| jobs: | |
| build: | |
| working_directory: ~/code | |
| docker: | |
| - image: circleci/android:api-25-alpha | |
| environment: | |
| JVM_OPTS: -Xmx3200m | |
| steps: | |
| - checkout |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using Android.Content; | |
| using Android.Runtime; | |
| using Android.Util; | |
| using Android.Views; | |
| namespace TNUtils.Droid | |
| { | |
| [Register("tnutils.droid.VerticalTextView")] | |
| public class VerticalTextView : Android.Support.V7.Widget.AppCompatTextView |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @interface FaceDetector : NSObject | |
| - (id) initWithFaceCascade:(NSString*) filePath; | |
| - (NSArray*) detectFaces:(UIImage*) image; | |
| @end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| namespace MyApp.Droid | |
| { | |
| public class AndroidClientHandlerLinkerOverride | |
| { | |
| public void Include() | |
| { | |
| var handler = new Xamarin.Android.Net.AndroidClientHandler(); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void applyTheme() { | |
| //Option 1: //Recreate screen | |
| // recreate(); | |
| //Option 2: Start and Finish with Animation | |
| startActivity(new Intent(this, this.getClass())); | |
| finish(); | |
| // overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out); | |
| overridePendingTransition(0, 0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sharpie bind -scope KYDrawerController.framework/Headers KYDrawerController.framework/Headers/KYDrawerController-Swift.h -sdk iphoneos10.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <IOSDebuggerHosts>10.1.1.222</IOSDebuggerHosts> | |
| <IOSDebuggerConnectOverUsb>False</IOSDebuggerConnectOverUsb> | |
| <IOSDebugOverWiFi>true</IOSDebugOverWiFi> | |
| <IOSDebuggerPort>10001</IOSDebuggerPort> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defaults write com.apple.DiskUtility advanced-image-options 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (UIDevice.CurrentDevice.CheckSystemVersion(10, 0)) | |
| { | |
| var center = UNUserNotificationCenter.Current; | |
| center.RequestAuthorization(UNAuthorizationOptions.Sound | UNAuthorizationOptions.Alert | UNAuthorizationOptions.Badge, (bool arg1, NSError error) => | |
| { | |
| InvokeOnMainThread(() => | |
| { | |
| if (error == null) | |
| { | |
| UIApplication.SharedApplication.RegisterForRemoteNotifications(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ macOS\ Sierra.app --nointeraction |