Skip to content

Commit

Permalink
Make mergable frameworks to improve launch time (#1724)
Browse files Browse the repository at this point in the history
* Make mergable frameworks to increase launch time
Makes all frameworks, except depending on GRDB, mergable. See https://developer.apple.com/documentation/xcode/configuring-your-project-to-use-mergeable-libraries#Manually-configure-merging.
@see: groue/GRDB.swift#642

* make MERGEABLE_LIBRARY: true
  • Loading branch information
rinat-enikeev authored Nov 24, 2023
1 parent 77baf7f commit 6241503
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Packages/RuuviContext/target.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
targets:
RuuviContext:
# https://github.com/groue/GRDB.swift/issues/642
settings:
base:
MERGEABLE_LIBRARY: false
templates:
- Framework
dependencies:
Expand Down
4 changes: 4 additions & 0 deletions Packages/RuuviOntology/target.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
targets:
RuuviOntology:
# https://github.com/groue/GRDB.swift/issues/642
settings:
base:
MERGEABLE_LIBRARY: false
templates:
- Framework
dependencies:
Expand Down
4 changes: 4 additions & 0 deletions Packages/RuuviPersistence/target.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
targets:
RuuviPersistence:
# https://github.com/groue/GRDB.swift/issues/642
settings:
base:
MERGEABLE_LIBRARY: false
templates:
- Framework
dependencies:
Expand Down
4 changes: 4 additions & 0 deletions Packages/RuuviReactor/target.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
targets:
RuuviReactor:
# https://github.com/groue/GRDB.swift/issues/642
settings:
base:
MERGEABLE_LIBRARY: false
templates:
- Framework
dependencies:
Expand Down
4 changes: 4 additions & 0 deletions project_frameworks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ targetTemplates:
CFBundlePackageType: $(PRODUCT_BUNDLE_PACKAGE_TYPE)
CFBundleShortVersionString: "$(MARKETING_VERSION)"
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
MERGEABLE_LIBRARY: true
Module:
name: "${target_name}"
type: framework
Expand Down Expand Up @@ -80,6 +81,7 @@ targetTemplates:
CFBundlePackageType: $(PRODUCT_BUNDLE_PACKAGE_TYPE)
CFBundleShortVersionString: "$(MARKETING_VERSION)"
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
MERGEABLE_LIBRARY: true
CommonFramework:
name: "${target_name}"
type: framework
Expand Down Expand Up @@ -110,6 +112,7 @@ targetTemplates:
CFBundlePackageType: $(PRODUCT_BUNDLE_PACKAGE_TYPE)
CFBundleShortVersionString: "$(MARKETING_VERSION)"
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
MERGEABLE_LIBRARY: true

packages:
BTKit:
Expand Down Expand Up @@ -259,6 +262,7 @@ targets:
UIViewControllerBasedStatusBarAppearance: true
settings:
base:
MERGED_BINARY_TYPE: "manual"
TARGETED_DEVICE_FAMILY: 1,2
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD: true
CODE_SIGN_ENTITLEMENTS: station/station.entitlements

0 comments on commit 6241503

Please sign in to comment.