Skip to content

Commit d07e94b

Browse files
committed
Initialize repository
0 parents  commit d07e94b

File tree

112 files changed

+5313
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+5313
-0
lines changed

.github/CODEOWNERS

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Lines starting with '#' are comments.
2+
# Each line is a file pattern followed by one or more owners.
3+
4+
# More details are here: https://help.github.com/articles/about-codeowners/
5+
6+
# The '*' pattern is global owners.
7+
8+
# Order is important. The last matching pattern has the most precedence.
9+
# The folders are ordered as follows:
10+
11+
# In each subsection folders are ordered first by depth, then alphabetically.
12+
# This should make it easy to add new rules without breaking existing ones.
13+
14+
# Global rule:
15+
* @tryboxx

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ko_fi: tryboxx

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
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:**
27+
- device: [e.g. MacBook Pro (13-inch, M1, 2020)]
28+
- macOS: [e.g. Big Sur, version 11.3.1]
29+
- appVersion: [e.g. 1.0]
30+
31+
**Additional context**
32+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
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+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/scripts/import-certificate.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
security create-keychain -p "" build.keychain
6+
security list-keychains -s build.keychain
7+
security default-keychain -s build.keychain
8+
security unlock-keychain -p "" build.keychain
9+
security set-keychain-settings
10+
security import <(echo $SIGNING_CERTIFICATE_P12_DATA | base64 --decode) \
11+
-f pkcs12 \
12+
-k build.keychain \
13+
-P $SIGNING_CERTIFICATE_PASSWORD \
14+
-T /usr/bin/codesign
15+
security set-key-partition-list -S apple-tool:,apple: -s -k "" build.keychain

.github/scripts/import-profile.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
6+
echo "$PROVISIONING_PROFILE_DATA" | base64 --decode > ~/Library/MobileDevice/Provisioning\ Profiles/SnippetsLibrary_Distribution.provisionprofile
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
SCHEME="$(xcodebuild -list -json | jq -r '.project.schemes[0]')"
6+
PRODUCT_NAME="$(xcodebuild -scheme "$SCHEME" -showBuildSettings | grep " PRODUCT_NAME " | sed "s/[ ]*PRODUCT_NAME = //")"
7+
echo "::set-env name=PRODUCT_NAME::$PRODUCT_NAME"

.github/workflows/deploy.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: deploy
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
tags: [ v* ]
7+
8+
jobs:
9+
deploy:
10+
runs-on: macos-latest
11+
env:
12+
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
13+
14+
steps:
15+
- name: Checkout project
16+
uses: actions/checkout@v2
17+
18+
- name: Set environment variables from project settings
19+
run: |
20+
exec .github/scripts/set-env-from-xcodeproj.sh
21+
- name: Import signing certificate
22+
env:
23+
SIGNING_CERTIFICATE_P12_DATA: ${{ secrets.SIGNING_CERTIFICATE_P12_DATA }}
24+
SIGNING_CERTIFICATE_PASSWORD: ${{ secrets.SIGNING_CERTIFICATE_PASSWORD }}
25+
run: |
26+
exec .github/scripts/import-certificate.sh
27+
- name: Import provisioning profile
28+
env:
29+
PROVISIONING_PROFILE_DATA: ${{ secrets.PROVISIONING_PROFILE_DATA }}
30+
run: |
31+
exec .github/scripts/import-profile.sh
32+
- name: Build app
33+
run: |
34+
fastlane run build_app
35+
- name: Upload build artifacts
36+
uses: actions/upload-artifact@v2
37+
with:
38+
name: build.log
39+
path: ~/Library/Logs/gym/*.log
40+
41+
- name: Upload release assets
42+
if: startsWith(github.ref, 'refs/tags/v')
43+
uses: softprops/action-gh-release@v1
44+
with:
45+
files: |
46+
${{ env.PRODUCT_NAME }}.ipa
47+
${{ env.PRODUCT_NAME }}.app.dSYM.zip
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
51+
- name: Upload app to App Store Connect
52+
if: startsWith(github.ref, 'refs/tags/v')
53+
env:
54+
APP_STORE_CONNECT_USERNAME: ${{ secrets.APP_STORE_CONNECT_USERNAME }}
55+
APP_STORE_CONNECT_PASSWORD: ${{ secrets.APP_STORE_CONNECT_PASSWORD }}
56+
run: |
57+
xcrun altool --upload-app -t ios -f "$PRODUCT_NAME.ipa" -u "$APP_STORE_CONNECT_USERNAME" -p "$APP_STORE_CONNECT_PASSWORD"

.github/workflows/tests.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: macos-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Build
17+
run: swift build -v
18+
- name: Run tests
19+
run: swift test -v

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
GoogleService-Info.plist

0 commit comments

Comments
 (0)