Skip to content

Commit e266e64

Browse files
committed
Initial commit
0 parents  commit e266e64

60 files changed

Lines changed: 2334 additions & 0 deletions

File tree

Some content is hidden

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

.github/workflows/build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: build
2+
on: [push]
3+
jobs:
4+
build:
5+
runs-on: macos-latest
6+
steps:
7+
- name: Checkout
8+
uses: actions/checkout@v3
9+
- uses: actions/setup-java@v3
10+
with:
11+
distribution: 'temurin'
12+
java-version: '17'
13+
- name: Build
14+
run: ./gradlew :core:build
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Publish Dry Run
2+
on: workflow_dispatch
3+
permissions:
4+
contents: read
5+
pages: write
6+
id-token: write
7+
jobs:
8+
build:
9+
runs-on: macos-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
- uses: actions/setup-java@v3
14+
with:
15+
distribution: 'temurin'
16+
java-version: '17'
17+
- name: Publish to project-local repo
18+
run: ./gradlew clean publishAllPublicationsToLocalRepository
19+
env:
20+
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.PUBLISH_SIGNING_KEYID }}
21+
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.PUBLISH_SIGNING_KEY }}
22+
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.PUBLISH_SIGNING_PASSWORD }}
23+
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.PUBLISH_SONATYPE_USER }}
24+
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.PUBLISH_SONATYPE_PASSWORD }}
25+
26+
- name: List published Maven-local artifacts
27+
if: success() || failure() # always run so the table appears even if publish failed
28+
shell: bash
29+
run: |
30+
ART_DIR="./repo/at/asitplus/authcheckkit"
31+
ls -la $ART_DIR
32+
# Header
33+
{
34+
echo "### Maven-local artifacts for \`at.asitplus.authcheckkit\`"
35+
echo ""
36+
echo "| Module | Version | File |"
37+
echo "|--------|---------|------|"
38+
} >> "$GITHUB_STEP_SUMMARY"
39+
40+
# Abort early if nothing was written
41+
[[ -d "$ART_DIR" ]] || { echo "| _No artifacts found_ | | |" >> "$GITHUB_STEP_SUMMARY"; exit 0; }
42+
43+
# Collect artifacts (jar / klib / aar / pom) and append table rows
44+
find "$ART_DIR" -type f \( -name "*.jar" -o -name "*.klib" -o -name "*.aar" -o -name "*.pom" \) \
45+
| sort \
46+
| while read -r file; do
47+
rel="${file#${ART_DIR}/}" # => module/version/filename
48+
IFS='/' read -r module version filename <<< "$rel"
49+
echo "| \`$module\` | \`$version\` | \`$filename\` |" >> "$GITHUB_STEP_SUMMARY"
50+
done
51+
deploy-docs:
52+
needs: build
53+
environment:
54+
name: github-pages
55+
url: ${{ steps.deployment.outputs.page_url }}
56+
runs-on: ubuntu-latest
57+
steps:
58+
- name: Checkout
59+
uses: actions/checkout@v3
60+
- name: Build Dokka HTML
61+
run: ./gradlew dokkaGenerate
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish Pages
2+
on: workflow_dispatch
3+
permissions:
4+
contents: read
5+
pages: write
6+
id-token: write
7+
jobs:
8+
deploy-docs:
9+
environment:
10+
name: github-pages
11+
url: ${{ steps.deployment.outputs.page_url }}
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
with:
17+
submodules: recursive
18+
- uses: actions/setup-java@v3
19+
with:
20+
distribution: 'temurin'
21+
java-version: '17'
22+
- name: Build Dokka HTML
23+
run: ./gradlew dokkaGenerate
24+
- name: Setup Pages
25+
uses: actions/configure-pages@v3
26+
- name: Upload artifact
27+
uses: actions/upload-pages-artifact@v3
28+
with:
29+
# Upload docs folder
30+
path: './docs'
31+
- name: Deploy to GitHub Pages
32+
id: deployment
33+
uses: actions/deploy-pages@v4

