|
5 | 5 |
|
6 | 6 | ## Installation
|
7 | 7 |
|
8 |
| -**For Cocoapods:** |
9 |
| - - Create/Update your **Podfile** with the following contents |
| 8 | +**For Cocoapods(Swift):** ***Using Obj-C?*** [Use these instructions instead](README_OBJC.md) |
10 | 9 |
|
11 |
| - target 'YourAppTargetName' do |
12 |
| - use_frameworks! |
13 |
| - pod 'iOSDFULibrary' |
14 |
| - end |
| 10 | +- Create/Update your **Podfile** with the following contents |
15 | 11 |
|
16 |
| - - Install dependencies |
| 12 | + ``` |
| 13 | + target 'YourAppTargetName' do |
| 14 | + use_frameworks! |
| 15 | + pod 'iOSDFULibrary' |
| 16 | + end |
| 17 | + ``` |
17 | 18 |
|
18 |
| - pod install |
| 19 | +- Install dependencies |
| 20 | +
|
| 21 | + ``` |
| 22 | + pod install |
| 23 | + ``` |
| 24 | +
|
| 25 | +- Open the newly created `.xcworkspace` |
| 26 | +
|
| 27 | +- Import the library to any of your classes by using `import iOSDFULibrary` and begin working on your project |
19 | 28 |
|
20 |
| - - Open the newly created `.xcworkspace` and begin working on your project. |
21 | 29 |
|
22 | 30 | **For Carthage:**
|
23 | 31 |
|
24 |
| - - Create a new **Cartfile** in your project's root with the following contents |
| 32 | +- Create a new **Cartfile** in your project's root with the following contents |
25 | 33 |
|
26 |
| - github "NordicSemiconductor/IOS-Pods-DFU-Library" ~> x.y //Replace x.y with your required version |
| 34 | + ``` |
| 35 | + github "NordicSemiconductor/IOS-Pods-DFU-Library" ~> x.y //Replace x.y with your required version |
| 36 | + ``` |
27 | 37 |
|
28 |
| - - Build with carthage |
| 38 | +- Build with carthage |
29 | 39 |
|
30 |
| - carthage update --platform iOS //also OSX platform is available for macOS builds |
| 40 | + ``` |
| 41 | + carthage update --platform iOS //also OSX platform is available for macOS builds |
| 42 | + ``` |
31 | 43 |
|
32 |
| - - Carthage will build the **iOSDFULibrary.framework** and **Zip.framework** files in **Carthag/Build/**, you may now copy all those files to your project and use the library, additionally, carthade also builds **\*.dsym** files if you need to resymbolicate crash logs. you may want to keep those files bundled with your builds for future use. |
| 44 | +- Carthage will build the **iOSDFULibrary.framework** and **Zip.framework** files in **Carthag/Build/**, you may now copy all those files to your project and use the library, additionally, carthade also builds **\*.dsym** files if you need to resymbolicate crash logs. you may want to keep those files bundled with your builds for future use. |
33 | 45 |
|
34 | 46 | ---
|
35 | 47 |
|
@@ -87,8 +99,8 @@ The library is compatible with nRF51 and nRF52 devices with S-Series Soft Device
|
87 | 99 | * **SDK 7.0.0** - The extended init packet is required. The init packet contains additional validation information: device type and revision, application version, compatible Soft Devices and the firmware CRC.
|
88 | 100 | * **SDK 8.0.0** - The bond information may be preserved after an application update. The new application, when first started, will send the Service Change indication to the phone to refresh the services. New features:
|
89 | 101 |
|
90 |
| - - Buttonless update support for bonded devices |
91 |
| - - sharing the LTK between an app and the bootloader. |
| 102 | +- Buttonless update support for bonded devices |
| 103 | +- sharing the LTK between an app and the bootloader. |
92 | 104 |
|
93 | 105 | #### Secure DFU
|
94 | 106 |
|
|
0 commit comments