Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/remibardon/howtosharecodebetweenapps
This repository is an example of how you can handle sharing a code base between different apps through the use of both Cocoapods and Swift Packages.
https://github.com/remibardon/howtosharecodebetweenapps
Last synced: 8 days ago
JSON representation
This repository is an example of how you can handle sharing a code base between different apps through the use of both Cocoapods and Swift Packages.
- Host: GitHub
- URL: https://github.com/remibardon/howtosharecodebetweenapps
- Owner: RemiBardon
- Created: 2019-10-19T22:14:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-19T22:41:05.000Z (over 5 years ago)
- Last Synced: 2024-12-20T12:27:04.125Z (2 months ago)
- Language: Swift
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sharing code and `Pods` between multiple projects
This repository is an example of how you can handle sharing a code base between different apps through the use of both `Cocoapods` and `Swift Packages`.
## Requirements
To use this project, you need macOS Catalina, XCode 11 and Cocoapods.
## Installation
```sh
git clone https://github.com/RemiBardon/HowToShareCodeBetweenApps.git
cd HowToShareCodeBetweenApps
pod install
```## Usage
You can edit the files contained in [Common/Common/SharedCode](Common/Common/SharedCode) to impact both example app. In case you add / remove a file from the folder, make sure you add / remove it from the referenced folders in each app as well. Also, since `SharedCode` is a reference in both app, you can edit the files directly from the other projects.
The `Swift Packages` included in the workspace should be independant and cross-platform (as any `Swift Package`). Therefore, they can't use `Cocoapods`.
## Authors
* **Rémi Bardon** - [@RemiBardon](https://github.com/RemiBardon)
## References
* [Multiple projects and Cocoapods](https://stackoverflow.com/questions/18754449/multiple-projects-and-cocoapods) on [StackOverflow](https://stackoverflow.com)