.github/workflows/publish.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Publish
2+
on: workflow_dispatch
3+
permissions:
4+
contents: read
5+
pages: write
6+
id-token: write
7+
jobs:
8+
build:
9+
runs-on: macos-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
- uses: actions/setup-java@v3
14+
with:
15+
distribution: 'temurin'
16+
java-version: '17'
17+
- name: Publish to Sonatype
18+
run: ./gradlew clean publishToSonatype closeSonatypeStagingRepository
19+
env:
20+
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.PUBLISH_SIGNING_KEYID }}
21+
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.PUBLISH_SIGNING_KEY }}
22+
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.PUBLISH_SIGNING_PASSWORD }}
23+
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.PUBLISH_SONATYPE_USER }}
24+
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.PUBLISH_SONATYPE_PASSWORD }}
25+
deploy-docs:
26+
needs: build
27+
environment:
28+
name: github-pages
29+
url: ${{ steps.deployment.outputs.page_url }}
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v3
34+
- name: Build Dokka HTML
35+
run: ./gradlew dokkaGenerate
36+
- name: Setup Pages
37+
uses: actions/configure-pages@v3
38+
- name: Upload artifact
39+
uses: actions/upload-pages-artifact@v3
40+
with:
41+
# Upload docs folder
42+
path: './docs'
43+
- name: Deploy to GitHub Pages
44+
id: deployment
45+
uses: actions/deploy-pages@v4

.github/workflows/test-android.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Test Android
2+
on: workflow_dispatch
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout
8+
uses: actions/checkout@v4
9+
with:
10+
submodules: recursive
11+
- uses: actions/setup-java@v4
12+
with:
13+
distribution: 'temurin'
14+
java-version: '17'
15+
- name: Enable KVM
16+
run: |
17+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
18+
sudo udevadm control --reload-rules
19+
sudo udevadm trigger --name-match=kvm
20+
- name: Test KMP on Android
21+
uses: ReactiveCircus/android-emulator-runner@v2
22+
with:
23+
arch: x86_64
24+
api-level: 33
25+
target: google_apis
26+
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
27+
script: ./gradlew connectedAndroidTest
28+
- name: Test Report
29+
uses: dorny/test-reporter@v1
30+
if: success() || failure()
31+
with:
32+
name: All Tests
33+
path: core/build/test-results/**/TEST*.xml
34+
reporter: java-junit

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.gradle
2+
build
3+
docs
4+
.idea
5+
.kotlin
6+
.DS_Store
7+
local.properties
8+
/testApp/iosApp/iosApp.xcodeproj/project.xcworkspace/xcuserdata
9+
/testApp/iosApp/iosApp.xcodeproj/xcuserdata
10+
Module.md

CONTRIBUTING.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<div align="center">
2+
<img src="https://github.com/user-attachments/assets/13750466-7d65-492f-9250-420da5467d2d">
3+
4+
# Contributing to A-SIT Plus Open Source
5+
6+
</div>
7+
8+
We are happy to receive external contributions!
9+
"Just" opening issues for encountered problems is greatly appreciated too!
10+
11+
## Reporting Issues
12+
13+
We welcome constructive feedback and enquiries of any kind! Just be sure to check existing issues first to avoid duplicates.
14+
Please try to be as precise as possible and provide a reproducer (where applicable).
15+
16+
## Contributing Changes
17+
18+
We expect the contributor to hold all rights to the contributions they are about to commit.
19+
We particularly condemn copyright infringement and expect contributors to respect this position and strictly observe applicable law!
20+
21+
If you plan on contributing changes to this repository's contents, please
22+
23+
1. Fork it
24+
2. Create a branch with a descriptive name (e.g. `feature/timeTravel` or `fix/gravitationalConstant`)
25+
3. Commit your changes to your branch
26+
4. Open a pull request against `development`
27+
28+
We will then review the changes, provide feedback.
29+
Once we agree that the PR is ready, we will approve it, and your PR will be merged.
30+
31+
This project **does not** require external contributors to sign a Contributor License Agreement (CLA)!
32+
Contributions are only subject to the terms of this project's license.
33+
34+
### Coding Conventions
35+
36+
We try to follow the [official Kotlin coding conventions](https://kotlinlang.org/docs/coding-conventions.html) and expect the same from external contributors.
37+
We don't have any automated checks in place and hence don't strictly enforce convention rules by hard, but we will manually check for obvious violations.
38+
To put it plain and simple:
39+
40+
> When in Rome, do as the Romans do!
41+
42+
43+
<br>
44+
45+
<hr>
46+
<div align="center">
47+
48+
Copyright &copy; 2024 A-SIT Plus GmbH, Seidlgasse 22 / Top 9, 1030 Vienna, Austria
49+
50+
<img src="https://a-sit-plus.github.io/logo_kurzertext.svg" width="163" height="64">
51+
52+
</div>

0 commit comments

Comments
 (0)