Skip to content

Commit

Permalink
reorganize repo
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasVautherin committed Aug 14, 2018
1 parent 31a434e commit b9f53b9
Show file tree
Hide file tree
Showing 46 changed files with 24 additions and 66 deletions.
2 changes: 1 addition & 1 deletion Source/Dronecode-SDK-Swift/Cartfile → Cartfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
github "JonasVautherin/grpc-swift" "fix-cgrpc-xcodeproj"
github "grpc/grpc-swift" "master"
github "ReactiveX/RxSwift" == 4.0
binary "https://s3.eu-central-1.amazonaws.com/dronecode-sdk/backend.json" == 0.0.2
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
52 changes: 23 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,36 @@
# DroneCore-Swift SDK for iOS
# Building Dronecode-SDK-Swift

## Include the SDK for iOS in an Existing Application
## Install dependencies

### CocoaPods
### Cocoapods dependencies

1. The DroneCore-Swift SDK for iOS is available through [CocoaPods](http://cocoapods.org). CocoaPods can be installed with the following commands:
Run the following command from the root of the SDK:

$ gem install cocoapods
$ pod setup
```
pod install
```

2. In your project directory (the directory where your `*.xcodeproj` file is), create a plain text file named `Podfile` (without any file extension) and add the lines below. Replace `YourTarget` with your actual target name.
### Vendor dependencies

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
target :'YourTarget' do
pod 'DroneCore-Swift', '= 0.1.0'
end
3. Then run the following command:

$ pod install
The backend framework needs to be fetched (and will end up in `bin/`):

4. Open up `*.xcworkspace` with Xcode and start using the SDK.
```
bash fetch_backend.bash
```

## Build SDK framework

## Update the SDK to a Newer Version
Dronecode-SDK-Swift depends on gRPC and RxSwift (installation is described above). It can be opened in Xcode (open the workspace created by Cocoapods), or built with the following command:

When we release a new version of the SDK, you can pick up the changes as described below.
```
bash build_dronecode_sdk.bash
```

### CocoaPods
## Publishing archives to Amazon S3

1. Update the version number in your Podfile.
With the right permissions, one can publish a release to Amazon S3 with the following commands:

2. Run the following command in your project directory. CocoaPods automatically picks up the new changes.

$ pod update

**Note**: If your pod is having an issue, you can delete `Podfile.lock` and `Pods/` then run `pod install` to cleanly install the SDK.
```
bash create_archives.bash
bash push_archives_to_s3.bash
```
36 changes: 0 additions & 36 deletions Source/README.md

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b9f53b9

Please sign in to comment.