-
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(functions):
callByUrl
method on Android (#673)
* fix callByUrl method * fix format
- Loading branch information
1 parent
3aec743
commit 5d918e4
Showing
2 changed files
with
9 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 6 additions & 4 deletions
10
...o/capawesome/capacitorjs/plugins/firebase/functions/classes/options/CallByUrlOptions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
package io.capawesome.capacitorjs.plugins.firebase.functions.classes.options; | ||
|
||
import androidx.annotation.NonNull; | ||
import java.net.MalformedURLException; | ||
import java.net.URL; | ||
|
||
public class CallByUrlOptions extends CallOptions { | ||
|
||
@NonNull | ||
private String url; | ||
private URL url; | ||
|
||
public CallByUrlOptions(@NonNull String url, Object data) { | ||
public CallByUrlOptions(@NonNull String url, Object data) throws MalformedURLException { | ||
super(data); | ||
this.url = url; | ||
this.url = new URL(url); | ||
} | ||
|
||
@NonNull | ||
public String getUrl() { | ||
public URL getUrl() { | ||
return url; | ||
} | ||
} |