Skip to content

Commit d82f76e

Browse files
committed
fix: apply app icon to iOS UI test runner
1 parent 34713df commit d82f76e

13 files changed

Lines changed: 418 additions & 24 deletions

File tree

.fallowrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"src/bin.ts",
1717
"src/companion-tunnel.ts",
1818
"src/daemon.ts",
19+
"scripts/patch-xcuitest-runner-icon.ts",
1920
"src/utils/update-check-entry.ts",
2021
"test/scripts/metro-prepare-packaged-smoke.mjs",
2122
"test/integration/*.test.ts",

ios-runner/AgentDeviceRunner/AgentDeviceRunner.xcodeproj/project.pbxproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,6 @@
402402
20EA2EEE2F2CFC7C001CF0EF /* Debug */ = {
403403
isa = XCBuildConfiguration;
404404
buildSettings = {
405-
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
406-
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO;
407405
"CODE_SIGN_ENTITLEMENTS[sdk=macosx*]" = AgentDeviceRunnerUITests/AgentDeviceRunnerUITests.entitlements;
408406
CODE_SIGN_STYLE = Automatic;
409407
CURRENT_PROJECT_VERSION = 1;
@@ -430,8 +428,6 @@
430428
20EA2EEF2F2CFC7C001CF0EF /* Release */ = {
431429
isa = XCBuildConfiguration;
432430
buildSettings = {
433-
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
434-
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO;
435431
"CODE_SIGN_ENTITLEMENTS[sdk=macosx*]" = AgentDeviceRunnerUITests/AgentDeviceRunnerUITests.entitlements;
436432
CODE_SIGN_STYLE = Automatic;
437433
CURRENT_PROJECT_VERSION = 1;
-79.6 KB
Loading
-99.6 KB
Loading

ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/Assets.xcassets/AppIcon.appiconset/Contents.json

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

ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/Assets.xcassets/Contents.json

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

scripts/build-xcuitest-apple.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,5 @@ xcodebuild build-for-testing \
104104
ENABLE_CODE_COVERAGE=NO \
105105
$SIGNING_BUILD_SETTINGS
106106

107+
node --experimental-strip-types scripts/patch-xcuitest-runner-icon.ts "$DERIVED_PATH"
107108
node scripts/write-xcuitest-cache-metadata.mjs "$PLATFORM" "$DERIVED_PATH" "$DESTINATION"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { applyXctestRunnerAppIconFromDerivedPath } from '../src/platforms/ios/runner-icon.ts';
2+
3+
const [derivedPath] = process.argv.slice(2);
4+
5+
if (!derivedPath) {
6+
console.error('Usage: patch-xcuitest-runner-icon.ts <derived>');
7+
process.exit(1);
8+
}
9+
10+
await applyXctestRunnerAppIconFromDerivedPath(derivedPath);

scripts/write-xcuitest-cache-metadata.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ function isRunnerSourceFile(fileName, filePath) {
8585
return filePath.includes(`${path.sep}.xcodeproj${path.sep}`);
8686
}
8787
return [
88+
'.jpg',
89+
'.json',
90+
'.png',
8891
'.swift',
8992
'.plist',
9093
'.entitlements',

0 commit comments

Comments
 (0)