Skip to content

Commit b08c424

Browse files
Merge pull request #7 from tfmart/readme-update
Updated README Documentation
2 parents 451af53 + 3e7d251 commit b08c424

File tree

1 file changed

+125
-26
lines changed

1 file changed

+125
-26
lines changed

README.md

+125-26
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,23 @@ This sample application leverages TheraForge frameworks such as [OTFTemplateBox]
77
For more details on the features of the SDK and on the TheraForge Cloud setup process (e.g., to obtain an API key), refer to the [OTFToolBox](../../../OTFToolBox) Readme file.
88

99
## Change Log
10-
* Release 1.0.0-beta: First beta release of the template app
11-
* Release 1.0.1-beta: Removed warnings, improved profile section, added UI samples and made various other improvements
1210
* Release 1.0.2-beta:
1311
* Made the application more configurable by adding color, font, font weight, background color in the yaml file.
1412
* Added app localization capabilities in the yaml file.
1513
* Consolidated multiple yaml files into two.
1614
* Added support for user account deletion to make the app more GDPR compliant.
1715
* Added CI/CD workflow to automate testing and deployment in TestFlight using GitHub Actions. Updated documentation with the required configuration steps.
1816
* Various fixes and improvements.
17+
<details>
18+
<summary>Release 1.0.1-beta</summary>
19+
Removed warnings, improved profile section, added UI samples and made various other improvements
20+
21+
</details>
22+
23+
<details>
24+
<summary>Release 1.0.0-beta</summary>
25+
First beta release of the template app
26+
</details>
1927

2028
# Table of Contents
2129

