Skip to content

Commit e3dd24d

Browse files
author
Fran Montiel
committed
Rename setBaseUrl from setBaseURL
1 parent 66814e3 commit e3dd24d

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

android/src/main/java/com/bugfender/react/RNBugfenderModule.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void init(String apiKey, boolean debug) {
3434

3535
@ReactMethod
3636
public void setBaseUrl(String baseUrl) {
37-
Bugfender.setBaseUrl(apiUrl);
37+
Bugfender.setBaseUrl(baseUrl);
3838
}
3939

4040
@ReactMethod
@@ -69,7 +69,7 @@ public void enableCrashReporting() {
6969

7070
@ReactMethod
7171
public void enableUIEventLogging() {
72-
Bugfender.enableUIEventLogging((Application) getReactApplicationContext().getApplicationContext());
72+
Bugfender.enableUIEventLogging(getApplication());
7373
}
7474

7575
@ReactMethod
@@ -115,7 +115,7 @@ public void log(int lineNumber, String method, String file, String rawLogLevel,
115115

116116
@ReactMethod
117117
public void sendIssue(String title, String text, Promise promise) {
118-
URL url = Bugfender.sendIssue (title, text);
118+
URL url = Bugfender.sendIssue(title, text);
119119
promise.resolve(url != null ? url.toString() : null);
120120
}
121121

@@ -127,7 +127,7 @@ public void sendCrash(String title, String text, Promise promise) {
127127

128128
@ReactMethod
129129
public void sendUserFeedback(String title, String text, Promise promise) {
130-
URL url = Bugfender.sendUserFeedback (title, text);
130+
URL url = Bugfender.sendUserFeedback(title, text);
131131
promise.resolve(url != null ? url.toString() : null);
132132
}
133133

bugfender.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default {
3838
* directed from technical support. This method must be called before Bugfender.init().
3939
* @param {string} url - base URL of the Bugfender's dashboard
4040
*/
41-
setBaseURL: baseURL => Bugfender.setBaseURL(baseURL),
41+
setBaseUrl: baseUrl => Bugfender.setBaseUrl(baseUrl),
4242

4343
/**
4444
* Sets the name for the device. If the Device Name is not set, then the platform standard device name will be automatically sent

ios/RNBugfender.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ @implementation RNBugfender
1818
[Bugfender setApiURL:url];
1919
}
2020

21-
RCT_EXPORT_METHOD(setBaseURL:(NSString *)apiUrl)
21+
RCT_EXPORT_METHOD(setBaseUrl:(NSString *)apiUrl)
2222
{
2323
NSURL *url = [NSURL URLWithString:apiUrl];
2424
[Bugfender setBaseURL:url];

0 commit comments

Comments
 (0)