Skip to content

Commit 8630b37

Browse files
Merge pull request #395 from THEOplayer/maintenance/e2e
Update dependencies
2 parents ffd9507 + d373de3 commit 8630b37

28 files changed

Lines changed: 3096 additions & 3066 deletions

File tree

.github/workflows/pr_android.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build Android on PRs
22
on:
33
workflow_dispatch:
44
pull_request:
5-
types: [opened, reopened, synchronize]
5+
types: [opened, reopened, synchronize, ready_for_review]
66

77
# Cancel in-progress runs on the same PR to avoid wasting runner minutes.
88
concurrency:
@@ -14,13 +14,13 @@ env:
1414

1515
jobs:
1616
build:
17+
if: github.event.pull_request.draft == false
1718
runs-on: ubuntu-latest
1819
strategy:
1920
fail-fast: false
2021
matrix:
21-
api-level: [ 34 ]
22-
newArchEnabled: [ true ]
23-
name: Build for API Level ${{ matrix.api-level }} using ${{matrix.newArchEnabled == true && 'New' || 'Old' }} Architecture
22+
api-level: [ 36 ]
23+
name: Build for API Level ${{ matrix.api-level }}
2424
steps:
2525
- name: Checkout repository
2626
uses: actions/checkout@v4
@@ -101,7 +101,7 @@ jobs:
101101
run: |
102102
echo "YOSPACE_USERNAME=${{ secrets.YOSPACE_USERNAME }}" >> ./gradle.properties
103103
echo "YOSPACE_PASSWORD=${{ secrets.YOSPACE_PASSWORD }}" >> ./gradle.properties
104-
echo "newArchEnabled=${{ matrix.newArchEnabled }}" >> ./gradle.properties
104+
echo "newArchEnabled=true" >> ./gradle.properties
105105
# Only build the x86_64 ABI needed by the CI emulator.
106106
echo "reactNativeArchitectures=x86_64" >> ./gradle.properties
107107

.github/workflows/pr_ios.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build iOS on PRs
22
on:
33
workflow_dispatch:
44
pull_request:
5-
types: [opened, reopened, synchronize]
5+
types: [opened, reopened, synchronize, ready_for_review]
66

77
# Cancel in-progress runs on the same PR to avoid wasting runner minutes.
88
concurrency:
@@ -11,14 +11,14 @@ concurrency:
1111

1212
jobs:
1313
build:
14-
runs-on: macos-14
14+
if: github.event.pull_request.draft == false
15+
runs-on: macos-15
1516
strategy:
1617
fail-fast: false
1718
matrix:
18-
xcode_version: [ '16.1.0' ]
19-
newArchEnabled: [ 1 ]
19+
xcode_version: [ '26.2.0' ]
2020
platform: [iOS, tvOS]
21-
name: Build for ${{ matrix.platform }} using XCode version ${{ matrix.xcode_version }} and ${{matrix.newArchEnabled == 1 && 'New' || 'Old' }} Architecture
21+
name: Build for ${{ matrix.platform }} using XCode version ${{ matrix.xcode_version }}
2222

2323
steps:
2424
- name: Checkout repository
@@ -47,9 +47,9 @@ jobs:
4747
uses: actions/cache@v4
4848
with:
4949
path: apps/e2e/ios/Pods
50-
key: pods-${{ runner.os }}-${{ matrix.platform }}-${{ matrix.newArchEnabled }}-${{ hashFiles('apps/e2e/ios/Podfile.lock') }}
50+
key: pods-${{ runner.os }}-${{ hashFiles('apps/e2e/ios/Podfile.lock') }}
5151
restore-keys: |
52-
pods-${{ runner.os }}-${{ matrix.platform }}-${{ matrix.newArchEnabled }}-
52+
pods-${{ runner.os }}-
5353
5454
- name: Run npm install
5555
run: |
@@ -79,9 +79,9 @@ jobs:
7979
- name: Start iOS simulator
8080
uses: futureware-tech/simulator-action@v4
8181
with:
82-
model: ${{ matrix.platform == 'iOS' && 'iPhone 15' || 'Apple TV' }}
82+
model: ${{ matrix.platform == 'iOS' && 'iPhone 17' || 'Apple TV' }}
8383
os: ${{ matrix.platform }}
84-
os_version: '>=15.0'
84+
os_version: '>=26.2'
8585

8686
- name: Run e2e tests
8787
working-directory: apps/e2e

.prettierrc.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
module.exports = {
2-
bracketSpacing: true,
3-
bracketSameLine: true,
42
singleQuote: true,
53
trailingComma: 'all',
64
printWidth: 150,

adscript/src/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"version":"1.0.0","buildDate":"2025-09-16T15:10:22.731Z"}
1+
{"version":"1.4.0","buildDate":"2026-04-30T12:33:17.580Z"}

