diff --git a/CHANGELOG.md b/CHANGELOG.md index 91f54f2b6..90218cf54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/android/build.gradle b/android/build.gradle index 0569eb089..41901bcfc 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,4 +1,8 @@ buildscript { + ext.safeExtGet = { prop, fallback -> + rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback + } + repositories { google() mavenCentral() @@ -6,7 +10,7 @@ buildscript { 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')}" } } diff --git a/doc/theoplayerview-component.md b/doc/theoplayerview-component.md index 4c912534e..796f9f023 100644 --- a/doc/theoplayerview-component.md +++ b/doc/theoplayerview-component.md @@ -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 @@ -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 diff --git a/package-lock.json b/package-lock.json index b43da595d..fd441c911 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "react-native-theoplayer", - "version": "3.4.0", + "version": "3.4.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "react-native-theoplayer", - "version": "3.4.0", + "version": "3.4.1", "license": "SEE LICENSE AT https://www.theoplayer.com/terms", "dependencies": { "buffer": "^6.0.3" diff --git a/package.json b/package.json index 0be298921..62cc2758c 100644 --- a/package.json +++ b/package.json @@ -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",