Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gestrich committed Jan 28, 2023
0 parents commit 1e0325a
Show file tree
Hide file tree
Showing 153 changed files with 8,514 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
jobs:
build:
macos:
xcode: 14.1.0
steps:
- checkout
- run:
name: Checkout submodules
command: git submodule update --init --recursive --depth 1
- run:
name: Build Loop
command: set -o pipefail && time xcodebuild -workspace Loop.xcworkspace -scheme 'Loop (Workspace)' -destination 'platform=iOS Simulator,name=iPhone 13,OS=15.5' build | xcpretty
- run:
name: Build Learn
command: set -o pipefail && time xcodebuild -workspace Loop.xcworkspace -scheme 'Learn (Workspace)' -destination 'platform=iOS Simulator,name=iPhone 13,OS=15.5' build | xcpretty
- run:
name: Run Tests
command: set -o pipefail && time xcodebuild -workspace Loop.xcworkspace -scheme 'Loop (Workspace)' -destination 'platform=iOS Simulator,name=iPhone 13,OS=15.5' test | xcpretty

41 changes: 41 additions & 0 deletions .github/workflows/add_identifiers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Add Identifiers
on:
workflow_dispatch:

jobs:
identifiers:
runs-on: macos-12
steps:
# Uncomment to manually select latest Xcode if needed
#- name: Select Latest Xcode
# run: "sudo xcode-select --switch /Applications/Xcode_13.0.app/Contents/Developer"

# Checks-out the repo
- name: Checkout Repo
uses: actions/checkout@v3

# Patch Fastlane Match to not print tables
- name: Patch Match Tables
run: find /usr/local/lib/ruby/gems -name table_printer.rb | xargs sed -i "" "/puts(Terminal::Table.new(params))/d"

