FactoryKit Migration #295
Replies: 2 comments 4 replies
-
|
Also added in 2.5.0. ParameterFactory ScopesBy default, ParameterFactory scopes will cache the first requested value and then return the service created with that value, even if other values are passed on future requests. The behavior can be changed with the .scopeOnParameters modifier. var parameterService: ParameterFactory<Int, ParameterService> { That code is in the develop branch as part of 2.5.0. |
Beta Was this translation helpful? Give feedback.
-
|
Correction, Factory has moved to 2.5.0 and is now in production. |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Factory is moving to version 2.5.0 that works with SPM, Xcode 16 under Strict Concurrency guidelines, and with Swift Testing.
If you're a current Factory user it's recommended that you switch from importing
FactorytoFactoryKit.This name change avoids SPM naming conflicts between the import library name and the primary
Factoryobject, and should fix a number of open issues with the project.To do so, open your project in Xcode and...
File > Packages > Update to Latest Package VersionsFile > Packages > Reset Package CachesFactorylibrary, and add theFactoryKitlibraryimport Factorytoimport FactoryKitYou may need to do the same for any other targets or modules that imported Factory.
While the original
Factorylibrary import still exists, it will be deprecated in the future.This code is currently in the develop branch of the project.
Note that the FactoryKit and FactoryTesting library changes are for SPM only. CocoaPods will be frozen to a 2.4.x version in the near future.
Beta Was this translation helpful? Give feedback.
All reactions