Skip to content

feat: new sdk core initial commit #84

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

Draft
wants to merge 40 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
77a232b
feat: new sdk core initial commit
OmarAlJarrah Mar 4, 2025
b5b3acb
initial commit
OmarAlJarrah Mar 17, 2025
98b4760
lint code
OmarAlJarrah Mar 17, 2025
99f56ed
lint code
OmarAlJarrah Mar 17, 2025
215923a
lint code
OmarAlJarrah Mar 17, 2025
278ef46
add signing
OmarAlJarrah Mar 17, 2025
6692aa5
add signing
OmarAlJarrah Mar 17, 2025
e35c0f7
commit
OmarAlJarrah Mar 21, 2025
9b39279
chore: refactor build scripts and add prepareSpecs task
OmarAlJarrah Mar 21, 2025
f451438
chore: update build configuration and add publishing tasks
OmarAlJarrah Mar 22, 2025
694cf4f
chore: update build configuration and add publishing tasks
OmarAlJarrah Mar 22, 2025
458ba01
chore: add build gradle kts for kotlin dsl and dependencies
OmarAlJarrah Mar 22, 2025
afb1bae
chore: update build configuration and add publishing tasks
OmarAlJarrah Mar 22, 2025
3d408f0
chore: lint
OmarAlJarrah Mar 22, 2025
4a8dd84
chore: enable snapshot publishing and update version to 2.0.1-alpha-S…
OmarAlJarrah Mar 22, 2025
d7894b9
chore: add KDoc documentation for API-related classes and methods
OmarAlJarrah Mar 22, 2025
0703b05
chore: improve version check message for snapshot publishing
OmarAlJarrah Mar 22, 2025
8600ef7
chore: improve version check message for snapshot publishing
OmarAlJarrah Mar 22, 2025
30b0410
chore: update publish workflow to include snapshot input and PR creation
OmarAlJarrah Mar 22, 2025
ac7ec5f
chore: update publish workflow to include snapshot input and PR creation
OmarAlJarrah Mar 22, 2025
5c12fff
chore: fix publish workflow to execute Gradle command for snapshot input
OmarAlJarrah Mar 22, 2025
234d23d
chore: fix publish workflow to execute Gradle command for snapshot input
OmarAlJarrah Mar 22, 2025
7073bd8
chore: update date-time types from OffsetDateTime to LocalDateTime in…
OmarAlJarrah Mar 22, 2025
e0e1083
chore: add architecture documentation for xap sdk
OmarAlJarrah Mar 24, 2025
cb72e29
chore: add architecture documentation for xap sdk
OmarAlJarrah Mar 24, 2025
890b32c
chore: enhance architecture documentation for XAP SDK with detailed c…
OmarAlJarrah Mar 24, 2025
9ca62d6
chore: update architecture documentation for XAP SDK with additional …
OmarAlJarrah Mar 24, 2025
b448641
chore: update architecture documentation for XAP SDK with additional …
OmarAlJarrah Mar 24, 2025
51e4be5
chore: update architecture documentation for XAP SDK with additional …
OmarAlJarrah Mar 24, 2025
3637c6d
chore: update architecture documentation for XAP SDK to clarify key f…
OmarAlJarrah Mar 24, 2025
0235fa0
chore: update architecture documentation for XAP SDK to clarify key c…
OmarAlJarrah Mar 24, 2025
aba32e2
chore: add auto-approval workflow for Dependabot and Renovate PRs
OmarAlJarrah Mar 24, 2025
20496bb
chore: update publish workflow to use version input for releases
OmarAlJarrah Mar 24, 2025
4371b76
chore: update publish SDK workflow to pass version input for snapshot…
OmarAlJarrah Mar 24, 2025
07776d4
chore: add examples (#96)
OmarAlJarrah Mar 26, 2025
0d450d3
feat: support OAuth (#97)
Mohammad-Dwairi Mar 26, 2025
a6cbb48
chore: code format
Mohammad-Dwairi Mar 26, 2025
44bfde2
chore: fix variable name for version in publish SDK workflow
OmarAlJarrah Mar 26, 2025
583849d
fix: rename BasicCredential
Mohammad-Dwairi Mar 27, 2025
21e73d5
chore: trim whitespace from version input in publish SDK workflow
OmarAlJarrah Apr 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

# Configuration file for EditorConfig: http://editorconfig.org
root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

# space indentation for JSON and YML
[*.{json,json5,yml,yaml}]
indent_size = 2

[*.kt]
ktlint_standard_enum-entry-name-case = disabled
23 changes: 0 additions & 23 deletions .github/workflows/generate-and-publish-sdk-sources.yaml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/generate-docs-site.yml

This file was deleted.

60 changes: 60 additions & 0 deletions .github/workflows/generate-publish-sdk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
on:
workflow_dispatch:
inputs:
version:
type: string
description: "Version to publish. For snapshot releases, add `-SNAPSHOT` suffix to the version. For example, `1.0.0-SNAPSHOT`."
required: true

jobs:
generate-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '21'

- uses: gradle/actions/setup-gradle@v4
with:
gradle-version: "8.13"

- name: Install Post Processor
working-directory: generator/src/main/resources/post-processor
run: npm ci && npm run clean && npm run compile

- run: gradle build

- name: Generate SDK
working-directory: generator
run: |
export KOTLIN_POST_PROCESS_FILE="npm run --prefix src/main/resources/post-processor process"
gradle openApiGenerate

- name: Open PR
uses: peter-evans/create-pull-request@v7
working-directory: xap-sdk
with:
token: ${{ secrets.GITHUB_PAT }}
commit-message: "chore: publishing code for sdk release $(date +'%Y%m%d%H%M%S')"
title: "chore: code update on $(date +'%Y%m%d%H%M%S')"
branch: "xap-sdk-code-update-$(date +'%Y%m%d%H%M%S')"
add-paths: .

- name: Publish SDK
working-directory: xap-sdk
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}
GPG_SECRET: ${{ secrets.GPG_PRIVATE_KEY }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
run: |
version="${{ github.event.inputs.version }}"
version="${version// /}"
if [[ "$version" == *"-SNAPSHOT" ]]; then
gradle publishSnapshot -PVERSION="${version}"
else
gradle publishToSonatype closeAndReleaseSonatypeStagingRepository -PVERSION="${version}"
fi
65 changes: 0 additions & 65 deletions .github/workflows/integration-tests.yaml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/release-sdk.yaml

This file was deleted.

65 changes: 0 additions & 65 deletions .github/workflows/run-examples.yaml

This file was deleted.

56 changes: 0 additions & 56 deletions .github/workflows/verify-examples-and-tests.yaml

This file was deleted.

47 changes: 47 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
.gradle
.idea

build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

### IntelliJ IDEA ###
.idea/modules.xml
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/libraries/
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

### Kotlin ###
.kotlin

### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/

### Mac OS ###
.DS_Store
Loading