Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ concurrency:
cancel-in-progress: true

env:
# Expo SDK 57 requires Xcode 26.4+; macos-26 + latest-stable matches RNFB iOS e2e style.
# Expo SDK 58 requires Xcode 26.4+; macos-26 + latest-stable matches RNFB iOS e2e style.
XCODE_VERSION: latest-stable
# Xcode 26.6 / macos-26 ships iPhone 17* devices (no plain iPhone 16). Matches RNFB.
IOS_DEVICE_NAME: iPhone 17
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v24.13.0
v24.22.3
4 changes: 2 additions & 2 deletions docs/coverage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ The test app must:
"name": "tests",
"private": true,
"dependencies": {
"react-native": "0.86.3",
"react-native-coverage": "^0.2.2"
"react-native": "0.88.1",
"react-native-coverage": "^0.2.3"
}
}
```
Expand Down
4 changes: 2 additions & 2 deletions docs/integration/ci-appium.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ The CI scripts are under `scripts/ci/` and the WebDriverIO specs under `e2e/` in

## iOS: Xcode and the simulator

- Use the `macos-26` runner with `maxim-lobanov/setup-xcode` at `latest-stable`. Expo SDK 57 needs Xcode 26.4 or later.
- Use the `macos-26` runner with `maxim-lobanov/setup-xcode` at `latest-stable`. Expo SDK 58 needs Xcode 26.4 or later.
- Name the simulator `iPhone 17`. Xcode 26.6 images do not ship a plain `iPhone 16`, and a wrong name fails the destination lookup.
- Boot with an exact-name match, open `Simulator.app`, then poll `bootstatus`. A headless `simctl boot` followed by an Appium restart hung at the WebDriverAgent timeout on GitHub Actions. See the `scripts/ci/boot-ios-simulator.sh` script.
- Boot with an exact-name match, open the simulator UI, then poll `bootstatus`. On Xcode 26 that app is `Simulator.app`. On Xcode 27 and later it is Device Hub (bundle id `com.apple.dt.Devices`); those Xcode installs do not include `Simulator.app`. A headless `simctl boot` followed by an Appium restart hung at the WebDriverAgent timeout on GitHub Actions. See the `scripts/ci/boot-ios-simulator.sh` script.
- Set `simulatorStartupTimeout` to 300 seconds or more, and set the WebDriverAgent and session timeouts above the three to five minutes a cold WebDriverAgent build takes.
- Run `xcrun simctl list` once before the run.
- After `/status` is ready, prefetch the Metro bundle. Prebuild WebDriverAgent once under `artifacts/e2e/wda-derived-data` and pass it to the driver with `usePrebuiltWDA` and `derivedDataPath`. Do not put `DerivedData` in `e2e/node_modules`.
Expand Down
2 changes: 1 addition & 1 deletion e2e/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function iosCapabilities() {
process.env.IOS_WDA_LAUNCH_TIMEOUT || 240000
),
// Headless simctl boot + Appium UI restart hung at 120s on GHA; give the
// post-open Simulator.app boot path room (matches RNFB-style long wait).
// post-open simulator UI boot path room (matches RNFB-style long wait).
'appium:simulatorStartupTimeout': 300000,
};

Expand Down
16 changes: 8 additions & 8 deletions e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"test:android": "wdio run ./wdio.android.conf.js"
},
"devDependencies": {
"@wdio/cli": "^9.16.2",
"@wdio/local-runner": "^9.16.2",
"@wdio/mocha-framework": "^9.16.2",
"@wdio/spec-reporter": "^9.16.2",
"appium": "^2.19.0",
"appium-uiautomator2-driver": "^4.2.3",
"appium-xcuitest-driver": "^9.2.3",
"webdriverio": "^9.16.2"
"@wdio/cli": "^10.2.0",
"@wdio/local-runner": "^10.2.0",
"@wdio/mocha-framework": "^10.2.0",
"@wdio/spec-reporter": "^10.2.0",
"appium": "^4.0.0",
"appium-uiautomator2-driver": "^9.2.2",
"appium-xcuitest-driver": "^13.1.3",
"webdriverio": "^10.2.0"
}
}
6 changes: 3 additions & 3 deletions example-dynamic/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
buildscript {
ext {
buildToolsVersion = "36.0.0"
buildToolsVersion = "37.0.0"
minSdkVersion = 24
compileSdkVersion = 36
compileSdkVersion = 37
targetSdkVersion = 36
ndkVersion = "27.1.12297006"
kotlinVersion = "2.1.20"
kotlinVersion = "2.2.0"
}
repositories {
google()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
20 changes: 20 additions & 0 deletions example-dynamic/ios/CoverageDynamic.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
/* Begin PBXBuildFile section */
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
761780ED2CA45674006654EE /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 761780EC2CA45674006654EE /* AppDelegate.swift */; };
761780EF2CA45674006654EF /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 761780EE2CA45674006654EF /* SceneDelegate.swift */; };
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
BAB5BC1B4DB045C598085E00 /* Pods_CoverageDynamic.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C89C7BE53BFC04B98324E533 /* Pods_CoverageDynamic.framework */; };
C6C26CD8518C9FD264BDBB51 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */; };
Expand All @@ -22,6 +23,7 @@
3B4392A12AC88292D35C810B /* Pods-CoverageDynamic.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CoverageDynamic.debug.xcconfig"; path = "Target Support Files/Pods-CoverageDynamic/Pods-CoverageDynamic.debug.xcconfig"; sourceTree = "<group>"; };
5709B34CF0A7D63546082F79 /* Pods-CoverageDynamic.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CoverageDynamic.release.xcconfig"; path = "Target Support Files/Pods-CoverageDynamic/Pods-CoverageDynamic.release.xcconfig"; sourceTree = "<group>"; };
761780EC2CA45674006654EE /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = CoverageDynamic/AppDelegate.swift; sourceTree = "<group>"; };
761780EE2CA45674006654EF /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = SceneDelegate.swift; path = CoverageDynamic/SceneDelegate.swift; sourceTree = "<group>"; };
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = CoverageDynamic/LaunchScreen.storyboard; sourceTree = "<group>"; };
C89C7BE53BFC04B98324E533 /* Pods_CoverageDynamic.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CoverageDynamic.framework; sourceTree = BUILT_PRODUCTS_DIR; };
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
Expand All @@ -44,6 +46,7 @@
children = (
13B07FB51A68108700A75B9A /* Images.xcassets */,
761780EC2CA45674006654EE /* AppDelegate.swift */,
761780EE2CA45674006654EF /* SceneDelegate.swift */,
13B07FB61A68108700A75B9A /* Info.plist */,
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */,
13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */,
Expand Down Expand Up @@ -247,6 +250,7 @@
buildActionMask = 2147483647;
files = (
761780ED2CA45674006654EE /* AppDelegate.swift in Sources */,
761780EF2CA45674006654EF /* SceneDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -392,6 +396,14 @@
"${PODS_ROOT}/React-graphics/react/renderer/graphics/platform/ios",
"${PODS_ROOT}/React-featureflags",
"${PODS_ROOT}/React-renderercss",
"${PODS_ROOT}/React-Fabric/react/renderer/components/scrollview/platform/cxx",
"${PODS_ROOT}/React-Fabric/react/renderer/components/scrollview/platform/ios",
"${PODS_ROOT}/React-FabricComponents/react/renderer/textlayoutmanager/platform/ios",
"${PODS_ROOT}/React-FabricComponents/react/renderer/components/text/platform/cxx",
"${PODS_ROOT}/React-FabricComponents/react/renderer/components/textinput/platform/ios",
"${PODS_ROOT}/React-FabricComponents/react/renderer/components/switch/iosswitch",
"${PODS_ROOT}/React-bridging",
"${PODS_ROOT}/React-cxxstableapi",
);
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
LD_RUNPATH_SEARCH_PATHS = (
Expand Down Expand Up @@ -483,6 +495,14 @@
"${PODS_ROOT}/React-graphics/react/renderer/graphics/platform/ios",
"${PODS_ROOT}/React-featureflags",
"${PODS_ROOT}/React-renderercss",
"${PODS_ROOT}/React-Fabric/react/renderer/components/scrollview/platform/cxx",
"${PODS_ROOT}/React-Fabric/react/renderer/components/scrollview/platform/ios",
"${PODS_ROOT}/React-FabricComponents/react/renderer/textlayoutmanager/platform/ios",
"${PODS_ROOT}/React-FabricComponents/react/renderer/components/text/platform/cxx",
"${PODS_ROOT}/React-FabricComponents/react/renderer/components/textinput/platform/ios",
"${PODS_ROOT}/React-FabricComponents/react/renderer/components/switch/iosswitch",
"${PODS_ROOT}/React-bridging",
"${PODS_ROOT}/React-cxxstableapi",
);
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
LD_RUNPATH_SEARCH_PATHS = (
Expand Down
39 changes: 1 addition & 38 deletions example-dynamic/ios/CoverageDynamic/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,48 +1,11 @@
import UIKit
import React
import React_RCTAppDelegate
import ReactAppDependencyProvider

@main
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?

var reactNativeDelegate: ReactNativeDelegate?
var reactNativeFactory: RCTReactNativeFactory?

func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
) -> Bool {
let delegate = ReactNativeDelegate()
let factory = RCTReactNativeFactory(delegate: delegate)
delegate.dependencyProvider = RCTAppDependencyProvider()

reactNativeDelegate = delegate
reactNativeFactory = factory

window = UIWindow(frame: UIScreen.main.bounds)

factory.startReactNative(
withModuleName: "CoverageDynamic",
in: window,
launchOptions: launchOptions
)

return true
}
}

class ReactNativeDelegate: RCTDefaultReactNativeFactoryDelegate {
override func sourceURL(for bridge: RCTBridge) -> URL? {
self.bundleURL()
}

override func bundleURL() -> URL? {
#if DEBUG
RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")
#else
Bundle.main.url(forResource: "main", withExtension: "jsbundle")
#endif
true
}
}
17 changes: 17 additions & 0 deletions example-dynamic/ios/CoverageDynamic/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,23 @@
<string></string>
<key>RCTNewArchEnabled</key>
<true/>
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<false/>
<key>UISceneConfigurations</key>
<dict>
<key>UIWindowSceneSessionRoleApplication</key>
<array>
<dict>
<key>UISceneConfigurationName</key>
<string>Default Configuration</string>
<key>UISceneDelegateClassName</key>
<string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
</dict>
</array>
</dict>
</dict>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key>
Expand Down
8 changes: 4 additions & 4 deletions example-dynamic/ios/CoverageDynamic/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@
</dict>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
<string>NSPrivacyAccessedAPICategorySystemBootTime</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>CA92.1</string>
<string>35F9.1</string>
</array>
</dict>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategorySystemBootTime</string>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>35F9.1</string>
<string>CA92.1</string>
</array>
</dict>
</array>
Expand Down
54 changes: 54 additions & 0 deletions example-dynamic/ios/CoverageDynamic/SceneDelegate.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import React
import React_RCTAppDelegate
import ReactAppDependencyProvider
import UIKit

class SceneDelegate: RCTDefaultReactNativeFactoryDelegate, UIWindowSceneDelegate {
var window: UIWindow?
var reactNativeFactory: RCTReactNativeFactory?

func scene(
_ scene: UIScene,
willConnectTo session: UISceneSession,
options connectionOptions: UIScene.ConnectionOptions
) {
guard let windowScene = scene as? UIWindowScene else {
return
}

dependencyProvider = RCTAppDependencyProvider()
reactNativeFactory = RCTReactNativeFactory(delegate: self)
window = UIWindow(windowScene: windowScene)

#if DEBUG
let devMenuConfiguration = RCTDevMenuConfiguration(
devMenuEnabled: true,
shakeGestureEnabled: true,
keyboardShortcutsEnabled: true
)
reactNativeFactory?.devMenuConfiguration = devMenuConfiguration
#endif

reactNativeFactory?.startReactNative(
withModuleName: "CoverageDynamic",
in: window,
connectionOptions: connectionOptions
)
}

func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
RCTLinkingManager.scene(scene, openURLContexts: URLContexts)
}

func scene(_ scene: UIScene, continue userActivity: NSUserActivity) {
RCTLinkingManager.scene(scene, continue: userActivity)
}

override func bundleURL() -> URL? {
#if DEBUG
RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")
#else
Bundle.main.url(forResource: "main", withExtension: "jsbundle")
#endif
}
}
Loading
Loading