Skip to content

Commit da08bf9

Browse files
committed
Initial commit: Health Generator App with comprehensive health data generation capabilities
0 parents  commit da08bf9

104 files changed

Lines changed: 10740 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: '[BUG] '
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Environment (please complete the following information):**
27+
- Device: [e.g. iPhone 15 Pro]
28+
- iOS Version: [e.g. 18.0]
29+
- App Version: [e.g. 1.0.0]
30+
- Xcode Version: [e.g. 15.0]
31+
32+
**Additional context**
33+
Add any other context about the problem here.
34+
35+
**Console Logs**
36+
If applicable, add console logs or crash reports here.
37+
38+
**Health Data Context**
39+
- How many health samples were you trying to generate?
40+
- What types of health data were involved?
41+
- Were you performing cleanup or generation when the issue occurred?
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: '[FEATURE] '
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Use Case**
20+
Describe the specific use case or scenario where this feature would be helpful.
21+
22+
**Implementation Ideas**
23+
If you have ideas about how this could be implemented, please share them here.
24+
25+
**Additional context**
26+
Add any other context or screenshots about the feature request here.
27+
28+
**Health Data Types**
29+
If this feature involves new health data types, please specify which ones and why they're important.

.github/WORKFLOWS_STATUS.md

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
# GitHub Workflows Status
2+
3+
## ✅ Workflows Disabled
4+
5+
All GitHub Actions workflows have been moved to `.github/workflows.disabled/` directory.
6+
7+
### What was done:
8+
1. ✅ Copied all workflow files to `workflows.disabled/` directory
9+
2. ⚠️ **Action Required**: Delete the original files in `workflows/` directory
10+
11+
### To complete the disabling:
12+
13+
```bash
14+
# Delete the active workflow files
15+
rm -rf .github/workflows/
16+
```
17+
18+
### Workflows that were disabled:
19+
- **ci.yml** - Continuous Integration (Swift Package tests, iOS app build, SwiftLint)
20+
- **codeql.yml** - CodeQL security analysis
21+
- **release.yml** - Automated releases on version tags
22+
23+
---
24+
25+
## 📝 Important Notes
26+
27+
### Before Re-enabling Workflows:
28+
29+
The workflows contain **outdated folder names** and need to be updated:
30+
31+
#### Changes needed:
32+
1. **Folder name**: `HealthGeneratorApp``HealthKitDataGeneratorApp`
33+
2. **Workspace**: `HealthGeneratorApp.xcworkspace``HealthKitDataGeneratorApp.xcworkspace`
34+
3. **Scheme**: `-scheme HealthGeneratorApp``-scheme HealthKitDataGeneratorApp`
35+
36+
#### Files that need updates:
37+
- `ci.yml` - Lines 68, 74, 84
38+
- `codeql.yml` - Lines 45, 47
39+
- `release.yml` - Lines 33, 39
40+
41+
---
42+
43+
## 🔄 To Re-enable Workflows:
44+
45+
### Option 1: Move files back (after updating)
46+
```bash
47+
# 1. Update the folder names in workflow files
48+
# 2. Move back to workflows directory
49+
mv .github/workflows.disabled/*.yml .github/workflows/
50+
```
51+
52+
### Option 2: Rename directory
53+
```bash
54+
# After updating folder names in the files
55+
mv .github/workflows.disabled .github/workflows
56+
```
57+
58+
---
59+
60+
## 🧪 Testing Workflows Locally
61+
62+
Before re-enabling, you can test workflows locally:
63+
64+
### Using `act`:
65+
```bash
66+
# Install act
67+
brew install act
68+
69+
# Test CI workflow
70+
act -j test-swift-package
71+
act -j build-ios-app
72+
act -j lint
73+
```
74+
75+
### Manual testing:
76+
```bash
77+
# Test Swift Package
78+
cd HealthKitDataGenerator && swift build && swift test
79+
80+
# Test iOS App
81+
cd HealthKitDataGeneratorApp && tuist generate
82+
83+
# Run SwiftLint
84+
swiftlint lint
85+
```
86+
87+
---
88+
89+
**Status**: Workflows disabled on October 5, 2025
90+
**Reason**: Folder renaming from HealthGeneratorApp to HealthKitDataGeneratorApp

