Skip to content

Commit 2562486

Browse files
authored
iOS SDK v3 (#75)
1 parent 8500ffd commit 2562486

File tree

242 files changed

+8984
-10083
lines changed

Some content is hidden

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

242 files changed

+8984
-10083
lines changed

.buildscript/bootstrap.sh

-45
This file was deleted.

.circleci/config.yml

-62
This file was deleted.

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @marandaneto

.github/ISSUE_TEMPLATE/bug_report.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: 🐞 Bug Report
2+
description: Tell us about something that's not working the way we (probably) intend.
3+
labels: ["Platform: iOS", "bug"]
4+
body:
5+
6+
7+
- type: input
8+
id: version
9+
attributes:
10+
label: Version
11+
description: SDK Version
12+
placeholder: 3.0.0 ← should look like this
13+
validations:
14+
required: true
15+
16+
- type: textarea
17+
id: repro
18+
attributes:
19+
label: Steps to Reproduce
20+
description: How can we see what you're seeing? Specific is terrific.
21+
placeholder: |-
22+
1. foo
23+
2. bar
24+
3. baz
25+
validations:
26+
required: true
27+
28+
- type: textarea
29+
id: expected
30+
attributes:
31+
label: Expected Result
32+
validations:
33+
required: true
34+
35+
- type: textarea
36+
id: actual
37+
attributes:
38+
label: Actual Result
39+
description: Logs? Screenshots? Yes, please.
40+
validations:
41+
required: true

.github/ISSUE_TEMPLATE/config.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Ask in the forums
4+
url: https://posthog.com/questions
5+
about: A place to ask questions.
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: 💡 Feature Request
2+
description: Tell us about a problem our SDK could solve but doesn't.
3+
labels: ["enhancement"]
4+
body:
5+
- type: textarea
6+
id: problem
7+
attributes:
8+
label: Problem Statement
9+
description: What problem could we solve that it doesn't?
10+
placeholder: |-
11+
I want to make whirled peas, but it doesn't blend.
12+
validations:
13+
required: true
14+
15+
- type: textarea
16+
id: expected
17+
attributes:
18+
label: Solution Brainstorm
19+
description: We know you have bright ideas to share ... share away, friend.
20+
placeholder: |-
21+
Add a blender to it.
22+
validations:
23+
required: false
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Blank Issue
2+
description: Blank Issue. Reserved for maintainers.
3+
body:
4+
- type: textarea
5+
id: description
6+
attributes:
7+
label: Description
8+
description: Please describe the issue.
9+
validations:
10+
required: true

.github/PULL_REQUEST_TEMPLATE.md

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
**What does this PR do?**
1+
## :bulb: Motivation and Context
2+
<!--- Why is this change required? What problem does it solve? -->
3+
<!--- If it fixes an open issue, please link to the issue here. -->
24

3-
**Where should the reviewer start?**
45

5-
**How should this be manually tested?**
6+
## :green_heart: How did you test it?
67

7-
**Any background context you want to provide?**
88

9-
**What are the relevant tickets?**
9+
## :pencil: Checklist
10+
<!--- Put an `x` in the boxes that apply -->
1011

11-
**Screenshots or screencasts (if UI/UX change)**
12-
13-
**Questions:**
14-
- Does the docs need an update?
15-
- Are there any security concerns?
16-
- Do we need to update engineering / success?
12+
- [ ] I reviewed the submitted code.
13+
- [ ] I added tests to verify the changes.
14+
- [ ] I updated the docs if needed.
15+
- [ ] No breaking change or entry added to the changelog.

.github/dependabot.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: weekly

.github/workflows/build-examples.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Build Examples
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
paths-ignore:
8+
- "**/*.md"
9+
jobs:
10+
build:
11+
runs-on: macos-13
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: maxim-lobanov/setup-xcode@v1
15+
with:
16+
xcode-version: '15.0'
17+
- name: Build Example
18+
run: make buildExample

.github/workflows/build.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
paths-ignore:
8+
- "**/*.md"
9+
jobs:
10+
build:
11+
runs-on: macos-13
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: maxim-lobanov/setup-xcode@v1
15+
with:
16+
xcode-version: '15.0'
17+
- name: Build SDK
18+
run: make buildSdk

.github/workflows/ci.yml

-49
This file was deleted.

.github/workflows/danger.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: "Danger"
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened, edited, ready_for_review]
5+
6+
jobs:
7+
build:
8+
name: Changelog
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
- run: npx danger ci
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/lint.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Lint
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
paths-ignore:
8+
- "**/*.md"
9+
jobs:
10+
lint:
11+
runs-on: macos-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Run lints
16+
run: make lint

.github/workflows/release.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: 'Release'
2+
on:
3+
release:
4+
# runs for stable and pre-releases
5+
types: [published]
6+
7+
jobs:
8+
cancel-previous-workflow:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Cancel Previous Runs
12+
uses: styfle/cancel-workflow-action@01ce38bf961b4e243a6342cbade0dbc8ba3f0432 # [email protected]
13+
with:
14+
access_token: ${{ github.token }}
15+
16+
release:
17+
name: Release
18+
runs-on: macos-latest
19+
env:
20+
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} # Using Manoel's token for now
21+
22+
steps:
23+
- name: Git checkout
24+
uses: actions/checkout@v4
25+
26+
- name: Install Cocoapods
27+
run: gem install cocoapods
28+
29+
- name: Update version
30+
run: ./scripts/bump-version.sh ${{ github.event.release.tag_name }}
31+
32+
- name: Commit & push
33+
run: |
34+
echo "Tag name from github.ref_name: ${{ github.event.release.target_commitish }}"
35+
./scripts/commit-code.sh ${{ github.event.release.target_commitish }}
36+
37+
- name: Release
38+
run: make releaseCocoaPods

0 commit comments

Comments
 (0)