update README.md
This commit is contained in:
parent
27925f3ed3
commit
ae94cf4be4
64
README.md
64
README.md
|
@ -41,14 +41,11 @@ If you are not using Cocoapods in your project, follow the instruction of the se
|
||||||
|
|
||||||
### Cocoapods
|
### Cocoapods
|
||||||
|
|
||||||
#### Get the SDK thru Xcode Cloud
|
#### Get the SDK via public repo
|
||||||
|
|
||||||
1. Add the following lines inside your target declaration in your `Podfile`.
|
1. Add the following lines inside your target declaration in your `Podfile`.
|
||||||
|
|
||||||
Remember to:
|
Remember to add the source to our specs repo
|
||||||
|
|
||||||
- add the source to our specs repo
|
|
||||||
- replace `X.Y.Z` with the pod version provided (ex. 3.18.14)
|
|
||||||
|
|
||||||
```
|
```
|
||||||
...
|
...
|
||||||
|
@ -59,63 +56,22 @@ target '<YOUR_TARGET>' do
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
||||||
pod 'NewsmemorySDK', 'X.Y.Z'
|
pod 'NewsmemorySDK', '3.18.14'
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
2. If you are building locally, run `pod install`. If you upgrade from a previous version of NewsmemorySDK run `pod install --repo-update`
|
||||||
|
|
||||||
#### Get the SDK thru GitHub
|
|
||||||
|
|
||||||
1. Create a new SSH key and name it `id_tecnavia_deploy_key`, put the key files in folder `~/.ssh/`(see this article for reference https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent). Then, in order to be able to download the software from Tecnavia repository, you should provide to Tecnavia your public key.
|
|
||||||
|
|
||||||
2. Edit your SSH config file `~/.ssh/config` and add the following lines:
|
|
||||||
|
|
||||||
```
|
|
||||||
#GitHub Tecnavia Repo
|
|
||||||
Host tecnavia-repo-sdk
|
|
||||||
HostName github.com
|
|
||||||
AddKeysToAgent yes
|
|
||||||
PreferredAuthentications publickey
|
|
||||||
IdentityFile ~/.ssh/id_tecnavia_deploy_key
|
|
||||||
```
|
|
||||||
|
|
||||||
3. Add the following lines inside your target declaration in your `Podfile`.
|
|
||||||
|
|
||||||
Remember to:
|
|
||||||
|
|
||||||
- add the source to our specs repo
|
|
||||||
- replace `X.Y.Z` with the pod version provided (ex. 3.18.14)
|
|
||||||
|
|
||||||
```
|
|
||||||
...
|
|
||||||
source 'https://github.com/tecnaviapress/Specs.git'
|
|
||||||
...
|
|
||||||
|
|
||||||
target '<YOUR_TARGET>' do
|
|
||||||
|
|
||||||
...
|
|
||||||
|
|
||||||
pod 'NewsmemorySDK', 'X.Y.Z'
|
|
||||||
|
|
||||||
...
|
|
||||||
|
|
||||||
end
|
|
||||||
```
|
|
||||||
|
|
||||||
4. Run `pod install`. If you upgrade from a previous version of NewsmemorySDK run `pod install --repo-update`
|
|
||||||
|
|
||||||
#### Get the SDK thru zip file
|
#### Get the SDK thru zip file
|
||||||
|
|
||||||
Tecnavia provides you a zip package named `ta-newsmemory-sdk_XYZ`, where XYZ stands for the package version (ex. 31814, means that the SDK version is 3.18.14).
|
Tecnavia provides you a zip package named `ta-newsmemory-sdk_31814`, (i.e. 31814, means that the SDK version is 3.18.14).
|
||||||
|
|
||||||
1. Unzip the package and copy the `ta-newsmemory-sdk_XYZ` folder in the folder containing your project's `Podfile` file.
|
1. Unzip the package and copy the `ta-newsmemory-sdk_31814` folder in the folder containing your project's `Podfile` file.
|
||||||
|
|
||||||
2. Add the following lines inside your target declaration in your `Podfile`.
|
2. Add the following lines inside your target declaration in your `Podfile`.
|
||||||
Notice that `XYZ` stands for the package version (ex. 31814)
|
|
||||||
|
|
||||||
```
|
```
|
||||||
...
|
...
|
||||||
|
@ -124,7 +80,7 @@ target '<YOUR_TARGET>' do
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
||||||
pod 'NewsmemorySDK', path: 'ta-newsmemory-sdk_XYZ'
|
pod 'NewsmemorySDK', path: 'ta-newsmemory-sdk_31814'
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
||||||
|
@ -141,11 +97,11 @@ end
|
||||||
|
|
||||||
#### Package contents
|
#### Package contents
|
||||||
|
|
||||||
Tecnavia provides you a zip package named `ta-newsmemory-sdk_XYZ`, where XYZ stands for the package version (ex. 31814, means that the SDK version is 3.18.14).
|
Tecnavia provides you a zip package named `ta-newsmemory-sdk_31814`, (i.e. 31814, means that the SDK version is 3.18.14).
|
||||||
|
|
||||||
Unzip the package and copy the `ta-newsmemory-sdk_XYZ` folder in the folder containing your project's `.xcodeproj` file (i.e. the SDK folder must be at the same level of the project file).
|
Unzip the package and copy the `ta-newsmemory-sdk_31814` folder in the folder containing your project's `.xcodeproj` file (i.e. the SDK folder must be at the same level of the project file).
|
||||||
|
|
||||||
The unzipped folder named `ta-newsmemory-sdk_XYZ` has the following subfolders structure:
|
The unzipped folder named `ta-newsmemory-sdk_31814` has the following subfolders structure:
|
||||||
|
|
||||||
```
|
```
|
||||||
.
|
.
|
||||||
|
|
Loading…
Reference in New Issue