.github/pull_request_template.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
## Description
2+
3+
Brief description of the changes made in this PR.
4+
5+
## Type of Change
6+
7+
- [ ] Bug fix (non-breaking change which fixes an issue)
8+
- [ ] New feature (non-breaking change which adds functionality)
9+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
10+
- [ ] Documentation update
11+
- [ ] Code refactoring
12+
- [ ] Performance improvement
13+
- [ ] Test improvements
14+
15+
## Changes Made
16+
17+
-
18+
-
19+
-
20+
21+
## Testing
22+
23+
- [ ] Unit tests added/updated
24+
- [ ] Integration tests added/updated
25+
- [ ] Manual testing completed
26+
- [ ] All existing tests pass
27+
28+
### Test Environment
29+
- Device:
30+
- iOS Version:
31+
- Xcode Version:
32+
33+
## Screenshots (if applicable)
34+
35+
Add screenshots or videos demonstrating the changes, especially for UI changes.
36+
37+
## Checklist
38+
39+
- [ ] My code follows the style guidelines of this project
40+
- [ ] I have performed a self-review of my own code
41+
- [ ] I have commented my code, particularly in hard-to-understand areas
42+
- [ ] I have made corresponding changes to the documentation
43+
- [ ] My changes generate no new warnings
44+
- [ ] I have added tests that prove my fix is effective or that my feature works
45+
- [ ] New and existing unit tests pass locally with my changes
46+
- [ ] Any dependent changes have been merged and published
47+
48+
## Health Data Impact
49+
50+
If this PR affects health data generation or management:
51+
52+
- [ ] Tested with various sample sizes
53+
- [ ] Verified data cleanup works correctly
54+
- [ ] Confirmed HealthKit permissions are handled properly
55+
- [ ] No impact on existing health data
56+
57+
## Breaking Changes
58+
59+
List any breaking changes and migration steps if applicable:
60+
61+
## Additional Notes
62+
63+
Add any additional notes, concerns, or context for reviewers.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Workflows Disabled
2+
3+
These GitHub Actions workflows have been temporarily disabled.
4+
5+
## Files in this directory:
6+
- `ci.yml` - Continuous Integration workflow
7+
- `codeql.yml` - CodeQL security analysis workflow
8+
- `release.yml` - Release automation workflow
9+
10+
## To re-enable workflows:
11+
12+
1. **Move files back to workflows directory:**
13+
```bash
14+
mv .github/workflows.disabled/*.yml .github/workflows/
15+
```
16+
17+
2. **Or rename this directory:**
18+
```bash
19+
mv .github/workflows.disabled .github/workflows
20+
```
21+
22+
## Note:
23+
24+
Before re-enabling, make sure to update the folder names in the workflows:
25+
- `HealthGeneratorApp``HealthKitDataGeneratorApp`
26+
- `HealthGeneratorApp.xcworkspace``HealthKitDataGeneratorApp.xcworkspace`
27+
- `-scheme HealthGeneratorApp``-scheme HealthKitDataGeneratorApp`
28+
29+
## Disabled on:
30+
October 5, 2025

.github/workflows.disabled/ci.yml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main, develop ]
6+
pull_request:
7+
branches: [ main, develop ]
8+
9+
env:
10+
DEVELOPER_DIR: /Applications/Xcode_15.0.app/Contents/Developer
11+
12+
jobs:
13+
test-swift-package:
14+
name: Test Swift Package
15+
runs-on: macos-14
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Select Xcode Version
21+
run: sudo xcode-select -s /Applications/Xcode_15.0.app/Contents/Developer
22+
23+
- name: Cache Swift Package Manager
24+
uses: actions/cache@v3
25+
with:
26+
path: .build
27+
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
28+
restore-keys: |
29+
${{ runner.os }}-spm-
30+
31+
- name: Build Swift Package
32+
run: |
33+
cd HealthKitDataGenerator
34+
swift build -v
35+
36+
- name: Run Swift Package Tests
37+
run: |
38+
cd HealthKitDataGenerator
39+
swift test -v
40+
41+
build-ios-app:
42+
name: Build iOS App
43+
runs-on: macos-14
44+
45+
steps:
46+
- uses: actions/checkout@v4
47+
48+
- name: Select Xcode Version
49+
run: sudo xcode-select -s /Applications/Xcode_15.0.app/Contents/Developer
50+
51+
- name: Install Tuist
52+
run: |
53+
curl -Ls https://install.tuist.io | bash
54+
echo "$HOME/.tuist/bin" >> $GITHUB_PATH
55+
56+
- name: Cache Tuist
57+
uses: actions/cache@v3
58+
with:
59+
path: |
60+
~/.tuist/Cache
61+
~/Library/Caches/tuist
62+
key: ${{ runner.os }}-tuist-${{ hashFiles('**/Project.swift', '**/Tuist.swift') }}
63+
restore-keys: |
64+
${{ runner.os }}-tuist-
65+
66+
- name: Generate Xcode Project
67+
run: |
68+
cd HealthGeneratorApp
69+
tuist generate --no-open
70+
71+
- name: Build iOS App
72+
run: |
73+
cd HealthGeneratorApp
74+
xcodebuild -workspace HealthGeneratorApp.xcworkspace \
75+
-scheme HealthGeneratorApp \
76+
-destination 'platform=iOS Simulator,name=iPhone 15,OS=17.0' \
77+
-configuration Debug \
78+
build \
79+
CODE_SIGNING_ALLOWED=NO
80+
81+
- name: Run iOS App Tests
82+
run: |
83+
cd HealthGeneratorApp
84+
xcodebuild -workspace HealthGeneratorApp.xcworkspace \
85+
-scheme HealthGeneratorApp \
86+
-destination 'platform=iOS Simulator,name=iPhone 15,OS=17.0' \
87+
-configuration Debug \
88+
test \
89+
CODE_SIGNING_ALLOWED=NO
90+
91+
lint:
92+
name: SwiftLint
93+
runs-on: macos-14
94+
95+
steps:
96+
- uses: actions/checkout@v4
97+
98+
- name: Install SwiftLint
99+
run: brew install swiftlint
100+
101+
- name: Run SwiftLint
102+
run: swiftlint lint --reporter github-actions-logging

0 commit comments

Comments
 (0)