-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: PostHog Github Bot <[email protected]>
- Loading branch information
1 parent
09940e6
commit 6a53f45
Showing
263 changed files
with
9,614 additions
and
16,512 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @marandaneto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Android", "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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: ["enhacement"] | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
## :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. --> | ||
|
||
|
||
## :green_heart: How did you test it? | ||
|
||
|
||
## :pencil: Checklist | ||
<!--- Put an `x` in the boxes that apply --> | ||
|
||
- [ ] 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. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: 'Build & Test' | ||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
cancel-previous-workflow: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # [email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
build: | ||
name: Build Job ${{ matrix.os }} - Java ${{ matrix.java }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
java: ['17'] | ||
|
||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: 'Set up Java: ${{ matrix.java }}' | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: 'temurin' | ||
|
||
- name: Cache Gradle packages | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Make compile | ||
run: make compile | ||
|
||
- name: Make stop | ||
run: make stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: 'Validate Gradle Wrapper' | ||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
validation: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 # [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
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@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # [email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
release: | ||
name: Release Job ${{ matrix.os }} - Java ${{ matrix.java }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
java: ['17'] | ||
env: | ||
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | ||
|
||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: 'Set up Java: ${{ matrix.java }}' | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: 'temurin' | ||
|
||
- 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 }} | ||
# Let's be sure that everything works before we release | ||
- name: Dry release | ||
run: make dryRelease | ||
|
||
- name: Release | ||
run: make release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -152,4 +152,7 @@ build/ | |
gradle-app.setting | ||
|
||
# Jacoco | ||
/posthog/jacoco.exec | ||
/posthog/jacoco.exec | ||
|
||
# eclipse | ||
.project/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
.PHONY: clean compile stop checkFormat format api dryRelease release testReport test testJava | ||
|
||
clean: | ||
./gradlew clean | ||
|
||
compile: | ||
./gradlew build | ||
|
||
# We stop gradle at the end to make sure the cache folders | ||
# don't contain any lock files and are free to be cached. | ||
stop: | ||
./gradlew --stop | ||
|
||
checkFormat: | ||
./gradlew spotlessCheck | ||
|
||
format: | ||
./gradlew spotlessApply | ||
|
||
api: | ||
./gradlew apiDump | ||
|
||
dryRelease: | ||
./gradlew publishToMavenLocal | ||
|
||
release: | ||
./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository | ||
|
||
testReport: | ||
./gradlew koverHtmlReport | ||
|
||
# compile already runs the tests (tests java and android) | ||
test: | ||
./gradlew testDebugUnitTest | ||
|
||
# compile already runs the tests (tests only java) | ||
testJava: | ||
./gradlew :posthog:test |
Oops, something went wrong.