From d03529fd3226efe34d9d2e512d3240fcc72ad058 Mon Sep 17 00:00:00 2001 From: Vijay Sharma Date: Sun, 8 Jul 2018 09:18:41 -0400 Subject: [PATCH] Fixed react native build --- .../java/com/testfairy/react/TestFairyModule.java | 2 +- index.js | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/android/src/main/java/com/testfairy/react/TestFairyModule.java b/android/src/main/java/com/testfairy/react/TestFairyModule.java index ad8d42b..6b4ce55 100644 --- a/android/src/main/java/com/testfairy/react/TestFairyModule.java +++ b/android/src/main/java/com/testfairy/react/TestFairyModule.java @@ -266,7 +266,7 @@ public class TestFairyModule extends ReactContextBaseJavaModule { runOnUi(new Runnable() { @Override public void run() { - TestFairy.enableVideo(policy, quality, ramesPerSecond); + TestFairy.enableVideo(policy, quality, framesPerSecond); } }); } diff --git a/index.js b/index.js index 3cc3109..1fd555a 100644 --- a/index.js +++ b/index.js @@ -204,12 +204,12 @@ class TestFairy { /** * Enables recording of a metric regardless of build settings. - * Valid values include "cpu", "memory", "logcat", "battery", "network-requests" + * Valid values include 'cpu', 'memory', 'logcat', 'battery', 'network-requests' * A metric cannot be enabled and disabled at the same time, therefore * if a metric is also disabled, the last call to enable to disable wins. * Must be called be before begin. */ - static enableMetric(String metric) { + static enableMetric(metric) { TestFairyBridge.enableMetric(metric); } @@ -220,7 +220,7 @@ class TestFairy { * if a metric is also disabled, the last call to enable to disable wins. * Must be called be before begin. */ - static disableMetric(String metric) { + static disableMetric(metric) { TestFairyBridge.disableMetric(metric); } @@ -231,7 +231,7 @@ class TestFairy { * Values for fps must be between 0.1 and 2.0. Value will be rounded to * the nearest frame. */ - static enableVideo(String policy, String quality, float framesPerSecond) { + static enableVideo(policy, quality, framesPerSecond) { TestFairyBridge.enableVideo(policy, quality, framesPerSecond); } @@ -250,7 +250,7 @@ class TestFairy { * the value defined in the build settings will be * used. Must be called before begin. */ - static enableFeedbackForm(String method) { + static enableFeedbackForm(method) { TestFairyBridge.enableFeedbackForm(method); } @@ -271,7 +271,7 @@ class TestFairy { * Time is rounded to the nearest minute. * Must be called before begin. */ - static setMaxSessionLength(float seconds) { + static setMaxSessionLength(seconds) { TestFairyBridge.setMaxSessionLength(seconds); } }