Skip to content

Commit

Permalink
fix setting license android
Browse files Browse the repository at this point in the history
  • Loading branch information
chaimPaneth committed Mar 11, 2022
1 parent 7c326bf commit b370b8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ public PlaylistItem getPlaylistItem (ReadableMap playlistItem) {

public void setConfig(ReadableMap prop) {
if (prop.hasKey("license")) {
new LicenseUtil().setLicenseKey(getReactContext(), "YOUR_LICENSE_KEY");
new LicenseUtil().setLicenseKey(getReactContext(), prop.getString("license"));
} else {
Log.e(TAG, "JW SDK license not set");
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-jw-media-player",
"version": "0.2.8",
"version": "0.2.9",
"description": "React-native Android/iOS plugin for JWPlayer SDK (https://www.jwplayer.com/)",
"main": "index.js",
"types": "./index.d.ts",
Expand Down

0 comments on commit b370b8d

Please sign in to comment.