Skip to content

Add xdrip_cgm customization and submodule-fetch support#98

Open
bjorkert wants to merge 1 commit into
mainfrom
xdrip_cgm
Open

Add xdrip_cgm customization and submodule-fetch support#98
bjorkert wants to merge 1 commit into
mainfrom
xdrip_cgm

Conversation

@bjorkert

@bjorkert bjorkert commented Jun 8, 2026

Copy link
Copy Markdown
Member

Purpose

Add the Add xDrip4iOS as a CGM customization to CustomizationSelect, and add support for customizations that introduce a new submodule.

Pairs with the patch in loopandlearn/customization#65 (branch xdrip_cgm).

Method

  • New menu entry add_customization "Add xDrip4iOS as a CGM (clones xdrip-client-swift)" "xdrip_cgm" ...
  • add_customization gains an optional sixth argument: the path of a submodule the customization adds. When present, after the patch applies the script clones that repository using the URL the patch added to .gitmodules (so the referenced Xcode project exists), and removes the directory when the customization is reverted. This mirrors how the GitHub-action build clones xdrip-client-swift.
  • Existing source-only customizations are unaffected (empty sixth argument).
  • Regenerated CustomizationSelect.sh from src/.

Dependency

The patch itself lives in loopandlearn/customization#65. The test commands below fetch this branch's CustomizationSelect.sh and point PATCH_BRANCH at the matching customization branch.

Test

reset command

git submodule foreach 'git reset --hard; git clean -fd;'

apply

export PATCH_BRANCH="xdrip_cgm"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/loopandlearn/lnl-scripts/xdrip_cgm/CustomizationSelect.sh)" \
    xdrip_cgm
unset PATCH_BRANCH

Confirm the patch applies, xdrip-client-swift/ is cloned, xdrip-client-swift/xDripClient.xcodeproj exists, and that reverting the customization both reverses the patch and removes the cloned directory.

Adds the 'Add xDrip4iOS as a CGM' customization to CustomizationSelect.

Customizations that introduce a new submodule (such as xdrip_cgm, which adds
xdrip-client-swift) now take an optional sixth add_customization argument with
the submodule path. After such a patch is applied, the referenced repository is
cloned using the URL the patch added to .gitmodules, so the Xcode project it
references exists; reverting the customization removes the cloned directory.
Existing source-only customizations are unaffected.

Regenerated CustomizationSelect.sh from src.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant