Skip to content

Instantly share code, notes, and snippets.

View SudoPlz's full-sized avatar
💥
shipit

Ioannis Kokkinidis SudoPlz

💥
shipit
View GitHub Profile
/**
* @param string $parentAccountName - the account id you want to fetch locations for (i.e. accounts/105837778216009211413)
* @param array|string|null $readMask - the fields you want to include in the response, available fields here https://developers.google.com/my-business/reference/businessinformation/rest/v1/locations#resource:-location
* @return array
* @throws Exception
*/
public function getAllLocationsForAccount(string $parentAccountName, array|string|null $readMask = "name,title,storecode,labels"): array
{
$businessInformationService = new MyBusinessBusinessInformation($this->client);
try {
@SudoPlz
SudoPlz / react-native.patch
Created October 23, 2023 17:59
React-Native RCTLinking patch to never miss deep links
diff --git a/node_modules/react-native/Libraries/LinkingIOS/RCTLinkingManager.mm b/node_modules/react-native/Libraries/LinkingIOS/RCTLinkingManager.mm
index cfa9078..6a3daf5 100644
--- a/node_modules/react-native/Libraries/LinkingIOS/RCTLinkingManager.mm
+++ b/node_modules/react-native/Libraries/LinkingIOS/RCTLinkingManager.mm
@@ -18,15 +18,19 @@
static void postNotificationWithURL(NSURL *URL, id sender)
{
+
NSDictionary<NSString *, id> *payload = @{@"url" : URL.absoluteString};
diff --git a/node_modules/@react-native-community/datetimepicker/ios/RNDateTimePickerManager.m b/node_modules/@react-native-community/datetimepicker/ios/RNDateTimePickerManager.m
index d1cd1cd..817f6c9 100644
--- a/node_modules/@react-native-community/datetimepicker/ios/RNDateTimePickerManager.m
+++ b/node_modules/@react-native-community/datetimepicker/ios/RNDateTimePickerManager.m
@@ -31,13 +31,16 @@ @implementation RCTConvert(UIDatePicker)
@end
-@implementation RNDateTimePickerManager
+@implementation RNDateTimePickerManager {
diff --git a/node_modules/react-native-navigation/ReactNativeNavigation.podspec b/node_modules/react-native-navigation/ReactNativeNavigation.podspec
index e960e50..2ad453a 100644
--- a/node_modules/react-native-navigation/ReactNativeNavigation.podspec
+++ b/node_modules/react-native-navigation/ReactNativeNavigation.podspec
@@ -33,7 +33,5 @@ Pod::Spec.new do |s|
end
s.dependency 'React'
- s.dependency 'React-RCTImage'
- s.dependency 'React-RCTText'
package com.acuityscheduling.app.android.Calendar.React;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.bridge.ReadableMap;
import com.facebook.react.uimanager.ShadowNodeRegistry;
import com.facebook.react.uimanager.ThemedReactContext;
import com.facebook.react.uimanager.UIImplementation;
import com.facebook.react.uimanager.UIManagerModule;
import com.facebook.react.uimanager.ViewManager;
import _ from 'underscore';
export default class HoldList {
constructor() {
this.holdList = [];
this.runningRequestCnt = 0;
}
invokeAll(err, exclude) {
2017-11-01 23:00:18.938794+0200 AcuityApp[79879:2504854] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFData isEqualToString:]: unrecognized selector sent to instance 0x6040000bc570'
*** First throw call stack:
(
0 CoreFoundation 0x000000010f4f51cb __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010df5af41 objc_exception_throw + 48
2 CoreFoundation 0x000000010f575914 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x000000010f478178 ___forwarding___ + 1432
4 CoreFoundation 0x000000010f477b58 _CF_forwarding_prep_0 + 120
5 Valet 0x00000001230ba860 -[VALValet migrateObjectsMatchingQuery:removeOnCompletion:] + 2759
6 SquarePaymentSDK 0x0000000109b2d3b4 -[SQSession initWithKeychain:trustedDeviceDetailsPersister:] + 480
import { Client, Configuration } from 'bugsnag-react-native';
module.exports = { // cached singleton instance
instance: null,
create(key, store, codeBundleId) {
if (this.instance === null) {
if (key == null) {
@SudoPlz
SudoPlz / file.in
Last active June 6, 2017 20:07
That js file reads a `file.in` input file that contains prop types declarations and outputs an `file.out` file that will act as our shouldComponentUpdate react method. Run it by typing node shouldComponentUpdateCreator.js on your terminal.
screenHasLoaded: React.PropTypes.bool.isRequired,
isPartOfClass: React.PropTypes.bool.isRequired,
appointment: React.PropTypes.instanceOf(Map).isRequired,
// formErrors: React.PropTypes.instanceOf(Map).isRequired,
// timezoneZ: React.PropTypes.string.isRequired,
// isModal: React.PropTypes.bool.isRequired,
isClass: React.PropTypes.bool.isRequired,
classSize: React.PropTypes.number,
h: React.PropTypes.number.isRequired,