Skip to content

Commit

Permalink
Merge pull request #246 from THEOplayer/release/v3.4.1
Browse files Browse the repository at this point in the history
Release/v3.4.1
  • Loading branch information
tvanlaerhoven authored Dec 21, 2023
2 parents 4a60e1f + 30ec3f3 commit 27e0707
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.1.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [3.4.1] - 23-12-21

### Changed

- Take the Kotlin Gradle plugin version from the root project, if specified.

## [3.4.0] - 23-12-21

### Added
Expand Down
6 changes: 5 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
buildscript {
ext.safeExtGet = { prop, fallback ->
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}

repositories {
google()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.21'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${safeExtGet('kotlinVersion', '1.8.21')}"
}
}

Expand Down
8 changes: 6 additions & 2 deletions doc/theoplayerview-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ The `THEOplayerView` component accepts a `config` property that contains basic p

```typescript
const player: PlayerConfiguration = {
license: undefined, //'insert THEOplayer license here'
license: undefined, //'insert THEOplayer license for react-native here'
chromeless: true,
};
```

The `license` is an obfuscated string that contains the THEOplayer license needed for play-out, and which can be found
in your THEOplayer Portal account. If separate licenses per platform are needed, `Platform.select()` could be used to
in your THEOplayer Portal account. You can generate a license specifically for react-native, but if separate licenses per platform are needed, `Platform.select()` could be used to
configure them:

```typescript
Expand All @@ -73,6 +73,10 @@ We refer to the [Adaptive Bitrate (ABR)](abr.md) page for detailed information,
If `chromeless = true`, the player does not include the native UI provided by the SDK and it is expected the UI is
created in React Native. The accompanying example application provides a basic UI created in React Native.

#### Native UI language

`PlayerConfiguration.ui` has a configuration property 'language' that allows you to set the language for localisation when native UI elements (e.g. 'skip ad' being displayed on the skip butten in the ad UI) are presented to the user. This only applies to UI elements rendered by the native SDK's and not to other UI elements added via your react-native view stack.

### Setting a source

You can set a source using the `source` property on the [THEOplayer API](../src/api/player/THEOplayer.ts). The type
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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-theoplayer",
"version": "3.4.0",
"version": "3.4.1",
"description": "A THEOplayer video component for react-native.",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down

0 comments on commit 27e0707

Please sign in to comment.