apps/e2e/.ruby-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/e2e/android/app/build.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ react {
2020

2121
/* Variants */
2222
// The list of variants to that are debuggable. For those we're going to
23-
// skip the bundling of the JS bundle and the assets. By default is just 'debug'.
23+
// skip the bundling of the JS bundle and the assets. Default is "debug", "debugOptimized".
2424
// If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants.
25-
// debuggableVariants = ["liteDebug", "prodDebug"]
25+
// debuggableVariants = ["liteDebug", "liteDebugOptimized", "prodDebug", "prodDebugOptimized"]
2626

2727
/* Bundling */
2828
// A list containing the node command and its flags. Default is just 'node'.
@@ -96,6 +96,9 @@ android {
9696
keyPassword 'android'
9797
}
9898
}
99+
compileOptions {
100+
coreLibraryDesugaringEnabled true
101+
}
99102
buildTypes {
100103
debug {
101104
signingConfig signingConfigs.debug
@@ -130,6 +133,8 @@ dependencies {
130133
// The version of react-native is set by the React Native Gradle Plugin
131134
implementation("com.facebook.react:react-android")
132135

136+
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.5")
137+
133138
if (hermesEnabled.toBoolean()) {
134139
implementation("com.facebook.react:hermes-android")
135140
} else {

apps/e2e/android/app/src/debug/AndroidManifest.xml

Lines changed: 0 additions & 15 deletions
This file was deleted.

apps/e2e/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
android:roundIcon="@mipmap/ic_launcher_round"
1717
android:allowBackup="false"
1818
android:theme="@style/AppTheme"
19+
android:usesCleartextTraffic="${usesCleartextTraffic}"
1920
android:supportsRtl="true">
2021

2122
<activity

apps/e2e/android/app/src/main/java/com/reactnativetheoplayer/MainActivity.kt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.reactnativetheoplayer
22

3+
import android.app.PictureInPictureUiState
34
import android.content.Intent
45
import android.content.res.Configuration
56
import android.media.AudioManager
@@ -55,4 +56,21 @@ open class MainActivity : ReactActivity() {
5556
intent.putExtra("isInPictureInPictureMode", isInPictureInPictureMode)
5657
this.sendBroadcast(intent)
5758
}
59+
60+
/**
61+
* Called by the system when the activity is in PiP and has state changes. Compare to
62+
* onPictureInPictureModeChanged, which is only called when PiP mode changes (meaning, enters
63+
* or exits PiP), this can be called at any time while the activity is in PiP mode.
64+
*/
65+
override fun onPictureInPictureUiStateChanged(pipState: PictureInPictureUiState) {
66+
super.onPictureInPictureUiStateChanged(pipState)
67+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.VANILLA_ICE_CREAM &&
68+
pipState.isTransitioningToPip
69+
) {
70+
Intent("onPictureInPictureModeChanged").also {
71+
it.putExtra("isTransitioningToPip", true)
72+
sendBroadcast(it)
73+
}
74+
}
75+
}
5876
}

apps/e2e/android/app/src/main/java/com/reactnativetheoplayer/MainApplication.kt

Lines changed: 18 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@ import android.app.Application
44
import com.facebook.react.PackageList
55
import com.facebook.react.ReactApplication
66
import com.facebook.react.ReactHost
7-
import com.facebook.react.ReactNativeHost
8-
import com.facebook.react.ReactPackage
9-
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
7+
import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
108
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
11-
import com.facebook.react.defaults.DefaultReactNativeHost
12-
import com.facebook.react.soloader.OpenSourceMergedSoMapping
13-
import com.facebook.soloader.SoLoader
149
import com.theoplayer.reactnative.adobe.edge.ReactTHEOplayerAdobeEdgePackage
1510
import com.theoplayer.reactnative.adobe.ReactTHEOplayerAdobePackage
1611
import com.theoplayer.reactnative.bitmovin.ReactTHEOplayerBitmovinPackage
@@ -20,37 +15,25 @@ import com.theoplayernielsen.ReactTHEOplayerNielsenPackage
2015
//import com.theoplayeryospace.ReactTHEOplayerYospacePackage
2116

2217
class MainApplication : Application(), ReactApplication {
23-
override val reactNativeHost: ReactNativeHost =
24-
object : DefaultReactNativeHost(this) {
25-
override fun getPackages(): List<ReactPackage> =
26-
PackageList(this).packages.apply {
27-
// Packages that cannot be autolinked yet can be added manually here, for example:
28-
add(ReactTHEOplayerBitmovinPackage())
29-
add(ReactTHEOplayerComscorePackage())
30-
add(ReactTHEOplayerConvivaPackage())
31-
add(ReactTHEOplayerNielsenPackage())
32-
add(ReactTHEOplayerAdobePackage())
33-
add(ReactTHEOplayerAdobeEdgePackage())
34-
// add(ReactTHEOplayerYospacePackage())
35-
}
36-
37-
override fun getJSMainModuleName(): String = "index"
38-
39-
override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
40-
41-
override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
42-
override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
43-
}
44-
45-
override val reactHost: ReactHost
46-
get() = getDefaultReactHost(this.applicationContext, reactNativeHost)
18+
override val reactHost: ReactHost by lazy {
19+
getDefaultReactHost(
20+
context = applicationContext,
21+
packageList =
22+
PackageList(this).packages.apply {
23+
// Packages that cannot be autolinked yet can be added manually here, for example:
24+
add(ReactTHEOplayerBitmovinPackage())
25+
add(ReactTHEOplayerComscorePackage())
26+
add(ReactTHEOplayerConvivaPackage())
27+
add(ReactTHEOplayerNielsenPackage())
28+
add(ReactTHEOplayerAdobePackage())
29+
add(ReactTHEOplayerAdobeEdgePackage())
30+
// add(ReactTHEOplayerYospacePackage())
31+
},
32+
)
33+
}
4734

4835
override fun onCreate() {
4936
super.onCreate()
50-
SoLoader.init(this, OpenSourceMergedSoMapping)
51-
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
52-
// If you opted-in for the New Architecture, we load the native entry point for this app.
53-
load(bridgelessEnabled = true)
54-
}
37+
loadReactNative(this)
5538
}
5639
}

0 commit comments

Comments
 (0)