-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #404 from bitmovin/upgrade_react_native
Update react native to 0.73.4
- Loading branch information
Showing
48 changed files
with
4,326 additions
and
3,003 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
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
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
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
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
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
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
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,5 +1,11 @@ | ||
# Changelog | ||
|
||
## [Unreleased] | ||
|
||
### Changed | ||
|
||
- React Native version to `0.73.4` | ||
|
||
## [0.17.0] (2024-01-26) | ||
|
||
### Added | ||
|
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,8 +1,9 @@ | ||
android.useAndroidX=true | ||
BitmovinPlayerReactNative_kotlinVersion=1.9.21 | ||
BitmovinPlayerReactNative_minSdkVersion=21 | ||
BitmovinPlayerReactNative_targetSdkVersion=33 | ||
BitmovinPlayerReactNative_compileSdkVersion=33 | ||
BitmovinPlayerReactNative_ndkversion=21.4.7075529 | ||
BitmovinPlayerReactNative_androidToolsVersion=7.4.2 | ||
BitmovinPlayerReactNative_targetSdkVersion=34 | ||
BitmovinPlayerReactNative_compileSdkVersion=34 | ||
BitmovinPlayerReactNative_buildToolsVersion=34.0.0 | ||
BitmovinPlayerReactNative_ndkversion=25.1.8937393 | ||
BitmovinPlayerReactNative_androidToolsVersion=8.1.0 | ||
BitmovinPlayerReactNative_ktlintVersion=11.6.0 |
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,3 +1,3 @@ | ||
module.exports = { | ||
presets: ['module:metro-react-native-babel-preset'], | ||
presets: ['@react-native/babel-preset'], | ||
}; |
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
76 changes: 0 additions & 76 deletions
76
...ndroid/app/src/debug/java/com/bitmovin/player/reactnative/example/ReactNativeFlipper.java
This file was deleted.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
example/android/app/src/main/java/com/bitmovin/player/reactnative/example/MainActivity.java
This file was deleted.
Oops, something went wrong.
43 changes: 43 additions & 0 deletions
43
example/android/app/src/main/java/com/bitmovin/player/reactnative/example/MainActivity.kt
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package com.bitmovin.player.reactnative.example | ||
|
||
import android.os.Bundle | ||
import com.facebook.react.ReactActivity | ||
import com.facebook.react.ReactActivityDelegate | ||
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled | ||
import com.facebook.react.defaults.DefaultReactActivityDelegate | ||
import com.google.android.gms.cast.framework.CastContext | ||
import android.view.WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON | ||
|
||
class MainActivity : ReactActivity() { | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(null) | ||
try { | ||
// Load Google Cast context eagerly in order to ensure that | ||
// the cast state is updated correctly. | ||
CastContext.getSharedInstance(this, Runnable::run) | ||
} catch (e: Exception) { | ||
// cast framework not supported | ||
} | ||
|
||
// Prevent going into ambient mode on Android TV devices / screen timeout on mobile devices during playback. | ||
// If your app uses multiple activities make sure to add this flag to the activity that hosts the player. | ||
// Reference: https://developer.android.com/training/scheduling/wakelock#screen | ||
getWindow().addFlags(FLAG_KEEP_SCREEN_ON) | ||
} | ||
|
||
/** | ||
* Returns the name of the main component registered from JavaScript. This is used to schedule | ||
* rendering of the component. | ||
*/ | ||
override fun getMainComponentName(): String = "BitmovinPlayerReactNativeExample" | ||
|
||
/** | ||
* Returns the instance of the [ReactActivityDelegate]. Here we use a util class [ ] which allows you to easily enable Fabric and Concurrent React | ||
* (aka React 18) with two boolean flags. | ||
*/ | ||
override fun createReactActivityDelegate() = DefaultReactActivityDelegate( | ||
this, | ||
mainComponentName, // If you opted-in for the New Architecture, we enable the Fabric Renderer. | ||
fabricEnabled, | ||
) | ||
} |
Oops, something went wrong.