# Create or update identifiers for Loop
- name: Fastlane Provision Loop
run: fastlane loop_identifiers
env:
TEAMID: ${{ secrets.TEAMID }}
GH_PAT: ${{ secrets.GH_PAT }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
FASTLANE_KEY_ID: ${{ secrets.FASTLANE_KEY_ID }}
FASTLANE_ISSUER_ID: ${{ secrets.FASTLANE_ISSUER_ID }}
FASTLANE_KEY: ${{ secrets.FASTLANE_KEY }}

# Create or update identifier for LoopCaregiver
- name: Fastlane Provision Caregiver
run: fastlane caregiver_identifier
env:
TEAMID: ${{ secrets.TEAMID }}
GH_PAT: ${{ secrets.GH_PAT }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
FASTLANE_KEY_ID: ${{ secrets.FASTLANE_KEY_ID }}
FASTLANE_ISSUER_ID: ${{ secrets.FASTLANE_ISSUER_ID }}
FASTLANE_KEY: ${{ secrets.FASTLANE_KEY }}
52 changes: 52 additions & 0 deletions .github/workflows/build_loop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Build Loop
on:
workflow_dispatch:

jobs:
build:
runs-on: macos-12
steps:
# Uncomment to manually select latest Xcode if needed
- name: Select Latest Xcode
run: "sudo xcode-select --switch /Applications/Xcode_14.1.app/Contents/Developer"

# Checks-out the repo
- name: Checkout Repo
uses: actions/checkout@v3
with:
submodules: recursive

# Patch Fastlane Match to not print tables
- name: Patch Match Tables
run: find /usr/local/lib/ruby/gems -name table_printer.rb | xargs sed -i "" "/puts(Terminal::Table.new(params))/d"

# Build signed Loop IPA file
- name: Fastlane Build & Archive
run: fastlane loop_build
env:
TEAMID: ${{ secrets.TEAMID }}
GH_PAT: ${{ secrets.GH_PAT }}
FASTLANE_KEY_ID: ${{ secrets.FASTLANE_KEY_ID }}
FASTLANE_ISSUER_ID: ${{ secrets.FASTLANE_ISSUER_ID }}
FASTLANE_KEY: ${{ secrets.FASTLANE_KEY }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}

# Upload to TestFlight
- name: Fastlane upload to TestFlight
run: fastlane loop_release
env:
TEAMID: ${{ secrets.TEAMID }}
GH_PAT: ${{ secrets.GH_PAT }}
FASTLANE_KEY_ID: ${{ secrets.FASTLANE_KEY_ID }}
FASTLANE_ISSUER_ID: ${{ secrets.FASTLANE_ISSUER_ID }}
FASTLANE_KEY: ${{ secrets.FASTLANE_KEY }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}

# Upload IPA and Symbols
- name: Upload IPA and Symbol artifacts
uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: |
artifacts
buildlog
52 changes: 52 additions & 0 deletions .github/workflows/build_loopcaregiver.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Build LoopCaregiver
on:
workflow_dispatch:

jobs:
build:
runs-on: macos-12
steps:
# Uncomment to manually select latest Xcode if needed
- name: Select Latest Xcode
run: "sudo xcode-select --switch /Applications/Xcode_14.1.app/Contents/Developer"

# Checks-out the repo
- name: Checkout Repo
uses: actions/checkout@v3
with:
submodules: recursive

# Patch Fastlane Match to not print tables
- name: Patch Match Tables
run: find /usr/local/lib/ruby/gems -name table_printer.rb | xargs sed -i "" "/puts(Terminal::Table.new(params))/d"

# Build signed LoopCaregiver IPA file
- name: Fastlane Build & Archive
run: fastlane caregiver_build
env:
TEAMID: ${{ secrets.TEAMID }}
GH_PAT: ${{ secrets.GH_PAT }}
FASTLANE_KEY_ID: ${{ secrets.FASTLANE_KEY_ID }}
FASTLANE_ISSUER_ID: ${{ secrets.FASTLANE_ISSUER_ID }}
FASTLANE_KEY: ${{ secrets.FASTLANE_KEY }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}

# Upload to TestFlight
- name: Fastlane upload to TestFlight
run: fastlane caregiver_release
env:
TEAMID: ${{ secrets.TEAMID }}
GH_PAT: ${{ secrets.GH_PAT }}
FASTLANE_KEY_ID: ${{ secrets.FASTLANE_KEY_ID }}
FASTLANE_ISSUER_ID: ${{ secrets.FASTLANE_ISSUER_ID }}
FASTLANE_KEY: ${{ secrets.FASTLANE_KEY }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}

# Upload IPA and Symbols
- name: Upload IPA and Symbol artifacts
uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: |
artifacts
buildlog
41 changes: 41 additions & 0 deletions .github/workflows/create_certs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Create Certificates
on:
workflow_dispatch:

jobs:
certificates:
runs-on: macos-12
steps:
# Uncomment to manually select latest Xcode if needed
#- name: Select Latest Xcode
# run: "sudo xcode-select --switch /Applications/Xcode_13.0.app/Contents/Developer"

# Checks-out the repo
- name: Checkout Repo
uses: actions/checkout@v3

# Patch Fastlane Match to not print tables
- name: Patch Match Tables
run: find /usr/local/lib/ruby/gems -name table_printer.rb | xargs sed -i "" "/puts(Terminal::Table.new(params))/d"

# Create or update certificates for Loop
- name: Create Loop Certificates
run: fastlane loop_certs
env:
TEAMID: ${{ secrets.TEAMID }}
GH_PAT: ${{ secrets.GH_PAT }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
FASTLANE_KEY_ID: ${{ secrets.FASTLANE_KEY_ID }}
FASTLANE_ISSUER_ID: ${{ secrets.FASTLANE_ISSUER_ID }}
FASTLANE_KEY: ${{ secrets.FASTLANE_KEY }}

# Create or update certificate for LoopCaregiver
- name: Create Caregiver Certificate
run: fastlane caregiver_cert
env:
TEAMID: ${{ secrets.TEAMID }}
GH_PAT: ${{ secrets.GH_PAT }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
FASTLANE_KEY_ID: ${{ secrets.FASTLANE_KEY_ID }}
FASTLANE_ISSUER_ID: ${{ secrets.FASTLANE_ISSUER_ID }}
FASTLANE_KEY: ${{ secrets.FASTLANE_KEY }}
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## Build
DerivedData/

## Settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/

## Other
*.moved-aside
*.xccheckout
*.xcscmblueprint
*.xcuserstate
.DS_Store

## Obj-C/Swift specific
*.hmap
*.ipa

## Playgrounds
*.playground
playground.xcworkspace
timeline.xctimeline
48 changes: 48 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
[submodule "Loop"]
path = Loop
url = https://github.com/gestrich/Loop.git
[submodule "LoopKit"]
path = LoopKit
url = https://github.com/gestrich/LoopKit.git
[submodule "CGMBLEKit"]
path = CGMBLEKit
url = https://github.com/LoopKit/CGMBLEKit.git
[submodule "dexcom-share-client-swift"]
path = dexcom-share-client-swift
url = https://github.com/LoopKit/dexcom-share-client-swift.git
[submodule "rileylink_ios"]
path = rileylink_ios
url = https://github.com/gestrich/rileylink_ios.git
[submodule "MKRingProgressView"]
path = MKRingProgressView
url = https://github.com/LoopKit/MKRingProgressView.git
[submodule "NightscoutService"]
path = NightscoutService
url = https://github.com/gestrich/NightscoutService.git
[submodule "Minizip"]
path = Minizip
url = https://github.com/LoopKit/Minizip.git
[submodule "TrueTime.swift"]
path = TrueTime.swift
url = https://github.com/LoopKit/TrueTime.swift.git
[submodule "LoopOnboarding"]
path = LoopOnboarding
url = https://github.com/LoopKit/LoopOnboarding.git
[submodule "AmplitudeService"]
path = AmplitudeService
url = https://github.com/LoopKit/AmplitudeService.git
[submodule "LogglyService"]
path = LogglyService
url = https://github.com/LoopKit/LogglyService.git
[submodule "OmniBLE"]
path = OmniBLE
url = https://github.com/LoopKit/OmniBLE.git
[submodule "NightscoutAPIClient"]
path = NightscoutAPIClient
url = https://github.com/LoopKit/NightscoutAPIClient.git
[submodule "LoopSupport"]
path = LoopSupport
url = https://github.com/LoopKit/LoopSupport
[submodule "G7SensorKit"]
path = G7SensorKit
url = https://github.com/LoopKit/G7SensorKit.git
1 change: 1 addition & 0 deletions AmplitudeService
Submodule AmplitudeService added at dd6624
1 change: 1 addition & 0 deletions CGMBLEKit
Submodule CGMBLEKit added at a37195
1 change: 1 addition & 0 deletions G7SensorKit
Submodule G7SensorKit added at 27c84e
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source "https://rubygems.org"

gem "fastlane"
Loading

0 comments on commit 1e0325a

Please sign in to comment.