You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/browser/edit-browser.md
+14-96Lines changed: 14 additions & 96 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,11 @@
26
26
27
27
This would be an attempt to merge changes from your <code>fork</code> back to the original version that everyone uses. These changes are for you only. Ignore those prompts.
28
28
29
+
Of course, accidents happen. No worries.
30
+
31
+
* Just hit the Close button
32
+
* If you don't close the accidental PR yourself, it will be closed for you, but that takes time
33
+
29
34
## Overview
30
35
31
36
!!! info "Time Estimate"
@@ -81,11 +86,11 @@ Decide which [Version: Custom Edits](../version/code-custom-edits.md){: target="
81
86
* Do not get confused later: LoopKit is both a username and a Module name
82
87
* Refer to the [Module Table](#module-table) when directed
83
88
84
-
For versions 3.4.x and newer, the customizations for `main` and `dev` are the same.
89
+
> For versions 3.4.x, the customizations for `main` and `dev` are the same.
90
+
91
+
> When moving from v3.4 to v3.6, several items that used to require customization are no longer needed. They are included in v3.6.
85
92
86
-
* For more information, refer to [Not Stable List](../version/code-custom-edits.md#not-stable-list){: target="_blank" }
87
-
* Glucose Guardrails
88
-
* Adjust Future Carbs Time Interval
93
+
> For versions 3.6.x and newer, the customizations for `main` and `dev` are the same.
89
94
90
95
## Outline of What Happens in the Module
91
96
@@ -176,49 +181,6 @@ When you "<span translate="no">fork a repository"</span>, the default
> With the release of version 3.4.x, this entire section can be skipped. It was needed when LoopWorkspace `dev` used submodules that were quite different from those used by `main`.
182
-
183
-
??? abstract "Skip for Now (Click to open/close)"
184
-
185
-
* If the customization you wish to prepare indicates Stable: Yes, you can skip ahead to [Personalized Customization for this Module](#personalized-customization-for-this-module)
186
-
* If you are preparing a customization for the `dev` branch, regardless of the Stable notation, there is no need to create a special `branch`, simply update the default branch to the latest (sync it) and use the current version of the customization when you skip ahead to [Personalized Customization for this Module](#personalized-customization-for-this-module)
187
-
* Otherwise, when you a preparing a customization where the file changed sufficiently between `main` and `dev` and you want to build the `main` branch, you need to create a branch for this Module that is consistent with the version you wish to customize.
188
-
189
-
??? abstract "Use only if directed (Click to Open/Close)"
190
-
Open your browser to your https://github.com/my-name-org/Module URL. If you already created the `branch` you need, you do not need to create a new one.
191
-
192
-
If you are customizing a released version, use the [Table of SHA-1](#table-of-sha-1) under your version number below. Copy the SHA-1 for your Module so you can paste it into the URL in Step 2 below. The suggested branch name is `v-#.#.#` where #.#.# corresponds to the version number for `main`. You will use this in Step 3.3 below.
193
-
194
-
You should create a `branch` following the numbered steps and watching the GIF. Each Frame in the GIF corresponds to a numbered step below.
195
-
196
-
1. Click on URL line as indicated by the arrow
197
-
1. Add the text `/tree/SHA-1` where you change SHA-1 to be the value in the table below and hit return
198
-
1. Create a new branch in three steps
199
-
* 3.1: Click on the dropdown under the `branch` icon
200
-
* 3.2: Type the suggested new `branch` name in the blank space
201
-
* 3.3: Click on the create `branch` button
202
-
1. You should see a screen similar to the example below
203
-
* Do not click on the Create Pull Request button that is marked with a big X
204
-
205
-
{width="600"}
206
-
{align="center"}
207
-
208
-
### Table of SHA-1
209
-
210
-
This will be updated with each release. You do not need this information now - it is only important when submodules that are modified as part of `dev` branch changes to LoopWorkspace are sufficiently different from the versions used for `main` branch.
Navigate to the file you need to modify (using the instructions to find the lines from the [Version: Custom Edit](../version/code-custom-edits.md#instructions-for-finding-the-lines){: target="_blank" } page).
@@ -231,7 +193,9 @@ Navigate to the file you need to modify (using the instructions to find the line
231
193
The folder name is: ` OmniBLE/OmniBLE/OmnipodCommon`<br>
232
194
The file name is: `Pod.swift`
233
195
234
-
So you will go to your OmniBLE fork (see [New Fork](#new-fork){: target="_blank" } if you don't have a fork yet):
196
+
So you will go to your OmniBLE fork (see [New Fork](#new-fork){: target="_blank" } if you don't have a fork yet).
197
+
198
+
**Ensure your fork is up-to-date.** Tap on the `Sync `ork` button if necessary.
235
199
236
200
1. Tap to select `OmniBLE` folder in that fork
237
201
1. Tap to select `OmnipodCommon` folder in that folder
@@ -397,7 +361,7 @@ Return to your <span translate="no">GitHub fork for LoopWorkspace</span>&nb
397
361
398
362
Open the text file in which you saved the customization lines.
399
363
400
-
For a given submodule, paste the "comment" and "curl" lines that you prepared in [Prepare customization lines](#prepare-customization-lines) similar to the examples, near line 279 (`main` or 239 for `dev`), that are commented out and provided as an example. The best place to paste these is at the end of the `# Customize Loop: Download and apply patches` section and before the `# Patch Fastlane Match to not print tables` line.
364
+
For a given submodule, paste the "comment" and "curl" lines that you prepared in [Prepare customization lines](#prepare-customization-lines)(similar to the examples found in lines 279 through 286). These examples are commented out and are just for guidance. The best place to paste these is at the end of the `# Customize Loop: Download and apply patches` section and before the `# Patch Fastlane Match to not print tables` line.
401
365
402
366
The indenting needs to match, so tab or (shift-tab) to line up the columns. The graphic below shows a couple of common mistakes.
403
367
@@ -440,7 +404,7 @@ In about 1 hour, your customized app will be available for installation on your
440
404
441
405
## Extra Information
442
406
443
-
The rest of this page has additional information most people can skip. If a mentor is helping you, they may use some of this information.
407
+
The rest of this page has additional information most people can skip.
444
408
445
409
### How to Use the `patches` Folder
446
410
@@ -474,52 +438,6 @@ If you've gotten this far, keep going. No more pretty graphics, but I think you
474
438
* Commit to your default branch
475
439
* Test the build to make sure everything worked
476
440
477
-
### Customization and SHA-1
478
-
479
-
When you commit your customization to your `branch` of your `fork`, there is a new SHA-1 associated with that step. The SHA-1 for a given branch, typically `main` or `dev` identifies to a mentor exactly which version of code you used for your build.
480
-
481
-
The SHA-1 for customized code will not be recognized by a developer or mentor. If you are having a problem and need to ask for help you need to identify what the SHA-1 was before you added your customizations.
482
-
483
-
If you are on `main` branch and it is up-to-date, this is less of an issue. If you are on `dev` branch, that can require some investigation.
484
-
485
-
### Ask for Help to Identify Your Base Version
486
-
487
-
The easy method is to provide a mentor with your GitHub username and they can figure out the base version you are using aside from customization. They can also identify the customizations you added.
488
-
489
-
### Identify Your Base Version
490
-
491
-
If you want to do this yourself, this section explains the steps.
492
-
493
-
* Step 1: In your customized `LoopWorkspace fork`: tap on <code>Code</code> at upper left
494
-
* If your `fork` is behind the `LoopKit``repository`, consider updating your `fork`
495
-
* Typically this can be done without changing your customization
496
-
* Because you added customizations, your `fork` will be ahead of the `LoopKit``repository`
497
-
* An example is shown for the `main` branch in the graphic below - it is one <code>commit</code> ahead of <code>LoopKit</code> as indicated by the message highlighted by the red rectangle<br><br>
498
-
499
-
{width="600"}
500
-
{align="center"}
501
-
502
-
* Step 2: Click on the clock symbol, highlighted by blue rectangle in the previous graphic, to view the <code>commit</code> history - the history is presented in reverse chronological order
503
-
* Step 3: Look at the <code>commit</code> descriptions for your `fork`; several examples are shown below
504
-
* The last <code>commit</code> made by the developers that is included in your `fork` is the one a mentor will recognize
505
-
* The first example is for `main` with one customization
506
-
* The row highlighted in red is the one a mentor will recognize
507
-
* The 7-digit alpha-numeric identifier for the <code>commit</code> is highlighted in the blue rectangle
508
-
* If you click on the copy icon beside it, the full SHA-1 is captured in your paste buffer but the first 7 characters are sufficient to identify your base version (before customization) to a mentor<br><br>
509
-
510
-
{width="600"}
511
-
{align="center"}
512
-
513
-
* The second example is for `dev` where the `fork` was synched both before and after customizations were applied
514
-
* Red rectangle labeled 1 is the commit a mentor will recognize
515
-
* Blue dashed rectangle labeled 2 is what GitHub adds when the user successfully syncs the <code>repository</code> - note that the SHA-1 here is specific to this repo and does not help a mentor identify the base version of your build
516
-
* The row above the red rectangle is a customization made prior to the sync
517
-
* The top row (above the blue rectangle) is a customizaiton made after the sync
518
-
519
-
{width="600"}
The next screen informs you of what you will be downloading. Type `1` and return to begin the download or `2` to return to the main menu.
155
+
The next screen asks you to choose to build either Loop `main` or Loop `dev`, with `main` recommended. Type `1` to choose `main` and return to begin the download.
156
+
157
+
> You can choose `dev` by typing 2 and return. Or return to the BuildSelect Menu by typing 3 and return.
156
158
157
159
{width="700"}
158
160
{align="center"}
@@ -161,7 +163,7 @@ The next screen informs you of what you will be downloading. Type `1` and return
161
163
162
164
This download can take from 3 minutes to 30 minutes depending on your download speed. You can leave the room and return later to check on progress. When you read the words in the terminal, as the script runs, you may see terminology you do not understand - don't worry - you do not need to understand enumeration or submodule or cloning. You only need to review the display to look for any error messages.
163
165
164
-
!!! tip "New Feature"
166
+
!!! tip "Watch for messages"
165
167
The Build-Script automatically reports when the download is successful.
166
168
167
169
The next graphic shows terminal messages for the beginning of a successful download.
Copy file name to clipboardExpand all lines: docs/build/build-dev-mac.md
+12-8Lines changed: 12 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,24 +9,28 @@
9
9
10
10
***[What's going on in the `dev branch`](../version/development.md#whats-going-on-in-the-dev-branch)**
11
11
12
-
## `BuildLoopDev` Script
12
+
## Build `dev` with Mac
13
13
14
-
> Choose the tip of dev when using the existing scripts. The concept of the lightly tested commit is no longer needed. Each `dev` update comes with a new dev version number after a formal review process.
14
+
The same script is used to build the `dev` branch as is used to build the `main` branch. Copy and paste this command in any terminal and choose `dev` branch. Follow the instructions on the screen.
15
15
16
-
There is a script to assist in building the `dev branch`. It gives you the option to choose the tip of the `dev branch` or to build a lightly tested commit. If you have not used the [Build Select Script](../build/build-app.md#build-select-script) to build Loop previously, you may want to review that page. The command below can be pasted into the terminal of your Mac. Read the directions in the script.
17
-
18
-
```{ .bash .copy title="Copy and Paste to start the BuildLoopDev script" }
16
+
```{ title="Copy and Paste to start the BuildLoop Script" }
*[Experienced Builder: Instructions to Download and Build Loop](https://loopkit.github.io/loopdocs/build/build-app/#download-loop){: target="_blank" }
24
+
25
+
*[New Builder: Start here to set up Developer Mode on Phone and Watch](https://loopkit.github.io/loopdocs/build/build-app/#prepare-your-phone-and-watch){: target="_blank" }
26
+
23
27
### Build Other Branches
24
28
25
-
You can use the BuildLoopDev script to build a specific development branch, other than`dev`. At the end of the script (from above), add a space after the final quote, followed by a hyphen, another space and then the branch name. See the example below that would build `other-branch`, if such a branch existed. This is just an example. You need to substitute the branch you desire for `other-branch`. The example below uses a continuation character to put the extra characters on a new line to make this easier to read.
29
+
You can use the BuildLoop script to build a feature branch that was advertised in zulipchat but has not been merged into`dev`. At the end of the script (from above), add a space after the final quote, followed by a hyphen, another space and then the branch name. See the example below that would build `other-branch`, if such a branch existed. This is just an example. You need to substitute the branch you desire for `other-branch`. The example below uses a continuation character to put the extra characters on a new line to make this easier to read.
26
30
27
31
```{ title="Replace <code>other-branch</code> with the desired branch" }
0 commit comments