Installation procedure for pre-build actions to automatically populate Xcode Info.plist with dynamic data.
Edit Xcode Scheme and add a pre-action script.
Copy the contents of preaction.sh
into the pre-action script box.
public let kShapeDashed : String = "kShapeDashed" | |
extension UIView { | |
func removeDashedBorder(_ view: UIView) { | |
view.layer.sublayers?.forEach { | |
if kShapeDashed == $0.name { | |
$0.removeFromSuperlayer() | |
} | |
} |
func compress(videoPath : String, exportVideoPath : String, renderSize : CGSize, completion : (Bool) -> ()) { | |
let videoUrl = NSURL(fileURLWithPath: videoPath) | |
if (!existsFileAtUrl(videoUrl)) { | |
completion(false) | |
return | |
} | |
let videoAssetUrl = AVURLAsset(URL: videoUrl, options: nil) | |
/*global __DEV__*/ | |
import StackTrace from 'stacktrace-js'; | |
const Fabric = require('react-native-fabric'); | |
const { Crashlytics } = Fabric; | |
//call this to start capturing any no-handled errors | |
exports.init = function(captrueOnDebugMode){ | |
if (__DEV__ && !captrueOnDebugMode) { | |
return; |
/* | |
* Copyright 2013 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
# iOS | |
app_identifier "com.myapp.app" # The bundle identifier of your app | |
apple_id "[email protected]" # Your Apple email address | |
team_id "1234ABCD" # Developer Portal Team ID | |
# Android | |
json_key_file "./google-play-api-secret.json" # Path to the json secret file - Follow https://github.com/fastlane/supply#setup to get one | |
package_name "com.myapp.app" # Your Android app package |
Installation procedure for pre-build actions to automatically populate Xcode Info.plist with dynamic data.
Edit Xcode Scheme and add a pre-action script.
Copy the contents of preaction.sh
into the pre-action script box.
private static WritableMap convertJsonToMap(JSONObject jsonObject) throws JSONException { | |
WritableMap map = new WritableNativeMap(); | |
Iterator<String> iterator = jsonObject.keys(); | |
while (iterator.hasNext()) { | |
String key = iterator.next(); | |
Object value = jsonObject.get(key); | |
if (value instanceof JSONObject) { | |
map.putMap(key, convertJsonToMap((JSONObject) value)); | |
} else if (value instanceof JSONArray) { |
RCTLogFunction CrashlyticsReactLogFunction = ^( | |
RCTLogLevel level, | |
__unused RCTLogSource source, | |
NSString *fileName, | |
NSNumber *lineNumber, | |
NSString *message | |
) | |
{ | |
NSString *log = RCTFormatLog([NSDate date], level, fileName, lineNumber, message); |
$ echo $PATH
/opt/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin:
/opt/android-sdk-macosx/tools/:/opt/android-sdk-macosx/platform-tools/:
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:
/opt/X11/bin:/usr/local/MacGPG2/bin
DATE;DEVICE0;DEVICE1;TEMP0;TEMP1;FAN0;FAN1 | |
1446127512;R9-390X-0;R9-390X-1;77;66;55;50 | |
1446127527;R9-390X-0;R9-390X-1;67;54;45;40 | |
1446127542;R9-390X-0;R9-390X-1;74;63;55;50 | |
1446127557;R9-390X-0;R9-390X-1;74;63;55;50 | |
1446127572;R9-390X-0;R9-390X-1;74;63;55;50 | |
1446127587;R9-390X-0;R9-390X-1;72;62;55;50 | |
1446127602;R9-390X-0;R9-390X-1;73;63;55;50 | |
1446127617;R9-390X-0;R9-390X-1;73;63;55;50 | |
1446127632;R9-390X-0;R9-390X-1;73;63;55;50 |