Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS SDK v3 #75

Merged
merged 46 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
ba4a06b
remove old stuff
marandaneto Oct 18, 2023
70105a1
push
marandaneto Oct 18, 2023
cd71731
fix
marandaneto Oct 18, 2023
57730ae
fix
marandaneto Oct 18, 2023
f34dbb4
fix
marandaneto Oct 18, 2023
f18a91c
fix ci
marandaneto Oct 18, 2023
e33fec0
fix
marandaneto Oct 18, 2023
202d927
changes
marandaneto Oct 18, 2023
25d041a
fix
marandaneto Oct 18, 2023
b76f871
fix
marandaneto Oct 18, 2023
95dd2ba
test
marandaneto Oct 18, 2023
9f828ec
fix
marandaneto Oct 18, 2023
0a84be6
fix
marandaneto Oct 18, 2023
f770285
remove ui tests folder
marandaneto Oct 18, 2023
398d118
test
marandaneto Oct 18, 2023
807271f
fix
marandaneto Oct 18, 2023
36a988f
fix
marandaneto Oct 18, 2023
7d4080f
fix
marandaneto Oct 18, 2023
0f83ee7
fix
marandaneto Oct 18, 2023
136bea0
fix
marandaneto Oct 18, 2023
910a55f
swift 5.3
marandaneto Oct 18, 2023
f8aaf06
install latest xcode
marandaneto Oct 18, 2023
1425af0
update device
marandaneto Oct 18, 2023
b01cd5b
fix lint
marandaneto Oct 18, 2023
d10ac7b
add captureApplicationLifecycleEvents
marandaneto Oct 23, 2023
3fc4849
fix merging props
marandaneto Oct 23, 2023
711ce92
fix lifecycle issues
marandaneto Oct 23, 2023
1233cf3
add captureScreenViews
marandaneto Oct 23, 2023
833d074
Addressed a few comments from the code review (#77)
marandaneto Oct 23, 2023
3b25ef0
Add ObjC example and add method annotations (#78)
marandaneto Oct 25, 2023
9ee9b7b
Modify cocoapods spec to make it work with v3 (#79)
marandaneto Oct 25, 2023
bec3aff
Swift PM fixes and Swift only (#80)
marandaneto Oct 25, 2023
19064a4
Auto release via GH Actions (#81)
marandaneto Oct 25, 2023
6c8d69d
Compatibility with iOS SDK v2 (#83)
marandaneto Oct 30, 2023
67c923e
Sanitize dictionaries before serialization (#82)
marandaneto Nov 2, 2023
52a6d76
Unit tests and refactoring to make it testable (#84)
marandaneto Nov 2, 2023
9e2940b
fix sorting
marandaneto Nov 2, 2023
3ef6553
fix
marandaneto Nov 2, 2023
eb8ab66
add changelog date
marandaneto Nov 2, 2023
71f4494
add 3.0.0-alpha.2 changelog
marandaneto Nov 2, 2023
395a1bf
Update version
Nov 2, 2023
bc6fd32
Support for WatchOS (#87)
marandaneto Nov 2, 2023
94b1e16
GH Templates and codeowner (#86)
marandaneto Nov 2, 2023
e050cf8
New usage md and breaking changes list (#85)
marandaneto Nov 2, 2023
5567827
prepare to main branch
marandaneto Nov 2, 2023
20e29a2
fix
marandaneto Nov 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 0 additions & 45 deletions .buildscript/bootstrap.sh

This file was deleted.

62 changes: 0 additions & 62 deletions .circleci/config.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @marandaneto
41 changes: 41 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: 🐞 Bug Report
description: Tell us about something that's not working the way we (probably) intend.
labels: ["Platform: iOS", "bug"]
body:


- type: input
id: version
attributes:
label: Version
description: SDK Version
placeholder: 3.0.0 ← should look like this
validations:
required: true

- type: textarea
id: repro
attributes:
label: Steps to Reproduce
description: How can we see what you're seeing? Specific is terrific.
placeholder: |-
1. foo
2. bar
3. baz
validations:
required: true

- type: textarea
id: expected
attributes:
label: Expected Result
validations:
required: true

- type: textarea
id: actual
attributes:
label: Actual Result
description: Logs? Screenshots? Yes, please.
validations:
required: true
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Ask in the forums
url: https://posthog.com/questions
about: A place to ask questions.
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 💡 Feature Request
description: Tell us about a problem our SDK could solve but doesn't.
labels: ["enhancement"]
body:
- type: textarea
id: problem
attributes:
label: Problem Statement
description: What problem could we solve that it doesn't?
placeholder: |-
I want to make whirled peas, but it doesn't blend.
validations:
required: true

- type: textarea
id: expected
attributes:
label: Solution Brainstorm
description: We know you have bright ideas to share ... share away, friend.
placeholder: |-
Add a blender to it.
validations:
required: false
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/maintainer-blank.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Blank Issue
description: Blank Issue. Reserved for maintainers.
body:
- type: textarea
id: description
attributes:
label: Description
description: Please describe the issue.
validations:
required: true
21 changes: 10 additions & 11 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
**What does this PR do?**
## :bulb: Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here. -->

**Where should the reviewer start?**

**How should this be manually tested?**
## :green_heart: How did you test it?

**Any background context you want to provide?**

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

**Screenshots or screencasts (if UI/UX change)**

**Questions:**
- Does the docs need an update?
- Are there any security concerns?
- Do we need to update engineering / success?
- [ ] I reviewed the submitted code.
- [ ] I added tests to verify the changes.
- [ ] I updated the docs if needed.
- [ ] No breaking change or entry added to the changelog.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly
18 changes: 18 additions & 0 deletions .github/workflows/build-examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build Examples
on:
push:
branches:
- main
pull_request:
paths-ignore:
- "**/*.md"
jobs:
build:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0'
- name: Build Example
run: make buildExample
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build
on:
push:
branches:
- main
pull_request:
paths-ignore:
- "**/*.md"
jobs:
build:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0'
- name: Build SDK
run: make buildSdk
49 changes: 0 additions & 49 deletions .github/workflows/ci.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/danger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Danger"
on:
pull_request:
types: [opened, synchronize, reopened, edited, ready_for_review]

jobs:
build:
name: Changelog
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: npx danger ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 16 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Lint
on:
push:
branches:
- main
pull_request:
paths-ignore:
- "**/*.md"
jobs:
lint:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4

- name: Run lints
run: make lint
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: 'Release'
on:
release:
# runs for stable and pre-releases
types: [published]

jobs:
cancel-previous-workflow:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@01ce38bf961b4e243a6342cbade0dbc8ba3f0432 # pin@0.12.0
with:
access_token: ${{ github.token }}

release:
name: Release
runs-on: macos-latest
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} # Using Manoel's token for now

steps:
- name: Git checkout
uses: actions/checkout@v4

- name: Install Cocoapods
run: gem install cocoapods

- name: Update version
run: ./scripts/bump-version.sh ${{ github.event.release.tag_name }}

- name: Commit & push
run: |
echo "Tag name from github.ref_name: ${{ github.event.release.target_commitish }}"
./scripts/commit-code.sh ${{ github.event.release.target_commitish }}

- name: Release
run: make releaseCocoaPods
Loading