@@ -25,7 +33,7 @@ For more details on the features of the SDK and on the TheraForge Cloud setup pr
2533
* [Usage](#app-usage)
2634
* [Registration on Apple Developer Portal](#registration-on-apple-developer-portal)
2735
* [Xcode Setup](#xcode-setup)
28-
* [CI/CD Setup](#ci-cd-setup)
36+
* [CI/CD Setup](#cicd-setup)
2937
* [License](#license)
3038

3139
# Overview
@@ -148,12 +156,15 @@ Outcome is automatically synchronized securely across the cloud to all devices:
148156

149157
The MagicBox app installation process requires the installation of the ToolBox SDK and so it is similar to the process described in the [OTFToolBox](../../../OTFToolBox) Readme file.
150158

151-
* [Prerequisites](#prerequisites)
152-
* [App Setup](#app-setup)
159+
* [Prerequisites](#Prerequisites)
160+
* [App Setup](#App-Setup)
153161

154-
## Prerequisites
162+
## Prerequisites <a name="Prerequisites"></a>
155163

156-
An Intel-based Mac running [macOS Catalina 10.15.4 or later](https://developer.apple.com/documentation/xcode-release-notes/xcode-12-release-notes) or a Mac with Apple's M1 Silicon running [macOS 11 Big Sur](https://developer.apple.com/documentation/xcode-release-notes/xcode-12_2-release-notes). macOS 12 Monterey and Xcode 13 are supported.
164+
- macOS Catalina 10.15.4 (Intel) or macOS 11 Big Sur (Apple Silicon)
165+
- Xcode 13.0 or later
166+
- CocoaPods
167+
- iOS 14.0 or later
157168

158169
### 1. Installation Prerequisites
159170

@@ -163,7 +174,7 @@ In order to develop iOS apps, make sure to download Xcode, Apple's Integrated De
163174

164175
If you haven't done it yet, follow this [Xcode article](https://medium.nextlevelswift.com/install-and-configure-xcode-7ed0c5592219) to install and configure it.
165176

166-
(Note that in case of Xcode 13.2 Apple recommends to download it directly from the Apple Developer web site https://developer.apple.com/download/all/?q=Xcode. Some developers consider this installation method *preferable for all versions of Xcode*, that is, it’s considered a best practice. However, in this case you also need to install the *Command Line Tools for Xcode*, which are a separate download.)
177+
(Note that in case of Xcode 13.2 Apple recommends to [download it directly from the Apple Developer web site](https://developer.apple.com/download/all/?q=Xcode). Some developers consider this installation method *preferable for all versions of Xcode*, that is, it’s considered a best practice. However, in this case you also need to install the *Command Line Tools for Xcode*, which are a separate download.)
167178

168179
<p align="center"><img src="Docs/27-cocoapods.png" width=50% height=50%></p>
169180

@@ -211,7 +222,7 @@ Refer to our [Cocoapods Installation](Docs/Cocoapods.md) page for prerequisites,
211222

212223
After successful installation of `git-lfs` and Cocoapods, you can install the MagicBox app.
213224

214-
## App Setup
225+
## App Setup <a name="App-Setup"></a>
215226

216227
### 1. Create the Developer Directory and a Project Subdirectory
217228

@@ -252,17 +263,25 @@ Next, copy the URL of MagicBox's repository in GitHub to clone it. Remember to s
252263

253264
This is the URL that you should get from GitHub:
254265

255-
`https://github.com/TheraForge/OTFMagicBox.git`
266+
```
267+
https://github.com/TheraForge/OTFMagicBox.git
268+
```
256269

257270
### 3. Clone MagicBox's Repository to Install the App
258271

259272
Then go back to the Terminal app in the `Developer` directory and enter `git clone` followed by the repository URL you just copied in the previous step:
260273

274+
```
275+
git clone https://github.com/TheraForge/OTFMagicBox.git
276+
```
277+
261278
<img src="Docs/17-GitClone.png">
262279

263280
Then change the directory to the newly-created OTFMagicBox subdirectory:
264281

265-
`cd OTFMagicBox`
282+
```
283+
cd OTFMagicBox
284+
```
266285

267286
### 4. List the Cloned Files
268287

@@ -352,52 +371,132 @@ Example: change $(PRODUCT_NAME) to “My Digital App”.
352371

353372
You can change the tint color, the label colors, font type and size to customize the look of your application:
354373

355-
[Color Codes in designConfig Section](/OTFMagicBox/AppSysParameters.yml#L83-L177)
374+
```yml
375+
designConfig:
376+
# Offset value.
377+
- name: "offset"
378+
textValue: "20"
379+
380+
# Color codes
381+
382+
# Please choose the colors according to Human Interface Guidelines from Apple.
383+
# Refer here https://developer.apple.com/design/human-interface-guidelines/ios/visual-design/color
384+
385+
- name: "tintColor"
386+
textValue: "Blue"
387+
- name: "label"
388+
textValue: "Teal"
389+
- name: "secondaryLabel"
390+
textValue: "Brown"
391+
# ...
392+
393+
# Fonts
394+
- name: "largeTitleFontSize"
395+
textValue: "20"
396+
- name: "titleFontName"
397+
textValue: "Gotham-Book"
398+
- name: "titleFontSize"
399+
textValue: "17"
400+
# ...
401+
```
356402

357403
## Set up the TheraForge Cloud API Key
358404

359405
Update the API key field to access the TheraForge Secure Cloud service for synchronization and communication with the web dashboards:
360406

361-
[API Key Configuration Section](/OTFMagicBox/AppSysParameters.yml#L194-L195)
407+
```yml
408+
# AppSysParameters.yml
409+
DataModel:
410+
# ...
411+
apiKey: "<set_your_api_key_here>"
412+
```
362413
363414
## Customize Onboarding
364415
365-
To customize the onboarding process, go to the onboarding section in the `AppSysParameters.yml` file and add as many onboarding pages as you need. You can add the image types of your choice such as Emoji, SF Symbols and assets. In the description you can write the text explaining each particular onboarding page:
366-
367-
[Onbarding Configuration Section](/OTFMagicBox/AppSysParameters.yml#L220-L228)
416+
To customize the onboarding process, go to the onboarding section in the `ModuleAppSysParameter.yml` file and add as many onboarding pages as you need. You can add the image types of your choice such as Emoji, SF Symbols and assets. In the description you can write the text explaining each particular onboarding page:
417+
418+
```yml
419+
# ModuleAppSysParameter.yml
420+
421+
onboarding:
422+
- image: "Splash Image"
423+
icon: "stethoscope"
424+
title: "Welcome to MagicBox"
425+
color: "Black"
426+
description: "Your health care app"
427+
428+
- image: "Splash Image"
429+
icon: "speedometer"
430+
title: "This is another custom onboarding step"
431+
color: "Black"
432+
description: "MagicBox allows you to customize the onboarding experience with custom steps"
433+
```
368434

369435
## Customize Consent
370436

371-
To customize the Consent process of your application go to the Consent section in the `AppSysParameters.yml` file and add/modify the required sections. Follow the instructions given in the yaml file to add the correct type of consent sections:
437+
To customize the Consent process of your application go to the Consent section in the `ModuleAppSysParameter.yml` file and add/modify the required sections. Follow the instructions given in the yaml file to add the correct type of consent sections:
372438

373-
[Consent Configuration Section](/OTFMagicBox/AppSysParameters.yml#L230-L286)
439+
```yml
440+
# ModuleAppSysParameter.yml
441+
442+
## Custom Consent Section, if you want to display this in your application then assign true value otherwise false for the "show" key.
443+
- show: "true"
444+
summary: "This is custom section."
445+
content: "Describe here what the user is consenting to in this step of the onboarding"
446+
```
374447

375448
## Customize Registration and Login
376449

377-
Go to the Registration section in the `AppSysParameters.yml` file and change the settings for *Date Of Birth* and *Gender* to `true` if you want to display those fields in your Registration form, otherwise set them to `false`:
450+
Go to the Registration section in the `ModuleAppSysParameter.yml` file and change the settings for *Date Of Birth* and *Gender* to `true` if you want to display those fields in your Registration form, otherwise set them to `false`:
378451

379-
[Registration Configuration Section](/OTFMagicBox/AppSysParameters.yml#L288-L293)
452+
```yml
453+
# ModuleAppSysParameter.yml
454+
455+
registration:
456+
showDateOfBirth: "true"
457+
showGender: "true"
458+
```
380459

381460
## Configure Regular Login/Social Login
382461

383-
Go to the Login section in the `AppSysParameters.yml` file and customize the title and the description.
462+
Go to the Login section in the `ModuleAppSysParameter.yml` file and customize the title and the description.
384463

385464
If you want to use the *Sign up With Apple* feature, then change the corresponding setting to `true`:
386465

387-
[Login Configuration Section](/OTFMagicBox/AppSysParameters.yml#L295-L306)
466+
```yml
467+
# ModuleAppSysParameter.yml
468+
469+
showAppleSignin: "true"
470+
showGoogleSignin: "false"
471+
googleClientID: "add_your_client_id_here"
472+
```
388473

389474
## Configure the Passcode
390475

391-
Go to the Passcode section in the `AppSysParameters.yml` file and change the settings of passcode text and passcode type to 4 or 6 digits:
476+
Go to the Passcode section in the `ModuleAppSysParameter.yml` file and change the settings of passcode text and passcode type to either 4 or 6 digits:
477+
478+
```yaml
479+
# ModuleAppSysParameter.yml
392480
393-
[Passcode Configuration Section](/OTFMagicBox/AppSysParameters.yml#L308-L316)
481+
passcode:
482+
enable: "false"
483+
passcodeOnReturnText: "Welcome back!"
484+
passcodeText: "Now you will create a passcode to identify yourself to the app and protect access to information you have entered."
485+
486+
# Property passcodeType value can be either "4" or "6" only, which describes the number of digits for the passcode.
487+
passcodeType: "4"
488+
```
394489

395490

396491
## Enable CareKit
397492

398493
If your application requires support for tasks (for example, for a care plan) and contacts, then enable the `useCareKit` key, which allows you to display the contacts and list the tasks of the patients:
399494

400-
[Carekit Configuration Section](/OTFMagicBox/AppSysParameters.yml#L327-L330)
495+
```yml
496+
# AppSysParameters.yml
497+
498+
useCareKit: "true"
499+
```
401500

402501

403502
# Registration on Apple Developer Portal
@@ -410,7 +509,7 @@ Register your project in your Apple developer account by following [these steps]
410509

411510
Set up the Xcode application with your Apple developer account information as [described here](XCODE-SETUP.md).
412511

413-
# CI CD Setup
512+
# CI/CD Setup
414513

415514
Configure your project using a CI and CD pipeline via GitHub Actions as [described here](/.github/CICD.md).
416515

0 commit comments

Comments
 (0)