Skip to content

Commit 7c77fbb

Browse files
committed
Add SPM logic for Analytics testapp
1 parent 6b34136 commit 7c77fbb

File tree

3 files changed

+31
-4
lines changed

3 files changed

+31
-4
lines changed

analytics/integration_test/Podfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ platform :ios, '13.0'
44
use_frameworks! :linkage => :static
55

66
target 'integration_test' do
7-
platform :ios, '13.0'
8-
pod 'Firebase/Analytics', '11.4.2'
7+
# platform :ios, '13.0'
8+
# pod 'Firebase/Analytics', '11.4.2'
99
end
1010

1111
target 'integration_test_tvos' do
12-
platform :tvos, '13.0'
13-
pod 'Firebase/Analytics', '11.4.2'
12+
# platform :tvos, '13.0'
13+
# pod 'Firebase/Analytics', '11.4.2'
1414
end
1515

1616
post_install do |installer|

analytics/integration_test/integration_test.xcodeproj/project.pbxproj

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@
185185
dependencies = (
186186
);
187187
name = integration_test;
188+
packageProductDependencies = (
189+
2A42CF362CED4B60001D5F83 /* FirebaseAnalytics */,
190+
);
188191
productName = testapp;
189192
productReference = 529226D21C85F68000C89379 /* integration_test.app */;
190193
productType = "com.apple.product-type.application";
@@ -239,6 +242,9 @@
239242
Base,
240243
);
241244
mainGroup = 529226C91C85F68000C89379;
245+
packageReferences = (
246+
2A42CF352CED4B60001D5F83 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */,
247+
);
242248
productRefGroup = 529226D31C85F68000C89379 /* Products */;
243249
projectDirPath = "";
244250
projectRoot = "";
@@ -651,6 +657,25 @@
651657
defaultConfigurationName = Release;
652658
};
653659
/* End XCConfigurationList section */
660+
661+
/* Begin XCRemoteSwiftPackageReference section */
662+
2A42CF352CED4B60001D5F83 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */ = {
663+
isa = XCRemoteSwiftPackageReference;
664+
repositoryURL = "https://github.com/firebase/firebase-ios-sdk";
665+
requirement = {
666+
kind = upToNextMajorVersion;
667+
minimumVersion = 11.5.0;
668+
};
669+
};
670+
/* End XCRemoteSwiftPackageReference section */
671+
672+
/* Begin XCSwiftPackageProductDependency section */
673+
2A42CF362CED4B60001D5F83 /* FirebaseAnalytics */ = {
674+
isa = XCSwiftPackageProductDependency;
675+
package = 2A42CF352CED4B60001D5F83 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */;
676+
productName = FirebaseAnalytics;
677+
};
678+
/* End XCSwiftPackageProductDependency section */
654679
};
655680
rootObject = 529226CA1C85F68000C89379 /* Project object */;
656681
}

scripts/gha/build_testapps.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,8 @@ def _build_apple(
636636
logging.info("No entitlements found at %s.", entitlements_path)
637637
_run(xcode_patcher_args)
638638

639+
_run(["xcodebuild", "-resolvePackageDependencies", "-project", "integration_test.xcodeproj"])
640+
639641
xcode_path = os.path.join(project_dir, "integration_test.xcworkspace")
640642
if _APPLE_SDK_SIMULATOR in apple_sdk:
641643
_run(

0 commit comments

Comments
 (0)