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

Adapt and automate release for Maven Central #36

Merged
merged 46 commits into from
Dec 3, 2024
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
ba9180f
feat: add task to generate a zip file
kkostov Aug 1, 2024
e9ba1df
feat: configure publishing to maven central
kkostov Aug 2, 2024
1dcca8b
feat: add GitHub action to publish to Maven
kkostov Sep 12, 2024
97c5184
chore: .idea
kkostov Sep 12, 2024
9972637
feat: create TelemetryDeck to replace TelemetryManager
kkostov Sep 12, 2024
0e8e9ce
feat: rename TelemetryManagerSignals interface to TelemetryDeckClient
kkostov Sep 12, 2024
1bbf975
feat: rename manager to client in TelemetryProvider, update README
kkostov Sep 12, 2024
2f98979
feat: add github action for running unit tests in the library
kkostov Oct 3, 2024
3998e87
fix: improve serialization test
kkostov Oct 3, 2024
fbee3db
fix: only run tests during a PR
kkostov Oct 3, 2024
dfad719
feat: allow providers to be migrated, reduce breaking changes for exi…
kkostov Oct 3, 2024
13ca578
docs: update readme, fix: adapt default providers to exclude activity…
kkostov Oct 4, 2024
da74f99
docs: add missing custom logger documentation
kkostov Oct 4, 2024
e934093
feat: migrate to new signal names
kkostov Oct 4, 2024
cc23e9d
feat: support floatValue, docs: additional deprecations on older sign…
kkostov Oct 4, 2024
a8686c4
feat: add parameters from platform context
kkostov Oct 4, 2024
934c608
feat: add orientation and screen metrics to params, improve locale de…
kkostov Oct 4, 2024
0790389
chore: reformat code
kkostov Oct 4, 2024
2f65a08
chore: idea config files
kkostov Oct 4, 2024
36a3a84
fix: tests
kkostov Oct 4, 2024
0cba6d5
chore: AGP plugin update
kkostov Oct 4, 2024
b8e5b4e
feat: migrate to v2 ingestion API
kkostov Oct 4, 2024
9ed2112
feat: allow legacy clients to send newer metadata
kkostov Oct 4, 2024
d529ed3
fix: cleanup TelemetryDeckClient interface
kkostov Oct 4, 2024
3beb028
docs: update README
kkostov Oct 4, 2024
866991c
fix: typo
kkostov Oct 4, 2024
ef91e36
fix: unit test
kkostov Oct 4, 2024
9548423
chore: upgrade gradle to 8.10.2
kkostov Oct 27, 2024
427d060
feat: migrate to dependency catalog, Kotlin 2.0.20
kkostov Oct 27, 2024
067ffd0
feat: drop Mockito in favour of Mockk for more streamlined integration
kkostov Oct 27, 2024
bf6dc7f
chore: update .gitignore
kkostov Oct 27, 2024
d234f7f
chore: remove old example app
kkostov Oct 27, 2024
ff4ffd1
chore: re-enable publishing
kkostov Oct 27, 2024
a75f2c8
chore: supress deprecation warning for the older Telemetry provider c…
kkostov Oct 27, 2024
030fcb5
chore: cleanup some comments
kkostov Oct 27, 2024
0f3d472
fix: explicit dependency on compose seems to be required to use the c…
kkostov Oct 27, 2024
094b616
Merge pull request #38 from TelemetryDeck/feat/grand-rename
kkostov Nov 25, 2024
380a5fd
Merge pull request #39 from TelemetryDeck/feat/upgrade-deps-cleanup
kkostov Nov 26, 2024
49ceb09
chore: update gitignore
kkostov Dec 2, 2024
859fba7
apply updated .gitignore
kkostov Dec 2, 2024
2b37bf1
chore: update gitignore
kkostov Dec 2, 2024
ba171e5
docs: update README with latest version
kkostov Dec 3, 2024
f570870
fix: remove logger dependency, publishing to maven central variables
kkostov Dec 3, 2024
63cb606
fix: META-INF error when TelemetryDeck SDK is added to projects creat…
kkostov Dec 3, 2024
2968c84
docs: Add an updated RELEASE manual
kkostov Dec 3, 2024
346c48c
feat: when showDebugLogs is true, include client http logs in the trace
kkostov Dec 3, 2024
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
33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish to Maven Central

on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+*"

jobs:
publish:
name: Publish to Sonatype
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Configure JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Upload Artifacts
# gradle.properties must be set with SONATYPE_HOST=CENTRAL_PORTAL and RELEASE_SIGNING_ENABLED=true
run: ./gradlew publishAndReleaseToMavenCentral --no-configuration-cache
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralUsername }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralPassword }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKey }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyId }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyPassword }}
32 changes: 32 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Run Tests

on:
push:
branches:
- main
pull_request:

# prevent concurrent builds from running at the same time
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Test Kotlin SDK for TelemetryDeck
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Configure JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Run test
run: ./gradlew lib:test
61 changes: 60 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,68 @@
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
/.idea/androidTestResultsUserPreferences.xml
/.idea/deploymentTargetSelector.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
.idea/shelf
/confluence/target
/dependencies/repo
/android.tests.dependencies
/dependencies/android.tests.dependencies
/dist
/local
/gh-pages
/ideaSDK
/clionSDK
/android-studio/sdk
out/
/tmp
/intellij
workspace.xml
*.versionsBackup
/idea/testData/debugger/tinyApp/classes*
/jps-plugin/testData/kannotator
/js/js.translator/testData/out/
/js/js.translator/testData/out-min/
/js/js.translator/testData/out-pir/
.gradle/
build/
!**/src/**/build
!**/test/**/build
!**/testData/**/*.iml
.idea/artifacts
.idea/remote-targets.xml
.idea/libraries/Gradle*.xml
.idea/libraries/Maven*.xml
.idea/modules
.idea/runConfigurations/JPS_*.xml
.idea/runConfigurations/_JPS_*.xml
.idea/runConfigurations/PILL_*.xml
.idea/runConfigurations/_FP_*.xml
.idea/runConfigurations/_MT_*.xml
.idea/libraries
.idea/modules.xml
.idea/gradle.xml
.idea/compiler.xml
.idea/inspectionProfiles/profiles_settings.xml
.idea/.name
.idea/jarRepositories.xml
.idea/csv-plugin.xml
.idea/libraries-with-intellij-classes.xml
.idea/misc.xml
.idea/protoeditor.xml
.idea/uiDesigner.xml
node_modules/
.rpt2_cache/
buildSrcTmp/
distTmp/
outTmp/
/test.output
/kotlin-native/dist
kotlin-ide/
.kotlin/
.teamcity/
1 change: 0 additions & 1 deletion .idea/.name

This file was deleted.

36 changes: 36 additions & 0 deletions .idea/androidTestResultsUserPreferences.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/deploymentTargetSelector.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/migrations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading