Skip to content

Instantly share code, notes, and snippets.

@rf10ster
rf10ster / add_record_flag.sh
Created January 10, 2023 14:40 — forked from ManWithBear/add_record_flag.sh
Adds -record command line argument to test run in Xcode.
#!/bin/bash
# Add -record flag to iOSUITests test run
# By default run all tests. If test name passed as argument, run tests only for this testcase
# setup destinations
export currentDirectory="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Name of simulators to run tests on
@rf10ster
rf10ster / Framework2XCFramework.sh
Created January 17, 2021 00:19 — forked from acidlynx/Framework2XCFramework.sh
This script allows to convert an iOS framework binary to XCFramework
# Copyright (c) 2020 Eugene Berdnikov
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
ACTION = build
AD_HOC_CODE_SIGNING_ALLOWED = NO
ALTERNATE_GROUP = staff
ALTERNATE_MODE = u+w,go-w,a+rX
ALTERNATE_OWNER = grantdavis
ALWAYS_SEARCH_USER_PATHS = NO
ALWAYS_USE_SEPARATE_HEADERMAPS = YES
APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer
APPLE_INTERNAL_DIR = /AppleInternal
APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation
@rf10ster
rf10ster / RCTSwiftBridgeModule.h
Created April 11, 2018 09:23 — forked from robertjpayne/RCTSwiftBridgeModule.h
React Native - Swift Native Modules
#import <Foundation/Foundation.h>
#import "RCTBridgeModule.h"
#define RCT_EXTERN_MODULE(objc_name, objc_supername) \
RCT_EXTERN_REMAP_MODULE(objc_name, objc_name, objc_supername)
#define RCT_EXTERN_REMAP_MODULE(js_name, objc_name, objc_supername) \
objc_name : objc_supername \
@end \
@interface objc_name (RCTExternModule) <RCTBridgeModule> \