google / google/EarlGrey

Include EarlGrey.swift in the framework

Open
#500 1 comment 5 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
5.7k
Forks
737
Avg merge
1d 20h
Merged PRs (30d)
5

Description

Currently swift projects that use this framework needs to include EarlGrey.swift in the target. This is done automatically by the gem but in my case the gem failed to update the projects. My app contains multiple sub projects and I would like to avoid having multiple copies of the same file. My current solution is to create a new sub project that contains this file, and add it as dependency to all test targets. The drawback is that every test code file has to import both EarlGrey and this project. Can this file be included in the framework itself? If the framework needs to be objc only, then how about a separate podspec for swift projects?

Contributor guide

Open the contributing guide

Research direction

Start by examining how the gem updates Xcode projects and how EarlGrey.swift is currently exposed through the framework and podspec setup. Done means a multi-project Swift app can use one shared copy without importing a separate project, while preserving compatibility for Objective-C-only framework use.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, objective-c, swift
Domain
mobile, testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.